@@ -1062,317 +1062,6 @@ public Patch set(String parameterName, Object value) {
1062
1062
}
1063
1063
}
1064
1064
1065
- /**
1066
- * An accessor for creating requests from the Accounttax collection.
1067
- *
1068
- * <p>The typical use is:</p>
1069
- * <pre>
1070
- * {@code Merchant merchantapi = new Merchant(...);}
1071
- * {@code Merchant.Accounttax.List request = merchantapi.accounttax().list(parameters ...)}
1072
- * </pre>
1073
- *
1074
- * @return the resource collection
1075
- */
1076
- public Accounttax accounttax () {
1077
- return new Accounttax ();
1078
- }
1079
-
1080
- /**
1081
- * The "accounttax" collection of methods.
1082
- */
1083
- public class Accounttax {
1084
-
1085
- /**
1086
- * Returns the tax rules that match the conditions of GetAccountTaxRequest
1087
- *
1088
- * Create a request for the method "accounttax.get".
1089
- *
1090
- * This request holds the parameters needed by the merchantapi server. After setting any optional
1091
- * parameters, call the {@link Get#execute()} method to invoke the remote operation.
1092
- *
1093
- * @param name Required. The name from which tax settings will be retrieved
1094
- * @return the request
1095
- */
1096
- public Get get (java .lang .String name ) throws java .io .IOException {
1097
- Get result = new Get (name );
1098
- initialize (result );
1099
- return result ;
1100
- }
1101
-
1102
- public class Get extends MerchantRequest <com .google .api .services .merchantapi .accounts_v1beta .model .AccountTax > {
1103
-
1104
- private static final String REST_PATH = "accounts/v1beta/{+name}" ;
1105
-
1106
- private final java .util .regex .Pattern NAME_PATTERN =
1107
- java .util .regex .Pattern .compile ("^accounts/[^/]+/accounttax/[^/]+$" );
1108
-
1109
- /**
1110
- * Returns the tax rules that match the conditions of GetAccountTaxRequest
1111
- *
1112
- * Create a request for the method "accounttax.get".
1113
- *
1114
- * This request holds the parameters needed by the the merchantapi server. After setting any
1115
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
1116
- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1117
- * must be called to initialize this instance immediately after invoking the constructor. </p>
1118
- *
1119
- * @param name Required. The name from which tax settings will be retrieved
1120
- * @since 1.13
1121
- */
1122
- protected Get (java .lang .String name ) {
1123
- super (Merchant .this , "GET" , REST_PATH , null , com .google .api .services .merchantapi .accounts_v1beta .model .AccountTax .class );
1124
- this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1125
- if (!getSuppressPatternChecks ()) {
1126
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1127
- "Parameter name must conform to the pattern " +
1128
- "^accounts/[^/]+/accounttax/[^/]+$" );
1129
- }
1130
- }
1131
-
1132
- @ Override
1133
- public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
1134
- return super .executeUsingHead ();
1135
- }
1136
-
1137
- @ Override
1138
- public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
1139
- return super .buildHttpRequestUsingHead ();
1140
- }
1141
-
1142
- @ Override
1143
- public Get set$Xgafv (java .lang .String $Xgafv ) {
1144
- return (Get ) super .set$Xgafv ($Xgafv );
1145
- }
1146
-
1147
- @ Override
1148
- public Get setAccessToken (java .lang .String accessToken ) {
1149
- return (Get ) super .setAccessToken (accessToken );
1150
- }
1151
-
1152
- @ Override
1153
- public Get setAlt (java .lang .String alt ) {
1154
- return (Get ) super .setAlt (alt );
1155
- }
1156
-
1157
- @ Override
1158
- public Get setCallback (java .lang .String callback ) {
1159
- return (Get ) super .setCallback (callback );
1160
- }
1161
-
1162
- @ Override
1163
- public Get setFields (java .lang .String fields ) {
1164
- return (Get ) super .setFields (fields );
1165
- }
1166
-
1167
- @ Override
1168
- public Get setKey (java .lang .String key ) {
1169
- return (Get ) super .setKey (key );
1170
- }
1171
-
1172
- @ Override
1173
- public Get setOauthToken (java .lang .String oauthToken ) {
1174
- return (Get ) super .setOauthToken (oauthToken );
1175
- }
1176
-
1177
- @ Override
1178
- public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
1179
- return (Get ) super .setPrettyPrint (prettyPrint );
1180
- }
1181
-
1182
- @ Override
1183
- public Get setQuotaUser (java .lang .String quotaUser ) {
1184
- return (Get ) super .setQuotaUser (quotaUser );
1185
- }
1186
-
1187
- @ Override
1188
- public Get setUploadType (java .lang .String uploadType ) {
1189
- return (Get ) super .setUploadType (uploadType );
1190
- }
1191
-
1192
- @ Override
1193
- public Get setUploadProtocol (java .lang .String uploadProtocol ) {
1194
- return (Get ) super .setUploadProtocol (uploadProtocol );
1195
- }
1196
-
1197
- /** Required. The name from which tax settings will be retrieved */
1198
- @ com .google .api .client .util .Key
1199
- private java .lang .String name ;
1200
-
1201
- /** Required. The name from which tax settings will be retrieved
1202
- */
1203
- public java .lang .String getName () {
1204
- return name ;
1205
- }
1206
-
1207
- /** Required. The name from which tax settings will be retrieved */
1208
- public Get setName (java .lang .String name ) {
1209
- if (!getSuppressPatternChecks ()) {
1210
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1211
- "Parameter name must conform to the pattern " +
1212
- "^accounts/[^/]+/accounttax/[^/]+$" );
1213
- }
1214
- this .name = name ;
1215
- return this ;
1216
- }
1217
-
1218
- @ Override
1219
- public Get set (String parameterName , Object value ) {
1220
- return (Get ) super .set (parameterName , value );
1221
- }
1222
- }
1223
- /**
1224
- * Updates the tax settings of the account.
1225
- *
1226
- * Create a request for the method "accounttax.patch".
1227
- *
1228
- * This request holds the parameters needed by the merchantapi server. After setting any optional
1229
- * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1230
- *
1231
- * @param name Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"
1232
- * @param content the {@link com.google.api.services.merchantapi.accounts_v1beta.model.AccountTax}
1233
- * @return the request
1234
- */
1235
- public Patch patch (java .lang .String name , com .google .api .services .merchantapi .accounts_v1beta .model .AccountTax content ) throws java .io .IOException {
1236
- Patch result = new Patch (name , content );
1237
- initialize (result );
1238
- return result ;
1239
- }
1240
-
1241
- public class Patch extends MerchantRequest <com .google .api .services .merchantapi .accounts_v1beta .model .AccountTax > {
1242
-
1243
- private static final String REST_PATH = "accounts/v1beta/{+name}" ;
1244
-
1245
- private final java .util .regex .Pattern NAME_PATTERN =
1246
- java .util .regex .Pattern .compile ("^accounts/[^/]+/accounttax/[^/]+$" );
1247
-
1248
- /**
1249
- * Updates the tax settings of the account.
1250
- *
1251
- * Create a request for the method "accounttax.patch".
1252
- *
1253
- * This request holds the parameters needed by the the merchantapi server. After setting any
1254
- * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1255
- * <p> {@link
1256
- * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1257
- * be called to initialize this instance immediately after invoking the constructor. </p>
1258
- *
1259
- * @param name Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"
1260
- * @param content the {@link com.google.api.services.merchantapi.accounts_v1beta.model.AccountTax}
1261
- * @since 1.13
1262
- */
1263
- protected Patch (java .lang .String name , com .google .api .services .merchantapi .accounts_v1beta .model .AccountTax content ) {
1264
- super (Merchant .this , "PATCH" , REST_PATH , content , com .google .api .services .merchantapi .accounts_v1beta .model .AccountTax .class );
1265
- this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1266
- if (!getSuppressPatternChecks ()) {
1267
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1268
- "Parameter name must conform to the pattern " +
1269
- "^accounts/[^/]+/accounttax/[^/]+$" );
1270
- }
1271
- }
1272
-
1273
- @ Override
1274
- public Patch set$Xgafv (java .lang .String $Xgafv ) {
1275
- return (Patch ) super .set$Xgafv ($Xgafv );
1276
- }
1277
-
1278
- @ Override
1279
- public Patch setAccessToken (java .lang .String accessToken ) {
1280
- return (Patch ) super .setAccessToken (accessToken );
1281
- }
1282
-
1283
- @ Override
1284
- public Patch setAlt (java .lang .String alt ) {
1285
- return (Patch ) super .setAlt (alt );
1286
- }
1287
-
1288
- @ Override
1289
- public Patch setCallback (java .lang .String callback ) {
1290
- return (Patch ) super .setCallback (callback );
1291
- }
1292
-
1293
- @ Override
1294
- public Patch setFields (java .lang .String fields ) {
1295
- return (Patch ) super .setFields (fields );
1296
- }
1297
-
1298
- @ Override
1299
- public Patch setKey (java .lang .String key ) {
1300
- return (Patch ) super .setKey (key );
1301
- }
1302
-
1303
- @ Override
1304
- public Patch setOauthToken (java .lang .String oauthToken ) {
1305
- return (Patch ) super .setOauthToken (oauthToken );
1306
- }
1307
-
1308
- @ Override
1309
- public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
1310
- return (Patch ) super .setPrettyPrint (prettyPrint );
1311
- }
1312
-
1313
- @ Override
1314
- public Patch setQuotaUser (java .lang .String quotaUser ) {
1315
- return (Patch ) super .setQuotaUser (quotaUser );
1316
- }
1317
-
1318
- @ Override
1319
- public Patch setUploadType (java .lang .String uploadType ) {
1320
- return (Patch ) super .setUploadType (uploadType );
1321
- }
1322
-
1323
- @ Override
1324
- public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
1325
- return (Patch ) super .setUploadProtocol (uploadProtocol );
1326
- }
1327
-
1328
- /**
1329
- * Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"
1330
- */
1331
- @ com .google .api .client .util .Key
1332
- private java .lang .String name ;
1333
-
1334
- /** Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"
1335
- */
1336
- public java .lang .String getName () {
1337
- return name ;
1338
- }
1339
-
1340
- /**
1341
- * Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"
1342
- */
1343
- public Patch setName (java .lang .String name ) {
1344
- if (!getSuppressPatternChecks ()) {
1345
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1346
- "Parameter name must conform to the pattern " +
1347
- "^accounts/[^/]+/accounttax/[^/]+$" );
1348
- }
1349
- this .name = name ;
1350
- return this ;
1351
- }
1352
-
1353
- /** The list of fields to be updated */
1354
- @ com .google .api .client .util .Key
1355
- private String updateMask ;
1356
-
1357
- /** The list of fields to be updated
1358
- */
1359
- public String getUpdateMask () {
1360
- return updateMask ;
1361
- }
1362
-
1363
- /** The list of fields to be updated */
1364
- public Patch setUpdateMask (String updateMask ) {
1365
- this .updateMask = updateMask ;
1366
- return this ;
1367
- }
1368
-
1369
- @ Override
1370
- public Patch set (String parameterName , Object value ) {
1371
- return (Patch ) super .set (parameterName , value );
1372
- }
1373
- }
1374
-
1375
- }
1376
1065
/**
1377
1066
* An accessor for creating requests from the BusinessIdentity collection.
1378
1067
*
0 commit comments