Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12291 manish.sha 1
/*
2
 * Copyright 2010 Google Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
 * in compliance with the License. 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 distributed under the License
10
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
 * or implied. See the License for the specific language governing permissions and limitations under
12
 * the License.
13
 */
14
/*
15
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
16
 * (build: 2014-07-09 17:08:39 UTC)
17
 * on 2014-07-23 at 21:49:03 UTC 
18
 * Modify at your own risk.
19
 */
20
 
21
package com.google.api.services.content.model;
22
 
23
/**
24
 * Model definition for Inventory.
25
 *
26
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
27
 * transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
28
 * see:
29
 * <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
30
 * </p>
31
 *
32
 * @author Google, Inc.
33
 */
34
@SuppressWarnings("javadoc")
35
public final class Inventory extends com.google.api.client.json.GenericJson {
36
 
37
  /**
38
   * The availability of the product.
39
   * The value may be {@code null}.
40
   */
41
  @com.google.api.client.util.Key
42
  private java.lang.String availability;
43
 
44
  /**
45
   * Identifies what kind of resource this is. Value: the fixed string "content#inventory".
46
   * The value may be {@code null}.
47
   */
48
  @com.google.api.client.util.Key
49
  private java.lang.String kind;
50
 
51
  /**
52
   * The price of the product.
53
   * The value may be {@code null}.
54
   */
55
  @com.google.api.client.util.Key
56
  private Price price;
57
 
58
  /**
59
   * The quantity of the product. Must be equal to or greater than zero. Supported only for local
60
   * products.
61
   * The value may be {@code null}.
62
   */
63
  @com.google.api.client.util.Key
64
  private java.lang.Long quantity;
65
 
66
  /**
67
   * The sale price of the product. Mandatory if sale_price_effective_date is defined.
68
   * The value may be {@code null}.
69
   */
70
  @com.google.api.client.util.Key
71
  private Price salePrice;
72
 
73
  /**
74
   * A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
75
   * Both dates might be specified as 'null' if undecided.
76
   * The value may be {@code null}.
77
   */
78
  @com.google.api.client.util.Key
79
  private java.lang.String salePriceEffectiveDate;
80
 
81
  /**
82
   * The availability of the product.
83
   * @return value or {@code null} for none
84
   */
85
  public java.lang.String getAvailability() {
86
    return availability;
87
  }
88
 
89
  /**
90
   * The availability of the product.
91
   * @param availability availability or {@code null} for none
92
   */
93
  public Inventory setAvailability(java.lang.String availability) {
94
    this.availability = availability;
95
    return this;
96
  }
97
 
98
  /**
99
   * Identifies what kind of resource this is. Value: the fixed string "content#inventory".
100
   * @return value or {@code null} for none
101
   */
102
  public java.lang.String getKind() {
103
    return kind;
104
  }
105
 
106
  /**
107
   * Identifies what kind of resource this is. Value: the fixed string "content#inventory".
108
   * @param kind kind or {@code null} for none
109
   */
110
  public Inventory setKind(java.lang.String kind) {
111
    this.kind = kind;
112
    return this;
113
  }
114
 
115
  /**
116
   * The price of the product.
117
   * @return value or {@code null} for none
118
   */
119
  public Price getPrice() {
120
    return price;
121
  }
122
 
123
  /**
124
   * The price of the product.
125
   * @param price price or {@code null} for none
126
   */
127
  public Inventory setPrice(Price price) {
128
    this.price = price;
129
    return this;
130
  }
131
 
132
  /**
133
   * The quantity of the product. Must be equal to or greater than zero. Supported only for local
134
   * products.
135
   * @return value or {@code null} for none
136
   */
137
  public java.lang.Long getQuantity() {
138
    return quantity;
139
  }
140
 
141
  /**
142
   * The quantity of the product. Must be equal to or greater than zero. Supported only for local
143
   * products.
144
   * @param quantity quantity or {@code null} for none
145
   */
146
  public Inventory setQuantity(java.lang.Long quantity) {
147
    this.quantity = quantity;
148
    return this;
149
  }
150
 
151
  /**
152
   * The sale price of the product. Mandatory if sale_price_effective_date is defined.
153
   * @return value or {@code null} for none
154
   */
155
  public Price getSalePrice() {
156
    return salePrice;
157
  }
158
 
159
  /**
160
   * The sale price of the product. Mandatory if sale_price_effective_date is defined.
161
   * @param salePrice salePrice or {@code null} for none
162
   */
163
  public Inventory setSalePrice(Price salePrice) {
164
    this.salePrice = salePrice;
165
    return this;
166
  }
167
 
168
  /**
169
   * A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
170
   * Both dates might be specified as 'null' if undecided.
171
   * @return value or {@code null} for none
172
   */
173
  public java.lang.String getSalePriceEffectiveDate() {
174
    return salePriceEffectiveDate;
175
  }
176
 
177
  /**
178
   * A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
179
   * Both dates might be specified as 'null' if undecided.
180
   * @param salePriceEffectiveDate salePriceEffectiveDate or {@code null} for none
181
   */
182
  public Inventory setSalePriceEffectiveDate(java.lang.String salePriceEffectiveDate) {
183
    this.salePriceEffectiveDate = salePriceEffectiveDate;
184
    return this;
185
  }
186
 
187
  @Override
188
  public Inventory set(String fieldName, Object value) {
189
    return (Inventory) super.set(fieldName, value);
190
  }
191
 
192
  @Override
193
  public Inventory clone() {
194
    return (Inventory) super.clone();
195
  }
196
 
197
}