| // Copyright 2020 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.33.0 |
| // protoc v4.25.3 |
| // source: google/cloud/recommendationengine/v1beta1/catalog.proto |
| |
| package recommendationenginepb |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // Item stock state. If this field is unspecified, the item is |
| // assumed to be in stock. |
| type ProductCatalogItem_StockState int32 |
| |
| const ( |
| // Default item stock status. Should never be used. |
| ProductCatalogItem_STOCK_STATE_UNSPECIFIED ProductCatalogItem_StockState = 0 |
| // Item in stock. |
| ProductCatalogItem_IN_STOCK ProductCatalogItem_StockState = 0 |
| // Item out of stock. |
| ProductCatalogItem_OUT_OF_STOCK ProductCatalogItem_StockState = 1 |
| // Item that is in pre-order state. |
| ProductCatalogItem_PREORDER ProductCatalogItem_StockState = 2 |
| // Item that is back-ordered (i.e. temporarily out of stock). |
| ProductCatalogItem_BACKORDER ProductCatalogItem_StockState = 3 |
| ) |
| |
| // Enum value maps for ProductCatalogItem_StockState. |
| var ( |
| ProductCatalogItem_StockState_name = map[int32]string{ |
| 0: "STOCK_STATE_UNSPECIFIED", |
| // Duplicate value: 0: "IN_STOCK", |
| 1: "OUT_OF_STOCK", |
| 2: "PREORDER", |
| 3: "BACKORDER", |
| } |
| ProductCatalogItem_StockState_value = map[string]int32{ |
| "STOCK_STATE_UNSPECIFIED": 0, |
| "IN_STOCK": 0, |
| "OUT_OF_STOCK": 1, |
| "PREORDER": 2, |
| "BACKORDER": 3, |
| } |
| ) |
| |
| func (x ProductCatalogItem_StockState) Enum() *ProductCatalogItem_StockState { |
| p := new(ProductCatalogItem_StockState) |
| *p = x |
| return p |
| } |
| |
| func (x ProductCatalogItem_StockState) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ProductCatalogItem_StockState) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (ProductCatalogItem_StockState) Type() protoreflect.EnumType { |
| return &file_google_cloud_recommendationengine_v1beta1_catalog_proto_enumTypes[0] |
| } |
| |
| func (x ProductCatalogItem_StockState) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ProductCatalogItem_StockState.Descriptor instead. |
| func (ProductCatalogItem_StockState) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP(), []int{1, 0} |
| } |
| |
| // CatalogItem captures all metadata information of items to be recommended. |
| type CatalogItem struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. Catalog item identifier. UTF-8 encoded string with a length limit |
| // of 128 bytes. |
| // |
| // This id must be unique among all catalog items within the same catalog. It |
| // should also be used when logging user events in order for the user events |
| // to be joined with the Catalog. |
| Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // Required. Catalog item categories. This field is repeated for supporting |
| // one catalog item belonging to several parallel category hierarchies. |
| // |
| // For example, if a shoes product belongs to both |
| // ["Shoes & Accessories" -> "Shoes"] and |
| // ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be |
| // represented as: |
| // |
| // "categoryHierarchies": [ |
| // { "categories": ["Shoes & Accessories", "Shoes"]}, |
| // { "categories": ["Sports & Fitness", "Athletic Clothing", "Shoes"] } |
| // ] |
| CategoryHierarchies []*CatalogItem_CategoryHierarchy `protobuf:"bytes,2,rep,name=category_hierarchies,json=categoryHierarchies,proto3" json:"category_hierarchies,omitempty"` |
| // Required. Catalog item title. UTF-8 encoded string with a length limit of 1 |
| // KiB. |
| Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` |
| // Optional. Catalog item description. UTF-8 encoded string with a length |
| // limit of 5 KiB. |
| Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` |
| // Optional. Highly encouraged. Extra catalog item attributes to be |
| // included in the recommendation model. For example, for retail products, |
| // this could include the store name, vendor, style, color, etc. These are |
| // very strong signals for recommendation model, thus we highly recommend |
| // providing the item attributes here. |
| ItemAttributes *FeatureMap `protobuf:"bytes,5,opt,name=item_attributes,json=itemAttributes,proto3" json:"item_attributes,omitempty"` |
| // Optional. Language of the title/description/item_attributes. Use language |
| // tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our |
| // supported language codes include 'en', 'es', 'fr', 'de', 'ar', 'fa', 'zh', |
| // 'ja', 'ko', 'sv', 'ro', 'nl'. For other languages, contact |
| // your Google account manager. |
| LanguageCode string `protobuf:"bytes,6,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` |
| // Optional. Filtering tags associated with the catalog item. Each tag should |
| // be a UTF-8 encoded string with a length limit of 1 KiB. |
| // |
| // This tag can be used for filtering recommendation results by passing the |
| // tag as part of the predict request filter. |
| Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` |
| // Optional. Variant group identifier for prediction results. UTF-8 encoded |
| // string with a length limit of 128 bytes. |
| // |
| // This field must be enabled before it can be used. [Learn |
| // more](/recommendations-ai/docs/catalog#item-group-id). |
| ItemGroupId string `protobuf:"bytes,9,opt,name=item_group_id,json=itemGroupId,proto3" json:"item_group_id,omitempty"` |
| // Extra catalog item metadata for different recommendation types. |
| // |
| // Types that are assignable to RecommendationType: |
| // |
| // *CatalogItem_ProductMetadata |
| RecommendationType isCatalogItem_RecommendationType `protobuf_oneof:"recommendation_type"` |
| } |
| |
| func (x *CatalogItem) Reset() { |
| *x = CatalogItem{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CatalogItem) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CatalogItem) ProtoMessage() {} |
| |
| func (x *CatalogItem) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use CatalogItem.ProtoReflect.Descriptor instead. |
| func (*CatalogItem) Descriptor() ([]byte, []int) { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *CatalogItem) GetId() string { |
| if x != nil { |
| return x.Id |
| } |
| return "" |
| } |
| |
| func (x *CatalogItem) GetCategoryHierarchies() []*CatalogItem_CategoryHierarchy { |
| if x != nil { |
| return x.CategoryHierarchies |
| } |
| return nil |
| } |
| |
| func (x *CatalogItem) GetTitle() string { |
| if x != nil { |
| return x.Title |
| } |
| return "" |
| } |
| |
| func (x *CatalogItem) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| func (x *CatalogItem) GetItemAttributes() *FeatureMap { |
| if x != nil { |
| return x.ItemAttributes |
| } |
| return nil |
| } |
| |
| func (x *CatalogItem) GetLanguageCode() string { |
| if x != nil { |
| return x.LanguageCode |
| } |
| return "" |
| } |
| |
| func (x *CatalogItem) GetTags() []string { |
| if x != nil { |
| return x.Tags |
| } |
| return nil |
| } |
| |
| func (x *CatalogItem) GetItemGroupId() string { |
| if x != nil { |
| return x.ItemGroupId |
| } |
| return "" |
| } |
| |
| func (m *CatalogItem) GetRecommendationType() isCatalogItem_RecommendationType { |
| if m != nil { |
| return m.RecommendationType |
| } |
| return nil |
| } |
| |
| func (x *CatalogItem) GetProductMetadata() *ProductCatalogItem { |
| if x, ok := x.GetRecommendationType().(*CatalogItem_ProductMetadata); ok { |
| return x.ProductMetadata |
| } |
| return nil |
| } |
| |
| type isCatalogItem_RecommendationType interface { |
| isCatalogItem_RecommendationType() |
| } |
| |
| type CatalogItem_ProductMetadata struct { |
| // Optional. Metadata specific to retail products. |
| ProductMetadata *ProductCatalogItem `protobuf:"bytes,10,opt,name=product_metadata,json=productMetadata,proto3,oneof"` |
| } |
| |
| func (*CatalogItem_ProductMetadata) isCatalogItem_RecommendationType() {} |
| |
| // ProductCatalogItem captures item metadata specific to retail products. |
| type ProductCatalogItem struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Product price. Only one of 'exactPrice'/'priceRange' can be provided. |
| // |
| // Types that are assignable to Price: |
| // |
| // *ProductCatalogItem_ExactPrice_ |
| // *ProductCatalogItem_PriceRange_ |
| Price isProductCatalogItem_Price `protobuf_oneof:"price"` |
| // Optional. A map to pass the costs associated with the product. |
| // |
| // For example: |
| // {"manufacturing": 45.5} The profit of selling this item is computed like |
| // so: |
| // |
| // * If 'exactPrice' is provided, profit = displayPrice - sum(costs) |
| // * If 'priceRange' is provided, profit = minPrice - sum(costs) |
| Costs map[string]float32 `protobuf:"bytes,3,rep,name=costs,proto3" json:"costs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"` |
| // Optional. Only required if the price is set. Currency code for price/costs. Use |
| // three-character ISO-4217 code. |
| CurrencyCode string `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` |
| // Optional. Online stock state of the catalog item. Default is `IN_STOCK`. |
| StockState ProductCatalogItem_StockState `protobuf:"varint,5,opt,name=stock_state,json=stockState,proto3,enum=google.cloud.recommendationengine.v1beta1.ProductCatalogItem_StockState" json:"stock_state,omitempty"` |
| // Optional. The available quantity of the item. |
| AvailableQuantity int64 `protobuf:"varint,6,opt,name=available_quantity,json=availableQuantity,proto3" json:"available_quantity,omitempty"` |
| // Optional. Canonical URL directly linking to the item detail page with a |
| // length limit of 5 KiB.. |
| CanonicalProductUri string `protobuf:"bytes,7,opt,name=canonical_product_uri,json=canonicalProductUri,proto3" json:"canonical_product_uri,omitempty"` |
| // Optional. Product images for the catalog item. |
| Images []*Image `protobuf:"bytes,8,rep,name=images,proto3" json:"images,omitempty"` |
| } |
| |
| func (x *ProductCatalogItem) Reset() { |
| *x = ProductCatalogItem{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ProductCatalogItem) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ProductCatalogItem) ProtoMessage() {} |
| |
| func (x *ProductCatalogItem) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ProductCatalogItem.ProtoReflect.Descriptor instead. |
| func (*ProductCatalogItem) Descriptor() ([]byte, []int) { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (m *ProductCatalogItem) GetPrice() isProductCatalogItem_Price { |
| if m != nil { |
| return m.Price |
| } |
| return nil |
| } |
| |
| func (x *ProductCatalogItem) GetExactPrice() *ProductCatalogItem_ExactPrice { |
| if x, ok := x.GetPrice().(*ProductCatalogItem_ExactPrice_); ok { |
| return x.ExactPrice |
| } |
| return nil |
| } |
| |
| func (x *ProductCatalogItem) GetPriceRange() *ProductCatalogItem_PriceRange { |
| if x, ok := x.GetPrice().(*ProductCatalogItem_PriceRange_); ok { |
| return x.PriceRange |
| } |
| return nil |
| } |
| |
| func (x *ProductCatalogItem) GetCosts() map[string]float32 { |
| if x != nil { |
| return x.Costs |
| } |
| return nil |
| } |
| |
| func (x *ProductCatalogItem) GetCurrencyCode() string { |
| if x != nil { |
| return x.CurrencyCode |
| } |
| return "" |
| } |
| |
| func (x *ProductCatalogItem) GetStockState() ProductCatalogItem_StockState { |
| if x != nil { |
| return x.StockState |
| } |
| return ProductCatalogItem_STOCK_STATE_UNSPECIFIED |
| } |
| |
| func (x *ProductCatalogItem) GetAvailableQuantity() int64 { |
| if x != nil { |
| return x.AvailableQuantity |
| } |
| return 0 |
| } |
| |
| func (x *ProductCatalogItem) GetCanonicalProductUri() string { |
| if x != nil { |
| return x.CanonicalProductUri |
| } |
| return "" |
| } |
| |
| func (x *ProductCatalogItem) GetImages() []*Image { |
| if x != nil { |
| return x.Images |
| } |
| return nil |
| } |
| |
| type isProductCatalogItem_Price interface { |
| isProductCatalogItem_Price() |
| } |
| |
| type ProductCatalogItem_ExactPrice_ struct { |
| // Optional. The exact product price. |
| ExactPrice *ProductCatalogItem_ExactPrice `protobuf:"bytes,1,opt,name=exact_price,json=exactPrice,proto3,oneof"` |
| } |
| |
| type ProductCatalogItem_PriceRange_ struct { |
| // Optional. The product price range. |
| PriceRange *ProductCatalogItem_PriceRange `protobuf:"bytes,2,opt,name=price_range,json=priceRange,proto3,oneof"` |
| } |
| |
| func (*ProductCatalogItem_ExactPrice_) isProductCatalogItem_Price() {} |
| |
| func (*ProductCatalogItem_PriceRange_) isProductCatalogItem_Price() {} |
| |
| // Catalog item thumbnail/detail image. |
| type Image struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. URL of the image with a length limit of 5 KiB. |
| Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` |
| // Optional. Height of the image in number of pixels. |
| Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` |
| // Optional. Width of the image in number of pixels. |
| Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` |
| } |
| |
| func (x *Image) Reset() { |
| *x = Image{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Image) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Image) ProtoMessage() {} |
| |
| func (x *Image) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[2] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Image.ProtoReflect.Descriptor instead. |
| func (*Image) Descriptor() ([]byte, []int) { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *Image) GetUri() string { |
| if x != nil { |
| return x.Uri |
| } |
| return "" |
| } |
| |
| func (x *Image) GetHeight() int32 { |
| if x != nil { |
| return x.Height |
| } |
| return 0 |
| } |
| |
| func (x *Image) GetWidth() int32 { |
| if x != nil { |
| return x.Width |
| } |
| return 0 |
| } |
| |
| // Category represents catalog item category hierarchy. |
| type CatalogItem_CategoryHierarchy struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. Catalog item categories. Each category should be a UTF-8 |
| // encoded string with a length limit of 2 KiB. |
| // |
| // Note that the order in the list denotes the specificity (from least to |
| // most specific). |
| Categories []string `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` |
| } |
| |
| func (x *CatalogItem_CategoryHierarchy) Reset() { |
| *x = CatalogItem_CategoryHierarchy{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CatalogItem_CategoryHierarchy) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CatalogItem_CategoryHierarchy) ProtoMessage() {} |
| |
| func (x *CatalogItem_CategoryHierarchy) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[3] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use CatalogItem_CategoryHierarchy.ProtoReflect.Descriptor instead. |
| func (*CatalogItem_CategoryHierarchy) Descriptor() ([]byte, []int) { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (x *CatalogItem_CategoryHierarchy) GetCategories() []string { |
| if x != nil { |
| return x.Categories |
| } |
| return nil |
| } |
| |
| // Exact product price. |
| type ProductCatalogItem_ExactPrice struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Optional. Display price of the product. |
| DisplayPrice float32 `protobuf:"fixed32,1,opt,name=display_price,json=displayPrice,proto3" json:"display_price,omitempty"` |
| // Optional. Price of the product without any discount. If zero, by default |
| // set to be the 'displayPrice'. |
| OriginalPrice float32 `protobuf:"fixed32,2,opt,name=original_price,json=originalPrice,proto3" json:"original_price,omitempty"` |
| } |
| |
| func (x *ProductCatalogItem_ExactPrice) Reset() { |
| *x = ProductCatalogItem_ExactPrice{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ProductCatalogItem_ExactPrice) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ProductCatalogItem_ExactPrice) ProtoMessage() {} |
| |
| func (x *ProductCatalogItem_ExactPrice) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[4] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ProductCatalogItem_ExactPrice.ProtoReflect.Descriptor instead. |
| func (*ProductCatalogItem_ExactPrice) Descriptor() ([]byte, []int) { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP(), []int{1, 0} |
| } |
| |
| func (x *ProductCatalogItem_ExactPrice) GetDisplayPrice() float32 { |
| if x != nil { |
| return x.DisplayPrice |
| } |
| return 0 |
| } |
| |
| func (x *ProductCatalogItem_ExactPrice) GetOriginalPrice() float32 { |
| if x != nil { |
| return x.OriginalPrice |
| } |
| return 0 |
| } |
| |
| // Product price range when there are a range of prices for different |
| // variations of the same product. |
| type ProductCatalogItem_PriceRange struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. The minimum product price. |
| Min float32 `protobuf:"fixed32,1,opt,name=min,proto3" json:"min,omitempty"` |
| // Required. The maximum product price. |
| Max float32 `protobuf:"fixed32,2,opt,name=max,proto3" json:"max,omitempty"` |
| } |
| |
| func (x *ProductCatalogItem_PriceRange) Reset() { |
| *x = ProductCatalogItem_PriceRange{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ProductCatalogItem_PriceRange) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ProductCatalogItem_PriceRange) ProtoMessage() {} |
| |
| func (x *ProductCatalogItem_PriceRange) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[5] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ProductCatalogItem_PriceRange.ProtoReflect.Descriptor instead. |
| func (*ProductCatalogItem_PriceRange) Descriptor() ([]byte, []int) { |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP(), []int{1, 1} |
| } |
| |
| func (x *ProductCatalogItem_PriceRange) GetMin() float32 { |
| if x != nil { |
| return x.Min |
| } |
| return 0 |
| } |
| |
| func (x *ProductCatalogItem_PriceRange) GetMax() float32 { |
| if x != nil { |
| return x.Max |
| } |
| return 0 |
| } |
| |
| var File_google_cloud_recommendationengine_v1beta1_catalog_proto protoreflect.FileDescriptor |
| |
| var file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDesc = []byte{ |
| 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, |
| 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, 0x67, |
| 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x61, 0x74, 0x61, |
| 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, |
| 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, |
| 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, |
| 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, |
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, |
| 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x04, |
| 0x0a, 0x0b, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x13, 0x0a, |
| 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x02, |
| 0x69, 0x64, 0x12, 0x80, 0x01, 0x0a, 0x14, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, |
| 0x68, 0x69, 0x65, 0x72, 0x61, 0x72, 0x63, 0x68, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, |
| 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, |
| 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, |
| 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, |
| 0x72, 0x79, 0x48, 0x69, 0x65, 0x72, 0x61, 0x72, 0x63, 0x68, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, |
| 0x52, 0x13, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x48, 0x69, 0x65, 0x72, 0x61, 0x72, |
| 0x63, 0x68, 0x69, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, |
| 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, |
| 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, |
| 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, |
| 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x63, 0x0a, 0x0f, 0x69, 0x74, 0x65, 0x6d, 0x5f, |
| 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, |
| 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, |
| 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x65, 0x61, |
| 0x74, 0x75, 0x72, 0x65, 0x4d, 0x61, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x69, 0x74, |
| 0x65, 0x6d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0d, |
| 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, |
| 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, |
| 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x08, |
| 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, |
| 0x27, 0x0a, 0x0d, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, |
| 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x69, 0x74, 0x65, |
| 0x6d, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x6f, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x64, |
| 0x75, 0x63, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, |
| 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 0x64, 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, |
| 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x49, 0x74, 0x65, |
| 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, |
| 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x38, 0x0a, 0x11, 0x43, 0x61, 0x74, |
| 0x65, 0x67, 0x6f, 0x72, 0x79, 0x48, 0x69, 0x65, 0x72, 0x61, 0x72, 0x63, 0x68, 0x79, 0x12, 0x23, |
| 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, |
| 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, |
| 0x69, 0x65, 0x73, 0x42, 0x15, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, |
| 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x82, 0x08, 0x0a, 0x12, 0x50, |
| 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x49, 0x74, 0x65, |
| 0x6d, 0x12, 0x70, 0x0a, 0x0b, 0x65, 0x78, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, |
| 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, |
| 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, |
| 0x67, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x45, 0x78, 0x61, 0x63, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, |
| 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x78, 0x61, 0x63, 0x74, 0x50, 0x72, |
| 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x61, 0x6e, |
| 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, |
| 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, |
| 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x43, 0x61, 0x74, 0x61, |
| 0x6c, 0x6f, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x61, 0x6e, |
| 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x63, 0x65, |
| 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x63, 0x0a, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x03, |
| 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, |
| 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x49, |
| 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, |
| 0xe0, 0x41, 0x01, 0x52, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x28, 0x0a, 0x0d, 0x63, 0x75, |
| 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, |
| 0x43, 0x6f, 0x64, 0x65, 0x12, 0x6e, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x74, |
| 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, |
| 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, |
| 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x43, 0x61, 0x74, |
| 0x61, 0x6c, 0x6f, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x53, 0x74, |
| 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x53, |
| 0x74, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, |
| 0x65, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, |
| 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, |
| 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x37, 0x0a, 0x15, 0x63, 0x61, 0x6e, 0x6f, |
| 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x75, 0x72, |
| 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x13, 0x63, 0x61, |
| 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x55, 0x72, |
| 0x69, 0x12, 0x4d, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, |
| 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 0x2e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, |
| 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6d, |
| 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, |
| 0x1a, 0x62, 0x0a, 0x0a, 0x45, 0x78, 0x61, 0x63, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, |
| 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, |
| 0x01, 0x20, 0x01, 0x28, 0x02, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x70, |
| 0x6c, 0x61, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, |
| 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, |
| 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, |
| 0x72, 0x69, 0x63, 0x65, 0x1a, 0x3a, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x61, 0x6e, |
| 0x67, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x42, |
| 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x6d, 0x69, 0x6e, 0x12, 0x15, 0x0a, 0x03, 0x6d, 0x61, 0x78, |
| 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x6d, 0x61, 0x78, |
| 0x1a, 0x38, 0x0a, 0x0a, 0x43, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, |
| 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, |
| 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, |
| 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6a, 0x0a, 0x0a, 0x53, 0x74, |
| 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x4f, 0x43, |
| 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, |
| 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x4f, 0x43, |
| 0x4b, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x54, |
| 0x4f, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x45, 0x4f, 0x52, 0x44, 0x45, |
| 0x52, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x41, 0x43, 0x4b, 0x4f, 0x52, 0x44, 0x45, 0x52, |
| 0x10, 0x03, 0x1a, 0x02, 0x10, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, |
| 0x56, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, |
| 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, |
| 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, |
| 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x19, 0x0a, 0x05, |
| 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, |
| 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0xa3, 0x02, 0x0a, 0x2d, 0x63, 0x6f, 0x6d, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x63, |
| 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, |
| 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x61, 0x63, 0x6c, 0x6f, |
| 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, |
| 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, |
| 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, |
| 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, |
| 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x70, 0x62, 0xa2, 0x02, |
| 0x05, 0x52, 0x45, 0x43, 0x41, 0x49, 0xaa, 0x02, 0x29, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, |
| 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, |
| 0x61, 0x31, 0xca, 0x02, 0x29, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, |
| 0x64, 0x5c, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, |
| 0x2c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, |
| 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, |
| 0x67, 0x69, 0x6e, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, |
| 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescOnce sync.Once |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescData = file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDesc |
| ) |
| |
| func file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescGZIP() []byte { |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescOnce.Do(func() { |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescData) |
| }) |
| return file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDescData |
| } |
| |
| var file_google_cloud_recommendationengine_v1beta1_catalog_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| var file_google_cloud_recommendationengine_v1beta1_catalog_proto_goTypes = []interface{}{ |
| (ProductCatalogItem_StockState)(0), // 0: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState |
| (*CatalogItem)(nil), // 1: google.cloud.recommendationengine.v1beta1.CatalogItem |
| (*ProductCatalogItem)(nil), // 2: google.cloud.recommendationengine.v1beta1.ProductCatalogItem |
| (*Image)(nil), // 3: google.cloud.recommendationengine.v1beta1.Image |
| (*CatalogItem_CategoryHierarchy)(nil), // 4: google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy |
| (*ProductCatalogItem_ExactPrice)(nil), // 5: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice |
| (*ProductCatalogItem_PriceRange)(nil), // 6: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange |
| nil, // 7: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.CostsEntry |
| (*FeatureMap)(nil), // 8: google.cloud.recommendationengine.v1beta1.FeatureMap |
| } |
| var file_google_cloud_recommendationengine_v1beta1_catalog_proto_depIdxs = []int32{ |
| 4, // 0: google.cloud.recommendationengine.v1beta1.CatalogItem.category_hierarchies:type_name -> google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy |
| 8, // 1: google.cloud.recommendationengine.v1beta1.CatalogItem.item_attributes:type_name -> google.cloud.recommendationengine.v1beta1.FeatureMap |
| 2, // 2: google.cloud.recommendationengine.v1beta1.CatalogItem.product_metadata:type_name -> google.cloud.recommendationengine.v1beta1.ProductCatalogItem |
| 5, // 3: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.exact_price:type_name -> google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice |
| 6, // 4: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.price_range:type_name -> google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange |
| 7, // 5: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.costs:type_name -> google.cloud.recommendationengine.v1beta1.ProductCatalogItem.CostsEntry |
| 0, // 6: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.stock_state:type_name -> google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState |
| 3, // 7: google.cloud.recommendationengine.v1beta1.ProductCatalogItem.images:type_name -> google.cloud.recommendationengine.v1beta1.Image |
| 8, // [8:8] is the sub-list for method output_type |
| 8, // [8:8] is the sub-list for method input_type |
| 8, // [8:8] is the sub-list for extension type_name |
| 8, // [8:8] is the sub-list for extension extendee |
| 0, // [0:8] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_recommendationengine_v1beta1_catalog_proto_init() } |
| func file_google_cloud_recommendationengine_v1beta1_catalog_proto_init() { |
| if File_google_cloud_recommendationengine_v1beta1_catalog_proto != nil { |
| return |
| } |
| file_google_cloud_recommendationengine_v1beta1_common_proto_init() |
| if !protoimpl.UnsafeEnabled { |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CatalogItem); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ProductCatalogItem); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Image); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CatalogItem_CategoryHierarchy); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ProductCatalogItem_ExactPrice); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ProductCatalogItem_PriceRange); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| (*CatalogItem_ProductMetadata)(nil), |
| } |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| (*ProductCatalogItem_ExactPrice_)(nil), |
| (*ProductCatalogItem_PriceRange_)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDesc, |
| NumEnums: 1, |
| NumMessages: 7, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_cloud_recommendationengine_v1beta1_catalog_proto_goTypes, |
| DependencyIndexes: file_google_cloud_recommendationengine_v1beta1_catalog_proto_depIdxs, |
| EnumInfos: file_google_cloud_recommendationengine_v1beta1_catalog_proto_enumTypes, |
| MessageInfos: file_google_cloud_recommendationengine_v1beta1_catalog_proto_msgTypes, |
| }.Build() |
| File_google_cloud_recommendationengine_v1beta1_catalog_proto = out.File |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_rawDesc = nil |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_goTypes = nil |
| file_google_cloud_recommendationengine_v1beta1_catalog_proto_depIdxs = nil |
| } |