|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.retail.v2.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Detailed panel information associated with a user event. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Vertex AI Search for commerce API. For a detailed |
| 24 | + * explanation see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class GoogleCloudRetailV2PanelInfo extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. The attribution token of the panel. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String attributionToken; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional. The display name of the panel. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.lang.String displayName; |
| 46 | + |
| 47 | + /** |
| 48 | + * Required. The panel ID. |
| 49 | + * The value may be {@code null}. |
| 50 | + */ |
| 51 | + @com.google.api.client.util.Key |
| 52 | + private java.lang.String panelId; |
| 53 | + |
| 54 | + /** |
| 55 | + * Optional. The ordered position of the panel, if shown to the user with other panels. If set, |
| 56 | + * then total_panels must also be set. |
| 57 | + * The value may be {@code null}. |
| 58 | + */ |
| 59 | + @com.google.api.client.util.Key |
| 60 | + private java.lang.Integer panelPosition; |
| 61 | + |
| 62 | + /** |
| 63 | + * Optional. The product details associated with the panel. |
| 64 | + * The value may be {@code null}. |
| 65 | + */ |
| 66 | + @com.google.api.client.util.Key |
| 67 | + private java.util.List<GoogleCloudRetailV2ProductDetail> productDetails; |
| 68 | + |
| 69 | + /** |
| 70 | + * Optional. The total number of panels, including this one, shown to the user. Must be set if |
| 71 | + * panel_position is set. |
| 72 | + * The value may be {@code null}. |
| 73 | + */ |
| 74 | + @com.google.api.client.util.Key |
| 75 | + private java.lang.Integer totalPanels; |
| 76 | + |
| 77 | + /** |
| 78 | + * Optional. The attribution token of the panel. |
| 79 | + * @return value or {@code null} for none |
| 80 | + */ |
| 81 | + public java.lang.String getAttributionToken() { |
| 82 | + return attributionToken; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * Optional. The attribution token of the panel. |
| 87 | + * @param attributionToken attributionToken or {@code null} for none |
| 88 | + */ |
| 89 | + public GoogleCloudRetailV2PanelInfo setAttributionToken(java.lang.String attributionToken) { |
| 90 | + this.attributionToken = attributionToken; |
| 91 | + return this; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Optional. The display name of the panel. |
| 96 | + * @return value or {@code null} for none |
| 97 | + */ |
| 98 | + public java.lang.String getDisplayName() { |
| 99 | + return displayName; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Optional. The display name of the panel. |
| 104 | + * @param displayName displayName or {@code null} for none |
| 105 | + */ |
| 106 | + public GoogleCloudRetailV2PanelInfo setDisplayName(java.lang.String displayName) { |
| 107 | + this.displayName = displayName; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Required. The panel ID. |
| 113 | + * @return value or {@code null} for none |
| 114 | + */ |
| 115 | + public java.lang.String getPanelId() { |
| 116 | + return panelId; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Required. The panel ID. |
| 121 | + * @param panelId panelId or {@code null} for none |
| 122 | + */ |
| 123 | + public GoogleCloudRetailV2PanelInfo setPanelId(java.lang.String panelId) { |
| 124 | + this.panelId = panelId; |
| 125 | + return this; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Optional. The ordered position of the panel, if shown to the user with other panels. If set, |
| 130 | + * then total_panels must also be set. |
| 131 | + * @return value or {@code null} for none |
| 132 | + */ |
| 133 | + public java.lang.Integer getPanelPosition() { |
| 134 | + return panelPosition; |
| 135 | + } |
| 136 | + |
| 137 | + /** |
| 138 | + * Optional. The ordered position of the panel, if shown to the user with other panels. If set, |
| 139 | + * then total_panels must also be set. |
| 140 | + * @param panelPosition panelPosition or {@code null} for none |
| 141 | + */ |
| 142 | + public GoogleCloudRetailV2PanelInfo setPanelPosition(java.lang.Integer panelPosition) { |
| 143 | + this.panelPosition = panelPosition; |
| 144 | + return this; |
| 145 | + } |
| 146 | + |
| 147 | + /** |
| 148 | + * Optional. The product details associated with the panel. |
| 149 | + * @return value or {@code null} for none |
| 150 | + */ |
| 151 | + public java.util.List<GoogleCloudRetailV2ProductDetail> getProductDetails() { |
| 152 | + return productDetails; |
| 153 | + } |
| 154 | + |
| 155 | + /** |
| 156 | + * Optional. The product details associated with the panel. |
| 157 | + * @param productDetails productDetails or {@code null} for none |
| 158 | + */ |
| 159 | + public GoogleCloudRetailV2PanelInfo setProductDetails(java.util.List<GoogleCloudRetailV2ProductDetail> productDetails) { |
| 160 | + this.productDetails = productDetails; |
| 161 | + return this; |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * Optional. The total number of panels, including this one, shown to the user. Must be set if |
| 166 | + * panel_position is set. |
| 167 | + * @return value or {@code null} for none |
| 168 | + */ |
| 169 | + public java.lang.Integer getTotalPanels() { |
| 170 | + return totalPanels; |
| 171 | + } |
| 172 | + |
| 173 | + /** |
| 174 | + * Optional. The total number of panels, including this one, shown to the user. Must be set if |
| 175 | + * panel_position is set. |
| 176 | + * @param totalPanels totalPanels or {@code null} for none |
| 177 | + */ |
| 178 | + public GoogleCloudRetailV2PanelInfo setTotalPanels(java.lang.Integer totalPanels) { |
| 179 | + this.totalPanels = totalPanels; |
| 180 | + return this; |
| 181 | + } |
| 182 | + |
| 183 | + @Override |
| 184 | + public GoogleCloudRetailV2PanelInfo set(String fieldName, Object value) { |
| 185 | + return (GoogleCloudRetailV2PanelInfo) super.set(fieldName, value); |
| 186 | + } |
| 187 | + |
| 188 | + @Override |
| 189 | + public GoogleCloudRetailV2PanelInfo clone() { |
| 190 | + return (GoogleCloudRetailV2PanelInfo) super.clone(); |
| 191 | + } |
| 192 | + |
| 193 | +} |
0 commit comments