@@ -1220,184 +1220,6 @@ public Get set(String parameterName, Object value) {
1220
1220
return (Get ) super .set (parameterName , value );
1221
1221
}
1222
1222
}
1223
- /**
1224
- * Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can
1225
- * only be called on a multi-client account, otherwise it'll return an error.
1226
- *
1227
- * Create a request for the method "accounttax.list".
1228
- *
1229
- * This request holds the parameters needed by the merchantapi server. After setting any optional
1230
- * parameters, call the {@link List#execute()} method to invoke the remote operation.
1231
- *
1232
- * @param parent Required. The parent, which owns this collection of account tax. Format: accounts/{account}
1233
- * @return the request
1234
- */
1235
- public List list (java .lang .String parent ) throws java .io .IOException {
1236
- List result = new List (parent );
1237
- initialize (result );
1238
- return result ;
1239
- }
1240
-
1241
- public class List extends MerchantRequest <com .google .api .services .merchantapi .accounts_v1beta .model .ListAccountTaxResponse > {
1242
-
1243
- private static final String REST_PATH = "accounts/v1beta/{+parent}/accounttax" ;
1244
-
1245
- private final java .util .regex .Pattern PARENT_PATTERN =
1246
- java .util .regex .Pattern .compile ("^accounts/[^/]+$" );
1247
-
1248
- /**
1249
- * Lists the tax settings of the sub-accounts only in your Merchant Center account. This method
1250
- * can only be called on a multi-client account, otherwise it'll return an error.
1251
- *
1252
- * Create a request for the method "accounttax.list".
1253
- *
1254
- * This request holds the parameters needed by the the merchantapi server. After setting any
1255
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
1256
- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1257
- * must be called to initialize this instance immediately after invoking the constructor. </p>
1258
- *
1259
- * @param parent Required. The parent, which owns this collection of account tax. Format: accounts/{account}
1260
- * @since 1.13
1261
- */
1262
- protected List (java .lang .String parent ) {
1263
- super (Merchant .this , "GET" , REST_PATH , null , com .google .api .services .merchantapi .accounts_v1beta .model .ListAccountTaxResponse .class );
1264
- this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
1265
- if (!getSuppressPatternChecks ()) {
1266
- com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
1267
- "Parameter parent must conform to the pattern " +
1268
- "^accounts/[^/]+$" );
1269
- }
1270
- }
1271
-
1272
- @ Override
1273
- public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
1274
- return super .executeUsingHead ();
1275
- }
1276
-
1277
- @ Override
1278
- public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
1279
- return super .buildHttpRequestUsingHead ();
1280
- }
1281
-
1282
- @ Override
1283
- public List set$Xgafv (java .lang .String $Xgafv ) {
1284
- return (List ) super .set$Xgafv ($Xgafv );
1285
- }
1286
-
1287
- @ Override
1288
- public List setAccessToken (java .lang .String accessToken ) {
1289
- return (List ) super .setAccessToken (accessToken );
1290
- }
1291
-
1292
- @ Override
1293
- public List setAlt (java .lang .String alt ) {
1294
- return (List ) super .setAlt (alt );
1295
- }
1296
-
1297
- @ Override
1298
- public List setCallback (java .lang .String callback ) {
1299
- return (List ) super .setCallback (callback );
1300
- }
1301
-
1302
- @ Override
1303
- public List setFields (java .lang .String fields ) {
1304
- return (List ) super .setFields (fields );
1305
- }
1306
-
1307
- @ Override
1308
- public List setKey (java .lang .String key ) {
1309
- return (List ) super .setKey (key );
1310
- }
1311
-
1312
- @ Override
1313
- public List setOauthToken (java .lang .String oauthToken ) {
1314
- return (List ) super .setOauthToken (oauthToken );
1315
- }
1316
-
1317
- @ Override
1318
- public List setPrettyPrint (java .lang .Boolean prettyPrint ) {
1319
- return (List ) super .setPrettyPrint (prettyPrint );
1320
- }
1321
-
1322
- @ Override
1323
- public List setQuotaUser (java .lang .String quotaUser ) {
1324
- return (List ) super .setQuotaUser (quotaUser );
1325
- }
1326
-
1327
- @ Override
1328
- public List setUploadType (java .lang .String uploadType ) {
1329
- return (List ) super .setUploadType (uploadType );
1330
- }
1331
-
1332
- @ Override
1333
- public List setUploadProtocol (java .lang .String uploadProtocol ) {
1334
- return (List ) super .setUploadProtocol (uploadProtocol );
1335
- }
1336
-
1337
- /**
1338
- * Required. The parent, which owns this collection of account tax. Format:
1339
- * accounts/{account}
1340
- */
1341
- @ com .google .api .client .util .Key
1342
- private java .lang .String parent ;
1343
-
1344
- /** Required. The parent, which owns this collection of account tax. Format: accounts/{account}
1345
- */
1346
- public java .lang .String getParent () {
1347
- return parent ;
1348
- }
1349
-
1350
- /**
1351
- * Required. The parent, which owns this collection of account tax. Format:
1352
- * accounts/{account}
1353
- */
1354
- public List setParent (java .lang .String parent ) {
1355
- if (!getSuppressPatternChecks ()) {
1356
- com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
1357
- "Parameter parent must conform to the pattern " +
1358
- "^accounts/[^/]+$" );
1359
- }
1360
- this .parent = parent ;
1361
- return this ;
1362
- }
1363
-
1364
- /** The maximum number of tax settings to return in the response, used for paging. */
1365
- @ com .google .api .client .util .Key
1366
- private java .lang .Integer pageSize ;
1367
-
1368
- /** The maximum number of tax settings to return in the response, used for paging.
1369
- */
1370
- public java .lang .Integer getPageSize () {
1371
- return pageSize ;
1372
- }
1373
-
1374
- /** The maximum number of tax settings to return in the response, used for paging. */
1375
- public List setPageSize (java .lang .Integer pageSize ) {
1376
- this .pageSize = pageSize ;
1377
- return this ;
1378
- }
1379
-
1380
- /** The token returned by the previous request. */
1381
- @ com .google .api .client .util .Key
1382
- private java .lang .String pageToken ;
1383
-
1384
- /** The token returned by the previous request.
1385
- */
1386
- public java .lang .String getPageToken () {
1387
- return pageToken ;
1388
- }
1389
-
1390
- /** The token returned by the previous request. */
1391
- public List setPageToken (java .lang .String pageToken ) {
1392
- this .pageToken = pageToken ;
1393
- return this ;
1394
- }
1395
-
1396
- @ Override
1397
- public List set (String parameterName , Object value ) {
1398
- return (List ) super .set (parameterName , value );
1399
- }
1400
- }
1401
1223
/**
1402
1224
* Updates the tax settings of the account.
1403
1225
*
0 commit comments