@@ -317,6 +317,196 @@ public Get set(String parameterName, Object value) {
317
317
return (Get ) super .set (parameterName , value );
318
318
}
319
319
}
320
+ /**
321
+ * Lists platforms for a specified account.
322
+ *
323
+ * Create a request for the method "platforms.list".
324
+ *
325
+ * This request holds the parameters needed by the adsenseplatform server. After setting any
326
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
327
+ *
328
+ * @param parent Required. The account which owns the platforms. Format: accounts/{account}
329
+ * @return the request
330
+ */
331
+ public List list (java .lang .String parent ) throws java .io .IOException {
332
+ List result = new List (parent );
333
+ initialize (result );
334
+ return result ;
335
+ }
336
+
337
+ public class List extends AdSensePlatformRequest <com .google .api .services .adsenseplatform .v1alpha .model .ListPlatformsResponse > {
338
+
339
+ private static final String REST_PATH = "v1alpha/{+parent}/platforms" ;
340
+
341
+ private final java .util .regex .Pattern PARENT_PATTERN =
342
+ java .util .regex .Pattern .compile ("^accounts/[^/]+$" );
343
+
344
+ /**
345
+ * Lists platforms for a specified account.
346
+ *
347
+ * Create a request for the method "platforms.list".
348
+ *
349
+ * This request holds the parameters needed by the the adsenseplatform server. After setting any
350
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
351
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
352
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
353
+ *
354
+ * @param parent Required. The account which owns the platforms. Format: accounts/{account}
355
+ * @since 1.13
356
+ */
357
+ protected List (java .lang .String parent ) {
358
+ super (AdSensePlatform .this , "GET" , REST_PATH , null , com .google .api .services .adsenseplatform .v1alpha .model .ListPlatformsResponse .class );
359
+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
360
+ if (!getSuppressPatternChecks ()) {
361
+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
362
+ "Parameter parent must conform to the pattern " +
363
+ "^accounts/[^/]+$" );
364
+ }
365
+ }
366
+
367
+ @ Override
368
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
369
+ return super .executeUsingHead ();
370
+ }
371
+
372
+ @ Override
373
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
374
+ return super .buildHttpRequestUsingHead ();
375
+ }
376
+
377
+ @ Override
378
+ public List set$Xgafv (java .lang .String $Xgafv ) {
379
+ return (List ) super .set$Xgafv ($Xgafv );
380
+ }
381
+
382
+ @ Override
383
+ public List setAccessToken (java .lang .String accessToken ) {
384
+ return (List ) super .setAccessToken (accessToken );
385
+ }
386
+
387
+ @ Override
388
+ public List setAlt (java .lang .String alt ) {
389
+ return (List ) super .setAlt (alt );
390
+ }
391
+
392
+ @ Override
393
+ public List setCallback (java .lang .String callback ) {
394
+ return (List ) super .setCallback (callback );
395
+ }
396
+
397
+ @ Override
398
+ public List setFields (java .lang .String fields ) {
399
+ return (List ) super .setFields (fields );
400
+ }
401
+
402
+ @ Override
403
+ public List setKey (java .lang .String key ) {
404
+ return (List ) super .setKey (key );
405
+ }
406
+
407
+ @ Override
408
+ public List setOauthToken (java .lang .String oauthToken ) {
409
+ return (List ) super .setOauthToken (oauthToken );
410
+ }
411
+
412
+ @ Override
413
+ public List setPrettyPrint (java .lang .Boolean prettyPrint ) {
414
+ return (List ) super .setPrettyPrint (prettyPrint );
415
+ }
416
+
417
+ @ Override
418
+ public List setQuotaUser (java .lang .String quotaUser ) {
419
+ return (List ) super .setQuotaUser (quotaUser );
420
+ }
421
+
422
+ @ Override
423
+ public List setUploadType (java .lang .String uploadType ) {
424
+ return (List ) super .setUploadType (uploadType );
425
+ }
426
+
427
+ @ Override
428
+ public List setUploadProtocol (java .lang .String uploadProtocol ) {
429
+ return (List ) super .setUploadProtocol (uploadProtocol );
430
+ }
431
+
432
+ /** Required. The account which owns the platforms. Format: accounts/{account} */
433
+ @ com .google .api .client .util .Key
434
+ private java .lang .String parent ;
435
+
436
+ /** Required. The account which owns the platforms. Format: accounts/{account}
437
+ */
438
+ public java .lang .String getParent () {
439
+ return parent ;
440
+ }
441
+
442
+ /** Required. The account which owns the platforms. Format: accounts/{account} */
443
+ public List setParent (java .lang .String parent ) {
444
+ if (!getSuppressPatternChecks ()) {
445
+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
446
+ "Parameter parent must conform to the pattern " +
447
+ "^accounts/[^/]+$" );
448
+ }
449
+ this .parent = parent ;
450
+ return this ;
451
+ }
452
+
453
+ /**
454
+ * Optional. The maximum number of platforms to include in the response, used for paging. If
455
+ * unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values
456
+ * above 10000 will be coerced to 10000.
457
+ */
458
+ @ com .google .api .client .util .Key
459
+ private java .lang .Integer pageSize ;
460
+
461
+ /** Optional. The maximum number of platforms to include in the response, used for paging. If
462
+ unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values above
463
+ 10000 will be coerced to 10000.
464
+ */
465
+ public java .lang .Integer getPageSize () {
466
+ return pageSize ;
467
+ }
468
+
469
+ /**
470
+ * Optional. The maximum number of platforms to include in the response, used for paging. If
471
+ * unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values
472
+ * above 10000 will be coerced to 10000.
473
+ */
474
+ public List setPageSize (java .lang .Integer pageSize ) {
475
+ this .pageSize = pageSize ;
476
+ return this ;
477
+ }
478
+
479
+ /**
480
+ * Optional. A page token, received from a previous `ListPlatforms` call. Provide this to
481
+ * retrieve the subsequent page. When paginating, all other parameters provided to
482
+ * `ListPlatforms` must match the call that provided the page token.
483
+ */
484
+ @ com .google .api .client .util .Key
485
+ private java .lang .String pageToken ;
486
+
487
+ /** Optional. A page token, received from a previous `ListPlatforms` call. Provide this to retrieve the
488
+ subsequent page. When paginating, all other parameters provided to `ListPlatforms` must match the
489
+ call that provided the page token.
490
+ */
491
+ public java .lang .String getPageToken () {
492
+ return pageToken ;
493
+ }
494
+
495
+ /**
496
+ * Optional. A page token, received from a previous `ListPlatforms` call. Provide this to
497
+ * retrieve the subsequent page. When paginating, all other parameters provided to
498
+ * `ListPlatforms` must match the call that provided the page token.
499
+ */
500
+ public List setPageToken (java .lang .String pageToken ) {
501
+ this .pageToken = pageToken ;
502
+ return this ;
503
+ }
504
+
505
+ @ Override
506
+ public List set (String parameterName , Object value ) {
507
+ return (List ) super .set (parameterName , value );
508
+ }
509
+ }
320
510
321
511
}
322
512
}
0 commit comments