@@ -441,6 +441,138 @@ public DecodeIntegrityToken set(String parameterName, Object value) {
441
441
return (DecodeIntegrityToken ) super .set (parameterName , value );
442
442
}
443
443
}
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
+ }
444
576
445
577
}
446
578
0 commit comments