| 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/product.proto |
| 20 |
|
| 21 |
package retailpb |
| 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 |
durationpb "google.golang.org/protobuf/types/known/durationpb" |
| 28 |
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" |
| 29 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 30 |
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" |
| 31 |
reflect "reflect" |
| 32 |
sync "sync" |
| 33 |
) |
| 34 |
|
| 35 |
const ( |
| 36 |
// Verify that this generated code is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 38 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 39 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 40 |
) |
| 41 |
|
| 42 |
// The type of this product. |
| 43 |
type Product_Type int32 |
| 44 |
|
| 45 |
const ( |
| 46 |
// Default value. Default to |
| 47 |
// [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] |
| 48 |
// if unset. |
| 49 |
Product_TYPE_UNSPECIFIED Product_Type = 0 |
| 50 |
// The primary type. |
| 51 |
// |
| 52 |
// As the primary unit for predicting, indexing and search serving, a |
| 53 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] |
| 54 |
// [Product][google.cloud.retail.v2beta.Product] is grouped with multiple |
| 55 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] |
| 56 |
// [Product][google.cloud.retail.v2beta.Product]s. |
| 57 |
Product_PRIMARY Product_Type = 1 |
| 58 |
// The variant type. |
| 59 |
// |
| 60 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] |
| 61 |
// [Product][google.cloud.retail.v2beta.Product]s usually share some common |
| 62 |
// attributes on the same |
| 63 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] |
| 64 |
// [Product][google.cloud.retail.v2beta.Product]s, but they have variant |
| 65 |
// attributes like different colors, sizes and prices, etc. |
| 66 |
Product_VARIANT Product_Type = 2 |
| 67 |
// The collection type. Collection products are bundled |
| 68 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] |
| 69 |
// [Product][google.cloud.retail.v2beta.Product]s or |
| 70 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] |
| 71 |
// [Product][google.cloud.retail.v2beta.Product]s that are sold together, |
| 72 |
// such as a jewelry set with necklaces, earrings and rings, etc. |
| 73 |
Product_COLLECTION Product_Type = 3 |
| 74 |
) |
| 75 |
|
| 76 |
// Enum value maps for Product_Type. |
| 77 |
var ( |
| 78 |
Product_Type_name = map[int32]string{ |
| 79 |
0: "TYPE_UNSPECIFIED", |
| 80 |
1: "PRIMARY", |
| 81 |
2: "VARIANT", |
| 82 |
3: "COLLECTION", |
| 83 |
} |
| 84 |
Product_Type_value = map[string]int32{ |
| 85 |
"TYPE_UNSPECIFIED": 0, |
| 86 |
"PRIMARY": 1, |
| 87 |
"VARIANT": 2, |
| 88 |
"COLLECTION": 3, |
| 89 |
} |
| 90 |
) |
| 91 |
|
| 92 |
func (x Product_Type) Enum() *Product_Type { |
| 93 |
p := new(Product_Type) |
| 94 |
*p = x |
| 95 |
return p |
| 96 |
} |
| 97 |
|
| 98 |
func (x Product_Type) String() string { |
| 99 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 100 |
} |
| 101 |
|
| 102 |
func (Product_Type) Descriptor() protoreflect.EnumDescriptor { |
| 103 |
return file_google_cloud_retail_v2beta_product_proto_enumTypes[0].Descriptor() |
| 104 |
} |
| 105 |
|
| 106 |
func (Product_Type) Type() protoreflect.EnumType { |
| 107 |
return &file_google_cloud_retail_v2beta_product_proto_enumTypes[0] |
| 108 |
} |
| 109 |
|
| 110 |
func (x Product_Type) Number() protoreflect.EnumNumber { |
| 111 |
return protoreflect.EnumNumber(x) |
| 112 |
} |
| 113 |
|
| 114 |
// Deprecated: Use Product_Type.Descriptor instead. |
| 115 |
func (Product_Type) EnumDescriptor() ([]byte, []int) { |
| 116 |
return file_google_cloud_retail_v2beta_product_proto_rawDescGZIP(), []int{0, 0} |
| 117 |
} |
| 118 |
|
| 119 |
// Product availability. If this field is unspecified, the product is |
| 120 |
// assumed to be in stock. |
| 121 |
type Product_Availability int32 |
| 122 |
|
| 123 |
const ( |
| 124 |
// Default product availability. Default to |
| 125 |
// [Availability.IN_STOCK][google.cloud.retail.v2beta.Product.Availability.IN_STOCK] |
| 126 |
// if unset. |
| 127 |
Product_AVAILABILITY_UNSPECIFIED Product_Availability = 0 |
| 128 |
// Product in stock. |
| 129 |
Product_IN_STOCK Product_Availability = 1 |
| 130 |
// Product out of stock. |
| 131 |
Product_OUT_OF_STOCK Product_Availability = 2 |
| 132 |
// Product that is in pre-order state. |
| 133 |
Product_PREORDER Product_Availability = 3 |
| 134 |
// Product that is back-ordered (i.e. temporarily out of stock). |
| 135 |
Product_BACKORDER Product_Availability = 4 |
| 136 |
) |
| 137 |
|
| 138 |
// Enum value maps for Product_Availability. |
| 139 |
var ( |
| 140 |
Product_Availability_name = map[int32]string{ |
| 141 |
0: "AVAILABILITY_UNSPECIFIED", |
| 142 |
1: "IN_STOCK", |
| 143 |
2: "OUT_OF_STOCK", |
| 144 |
3: "PREORDER", |
| 145 |
4: "BACKORDER", |
| 146 |
} |
| 147 |
Product_Availability_value = map[string]int32{ |
| 148 |
"AVAILABILITY_UNSPECIFIED": 0, |
| 149 |
"IN_STOCK": 1, |
| 150 |
"OUT_OF_STOCK": 2, |
| 151 |
"PREORDER": 3, |
| 152 |
"BACKORDER": 4, |
| 153 |
} |
| 154 |
) |
| 155 |
|
| 156 |
func (x Product_Availability) Enum() *Product_Availability { |
| 157 |
p := new(Product_Availability) |
| 158 |
*p = x |
| 159 |
return p |
| 160 |
} |
| 161 |
|
| 162 |
func (x Product_Availability) String() string { |
| 163 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 164 |
} |
| 165 |
|
| 166 |
func (Product_Availability) Descriptor() protoreflect.EnumDescriptor { |
| 167 |
return file_google_cloud_retail_v2beta_product_proto_enumTypes[1].Descriptor() |
| 168 |
} |
| 169 |
|
| 170 |
func (Product_Availability) Type() protoreflect.EnumType { |
| 171 |
return &file_google_cloud_retail_v2beta_product_proto_enumTypes[1] |
| 172 |
} |
| 173 |
|
| 174 |
func (x Product_Availability) Number() protoreflect.EnumNumber { |
| 175 |
return protoreflect.EnumNumber(x) |
| 176 |
} |
| 177 |
|
| 178 |
// Deprecated: Use Product_Availability.Descriptor instead. |
| 179 |
func (Product_Availability) EnumDescriptor() ([]byte, []int) { |
| 180 |
return file_google_cloud_retail_v2beta_product_proto_rawDescGZIP(), []int{0, 1} |
| 181 |
} |
| 182 |
|
| 183 |
// Product captures all metadata information of items to be recommended or |
| 184 |
// searched. |
| 185 |
type Product struct { |
| 186 |
state protoimpl.MessageState |
| 187 |
sizeCache protoimpl.SizeCache |
| 188 |
unknownFields protoimpl.UnknownFields |
| 189 |
|
| 190 |
// Types that are assignable to Expiration: |
| 191 |
// |
| 192 |
// *Product_ExpireTime |
| 193 |
// *Product_Ttl |
| 194 |
Expiration isProduct_Expiration `protobuf_oneof:"expiration"` |
| 195 |
// Immutable. Full resource name of the product, such as |
| 196 |
// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. |
| 197 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 198 |
// Immutable. [Product][google.cloud.retail.v2beta.Product] identifier, which |
| 199 |
// is the final component of [name][google.cloud.retail.v2beta.Product.name]. |
| 200 |
// For example, this field is "id_1", if |
| 201 |
// [name][google.cloud.retail.v2beta.Product.name] is |
| 202 |
// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. |
| 203 |
// |
| 204 |
// This field must be a UTF-8 encoded string with a length limit of 128 |
| 205 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 206 |
// |
| 207 |
// Corresponding properties: Google Merchant Center property |
| 208 |
// [id](https://support.google.com/merchants/answer/6324405). Schema.org |
| 209 |
// property [Product.sku](https://schema.org/sku). |
| 210 |
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
| 211 |
// Immutable. The type of the product. Default to |
| 212 |
// [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] |
| 213 |
// if unset. |
| 214 |
Type Product_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.retail.v2beta.Product_Type" json:"type,omitempty"` |
| 215 |
// Variant group identifier. Must be an |
| 216 |
// [id][google.cloud.retail.v2beta.Product.id], with the same parent branch |
| 217 |
// with this product. Otherwise, an error is thrown. |
| 218 |
// |
| 219 |
// For [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] |
| 220 |
// [Product][google.cloud.retail.v2beta.Product]s, this field can only be |
| 221 |
// empty or set to the same value as |
| 222 |
// [id][google.cloud.retail.v2beta.Product.id]. |
| 223 |
// |
| 224 |
// For VARIANT [Product][google.cloud.retail.v2beta.Product]s, this field |
| 225 |
// cannot be empty. A maximum of 2,000 products are allowed to share the same |
| 226 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] |
| 227 |
// [Product][google.cloud.retail.v2beta.Product]. Otherwise, an |
| 228 |
// INVALID_ARGUMENT error is returned. |
| 229 |
// |
| 230 |
// Corresponding properties: Google Merchant Center property |
| 231 |
// [item_group_id](https://support.google.com/merchants/answer/6324507). |
| 232 |
// Schema.org property |
| 233 |
// [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID). |
| 234 |
PrimaryProductId string `protobuf:"bytes,4,opt,name=primary_product_id,json=primaryProductId,proto3" json:"primary_product_id,omitempty"` |
| 235 |
// The [id][google.cloud.retail.v2beta.Product.id] of the collection members |
| 236 |
// when [type][google.cloud.retail.v2beta.Product.type] is |
| 237 |
// [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]. |
| 238 |
// |
| 239 |
// Non-existent product ids are allowed. |
| 240 |
// The [type][google.cloud.retail.v2beta.Product.type] of the members must be |
| 241 |
// either [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] or |
| 242 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] otherwise |
| 243 |
// an INVALID_ARGUMENT error is thrown. Should not set it for other types. A |
| 244 |
// maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is |
| 245 |
// return. |
| 246 |
CollectionMemberIds []string `protobuf:"bytes,5,rep,name=collection_member_ids,json=collectionMemberIds,proto3" json:"collection_member_ids,omitempty"` |
| 247 |
// The Global Trade Item Number (GTIN) of the product. |
| 248 |
// |
| 249 |
// This field must be a UTF-8 encoded string with a length limit of 128 |
| 250 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 251 |
// |
| 252 |
// This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is |
| 253 |
// returned. |
| 254 |
// |
| 255 |
// Corresponding properties: Google Merchant Center property |
| 256 |
// [gtin](https://support.google.com/merchants/answer/6324461). |
| 257 |
// Schema.org property |
| 258 |
// [Product.isbn](https://schema.org/isbn), |
| 259 |
// [Product.gtin8](https://schema.org/gtin8), |
| 260 |
// [Product.gtin12](https://schema.org/gtin12), |
| 261 |
// [Product.gtin13](https://schema.org/gtin13), or |
| 262 |
// [Product.gtin14](https://schema.org/gtin14). |
| 263 |
// |
| 264 |
// If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned. |
| 265 |
Gtin string `protobuf:"bytes,6,opt,name=gtin,proto3" json:"gtin,omitempty"` |
| 266 |
// Product categories. This field is repeated for supporting one product |
| 267 |
// belonging to several parallel categories. Strongly recommended using the |
| 268 |
// full path for better search / recommendation quality. |
| 269 |
// |
| 270 |
// To represent full path of category, use '>' sign to separate different |
| 271 |
// hierarchies. If '>' is part of the category name, replace it with |
| 272 |
// other character(s). |
| 273 |
// |
| 274 |
// For example, if a shoes product belongs to both |
| 275 |
// ["Shoes & Accessories" -> "Shoes"] and |
| 276 |
// ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be |
| 277 |
// represented as: |
| 278 |
// |
| 279 |
// "categories": [ |
| 280 |
// "Shoes & Accessories > Shoes", |
| 281 |
// "Sports & Fitness > Athletic Clothing > Shoes" |
| 282 |
// ] |
| 283 |
// |
| 284 |
// Must be set for |
| 285 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] |
| 286 |
// [Product][google.cloud.retail.v2beta.Product] otherwise an INVALID_ARGUMENT |
| 287 |
// error is returned. |
| 288 |
// |
| 289 |
// At most 250 values are allowed per |
| 290 |
// [Product][google.cloud.retail.v2beta.Product] unless overridden through the |
| 291 |
// Google Cloud console. Empty values are not allowed. Each value must be a |
| 292 |
// UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an |
| 293 |
// INVALID_ARGUMENT error is returned. |
| 294 |
// |
| 295 |
// Corresponding properties: Google Merchant Center property |
| 296 |
// [google_product_category][mc_google_product_category]. Schema.org property |
| 297 |
// [Product.category] (https://schema.org/category). |
| 298 |
// |
| 299 |
// [mc_google_product_category]: |
| 300 |
// https://support.google.com/merchants/answer/6324436 |
| 301 |
Categories []string `protobuf:"bytes,7,rep,name=categories,proto3" json:"categories,omitempty"` |
| 302 |
// Required. Product title. |
| 303 |
// |
| 304 |
// This field must be a UTF-8 encoded string with a length limit of 1,000 |
| 305 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 306 |
// |
| 307 |
// Corresponding properties: Google Merchant Center property |
| 308 |
// [title](https://support.google.com/merchants/answer/6324415). Schema.org |
| 309 |
// property [Product.name](https://schema.org/name). |
| 310 |
Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` |
| 311 |
// The brands of the product. |
| 312 |
// |
| 313 |
// A maximum of 30 brands are allowed unless overridden through the Google |
| 314 |
// Cloud console. Each |
| 315 |
// brand must be a UTF-8 encoded string with a length limit of 1,000 |
| 316 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 317 |
// |
| 318 |
// Corresponding properties: Google Merchant Center property |
| 319 |
// [brand](https://support.google.com/merchants/answer/6324351). Schema.org |
| 320 |
// property [Product.brand](https://schema.org/brand). |
| 321 |
Brands []string `protobuf:"bytes,9,rep,name=brands,proto3" json:"brands,omitempty"` |
| 322 |
// Product description. |
| 323 |
// |
| 324 |
// This field must be a UTF-8 encoded string with a length limit of 5,000 |
| 325 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 326 |
// |
| 327 |
// Corresponding properties: Google Merchant Center property |
| 328 |
// [description](https://support.google.com/merchants/answer/6324468). |
| 329 |
// Schema.org property [Product.description](https://schema.org/description). |
| 330 |
Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` |
| 331 |
// Language of the title/description and other string attributes. Use language |
| 332 |
// tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). |
| 333 |
// |
| 334 |
// For product prediction, this field is ignored and the model automatically |
| 335 |
// detects the text language. The |
| 336 |
// [Product][google.cloud.retail.v2beta.Product] can include text in different |
| 337 |
// languages, but duplicating [Product][google.cloud.retail.v2beta.Product]s |
| 338 |
// to provide text in multiple languages can result in degraded model |
| 339 |
// performance. |
| 340 |
// |
| 341 |
// For product search this field is in use. It defaults to "en-US" if unset. |
| 342 |
LanguageCode string `protobuf:"bytes,11,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` |
| 343 |
// Highly encouraged. Extra product attributes to be included. For example, |
| 344 |
// for products, this could include the store name, vendor, style, color, etc. |
| 345 |
// These are very strong signals for recommendation model, thus we highly |
| 346 |
// recommend providing the attributes here. |
| 347 |
// |
| 348 |
// Features that can take on one of a limited number of possible values. Two |
| 349 |
// types of features can be set are: |
| 350 |
// |
| 351 |
// Textual features. some examples would be the brand/maker of a product, or |
| 352 |
// country of a customer. Numerical features. Some examples would be the |
| 353 |
// height/weight of a product, or age of a customer. |
| 354 |
// |
| 355 |
// For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, |
| 356 |
// "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} |
| 357 |
// }`. |
| 358 |
// |
| 359 |
// This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT |
| 360 |
// error is returned: |
| 361 |
// |
| 362 |
// - Max entries count: 200. |
| 363 |
// - The key must be a UTF-8 encoded string with a length limit of 128 |
| 364 |
// characters. |
| 365 |
// - For indexable attribute, the key must match the pattern: |
| 366 |
// `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or |
| 367 |
// `KEY_1_LIKE_THIS`. |
| 368 |
// - For text attributes, at most 400 values are allowed. Empty values are not |
| 369 |
// allowed. Each value must be a non-empty UTF-8 encoded string with a |
| 370 |
// length limit of 256 characters. |
| 371 |
// - For number attributes, at most 400 values are allowed. |
| 372 |
Attributes map[string]*CustomAttribute `protobuf:"bytes,12,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 373 |
// Custom tags associated with the product. |
| 374 |
// |
| 375 |
// At most 250 values are allowed per |
| 376 |
// [Product][google.cloud.retail.v2beta.Product]. This value must be a UTF-8 |
| 377 |
// encoded string with a length limit of 1,000 characters. Otherwise, an |
| 378 |
// INVALID_ARGUMENT error is returned. |
| 379 |
// |
| 380 |
// This tag can be used for filtering recommendation results by passing the |
| 381 |
// tag as part of the |
| 382 |
// [PredictRequest.filter][google.cloud.retail.v2beta.PredictRequest.filter]. |
| 383 |
// |
| 384 |
// Corresponding properties: Google Merchant Center property |
| 385 |
// [custom_label_0–4](https://support.google.com/merchants/answer/6324473). |
| 386 |
Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"` |
| 387 |
// Product price and cost information. |
| 388 |
// |
| 389 |
// Corresponding properties: Google Merchant Center property |
| 390 |
// [price](https://support.google.com/merchants/answer/6324371). |
| 391 |
PriceInfo *PriceInfo `protobuf:"bytes,14,opt,name=price_info,json=priceInfo,proto3" json:"price_info,omitempty"` |
| 392 |
// The rating of this product. |
| 393 |
Rating *Rating `protobuf:"bytes,15,opt,name=rating,proto3" json:"rating,omitempty"` |
| 394 |
// The timestamp when this [Product][google.cloud.retail.v2beta.Product] |
| 395 |
// becomes available for |
| 396 |
// [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. |
| 397 |
// Note that this is only applicable to |
| 398 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and |
| 399 |
// [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION], and |
| 400 |
// ignored for |
| 401 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. |
| 402 |
AvailableTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=available_time,json=availableTime,proto3" json:"available_time,omitempty"` |
| 403 |
// The online availability of the |
| 404 |
// [Product][google.cloud.retail.v2beta.Product]. Default to |
| 405 |
// [Availability.IN_STOCK][google.cloud.retail.v2beta.Product.Availability.IN_STOCK]. |
| 406 |
// |
| 407 |
// For primary products with variants set the availability of the primary as |
| 408 |
// [Availability.OUT_OF_STOCK][google.cloud.retail.v2beta.Product.Availability.OUT_OF_STOCK] |
| 409 |
// and set the true availability at the variant level. This way the primary |
| 410 |
// product will be considered "in stock" as long as it has at least one |
| 411 |
// variant in stock. |
| 412 |
// |
| 413 |
// For primary products with no variants set the true availability at the |
| 414 |
// primary level. |
| 415 |
// |
| 416 |
// Corresponding properties: Google Merchant Center property |
| 417 |
// [availability](https://support.google.com/merchants/answer/6324448). |
| 418 |
// Schema.org property [Offer.availability](https://schema.org/availability). |
| 419 |
Availability Product_Availability `protobuf:"varint,19,opt,name=availability,proto3,enum=google.cloud.retail.v2beta.Product_Availability" json:"availability,omitempty"` |
| 420 |
// The available quantity of the item. |
| 421 |
AvailableQuantity *wrapperspb.Int32Value `protobuf:"bytes,20,opt,name=available_quantity,json=availableQuantity,proto3" json:"available_quantity,omitempty"` |
| 422 |
// Fulfillment information, such as the store IDs for in-store pickup or |
| 423 |
// region IDs for different shipping methods. |
| 424 |
// |
| 425 |
// All the elements must have distinct |
| 426 |
// [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type]. |
| 427 |
// Otherwise, an INVALID_ARGUMENT error is returned. |
| 428 |
FulfillmentInfo []*FulfillmentInfo `protobuf:"bytes,21,rep,name=fulfillment_info,json=fulfillmentInfo,proto3" json:"fulfillment_info,omitempty"` |
| 429 |
// Canonical URL directly linking to the product detail page. |
| 430 |
// |
| 431 |
// It is strongly recommended to provide a valid uri for the product, |
| 432 |
// otherwise the service performance could be significantly degraded. |
| 433 |
// |
| 434 |
// This field must be a UTF-8 encoded string with a length limit of 5,000 |
| 435 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 436 |
// |
| 437 |
// Corresponding properties: Google Merchant Center property |
| 438 |
// [link](https://support.google.com/merchants/answer/6324416). Schema.org |
| 439 |
// property [Offer.url](https://schema.org/url). |
| 440 |
Uri string `protobuf:"bytes,22,opt,name=uri,proto3" json:"uri,omitempty"` |
| 441 |
// Product images for the product. We highly recommend putting the main |
| 442 |
// image first. |
| 443 |
// |
| 444 |
// A maximum of 300 images are allowed. |
| 445 |
// |
| 446 |
// Corresponding properties: Google Merchant Center property |
| 447 |
// [image_link](https://support.google.com/merchants/answer/6324350). |
| 448 |
// Schema.org property [Product.image](https://schema.org/image). |
| 449 |
Images []*Image `protobuf:"bytes,23,rep,name=images,proto3" json:"images,omitempty"` |
| 450 |
// The target group associated with a given audience (e.g. male, veterans, |
| 451 |
// car owners, musicians, etc.) of the product. |
| 452 |
Audience *Audience `protobuf:"bytes,24,opt,name=audience,proto3" json:"audience,omitempty"` |
| 453 |
// The color of the product. |
| 454 |
// |
| 455 |
// Corresponding properties: Google Merchant Center property |
| 456 |
// [color](https://support.google.com/merchants/answer/6324487). Schema.org |
| 457 |
// property [Product.color](https://schema.org/color). |
| 458 |
ColorInfo *ColorInfo `protobuf:"bytes,25,opt,name=color_info,json=colorInfo,proto3" json:"color_info,omitempty"` |
| 459 |
// The size of the product. To represent different size systems or size types, |
| 460 |
// consider using this format: [[[size_system:]size_type:]size_value]. |
| 461 |
// |
| 462 |
// For example, in "US:MENS:M", "US" represents size system; "MENS" represents |
| 463 |
// size type; "M" represents size value. In "GIRLS:27", size system is empty; |
| 464 |
// "GIRLS" represents size type; "27" represents size value. In "32 inches", |
| 465 |
// both size system and size type are empty, while size value is "32 inches". |
| 466 |
// |
| 467 |
// A maximum of 20 values are allowed per |
| 468 |
// [Product][google.cloud.retail.v2beta.Product]. Each value must be a UTF-8 |
| 469 |
// encoded string with a length limit of 128 characters. Otherwise, an |
| 470 |
// INVALID_ARGUMENT error is returned. |
| 471 |
// |
| 472 |
// Corresponding properties: Google Merchant Center property |
| 473 |
// [size](https://support.google.com/merchants/answer/6324492), |
| 474 |
// [size_type](https://support.google.com/merchants/answer/6324497), and |
| 475 |
// [size_system](https://support.google.com/merchants/answer/6324502). |
| 476 |
// Schema.org property [Product.size](https://schema.org/size). |
| 477 |
Sizes []string `protobuf:"bytes,26,rep,name=sizes,proto3" json:"sizes,omitempty"` |
| 478 |
// The material of the product. For example, "leather", "wooden". |
| 479 |
// |
| 480 |
// A maximum of 20 values are allowed. Each value must be a UTF-8 encoded |
| 481 |
// string with a length limit of 200 characters. Otherwise, an |
| 482 |
// INVALID_ARGUMENT error is returned. |
| 483 |
// |
| 484 |
// Corresponding properties: Google Merchant Center property |
| 485 |
// [material](https://support.google.com/merchants/answer/6324410). Schema.org |
| 486 |
// property [Product.material](https://schema.org/material). |
| 487 |
Materials []string `protobuf:"bytes,27,rep,name=materials,proto3" json:"materials,omitempty"` |
| 488 |
// The pattern or graphic print of the product. For example, "striped", "polka |
| 489 |
// dot", "paisley". |
| 490 |
// |
| 491 |
// A maximum of 20 values are allowed per |
| 492 |
// [Product][google.cloud.retail.v2beta.Product]. Each value must be a UTF-8 |
| 493 |
// encoded string with a length limit of 128 characters. Otherwise, an |
| 494 |
// INVALID_ARGUMENT error is returned. |
| 495 |
// |
| 496 |
// Corresponding properties: Google Merchant Center property |
| 497 |
// [pattern](https://support.google.com/merchants/answer/6324483). Schema.org |
| 498 |
// property [Product.pattern](https://schema.org/pattern). |
| 499 |
Patterns []string `protobuf:"bytes,28,rep,name=patterns,proto3" json:"patterns,omitempty"` |
| 500 |
// The condition of the product. Strongly encouraged to use the standard |
| 501 |
// values: "new", "refurbished", "used". |
| 502 |
// |
| 503 |
// A maximum of 1 value is allowed per |
| 504 |
// [Product][google.cloud.retail.v2beta.Product]. Each value must be a UTF-8 |
| 505 |
// encoded string with a length limit of 128 characters. Otherwise, an |
| 506 |
// INVALID_ARGUMENT error is returned. |
| 507 |
// |
| 508 |
// Corresponding properties: Google Merchant Center property |
| 509 |
// [condition](https://support.google.com/merchants/answer/6324469). |
| 510 |
// Schema.org property |
| 511 |
// [Offer.itemCondition](https://schema.org/itemCondition). |
| 512 |
Conditions []string `protobuf:"bytes,29,rep,name=conditions,proto3" json:"conditions,omitempty"` |
| 513 |
// The promotions applied to the product. A maximum of 10 values are allowed |
| 514 |
// per [Product][google.cloud.retail.v2beta.Product]. Only |
| 515 |
// [Promotion.promotion_id][google.cloud.retail.v2beta.Promotion.promotion_id] |
| 516 |
// will be used, other fields will be ignored if set. |
| 517 |
Promotions []*Promotion `protobuf:"bytes,34,rep,name=promotions,proto3" json:"promotions,omitempty"` |
| 518 |
// The timestamp when the product is published by the retailer for the first |
| 519 |
// time, which indicates the freshness of the products. Note that this field |
| 520 |
// is different from |
| 521 |
// [available_time][google.cloud.retail.v2beta.Product.available_time], given |
| 522 |
// it purely describes product freshness regardless of when it is available on |
| 523 |
// search and recommendation. |
| 524 |
PublishTime *timestamppb.Timestamp `protobuf:"bytes,33,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` |
| 525 |
// Indicates which fields in the |
| 526 |
// [Product][google.cloud.retail.v2beta.Product]s are returned in |
| 527 |
// [SearchResponse][google.cloud.retail.v2beta.SearchResponse]. |
| 528 |
// |
| 529 |
// Supported fields for all [type][google.cloud.retail.v2beta.Product.type]s: |
| 530 |
// |
| 531 |
// * [audience][google.cloud.retail.v2beta.Product.audience] |
| 532 |
// * [availability][google.cloud.retail.v2beta.Product.availability] |
| 533 |
// * [brands][google.cloud.retail.v2beta.Product.brands] |
| 534 |
// * [color_info][google.cloud.retail.v2beta.Product.color_info] |
| 535 |
// * [conditions][google.cloud.retail.v2beta.Product.conditions] |
| 536 |
// * [gtin][google.cloud.retail.v2beta.Product.gtin] |
| 537 |
// * [materials][google.cloud.retail.v2beta.Product.materials] |
| 538 |
// * [name][google.cloud.retail.v2beta.Product.name] |
| 539 |
// * [patterns][google.cloud.retail.v2beta.Product.patterns] |
| 540 |
// * [price_info][google.cloud.retail.v2beta.Product.price_info] |
| 541 |
// * [rating][google.cloud.retail.v2beta.Product.rating] |
| 542 |
// * [sizes][google.cloud.retail.v2beta.Product.sizes] |
| 543 |
// * [title][google.cloud.retail.v2beta.Product.title] |
| 544 |
// * [uri][google.cloud.retail.v2beta.Product.uri] |
| 545 |
// |
| 546 |
// Supported fields only for |
| 547 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and |
| 548 |
// [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]: |
| 549 |
// |
| 550 |
// * [categories][google.cloud.retail.v2beta.Product.categories] |
| 551 |
// * [description][google.cloud.retail.v2beta.Product.description] |
| 552 |
// * [images][google.cloud.retail.v2beta.Product.images] |
| 553 |
// |
| 554 |
// Supported fields only for |
| 555 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]: |
| 556 |
// |
| 557 |
// * Only the first image in |
| 558 |
// [images][google.cloud.retail.v2beta.Product.images] |
| 559 |
// |
| 560 |
// To mark [attributes][google.cloud.retail.v2beta.Product.attributes] as |
| 561 |
// retrievable, include paths of the form "attributes.key" where "key" is the |
| 562 |
// key of a custom attribute, as specified in |
| 563 |
// [attributes][google.cloud.retail.v2beta.Product.attributes]. |
| 564 |
// |
| 565 |
// For [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and |
| 566 |
// [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION], the |
| 567 |
// following fields are always returned in |
| 568 |
// [SearchResponse][google.cloud.retail.v2beta.SearchResponse] by default: |
| 569 |
// |
| 570 |
// * [name][google.cloud.retail.v2beta.Product.name] |
| 571 |
// |
| 572 |
// For [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT], the |
| 573 |
// following fields are always returned in by default: |
| 574 |
// |
| 575 |
// * [name][google.cloud.retail.v2beta.Product.name] |
| 576 |
// * [color_info][google.cloud.retail.v2beta.Product.color_info] |
| 577 |
// |
| 578 |
// Note: Returning more fields in |
| 579 |
// [SearchResponse][google.cloud.retail.v2beta.SearchResponse] can increase |
| 580 |
// response payload size and serving latency. |
| 581 |
// |
| 582 |
// This field is deprecated. Use the retrievable site-wide control instead. |
| 583 |
// |
| 584 |
// Deprecated: Marked as deprecated in google/cloud/retail/v2beta/product.proto. |
| 585 |
RetrievableFields *fieldmaskpb.FieldMask `protobuf:"bytes,30,opt,name=retrievable_fields,json=retrievableFields,proto3" json:"retrievable_fields,omitempty"` |
| 586 |
// Output only. Product variants grouped together on primary product which |
| 587 |
// share similar product attributes. It's automatically grouped by |
| 588 |
// [primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id] |
| 589 |
// for all the product variants. Only populated for |
| 590 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] |
| 591 |
// [Product][google.cloud.retail.v2beta.Product]s. |
| 592 |
// |
| 593 |
// Note: This field is OUTPUT_ONLY for |
| 594 |
// [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]. |
| 595 |
// Do not set this field in API requests. |
| 596 |
Variants []*Product `protobuf:"bytes,31,rep,name=variants,proto3" json:"variants,omitempty"` |
| 597 |
// Output only. A list of local inventories specific to different places. |
| 598 |
// |
| 599 |
// This field can be managed by |
| 600 |
// [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] |
| 601 |
// and |
| 602 |
// [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] |
| 603 |
// APIs if fine-grained, high-volume updates are necessary. |
| 604 |
LocalInventories []*LocalInventory `protobuf:"bytes,35,rep,name=local_inventories,json=localInventories,proto3" json:"local_inventories,omitempty"` |
| 605 |
} |
| 606 |
|
| 607 |
func (x *Product) Reset() { |
| 608 |
*x = Product{} |
| 609 |
mi := &file_google_cloud_retail_v2beta_product_proto_msgTypes[0] |
| 610 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 611 |
ms.StoreMessageInfo(mi) |
| 612 |
} |
| 613 |
|
| 614 |
func (x *Product) String() string { |
| 615 |
return protoimpl.X.MessageStringOf(x) |
| 616 |
} |
| 617 |
|
| 618 |
func (*Product) ProtoMessage() {} |
| 619 |
|
| 620 |
func (x *Product) ProtoReflect() protoreflect.Message { |
| 621 |
mi := &file_google_cloud_retail_v2beta_product_proto_msgTypes[0] |
| 622 |
if x != nil { |
| 623 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 624 |
if ms.LoadMessageInfo() == nil { |
| 625 |
ms.StoreMessageInfo(mi) |
| 626 |
} |
| 627 |
return ms |
| 628 |
} |
| 629 |
return mi.MessageOf(x) |
| 630 |
} |
| 631 |
|
| 632 |
// Deprecated: Use Product.ProtoReflect.Descriptor instead. |
| 633 |
func (*Product) Descriptor() ([]byte, []int) { |
| 634 |
return file_google_cloud_retail_v2beta_product_proto_rawDescGZIP(), []int{0} |
| 635 |
} |
| 636 |
|
| 637 |
func (m *Product) GetExpiration() isProduct_Expiration { |
| 638 |
if m != nil { |
| 639 |
return m.Expiration |
| 640 |
} |
| 641 |
return nil |
| 642 |
} |
| 643 |
|
| 644 |
func (x *Product) GetExpireTime() *timestamppb.Timestamp { |
| 645 |
if x, ok := x.GetExpiration().(*Product_ExpireTime); ok { |
| 646 |
return x.ExpireTime |
| 647 |
} |
| 648 |
return nil |
| 649 |
} |
| 650 |
|
| 651 |
func (x *Product) GetTtl() *durationpb.Duration { |
| 652 |
if x, ok := x.GetExpiration().(*Product_Ttl); ok { |
| 653 |
return x.Ttl |
| 654 |
} |
| 655 |
return nil |
| 656 |
} |
| 657 |
|
| 658 |
func (x *Product) GetName() string { |
| 659 |
if x != nil { |
| 660 |
return x.Name |
| 661 |
} |
| 662 |
return "" |
| 663 |
} |
| 664 |
|
| 665 |
func (x *Product) GetId() string { |
| 666 |
if x != nil { |
| 667 |
return x.Id |
| 668 |
} |
| 669 |
return "" |
| 670 |
} |
| 671 |
|
| 672 |
func (x *Product) GetType() Product_Type { |
| 673 |
if x != nil { |
| 674 |
return x.Type |
| 675 |
} |
| 676 |
return Product_TYPE_UNSPECIFIED |
| 677 |
} |
| 678 |
|
| 679 |
func (x *Product) GetPrimaryProductId() string { |
| 680 |
if x != nil { |
| 681 |
return x.PrimaryProductId |
| 682 |
} |
| 683 |
return "" |
| 684 |
} |
| 685 |
|
| 686 |
func (x *Product) GetCollectionMemberIds() []string { |
| 687 |
if x != nil { |
| 688 |
return x.CollectionMemberIds |
| 689 |
} |
| 690 |
return nil |
| 691 |
} |
| 692 |
|
| 693 |
func (x *Product) GetGtin() string { |
| 694 |
if x != nil { |
| 695 |
return x.Gtin |
| 696 |
} |
| 697 |
return "" |
| 698 |
} |
| 699 |
|
| 700 |
func (x *Product) GetCategories() []string { |
| 701 |
if x != nil { |
| 702 |
return x.Categories |
| 703 |
} |
| 704 |
return nil |
| 705 |
} |
| 706 |
|
| 707 |
func (x *Product) GetTitle() string { |
| 708 |
if x != nil { |
| 709 |
return x.Title |
| 710 |
} |
| 711 |
return "" |
| 712 |
} |
| 713 |
|
| 714 |
func (x *Product) GetBrands() []string { |
| 715 |
if x != nil { |
| 716 |
return x.Brands |
| 717 |
} |
| 718 |
return nil |
| 719 |
} |
| 720 |
|
| 721 |
func (x *Product) GetDescription() string { |
| 722 |
if x != nil { |
| 723 |
return x.Description |
| 724 |
} |
| 725 |
return "" |
| 726 |
} |
| 727 |
|
| 728 |
func (x *Product) GetLanguageCode() string { |
| 729 |
if x != nil { |
| 730 |
return x.LanguageCode |
| 731 |
} |
| 732 |
return "" |
| 733 |
} |
| 734 |
|
| 735 |
func (x *Product) GetAttributes() map[string]*CustomAttribute { |
| 736 |
if x != nil { |
| 737 |
return x.Attributes |
| 738 |
} |
| 739 |
return nil |
| 740 |
} |
| 741 |
|
| 742 |
func (x *Product) GetTags() []string { |
| 743 |
if x != nil { |
| 744 |
return x.Tags |
| 745 |
} |
| 746 |
return nil |
| 747 |
} |
| 748 |
|
| 749 |
func (x *Product) GetPriceInfo() *PriceInfo { |
| 750 |
if x != nil { |
| 751 |
return x.PriceInfo |
| 752 |
} |
| 753 |
return nil |
| 754 |
} |
| 755 |
|
| 756 |
func (x *Product) GetRating() *Rating { |
| 757 |
if x != nil { |
| 758 |
return x.Rating |
| 759 |
} |
| 760 |
return nil |
| 761 |
} |
| 762 |
|
| 763 |
func (x *Product) GetAvailableTime() *timestamppb.Timestamp { |
| 764 |
if x != nil { |
| 765 |
return x.AvailableTime |
| 766 |
} |
| 767 |
return nil |
| 768 |
} |
| 769 |
|
| 770 |
func (x *Product) GetAvailability() Product_Availability { |
| 771 |
if x != nil { |
| 772 |
return x.Availability |
| 773 |
} |
| 774 |
return Product_AVAILABILITY_UNSPECIFIED |
| 775 |
} |
| 776 |
|
| 777 |
func (x *Product) GetAvailableQuantity() *wrapperspb.Int32Value { |
| 778 |
if x != nil { |
| 779 |
return x.AvailableQuantity |
| 780 |
} |
| 781 |
return nil |
| 782 |
} |
| 783 |
|
| 784 |
func (x *Product) GetFulfillmentInfo() []*FulfillmentInfo { |
| 785 |
if x != nil { |
| 786 |
return x.FulfillmentInfo |
| 787 |
} |
| 788 |
return nil |
| 789 |
} |
| 790 |
|
| 791 |
func (x *Product) GetUri() string { |
| 792 |
if x != nil { |
| 793 |
return x.Uri |
| 794 |
} |
| 795 |
return "" |
| 796 |
} |
| 797 |
|
| 798 |
func (x *Product) GetImages() []*Image { |
| 799 |
if x != nil { |
| 800 |
return x.Images |
| 801 |
} |
| 802 |
return nil |
| 803 |
} |
| 804 |
|
| 805 |
func (x *Product) GetAudience() *Audience { |
| 806 |
if x != nil { |
| 807 |
return x.Audience |
| 808 |
} |
| 809 |
return nil |
| 810 |
} |
| 811 |
|
| 812 |
func (x *Product) GetColorInfo() *ColorInfo { |
| 813 |
if x != nil { |
| 814 |
return x.ColorInfo |
| 815 |
} |
| 816 |
return nil |
| 817 |
} |
| 818 |
|
| 819 |
func (x *Product) GetSizes() []string { |
| 820 |
if x != nil { |
| 821 |
return x.Sizes |
| 822 |
} |
| 823 |
return nil |
| 824 |
} |
| 825 |
|
| 826 |
func (x *Product) GetMaterials() []string { |
| 827 |
if x != nil { |
| 828 |
return x.Materials |
| 829 |
} |
| 830 |
return nil |
| 831 |
} |
| 832 |
|
| 833 |
func (x *Product) GetPatterns() []string { |
| 834 |
if x != nil { |
| 835 |
return x.Patterns |
| 836 |
} |
| 837 |
return nil |
| 838 |
} |
| 839 |
|
| 840 |
func (x *Product) GetConditions() []string { |
| 841 |
if x != nil { |
| 842 |
return x.Conditions |
| 843 |
} |
| 844 |
return nil |
| 845 |
} |
| 846 |
|
| 847 |
func (x *Product) GetPromotions() []*Promotion { |
| 848 |
if x != nil { |
| 849 |
return x.Promotions |
| 850 |
} |
| 851 |
return nil |
| 852 |
} |
| 853 |
|
| 854 |
func (x *Product) GetPublishTime() *timestamppb.Timestamp { |
| 855 |
if x != nil { |
| 856 |
return x.PublishTime |
| 857 |
} |
| 858 |
return nil |
| 859 |
} |
| 860 |
|
| 861 |
// Deprecated: Marked as deprecated in google/cloud/retail/v2beta/product.proto. |
| 862 |
func (x *Product) GetRetrievableFields() *fieldmaskpb.FieldMask { |
| 863 |
if x != nil { |
| 864 |
return x.RetrievableFields |
| 865 |
} |
| 866 |
return nil |
| 867 |
} |
| 868 |
|
| 869 |
func (x *Product) GetVariants() []*Product { |
| 870 |
if x != nil { |
| 871 |
return x.Variants |
| 872 |
} |
| 873 |
return nil |
| 874 |
} |
| 875 |
|
| 876 |
func (x *Product) GetLocalInventories() []*LocalInventory { |
| 877 |
if x != nil { |
| 878 |
return x.LocalInventories |
| 879 |
} |
| 880 |
return nil |
| 881 |
} |
| 882 |
|
| 883 |
type isProduct_Expiration interface { |
| 884 |
isProduct_Expiration() |
| 885 |
} |
| 886 |
|
| 887 |
type Product_ExpireTime struct { |
| 888 |
// Note that this field is applied in the following ways: |
| 889 |
// |
| 890 |
// * If the [Product][google.cloud.retail.v2beta.Product] is already expired |
| 891 |
// when it is uploaded, this product |
| 892 |
// |
| 893 |
// is not indexed for search. |
| 894 |
// |
| 895 |
// * If the [Product][google.cloud.retail.v2beta.Product] is not expired |
| 896 |
// when it is uploaded, only the |
| 897 |
// |
| 898 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and |
| 899 |
// [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s |
| 900 |
// expireTime is respected, and |
| 901 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s |
| 902 |
// expireTime is not used. |
| 903 |
// |
| 904 |
// In general, we suggest the users to delete the stale |
| 905 |
// products explicitly, instead of using this field to determine staleness. |
| 906 |
// |
| 907 |
// [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be |
| 908 |
// later than |
| 909 |
// [available_time][google.cloud.retail.v2beta.Product.available_time] and |
| 910 |
// [publish_time][google.cloud.retail.v2beta.Product.publish_time], |
| 911 |
// otherwise an INVALID_ARGUMENT error is thrown. |
| 912 |
// |
| 913 |
// Corresponding properties: Google Merchant Center property |
| 914 |
// [expiration_date](https://support.google.com/merchants/answer/6324499). |
| 915 |
ExpireTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=expire_time,json=expireTime,proto3,oneof"` |
| 916 |
} |
| 917 |
|
| 918 |
type Product_Ttl struct { |
| 919 |
// Input only. The TTL (time to live) of the product. Note that this is only |
| 920 |
// applicable to |
| 921 |
// [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and |
| 922 |
// [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION], |
| 923 |
// and ignored for |
| 924 |
// [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In |
| 925 |
// general, we suggest the users to delete the stale products explicitly, |
| 926 |
// instead of using this field to determine staleness. |
| 927 |
// |
| 928 |
// If it is set, it must be a non-negative value, and |
| 929 |
// [expire_time][google.cloud.retail.v2beta.Product.expire_time] is set as |
| 930 |
// current timestamp plus [ttl][google.cloud.retail.v2beta.Product.ttl]. The |
| 931 |
// derived [expire_time][google.cloud.retail.v2beta.Product.expire_time] is |
| 932 |
// returned in the output and [ttl][google.cloud.retail.v2beta.Product.ttl] |
| 933 |
// is left blank when retrieving the |
| 934 |
// [Product][google.cloud.retail.v2beta.Product]. |
| 935 |
// |
| 936 |
// If it is set, the product is not available for |
| 937 |
// [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] |
| 938 |
// after current timestamp plus |
| 939 |
// [ttl][google.cloud.retail.v2beta.Product.ttl]. However, the product can |
| 940 |
// still be retrieved by |
| 941 |
// [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] |
| 942 |
// and |
| 943 |
// [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. |
| 944 |
Ttl *durationpb.Duration `protobuf:"bytes,17,opt,name=ttl,proto3,oneof"` |
| 945 |
} |
| 946 |
|
| 947 |
func (*Product_ExpireTime) isProduct_Expiration() {} |
| 948 |
|
| 949 |
func (*Product_Ttl) isProduct_Expiration() {} |
| 950 |
|
| 951 |
var File_google_cloud_retail_v2beta_product_proto protoreflect.FileDescriptor |
| 952 |
|
| 953 |
var file_google_cloud_retail_v2beta_product_proto_rawDesc = []byte{ |
| 954 |
0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, |
| 955 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, |
| 956 |
0x64, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, |
| 957 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, |
| 958 |
0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, |
| 959 |
0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, |
| 960 |
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 961 |
0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, |
| 962 |
0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 963 |
0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, |
| 964 |
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x67, 0x6f, 0x6f, |
| 965 |
0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, |
| 966 |
0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, |
| 967 |
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 968 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, |
| 969 |
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 970 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, |
| 971 |
0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 972 |
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, |
| 973 |
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, |
| 974 |
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, |
| 975 |
0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x11, 0x0a, 0x07, 0x50, |
| 976 |
0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, |
| 977 |
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, |
| 978 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, |
| 979 |
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, |
| 980 |
0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x11, 0x20, 0x01, |
| 981 |
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 982 |
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, |
| 983 |
0x41, 0x04, 0x48, 0x00, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, |
| 984 |
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e, 0x61, |
| 985 |
0x6d, 0x65, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, |
| 986 |
0xe0, 0x41, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x41, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, |
| 987 |
0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 988 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, |
| 989 |
0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, |
| 990 |
0x03, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x70, 0x72, |
| 991 |
0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, |
| 992 |
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x50, |
| 993 |
0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x63, 0x6f, 0x6c, 0x6c, |
| 994 |
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x69, 0x64, |
| 995 |
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, |
| 996 |
0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, |
| 997 |
0x67, 0x74, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x74, 0x69, 0x6e, |
| 998 |
0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x07, |
| 999 |
0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, |
| 1000 |
0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 1001 |
0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x62, |
| 1002 |
0x72, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, |
| 1003 |
0x6e, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, |
| 1004 |
0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, |
| 1005 |
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, |
| 1006 |
0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, |
| 1007 |
0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x61, 0x74, |
| 1008 |
0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, |
| 1009 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, |
| 1010 |
0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x64, |
| 1011 |
0x75, 0x63, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, |
| 1012 |
0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, |
| 1013 |
0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, |
| 1014 |
0x61, 0x67, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, |
| 1015 |
0x6f, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1016 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, |
| 1017 |
0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, |
| 1018 |
0x70, 0x72, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x06, 0x72, 0x61, 0x74, |
| 1019 |
0x69, 0x6e, 0x67, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1020 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, |
| 1021 |
0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x72, |
| 1022 |
0x61, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, |
| 1023 |
0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, |
| 1024 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, |
| 1025 |
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x61, 0x76, 0x61, 0x69, 0x6c, |
| 1026 |
0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0c, 0x61, 0x76, 0x61, 0x69, |
| 1027 |
0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, |
| 1028 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, |
| 1029 |
0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x64, |
| 1030 |
0x75, 0x63, 0x74, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, |
| 1031 |
0x52, 0x0c, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x4a, |
| 1032 |
0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x61, 0x6e, |
| 1033 |
0x74, 0x69, 0x74, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, |
| 1034 |
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, |
| 1035 |
0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, |
| 1036 |
0x6c, 0x65, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x56, 0x0a, 0x10, 0x66, 0x75, |
| 1037 |
0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x15, |
| 1038 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 1039 |
0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 1040 |
0x61, 0x2e, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, |
| 1041 |
0x6f, 0x52, 0x0f, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, |
| 1042 |
0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 1043 |
0x03, 0x75, 0x72, 0x69, 0x12, 0x39, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x17, |
| 1044 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 1045 |
0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 1046 |
0x61, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, |
| 1047 |
0x40, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, |
| 1048 |
0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1049 |
0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, |
| 1050 |
0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, |
| 1051 |
0x65, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, |
| 1052 |
0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1053 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, |
| 1054 |
0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x63, 0x6f, |
| 1055 |
0x6c, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x69, 0x7a, 0x65, 0x73, |
| 1056 |
0x18, 0x1a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x73, 0x69, 0x7a, 0x65, 0x73, 0x12, 0x1c, 0x0a, |
| 1057 |
0x09, 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x09, |
| 1058 |
0x52, 0x09, 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, |
| 1059 |
0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, |
| 1060 |
0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, |
| 1061 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, |
| 1062 |
0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x6f, |
| 1063 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, |
| 1064 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, |
| 1065 |
0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, |
| 1066 |
0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, |
| 1067 |
0x0a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x21, |
| 1068 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
| 1069 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, |
| 1070 |
0x52, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, |
| 1071 |
0x12, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x69, 0x65, |
| 1072 |
0x6c, 0x64, 0x73, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1073 |
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, |
| 1074 |
0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x02, 0x18, 0x01, 0x52, 0x11, 0x72, 0x65, 0x74, 0x72, 0x69, |
| 1075 |
0x65, 0x76, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x44, 0x0a, 0x08, |
| 1076 |
0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, |
| 1077 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, |
| 1078 |
0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x64, |
| 1079 |
0x75, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, |
| 1080 |
0x74, 0x73, 0x12, 0x5c, 0x0a, 0x11, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x76, 0x65, |
| 1081 |
0x6e, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, |
| 1082 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, |
| 1083 |
0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, |
| 1084 |
0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, |
| 1085 |
0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, |
| 1086 |
0x1a, 0x6a, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, |
| 1087 |
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 1088 |
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, |
| 1089 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 1090 |
0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 1091 |
0x61, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, |
| 1092 |
0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x46, 0x0a, 0x04, |
| 1093 |
0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, |
| 1094 |
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, |
| 1095 |
0x49, 0x4d, 0x41, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x56, 0x41, 0x52, 0x49, 0x41, |
| 1096 |
0x4e, 0x54, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, |
| 1097 |
0x4f, 0x4e, 0x10, 0x03, 0x22, 0x69, 0x0a, 0x0c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, |
| 1098 |
0x6c, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x49, |
| 1099 |
0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, |
| 1100 |
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x4f, 0x43, 0x4b, 0x10, 0x01, |
| 1101 |
0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x54, 0x4f, 0x43, 0x4b, |
| 1102 |
0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x45, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x03, |
| 1103 |
0x12, 0x0d, 0x0a, 0x09, 0x42, 0x41, 0x43, 0x4b, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x04, 0x3a, |
| 1104 |
0x84, 0x01, 0xea, 0x41, 0x80, 0x01, 0x0a, 0x1d, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, |
| 1105 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, |
| 1106 |
0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, |
| 1107 |
0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, |
| 1108 |
0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x63, |
| 1109 |
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, |
| 1110 |
0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x72, 0x61, 0x6e, |
| 1111 |
0x63, 0x68, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, |
| 1112 |
0x6f, 0x64, 0x75, 0x63, 0x74, 0x7d, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, |
| 1113 |
0x74, 0x69, 0x6f, 0x6e, 0x42, 0xba, 0x02, 0xea, 0x41, 0x6c, 0x0a, 0x1c, 0x72, 0x65, 0x74, 0x61, |
| 1114 |
0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 1115 |
0x6d, 0x2f, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x4c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, |
| 1116 |
0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, |
| 1117 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1118 |
0x7d, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, |
| 1119 |
0x6c, 0x6f, 0x67, 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, |
| 1120 |
0x72, 0x61, 0x6e, 0x63, 0x68, 0x7d, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1121 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, |
| 1122 |
0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x50, |
| 1123 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, |
| 1124 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74, 0x61, |
| 1125 |
0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x74, |
| 1126 |
0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2, 0x02, |
| 1127 |
0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1128 |
0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32, |
| 1129 |
0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, |
| 1130 |
0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, |
| 1131 |
0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, |
| 1132 |
0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74, |
| 1133 |
0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1134 |
} |
| 1135 |
|
| 1136 |
var ( |
| 1137 |
file_google_cloud_retail_v2beta_product_proto_rawDescOnce sync.Once |
| 1138 |
file_google_cloud_retail_v2beta_product_proto_rawDescData = file_google_cloud_retail_v2beta_product_proto_rawDesc |
| 1139 |
) |
| 1140 |
|
| 1141 |
func file_google_cloud_retail_v2beta_product_proto_rawDescGZIP() []byte { |
| 1142 |
file_google_cloud_retail_v2beta_product_proto_rawDescOnce.Do(func() { |
| 1143 |
file_google_cloud_retail_v2beta_product_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_product_proto_rawDescData) |
| 1144 |
}) |
| 1145 |
return file_google_cloud_retail_v2beta_product_proto_rawDescData |
| 1146 |
} |
| 1147 |
|
| 1148 |
var file_google_cloud_retail_v2beta_product_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 1149 |
var file_google_cloud_retail_v2beta_product_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 1150 |
var file_google_cloud_retail_v2beta_product_proto_goTypes = []any{ |
| 1151 |
(Product_Type)(0), // 0: google.cloud.retail.v2beta.Product.Type |
| 1152 |
(Product_Availability)(0), // 1: google.cloud.retail.v2beta.Product.Availability |
| 1153 |
(*Product)(nil), // 2: google.cloud.retail.v2beta.Product |
| 1154 |
nil, // 3: google.cloud.retail.v2beta.Product.AttributesEntry |
| 1155 |
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp |
| 1156 |
(*durationpb.Duration)(nil), // 5: google.protobuf.Duration |
| 1157 |
(*PriceInfo)(nil), // 6: google.cloud.retail.v2beta.PriceInfo |
| 1158 |
(*Rating)(nil), // 7: google.cloud.retail.v2beta.Rating |
| 1159 |
(*wrapperspb.Int32Value)(nil), // 8: google.protobuf.Int32Value |
| 1160 |
(*FulfillmentInfo)(nil), // 9: google.cloud.retail.v2beta.FulfillmentInfo |
| 1161 |
(*Image)(nil), // 10: google.cloud.retail.v2beta.Image |
| 1162 |
(*Audience)(nil), // 11: google.cloud.retail.v2beta.Audience |
| 1163 |
(*ColorInfo)(nil), // 12: google.cloud.retail.v2beta.ColorInfo |
| 1164 |
(*Promotion)(nil), // 13: google.cloud.retail.v2beta.Promotion |
| 1165 |
(*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask |
| 1166 |
(*LocalInventory)(nil), // 15: google.cloud.retail.v2beta.LocalInventory |
| 1167 |
(*CustomAttribute)(nil), // 16: google.cloud.retail.v2beta.CustomAttribute |
| 1168 |
} |
| 1169 |
var file_google_cloud_retail_v2beta_product_proto_depIdxs = []int32{ |
| 1170 |
4, // 0: google.cloud.retail.v2beta.Product.expire_time:type_name -> google.protobuf.Timestamp |
| 1171 |
5, // 1: google.cloud.retail.v2beta.Product.ttl:type_name -> google.protobuf.Duration |
| 1172 |
0, // 2: google.cloud.retail.v2beta.Product.type:type_name -> google.cloud.retail.v2beta.Product.Type |
| 1173 |
3, // 3: google.cloud.retail.v2beta.Product.attributes:type_name -> google.cloud.retail.v2beta.Product.AttributesEntry |
| 1174 |
6, // 4: google.cloud.retail.v2beta.Product.price_info:type_name -> google.cloud.retail.v2beta.PriceInfo |
| 1175 |
7, // 5: google.cloud.retail.v2beta.Product.rating:type_name -> google.cloud.retail.v2beta.Rating |
| 1176 |
4, // 6: google.cloud.retail.v2beta.Product.available_time:type_name -> google.protobuf.Timestamp |
| 1177 |
1, // 7: google.cloud.retail.v2beta.Product.availability:type_name -> google.cloud.retail.v2beta.Product.Availability |
| 1178 |
8, // 8: google.cloud.retail.v2beta.Product.available_quantity:type_name -> google.protobuf.Int32Value |
| 1179 |
9, // 9: google.cloud.retail.v2beta.Product.fulfillment_info:type_name -> google.cloud.retail.v2beta.FulfillmentInfo |
| 1180 |
10, // 10: google.cloud.retail.v2beta.Product.images:type_name -> google.cloud.retail.v2beta.Image |
| 1181 |
11, // 11: google.cloud.retail.v2beta.Product.audience:type_name -> google.cloud.retail.v2beta.Audience |
| 1182 |
12, // 12: google.cloud.retail.v2beta.Product.color_info:type_name -> google.cloud.retail.v2beta.ColorInfo |
| 1183 |
13, // 13: google.cloud.retail.v2beta.Product.promotions:type_name -> google.cloud.retail.v2beta.Promotion |
| 1184 |
4, // 14: google.cloud.retail.v2beta.Product.publish_time:type_name -> google.protobuf.Timestamp |
| 1185 |
14, // 15: google.cloud.retail.v2beta.Product.retrievable_fields:type_name -> google.protobuf.FieldMask |
| 1186 |
2, // 16: google.cloud.retail.v2beta.Product.variants:type_name -> google.cloud.retail.v2beta.Product |
| 1187 |
15, // 17: google.cloud.retail.v2beta.Product.local_inventories:type_name -> google.cloud.retail.v2beta.LocalInventory |
| 1188 |
16, // 18: google.cloud.retail.v2beta.Product.AttributesEntry.value:type_name -> google.cloud.retail.v2beta.CustomAttribute |
| 1189 |
19, // [19:19] is the sub-list for method output_type |
| 1190 |
19, // [19:19] is the sub-list for method input_type |
| 1191 |
19, // [19:19] is the sub-list for extension type_name |
| 1192 |
19, // [19:19] is the sub-list for extension extendee |
| 1193 |
0, // [0:19] is the sub-list for field type_name |
| 1194 |
} |
| 1195 |
|
| 1196 |
func init() { file_google_cloud_retail_v2beta_product_proto_init() } |
| 1197 |
func file_google_cloud_retail_v2beta_product_proto_init() { |
| 1198 |
if File_google_cloud_retail_v2beta_product_proto != nil { |
| 1199 |
return |
| 1200 |
} |
| 1201 |
file_google_cloud_retail_v2beta_common_proto_init() |
| 1202 |
file_google_cloud_retail_v2beta_promotion_proto_init() |
| 1203 |
file_google_cloud_retail_v2beta_product_proto_msgTypes[0].OneofWrappers = []any{ |
| 1204 |
(*Product_ExpireTime)(nil), |
| 1205 |
(*Product_Ttl)(nil), |
| 1206 |
} |
| 1207 |
type x struct{} |
| 1208 |
out := protoimpl.TypeBuilder{ |
| 1209 |
File: protoimpl.DescBuilder{ |
| 1210 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1211 |
RawDescriptor: file_google_cloud_retail_v2beta_product_proto_rawDesc, |
| 1212 |
NumEnums: 2, |
| 1213 |
NumMessages: 2, |
| 1214 |
NumExtensions: 0, |
| 1215 |
NumServices: 0, |
| 1216 |
}, |
| 1217 |
GoTypes: file_google_cloud_retail_v2beta_product_proto_goTypes, |
| 1218 |
DependencyIndexes: file_google_cloud_retail_v2beta_product_proto_depIdxs, |
| 1219 |
EnumInfos: file_google_cloud_retail_v2beta_product_proto_enumTypes, |
| 1220 |
MessageInfos: file_google_cloud_retail_v2beta_product_proto_msgTypes, |
| 1221 |
}.Build() |
| 1222 |
File_google_cloud_retail_v2beta_product_proto = out.File |
| 1223 |
file_google_cloud_retail_v2beta_product_proto_rawDesc = nil |
| 1224 |
file_google_cloud_retail_v2beta_product_proto_goTypes = nil |
| 1225 |
file_google_cloud_retail_v2beta_product_proto_depIdxs = nil |
| 1226 |
} |