Skip to content

Commit bf1e0cf

Browse files
1 parent 3ac2c57 commit bf1e0cf

File tree

9 files changed

+548
-6
lines changed

9 files changed

+548
-6
lines changed

clients/google-api-services-playintegrity/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-playintegrity</artifactId>
25-
<version>v1-rev20250223-2.0.0</version>
25+
<version>v1-rev20250514-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-playintegrity:v1-rev20250223-2.0.0'
38+
implementation 'com.google.apis:google-api-services-playintegrity:v1-rev20250514-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-playintegrity/v1/2.0.0/com/google/api/services/playintegrity/v1/PlayIntegrity.java

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,138 @@ public DecodeIntegrityToken set(String parameterName, Object value) {
441441
return (DecodeIntegrityToken) super.set(parameterName, value);
442442
}
443443
}
444+
/**
445+
* Decodes the PC integrity token and returns the PC token payload.
446+
*
447+
* Create a request for the method "v1.decodePcIntegrityToken".
448+
*
449+
* This request holds the parameters needed by the playintegrity server. After setting any optional
450+
* parameters, call the {@link DecodePcIntegrityToken#execute()} method to invoke the remote
451+
* operation.
452+
*
453+
* @param packageName Package name of the app the attached integrity token belongs to.
454+
* @param content the {@link com.google.api.services.playintegrity.v1.model.DecodePcIntegrityTokenRequest}
455+
* @return the request
456+
*/
457+
public DecodePcIntegrityToken decodePcIntegrityToken(java.lang.String packageName, com.google.api.services.playintegrity.v1.model.DecodePcIntegrityTokenRequest content) throws java.io.IOException {
458+
DecodePcIntegrityToken result = new DecodePcIntegrityToken(packageName, content);
459+
initialize(result);
460+
return result;
461+
}
462+
463+
public class DecodePcIntegrityToken extends PlayIntegrityRequest<com.google.api.services.playintegrity.v1.model.DecodePcIntegrityTokenResponse> {
464+
465+
private static final String REST_PATH = "v1/{+packageName}:decodePcIntegrityToken";
466+
467+
private final java.util.regex.Pattern PACKAGE_NAME_PATTERN =
468+
java.util.regex.Pattern.compile("^[^/]+$");
469+
470+
/**
471+
* Decodes the PC integrity token and returns the PC token payload.
472+
*
473+
* Create a request for the method "v1.decodePcIntegrityToken".
474+
*
475+
* This request holds the parameters needed by the the playintegrity server. After setting any
476+
* optional parameters, call the {@link DecodePcIntegrityToken#execute()} method to invoke the
477+
* remote operation. <p> {@link DecodePcIntegrityToken#initialize(com.google.api.client.googleapis
478+
* .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
479+
* after invoking the constructor. </p>
480+
*
481+
* @param packageName Package name of the app the attached integrity token belongs to.
482+
* @param content the {@link com.google.api.services.playintegrity.v1.model.DecodePcIntegrityTokenRequest}
483+
* @since 1.13
484+
*/
485+
protected DecodePcIntegrityToken(java.lang.String packageName, com.google.api.services.playintegrity.v1.model.DecodePcIntegrityTokenRequest content) {
486+
super(PlayIntegrity.this, "POST", REST_PATH, content, com.google.api.services.playintegrity.v1.model.DecodePcIntegrityTokenResponse.class);
487+
this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified.");
488+
if (!getSuppressPatternChecks()) {
489+
com.google.api.client.util.Preconditions.checkArgument(PACKAGE_NAME_PATTERN.matcher(packageName).matches(),
490+
"Parameter packageName must conform to the pattern " +
491+
"^[^/]+$");
492+
}
493+
}
494+
495+
@Override
496+
public DecodePcIntegrityToken set$Xgafv(java.lang.String $Xgafv) {
497+
return (DecodePcIntegrityToken) super.set$Xgafv($Xgafv);
498+
}
499+
500+
@Override
501+
public DecodePcIntegrityToken setAccessToken(java.lang.String accessToken) {
502+
return (DecodePcIntegrityToken) super.setAccessToken(accessToken);
503+
}
504+
505+
@Override
506+
public DecodePcIntegrityToken setAlt(java.lang.String alt) {
507+
return (DecodePcIntegrityToken) super.setAlt(alt);
508+
}
509+
510+
@Override
511+
public DecodePcIntegrityToken setCallback(java.lang.String callback) {
512+
return (DecodePcIntegrityToken) super.setCallback(callback);
513+
}
514+
515+
@Override
516+
public DecodePcIntegrityToken setFields(java.lang.String fields) {
517+
return (DecodePcIntegrityToken) super.setFields(fields);
518+
}
519+
520+
@Override
521+
public DecodePcIntegrityToken setKey(java.lang.String key) {
522+
return (DecodePcIntegrityToken) super.setKey(key);
523+
}
524+
525+
@Override
526+
public DecodePcIntegrityToken setOauthToken(java.lang.String oauthToken) {
527+
return (DecodePcIntegrityToken) super.setOauthToken(oauthToken);
528+
}
529+
530+
@Override
531+
public DecodePcIntegrityToken setPrettyPrint(java.lang.Boolean prettyPrint) {
532+
return (DecodePcIntegrityToken) super.setPrettyPrint(prettyPrint);
533+
}
534+
535+
@Override
536+
public DecodePcIntegrityToken setQuotaUser(java.lang.String quotaUser) {
537+
return (DecodePcIntegrityToken) super.setQuotaUser(quotaUser);
538+
}
539+
540+
@Override
541+
public DecodePcIntegrityToken setUploadType(java.lang.String uploadType) {
542+
return (DecodePcIntegrityToken) super.setUploadType(uploadType);
543+
}
544+
545+
@Override
546+
public DecodePcIntegrityToken setUploadProtocol(java.lang.String uploadProtocol) {
547+
return (DecodePcIntegrityToken) super.setUploadProtocol(uploadProtocol);
548+
}
549+
550+
/** Package name of the app the attached integrity token belongs to. */
551+
@com.google.api.client.util.Key
552+
private java.lang.String packageName;
553+
554+
/** Package name of the app the attached integrity token belongs to.
555+
*/
556+
public java.lang.String getPackageName() {
557+
return packageName;
558+
}
559+
560+
/** Package name of the app the attached integrity token belongs to. */
561+
public DecodePcIntegrityToken setPackageName(java.lang.String packageName) {
562+
if (!getSuppressPatternChecks()) {
563+
com.google.api.client.util.Preconditions.checkArgument(PACKAGE_NAME_PATTERN.matcher(packageName).matches(),
564+
"Parameter packageName must conform to the pattern " +
565+
"^[^/]+$");
566+
}
567+
this.packageName = packageName;
568+
return this;
569+
}
570+
571+
@Override
572+
public DecodePcIntegrityToken set(String parameterName, Object value) {
573+
return (DecodePcIntegrityToken) super.set(parameterName, value);
574+
}
575+
}
444576

