| 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 Price.
|
|
|
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 Price extends com.google.api.client.json.GenericJson {
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* The currency of the price.
|
|
|
39 |
* The value may be {@code null}.
|
|
|
40 |
*/
|
|
|
41 |
@com.google.api.client.util.Key
|
|
|
42 |
private java.lang.String currency;
|
|
|
43 |
|
|
|
44 |
/**
|
|
|
45 |
* The price represented as a number.
|
|
|
46 |
* The value may be {@code null}.
|
|
|
47 |
*/
|
|
|
48 |
@com.google.api.client.util.Key
|
|
|
49 |
private java.lang.String value;
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* The currency of the price.
|
|
|
53 |
* @return value or {@code null} for none
|
|
|
54 |
*/
|
|
|
55 |
public java.lang.String getCurrency() {
|
|
|
56 |
return currency;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
/**
|
|
|
60 |
* The currency of the price.
|
|
|
61 |
* @param currency currency or {@code null} for none
|
|
|
62 |
*/
|
|
|
63 |
public Price setCurrency(java.lang.String currency) {
|
|
|
64 |
this.currency = currency;
|
|
|
65 |
return this;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
/**
|
|
|
69 |
* The price represented as a number.
|
|
|
70 |
* @return value or {@code null} for none
|
|
|
71 |
*/
|
|
|
72 |
public java.lang.String getValue() {
|
|
|
73 |
return value;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
/**
|
|
|
77 |
* The price represented as a number.
|
|
|
78 |
* @param value value or {@code null} for none
|
|
|
79 |
*/
|
|
|
80 |
public Price setValue(java.lang.String value) {
|
|
|
81 |
this.value = value;
|
|
|
82 |
return this;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
@Override
|
|
|
86 |
public Price set(String fieldName, Object value) {
|
|
|
87 |
return (Price) super.set(fieldName, value);
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
@Override
|
|
|
91 |
public Price clone() {
|
|
|
92 |
return (Price) super.clone();
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
}
|