Skip to content

Commit f787bbc

Browse files
1 parent c270b64 commit f787bbc

File tree

5 files changed

+183
-6
lines changed

5 files changed

+183
-6
lines changed

clients/google-api-services-cloudchannel/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-cloudchannel</artifactId>
25-
<version>v1-rev20250614-2.0.0</version>
25+
<version>v1-rev20250809-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-cloudchannel:v1-rev20250614-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudchannel:v1-rev20250809-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
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.cloudchannel.v1.model;
18+
19+
/**
20+
* Represents a single component of the total discount applicable on a Price.
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 Cloud Channel API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudChannelV1DiscountComponent extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Fixed value discount.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleTypeMoney discountAbsolute;
38+
39+
/**
40+
* Discount percentage, represented as decimal. For example, a 20% discount will be represented as
41+
* 0.2.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.Double discountPercentage;
46+
47+
/**
48+
* Type of the discount.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String discountType;
53+
54+
/**
55+
* Fixed value discount.
56+
* @return value or {@code null} for none
57+
*/
58+
public GoogleTypeMoney getDiscountAbsolute() {
59+
return discountAbsolute;
60+
}
61+
62+
/**
63+
* Fixed value discount.
64+
* @param discountAbsolute discountAbsolute or {@code null} for none
65+
*/
66+
public GoogleCloudChannelV1DiscountComponent setDiscountAbsolute(GoogleTypeMoney discountAbsolute) {
67+
this.discountAbsolute = discountAbsolute;
68+
return this;
69+
}
70+
71+
/**
72+
* Discount percentage, represented as decimal. For example, a 20% discount will be represented as
73+
* 0.2.
74+
* @return value or {@code null} for none
75+
*/
76+
public java.lang.Double getDiscountPercentage() {
77+
return discountPercentage;
78+
}
79+
80+
/**
81+
* Discount percentage, represented as decimal. For example, a 20% discount will be represented as
82+
* 0.2.
83+
* @param discountPercentage discountPercentage or {@code null} for none
84+
*/
85+
public GoogleCloudChannelV1DiscountComponent setDiscountPercentage(java.lang.Double discountPercentage) {
86+
this.discountPercentage = discountPercentage;
87+
return this;
88+
}
89+
90+
/**
91+
* Type of the discount.
92+
* @return value or {@code null} for none
93+
*/
94+
public java.lang.String getDiscountType() {
95+
return discountType;
96+
}
97+
98+
/**
99+
* Type of the discount.
100+
* @param discountType discountType or {@code null} for none
101+
*/
102+
public GoogleCloudChannelV1DiscountComponent setDiscountType(java.lang.String discountType) {
103+
this.discountType = discountType;
104+
return this;
105+
}
106+
107+
@Override
108+
public GoogleCloudChannelV1DiscountComponent set(String fieldName, Object value) {
109+
return (GoogleCloudChannelV1DiscountComponent) super.set(fieldName, value);
110+
}
111+
112+
@Override
113+
public GoogleCloudChannelV1DiscountComponent clone() {
114+
return (GoogleCloudChannelV1DiscountComponent) super.clone();
115+
}
116+
117+
}

clients/google-api-services-cloudchannel/v1/2.0.0/com/google/api/services/cloudchannel/v1/model/GoogleCloudChannelV1Price.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ public final class GoogleCloudChannelV1Price extends com.google.api.client.json.
4444
@com.google.api.client.util.Key
4545
private java.lang.Double discount;
4646

47+
/**
48+
* Breakdown of the discount into its components. This will be empty if there is no discount
49+
* present.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.util.List<GoogleCloudChannelV1DiscountComponent> discountComponents;
54+
55+
static {
56+
// hack to force ProGuard to consider GoogleCloudChannelV1DiscountComponent used, since otherwise it would be stripped out
57+
// see https://github.com/google/google-api-java-client/issues/543
58+
com.google.api.client.util.Data.nullOf(GoogleCloudChannelV1DiscountComponent.class);
59+
}
60+
4761
/**
4862
* Effective Price after applying the discounts.
4963
* The value may be {@code null}.
@@ -58,6 +72,14 @@ public final class GoogleCloudChannelV1Price extends com.google.api.client.json.
5872
@com.google.api.client.util.Key
5973
private java.lang.String externalPriceUri;
6074

75+
/**
76+
* The time period with respect to which base and effective prices are defined. Example: 1 month,
77+
* 6 months, 1 year, etc.
78+
* The value may be {@code null}.
79+
*/
80+
@com.google.api.client.util.Key
81+
private GoogleCloudChannelV1Period pricePeriod;
82+
6183
/**
6284
* Base price.
6385
* @return value or {@code null} for none
@@ -94,6 +116,25 @@ public GoogleCloudChannelV1Price setDiscount(java.lang.Double discount) {
94116
return this;
95117
}
96118

119+
/**
120+
* Breakdown of the discount into its components. This will be empty if there is no discount
121+
* present.
122+
* @return value or {@code null} for none
123+
*/
124+
public java.util.List<GoogleCloudChannelV1DiscountComponent> getDiscountComponents() {
125+
return discountComponents;
126+
}
127+
128+
/**
129+
* Breakdown of the discount into its components. This will be empty if there is no discount
130+
* present.
131+
* @param discountComponents discountComponents or {@code null} for none
132+
*/
133+
public GoogleCloudChannelV1Price setDiscountComponents(java.util.List<GoogleCloudChannelV1DiscountComponent> discountComponents) {
134+
this.discountComponents = discountComponents;
135+
return this;
136+
}
137+
97138
/**
98139
* Effective Price after applying the discounts.
99140
* @return value or {@code null} for none
@@ -128,6 +169,25 @@ public GoogleCloudChannelV1Price setExternalPriceUri(java.lang.String externalPr
128169
return this;
129170
}
130171

172+
/**
173+
* The time period with respect to which base and effective prices are defined. Example: 1 month,
174+
* 6 months, 1 year, etc.
175+
* @return value or {@code null} for none
176+
*/
177+
public GoogleCloudChannelV1Period getPricePeriod() {
178+
return pricePeriod;
179+
}
180+
181+
/**
182+
* The time period with respect to which base and effective prices are defined. Example: 1 month,
183+
* 6 months, 1 year, etc.
184+
* @param pricePeriod pricePeriod or {@code null} for none
185+
*/
186+
public GoogleCloudChannelV1Price setPricePeriod(GoogleCloudChannelV1Period pricePeriod) {
187+
this.pricePeriod = pricePeriod;
188+
return this;
189+
}
190+
131191
@Override
132192
public GoogleCloudChannelV1Price set(String fieldName, Object value) {
133193
return (GoogleCloudChannelV1Price) super.set(fieldName, value);

clients/google-api-services-cloudchannel/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-cloudchannel</artifactId>
11-
<version>v1-rev20250614-2.0.0</version>
12-
<name>Cloud Channel API v1-rev20250614-2.0.0</name>
11+
<version>v1-rev20250809-2.0.0</version>
12+
<name>Cloud Channel API v1-rev20250809-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-cloudchannel/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-cloudchannel</artifactId>
25-
<version>v1-rev20250614-2.0.0</version>
25+
<version>v1-rev20250809-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-cloudchannel:v1-rev20250614-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudchannel:v1-rev20250809-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)