445577
}
446578

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.playintegrity.v1.model;
18+
19+
/**
20+
* Request to decode the PC integrity token.
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 Google Play Integrity API. For a detailed explanation
24+
* 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 DecodePcIntegrityTokenRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Encoded integrity token.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String integrityToken;
39+
40+
/**
41+
* Encoded integrity token.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getIntegrityToken() {
45+
return integrityToken;
46+
}
47+
48+
/**
49+
* Encoded integrity token.
50+
* @param integrityToken integrityToken or {@code null} for none
51+
*/
52+
public DecodePcIntegrityTokenRequest setIntegrityToken(java.lang.String integrityToken) {
53+
this.integrityToken = integrityToken;
54+
return this;
55+
}
56+
57+
@Override
58+
public DecodePcIntegrityTokenRequest set(String fieldName, Object value) {
59+
return (DecodePcIntegrityTokenRequest) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public DecodePcIntegrityTokenRequest clone() {
64+
return (DecodePcIntegrityTokenRequest) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.playintegrity.v1.model;
18+
19+
/**
20+
* Response containing the decoded PC integrity payload.
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 Google Play Integrity API. For a detailed explanation
24+
* 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 DecodePcIntegrityTokenResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Plain token payload generated from the decoded integrity token.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private PcTokenPayloadExternal tokenPayloadExternal;
39+
40+
/**
41+
* Plain token payload generated from the decoded integrity token.
42+
* @return value or {@code null} for none
43+
*/
44+
public PcTokenPayloadExternal getTokenPayloadExternal() {
45+
return tokenPayloadExternal;
46+
}
47+
48+
/**
49+
* Plain token payload generated from the decoded integrity token.
50+
* @param tokenPayloadExternal tokenPayloadExternal or {@code null} for none
51+
*/
52+
public DecodePcIntegrityTokenResponse setTokenPayloadExternal(PcTokenPayloadExternal tokenPayloadExternal) {
53+
this.tokenPayloadExternal = tokenPayloadExternal;
54+
return this;
55+
}
56+
57+
@Override
58+
public DecodePcIntegrityTokenResponse set(String fieldName, Object value) {
59+
return (DecodePcIntegrityTokenResponse) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public DecodePcIntegrityTokenResponse clone() {
64+
return (DecodePcIntegrityTokenResponse) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.playintegrity.v1.model;
18+
19+
/**
20+
* Contains the device attestation information.
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 Google Play Integrity API. For a detailed explanation
24+
* 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 PcDeviceIntegrity extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Details about the integrity of the device the app is running on.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<java.lang.String> deviceRecognitionVerdict;
39+
40+
/**
41+
* Details about the integrity of the device the app is running on.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<java.lang.String> getDeviceRecognitionVerdict() {
45+
return deviceRecognitionVerdict;
46+
}
47+
48+
/**
49+
* Details about the integrity of the device the app is running on.
50+
* @param deviceRecognitionVerdict deviceRecognitionVerdict or {@code null} for none
51+
*/
52+
public PcDeviceIntegrity setDeviceRecognitionVerdict(java.util.List<java.lang.String> deviceRecognitionVerdict) {
53+
this.deviceRecognitionVerdict = deviceRecognitionVerdict;
54+
return this;
55+
}
56+
57+
@Override
58+
public PcDeviceIntegrity set(String fieldName, Object value) {
59+
return (PcDeviceIntegrity) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public PcDeviceIntegrity clone() {
64+
return (PcDeviceIntegrity) super.clone();
65+
}
66+
67+
}

0 commit comments

Comments
 (0)