1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/retail/v2/user_event.proto 18 19 package com.google.cloud.retail.v2; 20 21 public interface ProductDetailOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ProductDetail) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. [Product][google.cloud.retail.v2.Product] information. 31 * Required field(s): 32 * * [Product.id][google.cloud.retail.v2.Product.id] 33 * Optional override field(s): 34 * * [Product.price_info][google.cloud.retail.v2.Product.price_info] 35 * If any supported optional fields are provided, we will treat them as a full 36 * override when looking up product information from the catalog. Thus, it is 37 * important to ensure that the overriding fields are accurate and 38 * complete. 39 * All other product fields are ignored and instead populated via catalog 40 * lookup after event ingestion. 41 * </pre> 42 * 43 * <code>.google.cloud.retail.v2.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; 44 * </code> 45 * 46 * @return Whether the product field is set. 47 */ hasProduct()48 boolean hasProduct(); 49 /** 50 * 51 * 52 * <pre> 53 * Required. [Product][google.cloud.retail.v2.Product] information. 54 * Required field(s): 55 * * [Product.id][google.cloud.retail.v2.Product.id] 56 * Optional override field(s): 57 * * [Product.price_info][google.cloud.retail.v2.Product.price_info] 58 * If any supported optional fields are provided, we will treat them as a full 59 * override when looking up product information from the catalog. Thus, it is 60 * important to ensure that the overriding fields are accurate and 61 * complete. 62 * All other product fields are ignored and instead populated via catalog 63 * lookup after event ingestion. 64 * </pre> 65 * 66 * <code>.google.cloud.retail.v2.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; 67 * </code> 68 * 69 * @return The product. 70 */ getProduct()71 com.google.cloud.retail.v2.Product getProduct(); 72 /** 73 * 74 * 75 * <pre> 76 * Required. [Product][google.cloud.retail.v2.Product] information. 77 * Required field(s): 78 * * [Product.id][google.cloud.retail.v2.Product.id] 79 * Optional override field(s): 80 * * [Product.price_info][google.cloud.retail.v2.Product.price_info] 81 * If any supported optional fields are provided, we will treat them as a full 82 * override when looking up product information from the catalog. Thus, it is 83 * important to ensure that the overriding fields are accurate and 84 * complete. 85 * All other product fields are ignored and instead populated via catalog 86 * lookup after event ingestion. 87 * </pre> 88 * 89 * <code>.google.cloud.retail.v2.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; 90 * </code> 91 */ getProductOrBuilder()92 com.google.cloud.retail.v2.ProductOrBuilder getProductOrBuilder(); 93 94 /** 95 * 96 * 97 * <pre> 98 * Quantity of the product associated with the user event. 99 * For example, this field will be 2 if two products are added to the shopping 100 * cart for `purchase-complete` event. Required for `add-to-cart` and 101 * `purchase-complete` event types. 102 * </pre> 103 * 104 * <code>.google.protobuf.Int32Value quantity = 2;</code> 105 * 106 * @return Whether the quantity field is set. 107 */ hasQuantity()108 boolean hasQuantity(); 109 /** 110 * 111 * 112 * <pre> 113 * Quantity of the product associated with the user event. 114 * For example, this field will be 2 if two products are added to the shopping 115 * cart for `purchase-complete` event. Required for `add-to-cart` and 116 * `purchase-complete` event types. 117 * </pre> 118 * 119 * <code>.google.protobuf.Int32Value quantity = 2;</code> 120 * 121 * @return The quantity. 122 */ getQuantity()123 com.google.protobuf.Int32Value getQuantity(); 124 /** 125 * 126 * 127 * <pre> 128 * Quantity of the product associated with the user event. 129 * For example, this field will be 2 if two products are added to the shopping 130 * cart for `purchase-complete` event. Required for `add-to-cart` and 131 * `purchase-complete` event types. 132 * </pre> 133 * 134 * <code>.google.protobuf.Int32Value quantity = 2;</code> 135 */ getQuantityOrBuilder()136 com.google.protobuf.Int32ValueOrBuilder getQuantityOrBuilder(); 137 } 138