| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/recommendationengine/v1beta1/catalog.proto |
| |
| package recommendationengine |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "github.com/golang/protobuf/ptypes/struct" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Optional. 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 |
| ) |
| |
| var ProductCatalogItem_StockState_name = map[int32]string{ |
| 0: "STOCK_STATE_UNSPECIFIED", |
| // Duplicate value: 0: "IN_STOCK", |
| 1: "OUT_OF_STOCK", |
| 2: "PREORDER", |
| 3: "BACKORDER", |
| } |
| |
| var 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) String() string { |
| return proto.EnumName(ProductCatalogItem_StockState_name, int32(x)) |
| } |
| |
| func (ProductCatalogItem_StockState) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_988daa8a4f3967d9, []int{1, 0} |
| } |
| |
| // CatalogItem captures all metadata information of items to be recommended. |
| type CatalogItem struct { |
| // 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 (but 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. The tags have to satisfy the |
| // following restrictions: |
| // |
| // * Only contain alphanumeric characters (`a-z`, `A-Z`, `0-9`), underscores |
| // (`_`) and dashes (`-`). |
| 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 valid to be assigned to RecommendationType: |
| // *CatalogItem_ProductMetadata |
| RecommendationType isCatalogItem_RecommendationType `protobuf_oneof:"recommendation_type"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CatalogItem) Reset() { *m = CatalogItem{} } |
| func (m *CatalogItem) String() string { return proto.CompactTextString(m) } |
| func (*CatalogItem) ProtoMessage() {} |
| func (*CatalogItem) Descriptor() ([]byte, []int) { |
| return fileDescriptor_988daa8a4f3967d9, []int{0} |
| } |
| |
| func (m *CatalogItem) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CatalogItem.Unmarshal(m, b) |
| } |
| func (m *CatalogItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CatalogItem.Marshal(b, m, deterministic) |
| } |
| func (m *CatalogItem) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CatalogItem.Merge(m, src) |
| } |
| func (m *CatalogItem) XXX_Size() int { |
| return xxx_messageInfo_CatalogItem.Size(m) |
| } |
| func (m *CatalogItem) XXX_DiscardUnknown() { |
| xxx_messageInfo_CatalogItem.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CatalogItem proto.InternalMessageInfo |
| |
| func (m *CatalogItem) GetId() string { |
| if m != nil { |
| return m.Id |
| } |
| return "" |
| } |
| |
| func (m *CatalogItem) GetCategoryHierarchies() []*CatalogItem_CategoryHierarchy { |
| if m != nil { |
| return m.CategoryHierarchies |
| } |
| return nil |
| } |
| |
| func (m *CatalogItem) GetTitle() string { |
| if m != nil { |
| return m.Title |
| } |
| return "" |
| } |
| |
| func (m *CatalogItem) GetDescription() string { |
| if m != nil { |
| return m.Description |
| } |
| return "" |
| } |
| |
| func (m *CatalogItem) GetItemAttributes() *FeatureMap { |
| if m != nil { |
| return m.ItemAttributes |
| } |
| return nil |
| } |
| |
| func (m *CatalogItem) GetLanguageCode() string { |
| if m != nil { |
| return m.LanguageCode |
| } |
| return "" |
| } |
| |
| func (m *CatalogItem) GetTags() []string { |
| if m != nil { |
| return m.Tags |
| } |
| return nil |
| } |
| |
| func (m *CatalogItem) GetItemGroupId() string { |
| if m != nil { |
| return m.ItemGroupId |
| } |
| return "" |
| } |
| |
| type isCatalogItem_RecommendationType interface { |
| isCatalogItem_RecommendationType() |
| } |
| |
| type CatalogItem_ProductMetadata struct { |
| ProductMetadata *ProductCatalogItem `protobuf:"bytes,10,opt,name=product_metadata,json=productMetadata,proto3,oneof"` |
| } |
| |
| func (*CatalogItem_ProductMetadata) isCatalogItem_RecommendationType() {} |
| |
| func (m *CatalogItem) GetRecommendationType() isCatalogItem_RecommendationType { |
| if m != nil { |
| return m.RecommendationType |
| } |
| return nil |
| } |
| |
| func (m *CatalogItem) GetProductMetadata() *ProductCatalogItem { |
| if x, ok := m.GetRecommendationType().(*CatalogItem_ProductMetadata); ok { |
| return x.ProductMetadata |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*CatalogItem) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*CatalogItem_ProductMetadata)(nil), |
| } |
| } |
| |
| // Category represents catalog item category hierarchy. |
| type CatalogItem_CategoryHierarchy struct { |
| // Required. Catalog item categories. Each category should be a UTF-8 |
| // encoded string with a length limit of 1 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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CatalogItem_CategoryHierarchy) Reset() { *m = CatalogItem_CategoryHierarchy{} } |
| func (m *CatalogItem_CategoryHierarchy) String() string { return proto.CompactTextString(m) } |
| func (*CatalogItem_CategoryHierarchy) ProtoMessage() {} |
| func (*CatalogItem_CategoryHierarchy) Descriptor() ([]byte, []int) { |
| return fileDescriptor_988daa8a4f3967d9, []int{0, 0} |
| } |
| |
| func (m *CatalogItem_CategoryHierarchy) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CatalogItem_CategoryHierarchy.Unmarshal(m, b) |
| } |
| func (m *CatalogItem_CategoryHierarchy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CatalogItem_CategoryHierarchy.Marshal(b, m, deterministic) |
| } |
| func (m *CatalogItem_CategoryHierarchy) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CatalogItem_CategoryHierarchy.Merge(m, src) |
| } |
| func (m *CatalogItem_CategoryHierarchy) XXX_Size() int { |
| return xxx_messageInfo_CatalogItem_CategoryHierarchy.Size(m) |
| } |
| func (m *CatalogItem_CategoryHierarchy) XXX_DiscardUnknown() { |
| xxx_messageInfo_CatalogItem_CategoryHierarchy.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CatalogItem_CategoryHierarchy proto.InternalMessageInfo |
| |
| func (m *CatalogItem_CategoryHierarchy) GetCategories() []string { |
| if m != nil { |
| return m.Categories |
| } |
| return nil |
| } |
| |
| // ProductCatalogItem captures item metadata specific to retail products. |
| type ProductCatalogItem struct { |
| // Product price. Only one of 'exactPrice'/'priceRange' can be provided. |
| // |
| // Types that are valid to be assigned 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"` |
| // 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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ProductCatalogItem) Reset() { *m = ProductCatalogItem{} } |
| func (m *ProductCatalogItem) String() string { return proto.CompactTextString(m) } |
| func (*ProductCatalogItem) ProtoMessage() {} |
| func (*ProductCatalogItem) Descriptor() ([]byte, []int) { |
| return fileDescriptor_988daa8a4f3967d9, []int{1} |
| } |
| |
| func (m *ProductCatalogItem) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ProductCatalogItem.Unmarshal(m, b) |
| } |
| func (m *ProductCatalogItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ProductCatalogItem.Marshal(b, m, deterministic) |
| } |
| func (m *ProductCatalogItem) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ProductCatalogItem.Merge(m, src) |
| } |
| func (m *ProductCatalogItem) XXX_Size() int { |
| return xxx_messageInfo_ProductCatalogItem.Size(m) |
| } |
| func (m *ProductCatalogItem) XXX_DiscardUnknown() { |
| xxx_messageInfo_ProductCatalogItem.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ProductCatalogItem proto.InternalMessageInfo |
| |
| type isProductCatalogItem_Price interface { |
| isProductCatalogItem_Price() |
| } |
| |
| type ProductCatalogItem_ExactPrice_ struct { |
| ExactPrice *ProductCatalogItem_ExactPrice `protobuf:"bytes,1,opt,name=exact_price,json=exactPrice,proto3,oneof"` |
| } |
| |
| type ProductCatalogItem_PriceRange_ struct { |
| PriceRange *ProductCatalogItem_PriceRange `protobuf:"bytes,2,opt,name=price_range,json=priceRange,proto3,oneof"` |
| } |
| |
| func (*ProductCatalogItem_ExactPrice_) isProductCatalogItem_Price() {} |
| |
| func (*ProductCatalogItem_PriceRange_) isProductCatalogItem_Price() {} |
| |
| func (m *ProductCatalogItem) GetPrice() isProductCatalogItem_Price { |
| if m != nil { |
| return m.Price |
| } |
| return nil |
| } |
| |
| func (m *ProductCatalogItem) GetExactPrice() *ProductCatalogItem_ExactPrice { |
| if x, ok := m.GetPrice().(*ProductCatalogItem_ExactPrice_); ok { |
| return x.ExactPrice |
| } |
| return nil |
| } |
| |
| func (m *ProductCatalogItem) GetPriceRange() *ProductCatalogItem_PriceRange { |
| if x, ok := m.GetPrice().(*ProductCatalogItem_PriceRange_); ok { |
| return x.PriceRange |
| } |
| return nil |
| } |
| |
| func (m *ProductCatalogItem) GetCosts() map[string]float32 { |
| if m != nil { |
| return m.Costs |
| } |
| return nil |
| } |
| |
| func (m *ProductCatalogItem) GetCurrencyCode() string { |
| if m != nil { |
| return m.CurrencyCode |
| } |
| return "" |
| } |
| |
| func (m *ProductCatalogItem) GetStockState() ProductCatalogItem_StockState { |
| if m != nil { |
| return m.StockState |
| } |
| return ProductCatalogItem_STOCK_STATE_UNSPECIFIED |
| } |
| |
| func (m *ProductCatalogItem) GetAvailableQuantity() int64 { |
| if m != nil { |
| return m.AvailableQuantity |
| } |
| return 0 |
| } |
| |
| func (m *ProductCatalogItem) GetCanonicalProductUri() string { |
| if m != nil { |
| return m.CanonicalProductUri |
| } |
| return "" |
| } |
| |
| func (m *ProductCatalogItem) GetImages() []*Image { |
| if m != nil { |
| return m.Images |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*ProductCatalogItem) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*ProductCatalogItem_ExactPrice_)(nil), |
| (*ProductCatalogItem_PriceRange_)(nil), |
| } |
| } |
| |
| // Exact product price. |
| type ProductCatalogItem_ExactPrice struct { |
| // 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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ProductCatalogItem_ExactPrice) Reset() { *m = ProductCatalogItem_ExactPrice{} } |
| func (m *ProductCatalogItem_ExactPrice) String() string { return proto.CompactTextString(m) } |
| func (*ProductCatalogItem_ExactPrice) ProtoMessage() {} |
| func (*ProductCatalogItem_ExactPrice) Descriptor() ([]byte, []int) { |
| return fileDescriptor_988daa8a4f3967d9, []int{1, 0} |
| } |
| |
| func (m *ProductCatalogItem_ExactPrice) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ProductCatalogItem_ExactPrice.Unmarshal(m, b) |
| } |
| func (m *ProductCatalogItem_ExactPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ProductCatalogItem_ExactPrice.Marshal(b, m, deterministic) |
| } |
| func (m *ProductCatalogItem_ExactPrice) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ProductCatalogItem_ExactPrice.Merge(m, src) |
| } |
| func (m *ProductCatalogItem_ExactPrice) XXX_Size() int { |
| return xxx_messageInfo_ProductCatalogItem_ExactPrice.Size(m) |
| } |
| func (m *ProductCatalogItem_ExactPrice) XXX_DiscardUnknown() { |
| xxx_messageInfo_ProductCatalogItem_ExactPrice.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ProductCatalogItem_ExactPrice proto.InternalMessageInfo |
| |
| func (m *ProductCatalogItem_ExactPrice) GetDisplayPrice() float32 { |
| if m != nil { |
| return m.DisplayPrice |
| } |
| return 0 |
| } |
| |
| func (m *ProductCatalogItem_ExactPrice) GetOriginalPrice() float32 { |
| if m != nil { |
| return m.OriginalPrice |
| } |
| return 0 |
| } |
| |
| // Product price range when there are a range of prices for different |
| // variations of the same product. |
| type ProductCatalogItem_PriceRange struct { |
| // 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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ProductCatalogItem_PriceRange) Reset() { *m = ProductCatalogItem_PriceRange{} } |
| func (m *ProductCatalogItem_PriceRange) String() string { return proto.CompactTextString(m) } |
| func (*ProductCatalogItem_PriceRange) ProtoMessage() {} |
| func (*ProductCatalogItem_PriceRange) Descriptor() ([]byte, []int) { |
| return fileDescriptor_988daa8a4f3967d9, []int{1, 1} |
| } |
| |
| func (m *ProductCatalogItem_PriceRange) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ProductCatalogItem_PriceRange.Unmarshal(m, b) |
| } |
| func (m *ProductCatalogItem_PriceRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ProductCatalogItem_PriceRange.Marshal(b, m, deterministic) |
| } |
| func (m *ProductCatalogItem_PriceRange) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ProductCatalogItem_PriceRange.Merge(m, src) |
| } |
| func (m *ProductCatalogItem_PriceRange) XXX_Size() int { |
| return xxx_messageInfo_ProductCatalogItem_PriceRange.Size(m) |
| } |
| func (m *ProductCatalogItem_PriceRange) XXX_DiscardUnknown() { |
| xxx_messageInfo_ProductCatalogItem_PriceRange.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ProductCatalogItem_PriceRange proto.InternalMessageInfo |
| |
| func (m *ProductCatalogItem_PriceRange) GetMin() float32 { |
| if m != nil { |
| return m.Min |
| } |
| return 0 |
| } |
| |
| func (m *ProductCatalogItem_PriceRange) GetMax() float32 { |
| if m != nil { |
| return m.Max |
| } |
| return 0 |
| } |
| |
| // Catalog item thumbnail/detail image. |
| type Image struct { |
| // 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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Image) Reset() { *m = Image{} } |
| func (m *Image) String() string { return proto.CompactTextString(m) } |
| func (*Image) ProtoMessage() {} |
| func (*Image) Descriptor() ([]byte, []int) { |
| return fileDescriptor_988daa8a4f3967d9, []int{2} |
| } |
| |
| func (m *Image) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Image.Unmarshal(m, b) |
| } |
| func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Image.Marshal(b, m, deterministic) |
| } |
| func (m *Image) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Image.Merge(m, src) |
| } |
| func (m *Image) XXX_Size() int { |
| return xxx_messageInfo_Image.Size(m) |
| } |
| func (m *Image) XXX_DiscardUnknown() { |
| xxx_messageInfo_Image.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Image proto.InternalMessageInfo |
| |
| func (m *Image) GetUri() string { |
| if m != nil { |
| return m.Uri |
| } |
| return "" |
| } |
| |
| func (m *Image) GetHeight() int32 { |
| if m != nil { |
| return m.Height |
| } |
| return 0 |
| } |
| |
| func (m *Image) GetWidth() int32 { |
| if m != nil { |
| return m.Width |
| } |
| return 0 |
| } |
| |
| func init() { |
| proto.RegisterEnum("google.cloud.recommendationengine.v1beta1.ProductCatalogItem_StockState", ProductCatalogItem_StockState_name, ProductCatalogItem_StockState_value) |
| proto.RegisterType((*CatalogItem)(nil), "google.cloud.recommendationengine.v1beta1.CatalogItem") |
| proto.RegisterType((*CatalogItem_CategoryHierarchy)(nil), "google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy") |
| proto.RegisterType((*ProductCatalogItem)(nil), "google.cloud.recommendationengine.v1beta1.ProductCatalogItem") |
| proto.RegisterMapType((map[string]float32)(nil), "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.CostsEntry") |
| proto.RegisterType((*ProductCatalogItem_ExactPrice)(nil), "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice") |
| proto.RegisterType((*ProductCatalogItem_PriceRange)(nil), "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange") |
| proto.RegisterType((*Image)(nil), "google.cloud.recommendationengine.v1beta1.Image") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/recommendationengine/v1beta1/catalog.proto", fileDescriptor_988daa8a4f3967d9) |
| } |
| |
| var fileDescriptor_988daa8a4f3967d9 = []byte{ |
| // 887 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x6e, 0x1b, 0x45, |
| 0x14, 0x8e, 0xd7, 0x71, 0xd2, 0x1c, 0x3b, 0xa9, 0x3b, 0x69, 0x61, 0x65, 0x10, 0xb2, 0x8c, 0x90, |
| 0xd2, 0x8b, 0xda, 0x4d, 0x2a, 0xa0, 0x02, 0x71, 0x11, 0xbb, 0x9b, 0xd8, 0xaa, 0xda, 0x98, 0x71, |
| 0x82, 0x10, 0x12, 0x5d, 0x8d, 0x67, 0x87, 0xf5, 0x34, 0xbb, 0x3b, 0xcb, 0xec, 0x6c, 0xa8, 0xc5, |
| 0xdb, 0x70, 0xc9, 0x73, 0x20, 0x78, 0x2d, 0x34, 0x3f, 0x76, 0x5c, 0x92, 0x8b, 0x58, 0xf4, 0xee, |
| 0xfc, 0x7e, 0xdf, 0x37, 0x73, 0xce, 0xce, 0xc2, 0xd7, 0xb1, 0x10, 0x71, 0xc2, 0x7a, 0x34, 0x11, |
| 0x65, 0xd4, 0x93, 0x8c, 0x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