Skip to content

Commit 85a34ed

Browse files
1 parent 7fa9b0b commit 85a34ed

File tree

7 files changed

+584
-6
lines changed

7 files changed

+584
-6
lines changed

clients/google-api-services-adsenseplatform/v1alpha/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-adsenseplatform</artifactId>
25-
<version>v1alpha-rev20250114-2.0.0</version>
25+
<version>v1alpha-rev20250115-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-adsenseplatform:v1alpha-rev20250114-2.0.0'
38+
implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250115-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-adsenseplatform/v1alpha/2.0.0/com/google/api/services/adsenseplatform/v1alpha/AdSensePlatform.java

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,224 @@ public List set(String parameterName, Object value) {
750750

751751
}
752752
}
753+
/**
754+
* An accessor for creating requests from the Groups collection.
755+
*
756+
* <p>The typical use is:</p>
757+
* <pre>
758+
* {@code AdSensePlatform adsenseplatform = new AdSensePlatform(...);}
759+
* {@code AdSensePlatform.Groups.List request = adsenseplatform.groups().list(parameters ...)}
760+
* </pre>
761+
*
762+
* @return the resource collection
763+
*/
764+
public Groups groups() {
765+
return new Groups();
766+
}
767+
768+
/**
769+
* The "groups" collection of methods.
770+
*/
771+
public class Groups {
772+
773+
/**
774+
* Lists Platform Groups for a specified Platform.
775+
*
776+
* Create a request for the method "groups.list".
777+
*
778+
* This request holds the parameters needed by the adsenseplatform server. After setting any
779+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
780+
*
781+
* @param parent Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
782+
* @return the request
783+
*/
784+
public List list(java.lang.String parent) throws java.io.IOException {
785+
List result = new List(parent);
786+
initialize(result);
787+
return result;
788+
}
789+
790+
public class List extends AdSensePlatformRequest<com.google.api.services.adsenseplatform.v1alpha.model.ListPlatformGroupsResponse> {
791+
792+
private static final String REST_PATH = "v1alpha/{+parent}/groups";
793+
794+
private final java.util.regex.Pattern PARENT_PATTERN =
795+
java.util.regex.Pattern.compile("^accounts/[^/]+/platforms/[^/]+$");
796+
797+
/**
798+
* Lists Platform Groups for a specified Platform.
799+
*
800+
* Create a request for the method "groups.list".
801+
*
802+
* This request holds the parameters needed by the the adsenseplatform server. After setting any
803+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
804+
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
805+
* must be called to initialize this instance immediately after invoking the constructor. </p>
806+
*
807+
* @param parent Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
808+
* @since 1.13
809+
*/
810+
protected List(java.lang.String parent) {
811+
super(AdSensePlatform.this, "GET", REST_PATH, null, com.google.api.services.adsenseplatform.v1alpha.model.ListPlatformGroupsResponse.class);
812+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
813+
if (!getSuppressPatternChecks()) {
814+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
815+
"Parameter parent must conform to the pattern " +
816+
"^accounts/[^/]+/platforms/[^/]+$");
817+
}
818+
}
819+
820+
@Override
821+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
822+
return super.executeUsingHead();
823+
}
824+
825+
@Override
826+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
827+
return super.buildHttpRequestUsingHead();
828+
}
829+
830+
@Override
831+
public List set$Xgafv(java.lang.String $Xgafv) {
832+
return (List) super.set$Xgafv($Xgafv);
833+
}
834+
835+
@Override
836+
public List setAccessToken(java.lang.String accessToken) {
837+
return (List) super.setAccessToken(accessToken);
838+
}
839+
840+
@Override
841+
public List setAlt(java.lang.String alt) {
842+
return (List) super.setAlt(alt);
843+
}
844+
845+
@Override
846+
public List setCallback(java.lang.String callback) {
847+
return (List) super.setCallback(callback);
848+
}
849+
850+
@Override
851+
public List setFields(java.lang.String fields) {
852+
return (List) super.setFields(fields);
853+
}
854+
855+
@Override
856+
public List setKey(java.lang.String key) {
857+
return (List) super.setKey(key);
858+
}
859+
860+
@Override
861+
public List setOauthToken(java.lang.String oauthToken) {
862+
return (List) super.setOauthToken(oauthToken);
863+
}
864+
865+
@Override
866+
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
867+
return (List) super.setPrettyPrint(prettyPrint);
868+
}
869+
870+
@Override
871+
public List setQuotaUser(java.lang.String quotaUser) {
872+
return (List) super.setQuotaUser(quotaUser);
873+
}
874+
875+
@Override
876+
public List setUploadType(java.lang.String uploadType) {
877+
return (List) super.setUploadType(uploadType);
878+
}
879+
880+
@Override
881+
public List setUploadProtocol(java.lang.String uploadProtocol) {
882+
return (List) super.setUploadProtocol(uploadProtocol);
883+
}
884+
885+
/**
886+
* Required. The name of the platform to retrieve. Format:
887+
* accounts/{account}/platforms/{platform}
888+
*/
889+
@com.google.api.client.util.Key
890+
private java.lang.String parent;
891+
892+
/** Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
893+
*/
894+
public java.lang.String getParent() {
895+
return parent;
896+
}
897+
898+
/**
899+
* Required. The name of the platform to retrieve. Format:
900+
* accounts/{account}/platforms/{platform}
901+
*/
902+
public List setParent(java.lang.String parent) {
903+
if (!getSuppressPatternChecks()) {
904+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
905+
"Parameter parent must conform to the pattern " +
906+
"^accounts/[^/]+/platforms/[^/]+$");
907+
}
908+
this.parent = parent;
909+
return this;
910+
}
911+
912+
/**
913+
* Optional. The maximum number of groups to include in the response, used for paging. If
914+
* unspecified, at most 10000 groups will be returned. The maximum value is 10000; values
915+
* above 10000 will be coerced to 10000.
916+
*/
917+
@com.google.api.client.util.Key
918+
private java.lang.Integer pageSize;
919+
920+
/** Optional. The maximum number of groups to include in the response, used for paging. If unspecified,
921+
at most 10000 groups will be returned. The maximum value is 10000; values above 10000 will be
922+
coerced to 10000.
923+
*/
924+
public java.lang.Integer getPageSize() {
925+
return pageSize;
926+
}
927+
928+
/**
929+
* Optional. The maximum number of groups to include in the response, used for paging. If
930+
* unspecified, at most 10000 groups will be returned. The maximum value is 10000; values
931+
* above 10000 will be coerced to 10000.
932+
*/
933+
public List setPageSize(java.lang.Integer pageSize) {
934+
this.pageSize = pageSize;
935+
return this;
936+
}
937+
938+
/**
939+
* Optional. A page token, received from a previous `ListPlatformGroups` call. Provide
940+
* this to retrieve the subsequent page. When paginating, all other parameters provided to
941+
* `ListPlatformGroups` must match the call that provided the page token.
942+
*/
943+
@com.google.api.client.util.Key
944+
private java.lang.String pageToken;
945+
946+
/** Optional. A page token, received from a previous `ListPlatformGroups` call. Provide this to
947+
retrieve the subsequent page. When paginating, all other parameters provided to
948+
`ListPlatformGroups` must match the call that provided the page token.
949+
*/
950+
public java.lang.String getPageToken() {
951+
return pageToken;
952+
}
953+
954+
/**
955+
* Optional. A page token, received from a previous `ListPlatformGroups` call. Provide
956+
* this to retrieve the subsequent page. When paginating, all other parameters provided to
957+
* `ListPlatformGroups` must match the call that provided the page token.
958+
*/
959+
public List setPageToken(java.lang.String pageToken) {
960+
this.pageToken = pageToken;
961+
return this;
962+
}
963+
964+
@Override
965+
public List set(String parameterName, Object value) {
966+
return (List) super.set(parameterName, value);
967+
}
968+
}
969+
970+
}
753971
}
754972
}
755973

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
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.adsenseplatform.v1alpha.model;
18+
19+
/**
20+
* A representation of a decimal value, such as 2.5. Clients may convert values into language-native
21+
* decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/j
22+
* ava.base/java/math/BigDecimal.html) or Python's
23+
* [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
24+
*
25+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
26+
* transmitted over HTTP when working with the AdSense Platform API. For a detailed explanation see:
27+
* <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>
28+
* </p>
29+
*
30+
* @author Google, Inc.
31+
*/
32+
@SuppressWarnings("javadoc")
33+
public final class Decimal extends com.google.api.client.json.GenericJson {
34+
35+
/**
36+
* The decimal value, as a string. The string representation consists of an optional sign, `+`
37+
* (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits ("the
38+
* integer"), optionally followed by a fraction, optionally followed by an exponent. An empty
39+
* string **should** be interpreted as `0`. The fraction consists of a decimal point followed by
40+
* zero or more decimal digits. The string must contain at least one digit in either the integer
41+
* or the fraction. The number formed by the sign, the integer and the fraction is referred to as
42+
* the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
43+
* followed by one or more decimal digits. Services **should** normalize decimal values before
44+
* storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - Replacing a
45+
* zero-length integer value with `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-
46+
* case, with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an explicitly-provided zero exponent
47+
* (`2.5E0` -> `2.5`). Services **may** perform additional normalization based on its own needs
48+
* and the internal decimal implementation selected, such as shifting the decimal point and
49+
* exponent value together (example: `2.5E-1` <-> `0.25`). Additionally, services **may** preserve
50+
* trailing zeroes in the fraction to indicate increased precision, but are not required to do so.
51+
* Note that only the `.` character is supported to divide the integer and the fraction; `,`
52+
* **should not** be supported regardless of locale. Additionally, thousand separators **should
53+
* not** be supported. If a service does support them, values **must** be normalized. The ENBF
54+
* grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand =
55+
* Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' |
56+
* '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range
57+
* of supported values, the maximum supported precision (total number of digits), and, if
58+
* applicable, the scale (number of digits after the decimal point), as well as how it behaves
59+
* when receiving out-of-bounds values. Services **may** choose to accept values passed as input
60+
* even when the value has a higher precision or scale than the service supports, and **should**
61+
* round the value to fit the supported scale. Alternatively, the service **may** error with `400
62+
* Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error
63+
* with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of
64+
* the supported range.
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private java.lang.String value;
69+
70+
/**
71+
* The decimal value, as a string. The string representation consists of an optional sign, `+`
72+
* (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits ("the
73+
* integer"), optionally followed by a fraction, optionally followed by an exponent. An empty
74+
* string **should** be interpreted as `0`. The fraction consists of a decimal point followed by
75+
* zero or more decimal digits. The string must contain at least one digit in either the integer
76+
* or the fraction. The number formed by the sign, the integer and the fraction is referred to as
77+
* the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
78+
* followed by one or more decimal digits. Services **should** normalize decimal values before
79+
* storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - Replacing a
80+
* zero-length integer value with `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-
81+
* case, with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an explicitly-provided zero exponent
82+
* (`2.5E0` -> `2.5`). Services **may** perform additional normalization based on its own needs
83+
* and the internal decimal implementation selected, such as shifting the decimal point and
84+
* exponent value together (example: `2.5E-1` <-> `0.25`). Additionally, services **may** preserve
85+
* trailing zeroes in the fraction to indicate increased precision, but are not required to do so.
86+
* Note that only the `.` character is supported to divide the integer and the fraction; `,`
87+
* **should not** be supported regardless of locale. Additionally, thousand separators **should
88+
* not** be supported. If a service does support them, values **must** be normalized. The ENBF
89+
* grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand =
90+
* Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' |
91+
* '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range
92+
* of supported values, the maximum supported precision (total number of digits), and, if
93+
* applicable, the scale (number of digits after the decimal point), as well as how it behaves
94+
* when receiving out-of-bounds values. Services **may** choose to accept values passed as input
95+
* even when the value has a higher precision or scale than the service supports, and **should**
96+
* round the value to fit the supported scale. Alternatively, the service **may** error with `400
97+
* Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error
98+
* with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of
99+
* the supported range.
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getValue() {
103+
return value;
104+
}
105+
106+
/**
107+
* The decimal value, as a string. The string representation consists of an optional sign, `+`
108+
* (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits ("the
109+
* integer"), optionally followed by a fraction, optionally followed by an exponent. An empty
110+
* string **should** be interpreted as `0`. The fraction consists of a decimal point followed by
111+
* zero or more decimal digits. The string must contain at least one digit in either the integer
112+
* or the fraction. The number formed by the sign, the integer and the fraction is referred to as
113+
* the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
114+
* followed by one or more decimal digits. Services **should** normalize decimal values before
115+
* storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - Replacing a
116+
* zero-length integer value with `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-
117+
* case, with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an explicitly-provided zero exponent
118+
* (`2.5E0` -> `2.5`). Services **may** perform additional normalization based on its own needs
119+
* and the internal decimal implementation selected, such as shifting the decimal point and
120+
* exponent value together (example: `2.5E-1` <-> `0.25`). Additionally, services **may** preserve
121+
* trailing zeroes in the fraction to indicate increased precision, but are not required to do so.
122+
* Note that only the `.` character is supported to divide the integer and the fraction; `,`
123+
* **should not** be supported regardless of locale. Additionally, thousand separators **should
124+
* not** be supported. If a service does support them, values **must** be normalized. The ENBF
125+
* grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand =
126+
* Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' |
127+
* '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range
128+
* of supported values, the maximum supported precision (total number of digits), and, if
129+
* applicable, the scale (number of digits after the decimal point), as well as how it behaves
130+
* when receiving out-of-bounds values. Services **may** choose to accept values passed as input
131+
* even when the value has a higher precision or scale than the service supports, and **should**
132+
* round the value to fit the supported scale. Alternatively, the service **may** error with `400
133+
* Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error
134+
* with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of
135+
* the supported range.
136+
* @param value value or {@code null} for none
137+
*/
138+
public Decimal setValue(java.lang.String value) {
139+
this.value = value;
140+
return this;
141+
}
142+
143+
@Override
144+
public Decimal set(String fieldName, Object value) {
145+
return (Decimal) super.set(fieldName, value);
146+
}
147+
148+
@Override
149+
public Decimal clone() {
150+
return (Decimal) super.clone();
151+
}
152+
153+
}

0 commit comments

Comments
 (0)