Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12291 manish.sha 1
/*
2
 * Copyright 2010 Google Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
 * in compliance with the License. You may obtain a copy of the License at
6
 *
7
 * http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 * Unless required by applicable law or agreed to in writing, software distributed under the License
10
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
 * or implied. See the License for the specific language governing permissions and limitations under
12
 * the License.
13
 */
14
/*
15
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
16
 * (build: 2014-07-09 17:08:39 UTC)
17
 * on 2014-07-23 at 21:49:03 UTC 
18
 * Modify at your own risk.
19
 */
20
 
21
package com.google.api.services.content;
22
 
23
/**
24
 * Service definition for ShoppingContent (v2).
25
 *
26
 * <p>
27
 * Manage product items, inventory, and Merchant Center accounts for Google Shopping.
28
 * </p>
29
 *
30
 * <p>
31
 * For more information about this service, see the
32
 * <a href="https://developers.google.com/shopping-content/v2/" target="_blank">API Documentation</a>
33
 * </p>
34
 *
35
 * <p>
36
 * This service uses {@link ShoppingContentRequestInitializer} to initialize global parameters via its
37
 * {@link Builder}.
38
 * </p>
39
 *
40
 * @since 1.3
41
 * @author Google, Inc.
42
 */
43
@SuppressWarnings("javadoc")
44
public class ShoppingContent extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient {
45
 
46
  // Note: Leave this static initializer at the top of the file.
47
  static {
48
    com.google.api.client.util.Preconditions.checkState(
49
        com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 &&
50
        com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 15,
51
        "You are currently running with version %s of google-api-client. " +
52
        "You need at least version 1.15 of google-api-client to run version " +
53
        "1.19.0 of the Content API for Shopping library.", com.google.api.client.googleapis.GoogleUtils.VERSION);
54
  }
55
 
56
  /**
57
   * The default encoded root URL of the service. This is determined when the library is generated
58
   * and normally should not be changed.
59
   *
60
   * @since 1.7
61
   */
62
  public static final String DEFAULT_ROOT_URL = "https://www.googleapis.com/";
63
 
64
  /**
65
   * The default encoded service path of the service. This is determined when the library is
66
   * generated and normally should not be changed.
67
   *
68
   * @since 1.7
69
   */
70
  public static final String DEFAULT_SERVICE_PATH = "content/v2/";
71
 
72
  /**
73
   * The default encoded base URL of the service. This is determined when the library is generated
74
   * and normally should not be changed.
75
   */
76
  public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH;
77
 
78
  /**
79
   * Constructor.
80
   *
81
   * <p>
82
   * Use {@link Builder} if you need to specify any of the optional parameters.
83
   * </p>
84
   *
85
   * @param transport HTTP transport, which should normally be:
86
   *        <ul>
87
   *        <li>Google App Engine:
88
   *        {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
89
   *        <li>Android: {@code newCompatibleTransport} from
90
   *        {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
91
   *        <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
92
   *        </li>
93
   *        </ul>
94
   * @param jsonFactory JSON factory, which may be:
95
   *        <ul>
96
   *        <li>Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}</li>
97
   *        <li>Google GSON: {@code com.google.api.client.json.gson.GsonFactory}</li>
98
   *        <li>Android Honeycomb or higher:
99
   *        {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}</li>
100
   *        </ul>
101
   * @param httpRequestInitializer HTTP request initializer or {@code null} for none
102
   * @since 1.7
103
   */
104
  public ShoppingContent(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory,
105
      com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
106
    this(new Builder(transport, jsonFactory, httpRequestInitializer));
107
  }
108
 
109
  /**
110
   * @param builder builder
111
   */
112
  ShoppingContent(Builder builder) {
113
    super(builder);
114
  }
115
 
116
  @Override
117
  protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws java.io.IOException {
118
    super.initialize(httpClientRequest);
119
  }
120
 
121
  /**
122
   * An accessor for creating requests from the Accounts collection.
123
   *
124
   * <p>The typical use is:</p>
125
   * <pre>
126
   *   {@code ShoppingContent content = new ShoppingContent(...);}
127
   *   {@code ShoppingContent.Accounts.List request = content.accounts().list(parameters ...)}
128
   * </pre>
129
   *
130
   * @return the resource collection
131
   */
132
  public Accounts accounts() {
133
    return new Accounts();
134
  }
135
 
136
  /**
137
   * The "accounts" collection of methods.
138
   */
139
  public class Accounts {
140
 
141
    /**
142
     * Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single
143
     * request.
144
     *
145
     * Create a request for the method "accounts.custombatch".
146
     *
147
     * This request holds the parameters needed by the content server.  After setting any optional
148
     * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.
149
     *
150
     * @param content the {@link com.google.api.services.content.model.AccountsCustomBatchRequest}
151
     * @return the request
152
     */
153
    public Custombatch custombatch(com.google.api.services.content.model.AccountsCustomBatchRequest content) throws java.io.IOException {
154
      Custombatch result = new Custombatch(content);
155
      initialize(result);
156
      return result;
157
    }
158
 
159
    public class Custombatch extends ShoppingContentRequest<com.google.api.services.content.model.AccountsCustomBatchResponse> {
160
 
161
      private static final String REST_PATH = "accounts/batch";
162
 
163
      /**
164
       * Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single
165
       * request.
166
       *
167
       * Create a request for the method "accounts.custombatch".
168
       *
169
       * This request holds the parameters needed by the the content server.  After setting any optional
170
       * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. <p>
171
       * {@link
172
       * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
173
       * must be called to initialize this instance immediately after invoking the constructor. </p>
174
       *
175
       * @param content the {@link com.google.api.services.content.model.AccountsCustomBatchRequest}
176
       * @since 1.13
177
       */
178
      protected Custombatch(com.google.api.services.content.model.AccountsCustomBatchRequest content) {
179
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.AccountsCustomBatchResponse.class);
180
      }
181
 
182
      @Override
183
      public Custombatch setAlt(java.lang.String alt) {
184
        return (Custombatch) super.setAlt(alt);
185
      }
186
 
187
      @Override
188
      public Custombatch setFields(java.lang.String fields) {
189
        return (Custombatch) super.setFields(fields);
190
      }
191
 
192
      @Override
193
      public Custombatch setKey(java.lang.String key) {
194
        return (Custombatch) super.setKey(key);
195
      }
196
 
197
      @Override
198
      public Custombatch setOauthToken(java.lang.String oauthToken) {
199
        return (Custombatch) super.setOauthToken(oauthToken);
200
      }
201
 
202
      @Override
203
      public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) {
204
        return (Custombatch) super.setPrettyPrint(prettyPrint);
205
      }
206
 
207
      @Override
208
      public Custombatch setQuotaUser(java.lang.String quotaUser) {
209
        return (Custombatch) super.setQuotaUser(quotaUser);
210
      }
211
 
212
      @Override
213
      public Custombatch setUserIp(java.lang.String userIp) {
214
        return (Custombatch) super.setUserIp(userIp);
215
      }
216
 
217
      @Override
218
      public Custombatch set(String parameterName, Object value) {
219
        return (Custombatch) super.set(parameterName, value);
220
      }
221
    }
222
    /**
223
     * Deletes a Merchant Center sub-account.
224
     *
225
     * Create a request for the method "accounts.delete".
226
     *
227
     * This request holds the parameters needed by the content server.  After setting any optional
228
     * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
229
     *
230
     * @param merchantId The ID of the managing account.
231
     * @param accountId The ID of the account.
232
     * @return the request
233
     */
234
    public Delete delete(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException {
235
      Delete result = new Delete(merchantId, accountId);
236
      initialize(result);
237
      return result;
238
    }
239
 
240
    public class Delete extends ShoppingContentRequest<Void> {
241
 
242
      private static final String REST_PATH = "{merchantId}/accounts/{accountId}";
243
 
244
      /**
245
       * Deletes a Merchant Center sub-account.
246
       *
247
       * Create a request for the method "accounts.delete".
248
       *
249
       * This request holds the parameters needed by the the content server.  After setting any optional
250
       * parameters, call the {@link Delete#execute()} method to invoke the remote operation. <p> {@link
251
       * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
252
       * be called to initialize this instance immediately after invoking the constructor. </p>
253
       *
254
       * @param merchantId The ID of the managing account.
255
       * @param accountId The ID of the account.
256
       * @since 1.13
257
       */
258
      protected Delete(java.math.BigInteger merchantId, java.math.BigInteger accountId) {
259
        super(ShoppingContent.this, "DELETE", REST_PATH, null, Void.class);
260
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
261
        this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified.");
262
      }
263
 
264
      @Override
265
      public Delete setAlt(java.lang.String alt) {
266
        return (Delete) super.setAlt(alt);
267
      }
268
 
269
      @Override
270
      public Delete setFields(java.lang.String fields) {
271
        return (Delete) super.setFields(fields);
272
      }
273
 
274
      @Override
275
      public Delete setKey(java.lang.String key) {
276
        return (Delete) super.setKey(key);
277
      }
278
 
279
      @Override
280
      public Delete setOauthToken(java.lang.String oauthToken) {
281
        return (Delete) super.setOauthToken(oauthToken);
282
      }
283
 
284
      @Override
285
      public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
286
        return (Delete) super.setPrettyPrint(prettyPrint);
287
      }
288
 
289
      @Override
290
      public Delete setQuotaUser(java.lang.String quotaUser) {
291
        return (Delete) super.setQuotaUser(quotaUser);
292
      }
293
 
294
      @Override
295
      public Delete setUserIp(java.lang.String userIp) {
296
        return (Delete) super.setUserIp(userIp);
297
      }
298
 
299
      /** The ID of the managing account. */
300
      @com.google.api.client.util.Key
301
      private java.math.BigInteger merchantId;
302
 
303
      /** The ID of the managing account.
304
       */
305
      public java.math.BigInteger getMerchantId() {
306
        return merchantId;
307
      }
308
 
309
      /** The ID of the managing account. */
310
      public Delete setMerchantId(java.math.BigInteger merchantId) {
311
        this.merchantId = merchantId;
312
        return this;
313
      }
314
 
315
      /** The ID of the account. */
316
      @com.google.api.client.util.Key
317
      private java.math.BigInteger accountId;
318
 
319
      /** The ID of the account.
320
       */
321
      public java.math.BigInteger getAccountId() {
322
        return accountId;
323
      }
324
 
325
      /** The ID of the account. */
326
      public Delete setAccountId(java.math.BigInteger accountId) {
327
        this.accountId = accountId;
328
        return this;
329
      }
330
 
331
      @Override
332
      public Delete set(String parameterName, Object value) {
333
        return (Delete) super.set(parameterName, value);
334
      }
335
    }
336
    /**
337
     * Retrieves a Merchant Center account.
338
     *
339
     * Create a request for the method "accounts.get".
340
     *
341
     * This request holds the parameters needed by the content server.  After setting any optional
342
     * parameters, call the {@link Get#execute()} method to invoke the remote operation.
343
     *
344
     * @param merchantId The ID of the managing account.
345
     * @param accountId The ID of the account.
346
     * @return the request
347
     */
348
    public Get get(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException {
349
      Get result = new Get(merchantId, accountId);
350
      initialize(result);
351
      return result;
352
    }
353
 
354
    public class Get extends ShoppingContentRequest<com.google.api.services.content.model.Account> {
355
 
356
      private static final String REST_PATH = "{merchantId}/accounts/{accountId}";
357
 
358
      /**
359
       * Retrieves a Merchant Center account.
360
       *
361
       * Create a request for the method "accounts.get".
362
       *
363
       * This request holds the parameters needed by the the content server.  After setting any optional
364
       * parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
365
       * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
366
       * called to initialize this instance immediately after invoking the constructor. </p>
367
       *
368
       * @param merchantId The ID of the managing account.
369
       * @param accountId The ID of the account.
370
       * @since 1.13
371
       */
372
      protected Get(java.math.BigInteger merchantId, java.math.BigInteger accountId) {
373
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.Account.class);
374
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
375
        this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified.");
376
      }
377
 
378
      @Override
379
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
380
        return super.executeUsingHead();
381
      }
382
 
383
      @Override
384
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
385
        return super.buildHttpRequestUsingHead();
386
      }
387
 
388
      @Override
389
      public Get setAlt(java.lang.String alt) {
390
        return (Get) super.setAlt(alt);
391
      }
392
 
393
      @Override
394
      public Get setFields(java.lang.String fields) {
395
        return (Get) super.setFields(fields);
396
      }
397
 
398
      @Override
399
      public Get setKey(java.lang.String key) {
400
        return (Get) super.setKey(key);
401
      }
402
 
403
      @Override
404
      public Get setOauthToken(java.lang.String oauthToken) {
405
        return (Get) super.setOauthToken(oauthToken);
406
      }
407
 
408
      @Override
409
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
410
        return (Get) super.setPrettyPrint(prettyPrint);
411
      }
412
 
413
      @Override
414
      public Get setQuotaUser(java.lang.String quotaUser) {
415
        return (Get) super.setQuotaUser(quotaUser);
416
      }
417
 
418
      @Override
419
      public Get setUserIp(java.lang.String userIp) {
420
        return (Get) super.setUserIp(userIp);
421
      }
422
 
423
      /** The ID of the managing account. */
424
      @com.google.api.client.util.Key
425
      private java.math.BigInteger merchantId;
426
 
427
      /** The ID of the managing account.
428
       */
429
      public java.math.BigInteger getMerchantId() {
430
        return merchantId;
431
      }
432
 
433
      /** The ID of the managing account. */
434
      public Get setMerchantId(java.math.BigInteger merchantId) {
435
        this.merchantId = merchantId;
436
        return this;
437
      }
438
 
439
      /** The ID of the account. */
440
      @com.google.api.client.util.Key
441
      private java.math.BigInteger accountId;
442
 
443
      /** The ID of the account.
444
       */
445
      public java.math.BigInteger getAccountId() {
446
        return accountId;
447
      }
448
 
449
      /** The ID of the account. */
450
      public Get setAccountId(java.math.BigInteger accountId) {
451
        this.accountId = accountId;
452
        return this;
453
      }
454
 
455
      @Override
456
      public Get set(String parameterName, Object value) {
457
        return (Get) super.set(parameterName, value);
458
      }
459
    }
460
    /**
461
     * Creates a Merchant Center sub-account.
462
     *
463
     * Create a request for the method "accounts.insert".
464
     *
465
     * This request holds the parameters needed by the content server.  After setting any optional
466
     * parameters, call the {@link Insert#execute()} method to invoke the remote operation.
467
     *
468
     * @param merchantId The ID of the managing account.
469
     * @param content the {@link com.google.api.services.content.model.Account}
470
     * @return the request
471
     */
472
    public Insert insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Account content) throws java.io.IOException {
473
      Insert result = new Insert(merchantId, content);
474
      initialize(result);
475
      return result;
476
    }
477
 
478
    public class Insert extends ShoppingContentRequest<com.google.api.services.content.model.Account> {
479
 
480
      private static final String REST_PATH = "{merchantId}/accounts";
481
 
482
      /**
483
       * Creates a Merchant Center sub-account.
484
       *
485
       * Create a request for the method "accounts.insert".
486
       *
487
       * This request holds the parameters needed by the the content server.  After setting any optional
488
       * parameters, call the {@link Insert#execute()} method to invoke the remote operation. <p> {@link
489
       * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
490
       * be called to initialize this instance immediately after invoking the constructor. </p>
491
       *
492
       * @param merchantId The ID of the managing account.
493
       * @param content the {@link com.google.api.services.content.model.Account}
494
       * @since 1.13
495
       */
496
      protected Insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Account content) {
497
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.Account.class);
498
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
499
        checkRequiredParameter(content, "content");
500
        checkRequiredParameter(content.getName(), "Account.getName()");
501
      }
502
 
503
      @Override
504
      public Insert setAlt(java.lang.String alt) {
505
        return (Insert) super.setAlt(alt);
506
      }
507
 
508
      @Override
509
      public Insert setFields(java.lang.String fields) {
510
        return (Insert) super.setFields(fields);
511
      }
512
 
513
      @Override
514
      public Insert setKey(java.lang.String key) {
515
        return (Insert) super.setKey(key);
516
      }
517
 
518
      @Override
519
      public Insert setOauthToken(java.lang.String oauthToken) {
520
        return (Insert) super.setOauthToken(oauthToken);
521
      }
522
 
523
      @Override
524
      public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
525
        return (Insert) super.setPrettyPrint(prettyPrint);
526
      }
527
 
528
      @Override
529
      public Insert setQuotaUser(java.lang.String quotaUser) {
530
        return (Insert) super.setQuotaUser(quotaUser);
531
      }
532
 
533
      @Override
534
      public Insert setUserIp(java.lang.String userIp) {
535
        return (Insert) super.setUserIp(userIp);
536
      }
537
 
538
      /** The ID of the managing account. */
539
      @com.google.api.client.util.Key
540
      private java.math.BigInteger merchantId;
541
 
542
      /** The ID of the managing account.
543
       */
544
      public java.math.BigInteger getMerchantId() {
545
        return merchantId;
546
      }
547
 
548
      /** The ID of the managing account. */
549
      public Insert setMerchantId(java.math.BigInteger merchantId) {
550
        this.merchantId = merchantId;
551
        return this;
552
      }
553
 
554
      @Override
555
      public Insert set(String parameterName, Object value) {
556
        return (Insert) super.set(parameterName, value);
557
      }
558
    }
559
    /**
560
     * Lists the sub-accounts in your Merchant Center account.
561
     *
562
     * Create a request for the method "accounts.list".
563
     *
564
     * This request holds the parameters needed by the content server.  After setting any optional
565
     * parameters, call the {@link List#execute()} method to invoke the remote operation.
566
     *
567
     * @param merchantId The ID of the managing account.
568
     * @return the request
569
     */
570
    public List list(java.math.BigInteger merchantId) throws java.io.IOException {
571
      List result = new List(merchantId);
572
      initialize(result);
573
      return result;
574
    }
575
 
576
    public class List extends ShoppingContentRequest<com.google.api.services.content.model.AccountsListResponse> {
577
 
578
      private static final String REST_PATH = "{merchantId}/accounts";
579
 
580
      /**
581
       * Lists the sub-accounts in your Merchant Center account.
582
       *
583
       * Create a request for the method "accounts.list".
584
       *
585
       * This request holds the parameters needed by the the content server.  After setting any optional
586
       * parameters, call the {@link List#execute()} method to invoke the remote operation. <p> {@link
587
       * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
588
       * called to initialize this instance immediately after invoking the constructor. </p>
589
       *
590
       * @param merchantId The ID of the managing account.
591
       * @since 1.13
592
       */
593
      protected List(java.math.BigInteger merchantId) {
594
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountsListResponse.class);
595
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
596
      }
597
 
598
      @Override
599
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
600
        return super.executeUsingHead();
601
      }
602
 
603
      @Override
604
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
605
        return super.buildHttpRequestUsingHead();
606
      }
607
 
608
      @Override
609
      public List setAlt(java.lang.String alt) {
610
        return (List) super.setAlt(alt);
611
      }
612
 
613
      @Override
614
      public List setFields(java.lang.String fields) {
615
        return (List) super.setFields(fields);
616
      }
617
 
618
      @Override
619
      public List setKey(java.lang.String key) {
620
        return (List) super.setKey(key);
621
      }
622
 
623
      @Override
624
      public List setOauthToken(java.lang.String oauthToken) {
625
        return (List) super.setOauthToken(oauthToken);
626
      }
627
 
628
      @Override
629
      public List setPrettyPrint(java.lang.Boolean prettyPrint) {
630
        return (List) super.setPrettyPrint(prettyPrint);
631
      }
632
 
633
      @Override
634
      public List setQuotaUser(java.lang.String quotaUser) {
635
        return (List) super.setQuotaUser(quotaUser);
636
      }
637
 
638
      @Override
639
      public List setUserIp(java.lang.String userIp) {
640
        return (List) super.setUserIp(userIp);
641
      }
642
 
643
      /** The ID of the managing account. */
644
      @com.google.api.client.util.Key
645
      private java.math.BigInteger merchantId;
646
 
647
      /** The ID of the managing account.
648
       */
649
      public java.math.BigInteger getMerchantId() {
650
        return merchantId;
651
      }
652
 
653
      /** The ID of the managing account. */
654
      public List setMerchantId(java.math.BigInteger merchantId) {
655
        this.merchantId = merchantId;
656
        return this;
657
      }
658
 
659
      /** The token returned by the previous request. */
660
      @com.google.api.client.util.Key
661
      private java.lang.String pageToken;
662
 
663
      /** The token returned by the previous request.
664
       */
665
      public java.lang.String getPageToken() {
666
        return pageToken;
667
      }
668
 
669
      /** The token returned by the previous request. */
670
      public List setPageToken(java.lang.String pageToken) {
671
        this.pageToken = pageToken;
672
        return this;
673
      }
674
 
675
      /** The maximum number of accounts to return in the response, used for paging. */
676
      @com.google.api.client.util.Key
677
      private java.lang.Long maxResults;
678
 
679
      /** The maximum number of accounts to return in the response, used for paging.
680
       */
681
      public java.lang.Long getMaxResults() {
682
        return maxResults;
683
      }
684
 
685
      /** The maximum number of accounts to return in the response, used for paging. */
686
      public List setMaxResults(java.lang.Long maxResults) {
687
        this.maxResults = maxResults;
688
        return this;
689
      }
690
 
691
      @Override
692
      public List set(String parameterName, Object value) {
693
        return (List) super.set(parameterName, value);
694
      }
695
    }
696
    /**
697
     * Updates a Merchant Center account. This method supports patch semantics.
698
     *
699
     * Create a request for the method "accounts.patch".
700
     *
701
     * This request holds the parameters needed by the content server.  After setting any optional
702
     * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
703
     *
704
     * @param merchantId The ID of the managing account.
705
     * @param accountId The ID of the account.
706
     * @param content the {@link com.google.api.services.content.model.Account}
707
     * @return the request
708
     */
709
    public Patch patch(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.Account content) throws java.io.IOException {
710
      Patch result = new Patch(merchantId, accountId, content);
711
      initialize(result);
712
      return result;
713
    }
714
 
715
    public class Patch extends ShoppingContentRequest<com.google.api.services.content.model.Account> {
716
 
717
      private static final String REST_PATH = "{merchantId}/accounts/{accountId}";
718
 
719
      /**
720
       * Updates a Merchant Center account. This method supports patch semantics.
721
       *
722
       * Create a request for the method "accounts.patch".
723
       *
724
       * This request holds the parameters needed by the the content server.  After setting any optional
725
       * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
726
       * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
727
       * be called to initialize this instance immediately after invoking the constructor. </p>
728
       *
729
       * @param merchantId The ID of the managing account.
730
       * @param accountId The ID of the account.
731
       * @param content the {@link com.google.api.services.content.model.Account}
732
       * @since 1.13
733
       */
734
      protected Patch(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.Account content) {
735
        super(ShoppingContent.this, "PATCH", REST_PATH, content, com.google.api.services.content.model.Account.class);
736
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
737
        this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified.");
738
      }
739
 
740
      @Override
741
      public Patch setAlt(java.lang.String alt) {
742
        return (Patch) super.setAlt(alt);
743
      }
744
 
745
      @Override
746
      public Patch setFields(java.lang.String fields) {
747
        return (Patch) super.setFields(fields);
748
      }
749
 
750
      @Override
751
      public Patch setKey(java.lang.String key) {
752
        return (Patch) super.setKey(key);
753
      }
754
 
755
      @Override
756
      public Patch setOauthToken(java.lang.String oauthToken) {
757
        return (Patch) super.setOauthToken(oauthToken);
758
      }
759
 
760
      @Override
761
      public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
762
        return (Patch) super.setPrettyPrint(prettyPrint);
763
      }
764
 
765
      @Override
766
      public Patch setQuotaUser(java.lang.String quotaUser) {
767
        return (Patch) super.setQuotaUser(quotaUser);
768
      }
769
 
770
      @Override
771
      public Patch setUserIp(java.lang.String userIp) {
772
        return (Patch) super.setUserIp(userIp);
773
      }
774
 
775
      /** The ID of the managing account. */
776
      @com.google.api.client.util.Key
777
      private java.math.BigInteger merchantId;
778
 
779
      /** The ID of the managing account.
780
       */
781
      public java.math.BigInteger getMerchantId() {
782
        return merchantId;
783
      }
784
 
785
      /** The ID of the managing account. */
786
      public Patch setMerchantId(java.math.BigInteger merchantId) {
787
        this.merchantId = merchantId;
788
        return this;
789
      }
790
 
791
      /** The ID of the account. */
792
      @com.google.api.client.util.Key
793
      private java.math.BigInteger accountId;
794
 
795
      /** The ID of the account.
796
       */
797
      public java.math.BigInteger getAccountId() {
798
        return accountId;
799
      }
800
 
801
      /** The ID of the account. */
802
      public Patch setAccountId(java.math.BigInteger accountId) {
803
        this.accountId = accountId;
804
        return this;
805
      }
806
 
807
      @Override
808
      public Patch set(String parameterName, Object value) {
809
        return (Patch) super.set(parameterName, value);
810
      }
811
    }
812
    /**
813
     * Updates a Merchant Center account.
814
     *
815
     * Create a request for the method "accounts.update".
816
     *
817
     * This request holds the parameters needed by the content server.  After setting any optional
818
     * parameters, call the {@link Update#execute()} method to invoke the remote operation.
819
     *
820
     * @param merchantId The ID of the managing account.
821
     * @param accountId The ID of the account.
822
     * @param content the {@link com.google.api.services.content.model.Account}
823
     * @return the request
824
     */
825
    public Update update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.Account content) throws java.io.IOException {
826
      Update result = new Update(merchantId, accountId, content);
827
      initialize(result);
828
      return result;
829
    }
830
 
831
    public class Update extends ShoppingContentRequest<com.google.api.services.content.model.Account> {
832
 
833
      private static final String REST_PATH = "{merchantId}/accounts/{accountId}";
834
 
835
      /**
836
       * Updates a Merchant Center account.
837
       *
838
       * Create a request for the method "accounts.update".
839
       *
840
       * This request holds the parameters needed by the the content server.  After setting any optional
841
       * parameters, call the {@link Update#execute()} method to invoke the remote operation. <p> {@link
842
       * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
843
       * be called to initialize this instance immediately after invoking the constructor. </p>
844
       *
845
       * @param merchantId The ID of the managing account.
846
       * @param accountId The ID of the account.
847
       * @param content the {@link com.google.api.services.content.model.Account}
848
       * @since 1.13
849
       */
850
      protected Update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.Account content) {
851
        super(ShoppingContent.this, "PUT", REST_PATH, content, com.google.api.services.content.model.Account.class);
852
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
853
        this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified.");
854
        checkRequiredParameter(content, "content");
855
        checkRequiredParameter(content.getName(), "Account.getName()");
856
      }
857
 
858
      @Override
859
      public Update setAlt(java.lang.String alt) {
860
        return (Update) super.setAlt(alt);
861
      }
862
 
863
      @Override
864
      public Update setFields(java.lang.String fields) {
865
        return (Update) super.setFields(fields);
866
      }
867
 
868
      @Override
869
      public Update setKey(java.lang.String key) {
870
        return (Update) super.setKey(key);
871
      }
872
 
873
      @Override
874
      public Update setOauthToken(java.lang.String oauthToken) {
875
        return (Update) super.setOauthToken(oauthToken);
876
      }
877
 
878
      @Override
879
      public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
880
        return (Update) super.setPrettyPrint(prettyPrint);
881
      }
882
 
883
      @Override
884
      public Update setQuotaUser(java.lang.String quotaUser) {
885
        return (Update) super.setQuotaUser(quotaUser);
886
      }
887
 
888
      @Override
889
      public Update setUserIp(java.lang.String userIp) {
890
        return (Update) super.setUserIp(userIp);
891
      }
892
 
893
      /** The ID of the managing account. */
894
      @com.google.api.client.util.Key
895
      private java.math.BigInteger merchantId;
896
 
897
      /** The ID of the managing account.
898
       */
899
      public java.math.BigInteger getMerchantId() {
900
        return merchantId;
901
      }
902
 
903
      /** The ID of the managing account. */
904
      public Update setMerchantId(java.math.BigInteger merchantId) {
905
        this.merchantId = merchantId;
906
        return this;
907
      }
908
 
909
      /** The ID of the account. */
910
      @com.google.api.client.util.Key
911
      private java.math.BigInteger accountId;
912
 
913
      /** The ID of the account.
914
       */
915
      public java.math.BigInteger getAccountId() {
916
        return accountId;
917
      }
918
 
919
      /** The ID of the account. */
920
      public Update setAccountId(java.math.BigInteger accountId) {
921
        this.accountId = accountId;
922
        return this;
923
      }
924
 
925
      @Override
926
      public Update set(String parameterName, Object value) {
927
        return (Update) super.set(parameterName, value);
928
      }
929
    }
930
 
931
  }
932
 
933
  /**
934
   * An accessor for creating requests from the Accountshipping collection.
935
   *
936
   * <p>The typical use is:</p>
937
   * <pre>
938
   *   {@code ShoppingContent content = new ShoppingContent(...);}
939
   *   {@code ShoppingContent.Accountshipping.List request = content.accountshipping().list(parameters ...)}
940
   * </pre>
941
   *
942
   * @return the resource collection
943
   */
944
  public Accountshipping accountshipping() {
945
    return new Accountshipping();
946
  }
947
 
948
  /**
949
   * The "accountshipping" collection of methods.
950
   */
951
  public class Accountshipping {
952
 
953
    /**
954
     * Updates the shipping settings of the account. This method supports patch semantics.
955
     *
956
     * Create a request for the method "accountshipping.patch".
957
     *
958
     * This request holds the parameters needed by the content server.  After setting any optional
959
     * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
960
     *
961
     * @param merchantId The ID of the managing account.
962
     * @param accountId The ID of the account for which to get/update account shipping settings.
963
     * @param content the {@link com.google.api.services.content.model.AccountShipping}
964
     * @return the request
965
     */
966
    public Patch patch(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountShipping content) throws java.io.IOException {
967
      Patch result = new Patch(merchantId, accountId, content);
968
      initialize(result);
969
      return result;
970
    }
971
 
972
    public class Patch extends ShoppingContentRequest<com.google.api.services.content.model.AccountShipping> {
973
 
974
      private static final String REST_PATH = "{merchantId}/accountshipping/{accountId}";
975
 
976
      /**
977
       * Updates the shipping settings of the account. This method supports patch semantics.
978
       *
979
       * Create a request for the method "accountshipping.patch".
980
       *
981
       * This request holds the parameters needed by the the content server.  After setting any optional
982
       * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
983
       * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
984
       * be called to initialize this instance immediately after invoking the constructor. </p>
985
       *
986
       * @param merchantId The ID of the managing account.
987
       * @param accountId The ID of the account for which to get/update account shipping settings.
988
       * @param content the {@link com.google.api.services.content.model.AccountShipping}
989
       * @since 1.13
990
       */
991
      protected Patch(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountShipping content) {
992
        super(ShoppingContent.this, "PATCH", REST_PATH, content, com.google.api.services.content.model.AccountShipping.class);
993
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
994
        this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified.");
995
      }
996
 
997
      @Override
998
      public Patch setAlt(java.lang.String alt) {
999
        return (Patch) super.setAlt(alt);
1000
      }
1001
 
1002
      @Override
1003
      public Patch setFields(java.lang.String fields) {
1004
        return (Patch) super.setFields(fields);
1005
      }
1006
 
1007
      @Override
1008
      public Patch setKey(java.lang.String key) {
1009
        return (Patch) super.setKey(key);
1010
      }
1011
 
1012
      @Override
1013
      public Patch setOauthToken(java.lang.String oauthToken) {
1014
        return (Patch) super.setOauthToken(oauthToken);
1015
      }
1016
 
1017
      @Override
1018
      public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
1019
        return (Patch) super.setPrettyPrint(prettyPrint);
1020
      }
1021
 
1022
      @Override
1023
      public Patch setQuotaUser(java.lang.String quotaUser) {
1024
        return (Patch) super.setQuotaUser(quotaUser);
1025
      }
1026
 
1027
      @Override
1028
      public Patch setUserIp(java.lang.String userIp) {
1029
        return (Patch) super.setUserIp(userIp);
1030
      }
1031
 
1032
      /** The ID of the managing account. */
1033
      @com.google.api.client.util.Key
1034
      private java.math.BigInteger merchantId;
1035
 
1036
      /** The ID of the managing account.
1037
       */
1038
      public java.math.BigInteger getMerchantId() {
1039
        return merchantId;
1040
      }
1041
 
1042
      /** The ID of the managing account. */
1043
      public Patch setMerchantId(java.math.BigInteger merchantId) {
1044
        this.merchantId = merchantId;
1045
        return this;
1046
      }
1047
 
1048
      /** The ID of the account for which to get/update account shipping settings. */
1049
      @com.google.api.client.util.Key
1050
      private java.math.BigInteger accountId;
1051
 
1052
      /** The ID of the account for which to get/update account shipping settings.
1053
       */
1054
      public java.math.BigInteger getAccountId() {
1055
        return accountId;
1056
      }
1057
 
1058
      /** The ID of the account for which to get/update account shipping settings. */
1059
      public Patch setAccountId(java.math.BigInteger accountId) {
1060
        this.accountId = accountId;
1061
        return this;
1062
      }
1063
 
1064
      @Override
1065
      public Patch set(String parameterName, Object value) {
1066
        return (Patch) super.set(parameterName, value);
1067
      }
1068
    }
1069
 
1070
  }
1071
 
1072
  /**
1073
   * An accessor for creating requests from the Accountstatuses collection.
1074
   *
1075
   * <p>The typical use is:</p>
1076
   * <pre>
1077
   *   {@code ShoppingContent content = new ShoppingContent(...);}
1078
   *   {@code ShoppingContent.Accountstatuses.List request = content.accountstatuses().list(parameters ...)}
1079
   * </pre>
1080
   *
1081
   * @return the resource collection
1082
   */
1083
  public Accountstatuses accountstatuses() {
1084
    return new Accountstatuses();
1085
  }
1086
 
1087
  /**
1088
   * The "accountstatuses" collection of methods.
1089
   */
1090
  public class Accountstatuses {
1091
 
1092
    /**
1093
     * Create a request for the method "accountstatuses.custombatch".
1094
     *
1095
     * This request holds the parameters needed by the content server.  After setting any optional
1096
     * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.
1097
     *
1098
     * @param content the {@link com.google.api.services.content.model.AccountstatusesCustomBatchRequest}
1099
     * @return the request
1100
     */
1101
    public Custombatch custombatch(com.google.api.services.content.model.AccountstatusesCustomBatchRequest content) throws java.io.IOException {
1102
      Custombatch result = new Custombatch(content);
1103
      initialize(result);
1104
      return result;
1105
    }
1106
 
1107
    public class Custombatch extends ShoppingContentRequest<com.google.api.services.content.model.AccountstatusesCustomBatchResponse> {
1108
 
1109
      private static final String REST_PATH = "accountstatuses/batch";
1110
 
1111
      /**
1112
       * Create a request for the method "accountstatuses.custombatch".
1113
       *
1114
       * This request holds the parameters needed by the the content server.  After setting any optional
1115
       * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. <p>
1116
       * {@link
1117
       * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1118
       * must be called to initialize this instance immediately after invoking the constructor. </p>
1119
       *
1120
       * @param content the {@link com.google.api.services.content.model.AccountstatusesCustomBatchRequest}
1121
       * @since 1.13
1122
       */
1123
      protected Custombatch(com.google.api.services.content.model.AccountstatusesCustomBatchRequest content) {
1124
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.AccountstatusesCustomBatchResponse.class);
1125
      }
1126
 
1127
      @Override
1128
      public Custombatch setAlt(java.lang.String alt) {
1129
        return (Custombatch) super.setAlt(alt);
1130
      }
1131
 
1132
      @Override
1133
      public Custombatch setFields(java.lang.String fields) {
1134
        return (Custombatch) super.setFields(fields);
1135
      }
1136
 
1137
      @Override
1138
      public Custombatch setKey(java.lang.String key) {
1139
        return (Custombatch) super.setKey(key);
1140
      }
1141
 
1142
      @Override
1143
      public Custombatch setOauthToken(java.lang.String oauthToken) {
1144
        return (Custombatch) super.setOauthToken(oauthToken);
1145
      }
1146
 
1147
      @Override
1148
      public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) {
1149
        return (Custombatch) super.setPrettyPrint(prettyPrint);
1150
      }
1151
 
1152
      @Override
1153
      public Custombatch setQuotaUser(java.lang.String quotaUser) {
1154
        return (Custombatch) super.setQuotaUser(quotaUser);
1155
      }
1156
 
1157
      @Override
1158
      public Custombatch setUserIp(java.lang.String userIp) {
1159
        return (Custombatch) super.setUserIp(userIp);
1160
      }
1161
 
1162
      @Override
1163
      public Custombatch set(String parameterName, Object value) {
1164
        return (Custombatch) super.set(parameterName, value);
1165
      }
1166
    }
1167
    /**
1168
     * Retrieves the status of a Merchant Center account.
1169
     *
1170
     * Create a request for the method "accountstatuses.get".
1171
     *
1172
     * This request holds the parameters needed by the content server.  After setting any optional
1173
     * parameters, call the {@link Get#execute()} method to invoke the remote operation.
1174
     *
1175
     * @param merchantId The ID of the managing account.
1176
     * @param accountId The ID of the account.
1177
     * @return the request
1178
     */
1179
    public Get get(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException {
1180
      Get result = new Get(merchantId, accountId);
1181
      initialize(result);
1182
      return result;
1183
    }
1184
 
1185
    public class Get extends ShoppingContentRequest<com.google.api.services.content.model.AccountStatus> {
1186
 
1187
      private static final String REST_PATH = "{merchantId}/accountstatuses/{accountId}";
1188
 
1189
      /**
1190
       * Retrieves the status of a Merchant Center account.
1191
       *
1192
       * Create a request for the method "accountstatuses.get".
1193
       *
1194
       * This request holds the parameters needed by the the content server.  After setting any optional
1195
       * parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
1196
       * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
1197
       * called to initialize this instance immediately after invoking the constructor. </p>
1198
       *
1199
       * @param merchantId The ID of the managing account.
1200
       * @param accountId The ID of the account.
1201
       * @since 1.13
1202
       */
1203
      protected Get(java.math.BigInteger merchantId, java.math.BigInteger accountId) {
1204
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountStatus.class);
1205
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
1206
        this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified.");
1207
      }
1208
 
1209
      @Override
1210
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1211
        return super.executeUsingHead();
1212
      }
1213
 
1214
      @Override
1215
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1216
        return super.buildHttpRequestUsingHead();
1217
      }
1218
 
1219
      @Override
1220
      public Get setAlt(java.lang.String alt) {
1221
        return (Get) super.setAlt(alt);
1222
      }
1223
 
1224
      @Override
1225
      public Get setFields(java.lang.String fields) {
1226
        return (Get) super.setFields(fields);
1227
      }
1228
 
1229
      @Override
1230
      public Get setKey(java.lang.String key) {
1231
        return (Get) super.setKey(key);
1232
      }
1233
 
1234
      @Override
1235
      public Get setOauthToken(java.lang.String oauthToken) {
1236
        return (Get) super.setOauthToken(oauthToken);
1237
      }
1238
 
1239
      @Override
1240
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
1241
        return (Get) super.setPrettyPrint(prettyPrint);
1242
      }
1243
 
1244
      @Override
1245
      public Get setQuotaUser(java.lang.String quotaUser) {
1246
        return (Get) super.setQuotaUser(quotaUser);
1247
      }
1248
 
1249
      @Override
1250
      public Get setUserIp(java.lang.String userIp) {
1251
        return (Get) super.setUserIp(userIp);
1252
      }
1253
 
1254
      /** The ID of the managing account. */
1255
      @com.google.api.client.util.Key
1256
      private java.math.BigInteger merchantId;
1257
 
1258
      /** The ID of the managing account.
1259
       */
1260
      public java.math.BigInteger getMerchantId() {
1261
        return merchantId;
1262
      }
1263
 
1264
      /** The ID of the managing account. */
1265
      public Get setMerchantId(java.math.BigInteger merchantId) {
1266
        this.merchantId = merchantId;
1267
        return this;
1268
      }
1269
 
1270
      /** The ID of the account. */
1271
      @com.google.api.client.util.Key
1272
      private java.math.BigInteger accountId;
1273
 
1274
      /** The ID of the account.
1275
       */
1276
      public java.math.BigInteger getAccountId() {
1277
        return accountId;
1278
      }
1279
 
1280
      /** The ID of the account. */
1281
      public Get setAccountId(java.math.BigInteger accountId) {
1282
        this.accountId = accountId;
1283
        return this;
1284
      }
1285
 
1286
      @Override
1287
      public Get set(String parameterName, Object value) {
1288
        return (Get) super.set(parameterName, value);
1289
      }
1290
    }
1291
    /**
1292
     * Lists the statuses of the sub-accounts in your Merchant Center account.
1293
     *
1294
     * Create a request for the method "accountstatuses.list".
1295
     *
1296
     * This request holds the parameters needed by the content server.  After setting any optional
1297
     * parameters, call the {@link List#execute()} method to invoke the remote operation.
1298
     *
1299
     * @param merchantId The ID of the managing account.
1300
     * @return the request
1301
     */
1302
    public List list(java.math.BigInteger merchantId) throws java.io.IOException {
1303
      List result = new List(merchantId);
1304
      initialize(result);
1305
      return result;
1306
    }
1307
 
1308
    public class List extends ShoppingContentRequest<com.google.api.services.content.model.AccountstatusesListResponse> {
1309
 
1310
      private static final String REST_PATH = "{merchantId}/accountstatuses";
1311
 
1312
      /**
1313
       * Lists the statuses of the sub-accounts in your Merchant Center account.
1314
       *
1315
       * Create a request for the method "accountstatuses.list".
1316
       *
1317
       * This request holds the parameters needed by the the content server.  After setting any optional
1318
       * parameters, call the {@link List#execute()} method to invoke the remote operation. <p> {@link
1319
       * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
1320
       * called to initialize this instance immediately after invoking the constructor. </p>
1321
       *
1322
       * @param merchantId The ID of the managing account.
1323
       * @since 1.13
1324
       */
1325
      protected List(java.math.BigInteger merchantId) {
1326
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountstatusesListResponse.class);
1327
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
1328
      }
1329
 
1330
      @Override
1331
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1332
        return super.executeUsingHead();
1333
      }
1334
 
1335
      @Override
1336
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1337
        return super.buildHttpRequestUsingHead();
1338
      }
1339
 
1340
      @Override
1341
      public List setAlt(java.lang.String alt) {
1342
        return (List) super.setAlt(alt);
1343
      }
1344
 
1345
      @Override
1346
      public List setFields(java.lang.String fields) {
1347
        return (List) super.setFields(fields);
1348
      }
1349
 
1350
      @Override
1351
      public List setKey(java.lang.String key) {
1352
        return (List) super.setKey(key);
1353
      }
1354
 
1355
      @Override
1356
      public List setOauthToken(java.lang.String oauthToken) {
1357
        return (List) super.setOauthToken(oauthToken);
1358
      }
1359
 
1360
      @Override
1361
      public List setPrettyPrint(java.lang.Boolean prettyPrint) {
1362
        return (List) super.setPrettyPrint(prettyPrint);
1363
      }
1364
 
1365
      @Override
1366
      public List setQuotaUser(java.lang.String quotaUser) {
1367
        return (List) super.setQuotaUser(quotaUser);
1368
      }
1369
 
1370
      @Override
1371
      public List setUserIp(java.lang.String userIp) {
1372
        return (List) super.setUserIp(userIp);
1373
      }
1374
 
1375
      /** The ID of the managing account. */
1376
      @com.google.api.client.util.Key
1377
      private java.math.BigInteger merchantId;
1378
 
1379
      /** The ID of the managing account.
1380
       */
1381
      public java.math.BigInteger getMerchantId() {
1382
        return merchantId;
1383
      }
1384
 
1385
      /** The ID of the managing account. */
1386
      public List setMerchantId(java.math.BigInteger merchantId) {
1387
        this.merchantId = merchantId;
1388
        return this;
1389
      }
1390
 
1391
      /** The token returned by the previous request. */
1392
      @com.google.api.client.util.Key
1393
      private java.lang.String pageToken;
1394
 
1395
      /** The token returned by the previous request.
1396
       */
1397
      public java.lang.String getPageToken() {
1398
        return pageToken;
1399
      }
1400
 
1401
      /** The token returned by the previous request. */
1402
      public List setPageToken(java.lang.String pageToken) {
1403
        this.pageToken = pageToken;
1404
        return this;
1405
      }
1406
 
1407
      /** The maximum number of account statuses to return in the response, used for paging. */
1408
      @com.google.api.client.util.Key
1409
      private java.lang.Long maxResults;
1410
 
1411
      /** The maximum number of account statuses to return in the response, used for paging.
1412
       */
1413
      public java.lang.Long getMaxResults() {
1414
        return maxResults;
1415
      }
1416
 
1417
      /** The maximum number of account statuses to return in the response, used for paging. */
1418
      public List setMaxResults(java.lang.Long maxResults) {
1419
        this.maxResults = maxResults;
1420
        return this;
1421
      }
1422
 
1423
      @Override
1424
      public List set(String parameterName, Object value) {
1425
        return (List) super.set(parameterName, value);
1426
      }
1427
    }
1428
 
1429
  }
1430
 
1431
  /**
1432
   * An accessor for creating requests from the Accounttax collection.
1433
   *
1434
   * <p>The typical use is:</p>
1435
   * <pre>
1436
   *   {@code ShoppingContent content = new ShoppingContent(...);}
1437
   *   {@code ShoppingContent.Accounttax.List request = content.accounttax().list(parameters ...)}
1438
   * </pre>
1439
   *
1440
   * @return the resource collection
1441
   */
1442
  public Accounttax accounttax() {
1443
    return new Accounttax();
1444
  }
1445
 
1446
  /**
1447
   * The "accounttax" collection of methods.
1448
   */
1449
  public class Accounttax {
1450
 
1451
    /**
1452
     * Updates the tax settings of the account. This method supports patch semantics.
1453
     *
1454
     * Create a request for the method "accounttax.patch".
1455
     *
1456
     * This request holds the parameters needed by the content server.  After setting any optional
1457
     * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1458
     *
1459
     * @param merchantId The ID of the managing account.
1460
     * @param accountId The ID of the account for which to get/update account tax settings.
1461
     * @param content the {@link com.google.api.services.content.model.AccountTax}
1462
     * @return the request
1463
     */
1464
    public Patch patch(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountTax content) throws java.io.IOException {
1465
      Patch result = new Patch(merchantId, accountId, content);
1466
      initialize(result);
1467
      return result;
1468
    }
1469
 
1470
    public class Patch extends ShoppingContentRequest<com.google.api.services.content.model.AccountTax> {
1471
 
1472
      private static final String REST_PATH = "{merchantId}/accounttax/{accountId}";
1473
 
1474
      /**
1475
       * Updates the tax settings of the account. This method supports patch semantics.
1476
       *
1477
       * Create a request for the method "accounttax.patch".
1478
       *
1479
       * This request holds the parameters needed by the the content server.  After setting any optional
1480
       * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
1481
       * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1482
       * be called to initialize this instance immediately after invoking the constructor. </p>
1483
       *
1484
       * @param merchantId The ID of the managing account.
1485
       * @param accountId The ID of the account for which to get/update account tax settings.
1486
       * @param content the {@link com.google.api.services.content.model.AccountTax}
1487
       * @since 1.13
1488
       */
1489
      protected Patch(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountTax content) {
1490
        super(ShoppingContent.this, "PATCH", REST_PATH, content, com.google.api.services.content.model.AccountTax.class);
1491
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
1492
        this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified.");
1493
      }
1494
 
1495
      @Override
1496
      public Patch setAlt(java.lang.String alt) {
1497
        return (Patch) super.setAlt(alt);
1498
      }
1499
 
1500
      @Override
1501
      public Patch setFields(java.lang.String fields) {
1502
        return (Patch) super.setFields(fields);
1503
      }
1504
 
1505
      @Override
1506
      public Patch setKey(java.lang.String key) {
1507
        return (Patch) super.setKey(key);
1508
      }
1509
 
1510
      @Override
1511
      public Patch setOauthToken(java.lang.String oauthToken) {
1512
        return (Patch) super.setOauthToken(oauthToken);
1513
      }
1514
 
1515
      @Override
1516
      public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
1517
        return (Patch) super.setPrettyPrint(prettyPrint);
1518
      }
1519
 
1520
      @Override
1521
      public Patch setQuotaUser(java.lang.String quotaUser) {
1522
        return (Patch) super.setQuotaUser(quotaUser);
1523
      }
1524
 
1525
      @Override
1526
      public Patch setUserIp(java.lang.String userIp) {
1527
        return (Patch) super.setUserIp(userIp);
1528
      }
1529
 
1530
      /** The ID of the managing account. */
1531
      @com.google.api.client.util.Key
1532
      private java.math.BigInteger merchantId;
1533
 
1534
      /** The ID of the managing account.
1535
       */
1536
      public java.math.BigInteger getMerchantId() {
1537
        return merchantId;
1538
      }
1539
 
1540
      /** The ID of the managing account. */
1541
      public Patch setMerchantId(java.math.BigInteger merchantId) {
1542
        this.merchantId = merchantId;
1543
        return this;
1544
      }
1545
 
1546
      /** The ID of the account for which to get/update account tax settings. */
1547
      @com.google.api.client.util.Key
1548
      private java.math.BigInteger accountId;
1549
 
1550
      /** The ID of the account for which to get/update account tax settings.
1551
       */
1552
      public java.math.BigInteger getAccountId() {
1553
        return accountId;
1554
      }
1555
 
1556
      /** The ID of the account for which to get/update account tax settings. */
1557
      public Patch setAccountId(java.math.BigInteger accountId) {
1558
        this.accountId = accountId;
1559
        return this;
1560
      }
1561
 
1562
      @Override
1563
      public Patch set(String parameterName, Object value) {
1564
        return (Patch) super.set(parameterName, value);
1565
      }
1566
    }
1567
 
1568
  }
1569
 
1570
  /**
1571
   * An accessor for creating requests from the Datafeeds collection.
1572
   *
1573
   * <p>The typical use is:</p>
1574
   * <pre>
1575
   *   {@code ShoppingContent content = new ShoppingContent(...);}
1576
   *   {@code ShoppingContent.Datafeeds.List request = content.datafeeds().list(parameters ...)}
1577
   * </pre>
1578
   *
1579
   * @return the resource collection
1580
   */
1581
  public Datafeeds datafeeds() {
1582
    return new Datafeeds();
1583
  }
1584
 
1585
  /**
1586
   * The "datafeeds" collection of methods.
1587
   */
1588
  public class Datafeeds {
1589
 
1590
    /**
1591
     * Create a request for the method "datafeeds.batch".
1592
     *
1593
     * This request holds the parameters needed by the content server.  After setting any optional
1594
     * parameters, call the {@link Batch#execute()} method to invoke the remote operation.
1595
     *
1596
     * @param content the {@link com.google.api.services.content.model.DatafeedsBatchRequest}
1597
     * @return the request
1598
     */
1599
    public Batch batch(com.google.api.services.content.model.DatafeedsBatchRequest content) throws java.io.IOException {
1600
      Batch result = new Batch(content);
1601
      initialize(result);
1602
      return result;
1603
    }
1604
 
1605
    public class Batch extends ShoppingContentRequest<com.google.api.services.content.model.DatafeedsBatchResponse> {
1606
 
1607
      private static final String REST_PATH = "datafeedsNativeBatch";
1608
 
1609
      /**
1610
       * Create a request for the method "datafeeds.batch".
1611
       *
1612
       * This request holds the parameters needed by the the content server.  After setting any optional
1613
       * parameters, call the {@link Batch#execute()} method to invoke the remote operation. <p> {@link
1614
       * Batch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1615
       * be called to initialize this instance immediately after invoking the constructor. </p>
1616
       *
1617
       * @param content the {@link com.google.api.services.content.model.DatafeedsBatchRequest}
1618
       * @since 1.13
1619
       */
1620
      protected Batch(com.google.api.services.content.model.DatafeedsBatchRequest content) {
1621
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.DatafeedsBatchResponse.class);
1622
      }
1623
 
1624
      @Override
1625
      public Batch setAlt(java.lang.String alt) {
1626
        return (Batch) super.setAlt(alt);
1627
      }
1628
 
1629
      @Override
1630
      public Batch setFields(java.lang.String fields) {
1631
        return (Batch) super.setFields(fields);
1632
      }
1633
 
1634
      @Override
1635
      public Batch setKey(java.lang.String key) {
1636
        return (Batch) super.setKey(key);
1637
      }
1638
 
1639
      @Override
1640
      public Batch setOauthToken(java.lang.String oauthToken) {
1641
        return (Batch) super.setOauthToken(oauthToken);
1642
      }
1643
 
1644
      @Override
1645
      public Batch setPrettyPrint(java.lang.Boolean prettyPrint) {
1646
        return (Batch) super.setPrettyPrint(prettyPrint);
1647
      }
1648
 
1649
      @Override
1650
      public Batch setQuotaUser(java.lang.String quotaUser) {
1651
        return (Batch) super.setQuotaUser(quotaUser);
1652
      }
1653
 
1654
      @Override
1655
      public Batch setUserIp(java.lang.String userIp) {
1656
        return (Batch) super.setUserIp(userIp);
1657
      }
1658
 
1659
      @Override
1660
      public Batch set(String parameterName, Object value) {
1661
        return (Batch) super.set(parameterName, value);
1662
      }
1663
    }
1664
    /**
1665
     * Create a request for the method "datafeeds.custombatch".
1666
     *
1667
     * This request holds the parameters needed by the content server.  After setting any optional
1668
     * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.
1669
     *
1670
     * @param content the {@link com.google.api.services.content.model.DatafeedsCustomBatchRequest}
1671
     * @return the request
1672
     */
1673
    public Custombatch custombatch(com.google.api.services.content.model.DatafeedsCustomBatchRequest content) throws java.io.IOException {
1674
      Custombatch result = new Custombatch(content);
1675
      initialize(result);
1676
      return result;
1677
    }
1678
 
1679
    public class Custombatch extends ShoppingContentRequest<com.google.api.services.content.model.DatafeedsCustomBatchResponse> {
1680
 
1681
      private static final String REST_PATH = "datafeeds/batch";
1682
 
1683
      /**
1684
       * Create a request for the method "datafeeds.custombatch".
1685
       *
1686
       * This request holds the parameters needed by the the content server.  After setting any optional
1687
       * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. <p>
1688
       * {@link
1689
       * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1690
       * must be called to initialize this instance immediately after invoking the constructor. </p>
1691
       *
1692
       * @param content the {@link com.google.api.services.content.model.DatafeedsCustomBatchRequest}
1693
       * @since 1.13
1694
       */
1695
      protected Custombatch(com.google.api.services.content.model.DatafeedsCustomBatchRequest content) {
1696
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.DatafeedsCustomBatchResponse.class);
1697
      }
1698
 
1699
      @Override
1700
      public Custombatch setAlt(java.lang.String alt) {
1701
        return (Custombatch) super.setAlt(alt);
1702
      }
1703
 
1704
      @Override
1705
      public Custombatch setFields(java.lang.String fields) {
1706
        return (Custombatch) super.setFields(fields);
1707
      }
1708
 
1709
      @Override
1710
      public Custombatch setKey(java.lang.String key) {
1711
        return (Custombatch) super.setKey(key);
1712
      }
1713
 
1714
      @Override
1715
      public Custombatch setOauthToken(java.lang.String oauthToken) {
1716
        return (Custombatch) super.setOauthToken(oauthToken);
1717
      }
1718
 
1719
      @Override
1720
      public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) {
1721
        return (Custombatch) super.setPrettyPrint(prettyPrint);
1722
      }
1723
 
1724
      @Override
1725
      public Custombatch setQuotaUser(java.lang.String quotaUser) {
1726
        return (Custombatch) super.setQuotaUser(quotaUser);
1727
      }
1728
 
1729
      @Override
1730
      public Custombatch setUserIp(java.lang.String userIp) {
1731
        return (Custombatch) super.setUserIp(userIp);
1732
      }
1733
 
1734
      @Override
1735
      public Custombatch set(String parameterName, Object value) {
1736
        return (Custombatch) super.set(parameterName, value);
1737
      }
1738
    }
1739
    /**
1740
     * Deletes a datafeed from your Merchant Center account.
1741
     *
1742
     * Create a request for the method "datafeeds.delete".
1743
     *
1744
     * This request holds the parameters needed by the content server.  After setting any optional
1745
     * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
1746
     *
1747
     * @param merchantId
1748
     * @param datafeedId
1749
     * @return the request
1750
     */
1751
    public Delete delete(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) throws java.io.IOException {
1752
      Delete result = new Delete(merchantId, datafeedId);
1753
      initialize(result);
1754
      return result;
1755
    }
1756
 
1757
    public class Delete extends ShoppingContentRequest<Void> {
1758
 
1759
      private static final String REST_PATH = "{merchantId}/datafeeds/{datafeedId}";
1760
 
1761
      /**
1762
       * Deletes a datafeed from your Merchant Center account.
1763
       *
1764
       * Create a request for the method "datafeeds.delete".
1765
       *
1766
       * This request holds the parameters needed by the the content server.  After setting any optional
1767
       * parameters, call the {@link Delete#execute()} method to invoke the remote operation. <p> {@link
1768
       * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1769
       * be called to initialize this instance immediately after invoking the constructor. </p>
1770
       *
1771
       * @param merchantId
1772
       * @param datafeedId
1773
       * @since 1.13
1774
       */
1775
      protected Delete(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) {
1776
        super(ShoppingContent.this, "DELETE", REST_PATH, null, Void.class);
1777
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
1778
        this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified.");
1779
      }
1780
 
1781
      @Override
1782
      public Delete setAlt(java.lang.String alt) {
1783
        return (Delete) super.setAlt(alt);
1784
      }
1785
 
1786
      @Override
1787
      public Delete setFields(java.lang.String fields) {
1788
        return (Delete) super.setFields(fields);
1789
      }
1790
 
1791
      @Override
1792
      public Delete setKey(java.lang.String key) {
1793
        return (Delete) super.setKey(key);
1794
      }
1795
 
1796
      @Override
1797
      public Delete setOauthToken(java.lang.String oauthToken) {
1798
        return (Delete) super.setOauthToken(oauthToken);
1799
      }
1800
 
1801
      @Override
1802
      public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
1803
        return (Delete) super.setPrettyPrint(prettyPrint);
1804
      }
1805
 
1806
      @Override
1807
      public Delete setQuotaUser(java.lang.String quotaUser) {
1808
        return (Delete) super.setQuotaUser(quotaUser);
1809
      }
1810
 
1811
      @Override
1812
      public Delete setUserIp(java.lang.String userIp) {
1813
        return (Delete) super.setUserIp(userIp);
1814
      }
1815
 
1816
      @com.google.api.client.util.Key
1817
      private java.math.BigInteger merchantId;
1818
 
1819
      /**
1820
 
1821
       */
1822
      public java.math.BigInteger getMerchantId() {
1823
        return merchantId;
1824
      }
1825
 
1826
      public Delete setMerchantId(java.math.BigInteger merchantId) {
1827
        this.merchantId = merchantId;
1828
        return this;
1829
      }
1830
 
1831
      @com.google.api.client.util.Key
1832
      private java.math.BigInteger datafeedId;
1833
 
1834
      /**
1835
 
1836
       */
1837
      public java.math.BigInteger getDatafeedId() {
1838
        return datafeedId;
1839
      }
1840
 
1841
      public Delete setDatafeedId(java.math.BigInteger datafeedId) {
1842
        this.datafeedId = datafeedId;
1843
        return this;
1844
      }
1845
 
1846
      @Override
1847
      public Delete set(String parameterName, Object value) {
1848
        return (Delete) super.set(parameterName, value);
1849
      }
1850
    }
1851
    /**
1852
     * Retrieves a datafeed from your Merchant Center account.
1853
     *
1854
     * Create a request for the method "datafeeds.get".
1855
     *
1856
     * This request holds the parameters needed by the content server.  After setting any optional
1857
     * parameters, call the {@link Get#execute()} method to invoke the remote operation.
1858
     *
1859
     * @param merchantId
1860
     * @param datafeedId
1861
     * @return the request
1862
     */
1863
    public Get get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) throws java.io.IOException {
1864
      Get result = new Get(merchantId, datafeedId);
1865
      initialize(result);
1866
      return result;
1867
    }
1868
 
1869
    public class Get extends ShoppingContentRequest<com.google.api.services.content.model.Datafeed> {
1870
 
1871
      private static final String REST_PATH = "{merchantId}/datafeeds/{datafeedId}";
1872
 
1873
      /**
1874
       * Retrieves a datafeed from your Merchant Center account.
1875
       *
1876
       * Create a request for the method "datafeeds.get".
1877
       *
1878
       * This request holds the parameters needed by the the content server.  After setting any optional
1879
       * parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
1880
       * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
1881
       * called to initialize this instance immediately after invoking the constructor. </p>
1882
       *
1883
       * @param merchantId
1884
       * @param datafeedId
1885
       * @since 1.13
1886
       */
1887
      protected Get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) {
1888
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.Datafeed.class);
1889
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
1890
        this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified.");
1891
      }
1892
 
1893
      @Override
1894
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1895
        return super.executeUsingHead();
1896
      }
1897
 
1898
      @Override
1899
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1900
        return super.buildHttpRequestUsingHead();
1901
      }
1902
 
1903
      @Override
1904
      public Get setAlt(java.lang.String alt) {
1905
        return (Get) super.setAlt(alt);
1906
      }
1907
 
1908
      @Override
1909
      public Get setFields(java.lang.String fields) {
1910
        return (Get) super.setFields(fields);
1911
      }
1912
 
1913
      @Override
1914
      public Get setKey(java.lang.String key) {
1915
        return (Get) super.setKey(key);
1916
      }
1917
 
1918
      @Override
1919
      public Get setOauthToken(java.lang.String oauthToken) {
1920
        return (Get) super.setOauthToken(oauthToken);
1921
      }
1922
 
1923
      @Override
1924
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
1925
        return (Get) super.setPrettyPrint(prettyPrint);
1926
      }
1927
 
1928
      @Override
1929
      public Get setQuotaUser(java.lang.String quotaUser) {
1930
        return (Get) super.setQuotaUser(quotaUser);
1931
      }
1932
 
1933
      @Override
1934
      public Get setUserIp(java.lang.String userIp) {
1935
        return (Get) super.setUserIp(userIp);
1936
      }
1937
 
1938
      @com.google.api.client.util.Key
1939
      private java.math.BigInteger merchantId;
1940
 
1941
      /**
1942
 
1943
       */
1944
      public java.math.BigInteger getMerchantId() {
1945
        return merchantId;
1946
      }
1947
 
1948
      public Get setMerchantId(java.math.BigInteger merchantId) {
1949
        this.merchantId = merchantId;
1950
        return this;
1951
      }
1952
 
1953
      @com.google.api.client.util.Key
1954
      private java.math.BigInteger datafeedId;
1955
 
1956
      /**
1957
 
1958
       */
1959
      public java.math.BigInteger getDatafeedId() {
1960
        return datafeedId;
1961
      }
1962
 
1963
      public Get setDatafeedId(java.math.BigInteger datafeedId) {
1964
        this.datafeedId = datafeedId;
1965
        return this;
1966
      }
1967
 
1968
      @Override
1969
      public Get set(String parameterName, Object value) {
1970
        return (Get) super.set(parameterName, value);
1971
      }
1972
    }
1973
    /**
1974
     * Registers a datafeed with your Merchant Center account.
1975
     *
1976
     * Create a request for the method "datafeeds.insert".
1977
     *
1978
     * This request holds the parameters needed by the content server.  After setting any optional
1979
     * parameters, call the {@link Insert#execute()} method to invoke the remote operation.
1980
     *
1981
     * @param merchantId
1982
     * @param content the {@link com.google.api.services.content.model.Datafeed}
1983
     * @return the request
1984
     */
1985
    public Insert insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Datafeed content) throws java.io.IOException {
1986
      Insert result = new Insert(merchantId, content);
1987
      initialize(result);
1988
      return result;
1989
    }
1990
 
1991
    public class Insert extends ShoppingContentRequest<com.google.api.services.content.model.Datafeed> {
1992
 
1993
      private static final String REST_PATH = "{merchantId}/datafeeds";
1994
 
1995
      /**
1996
       * Registers a datafeed with your Merchant Center account.
1997
       *
1998
       * Create a request for the method "datafeeds.insert".
1999
       *
2000
       * This request holds the parameters needed by the the content server.  After setting any optional
2001
       * parameters, call the {@link Insert#execute()} method to invoke the remote operation. <p> {@link
2002
       * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2003
       * be called to initialize this instance immediately after invoking the constructor. </p>
2004
       *
2005
       * @param merchantId
2006
       * @param content the {@link com.google.api.services.content.model.Datafeed}
2007
       * @since 1.13
2008
       */
2009
      protected Insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Datafeed content) {
2010
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.Datafeed.class);
2011
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
2012
      }
2013
 
2014
      @Override
2015
      public Insert setAlt(java.lang.String alt) {
2016
        return (Insert) super.setAlt(alt);
2017
      }
2018
 
2019
      @Override
2020
      public Insert setFields(java.lang.String fields) {
2021
        return (Insert) super.setFields(fields);
2022
      }
2023
 
2024
      @Override
2025
      public Insert setKey(java.lang.String key) {
2026
        return (Insert) super.setKey(key);
2027
      }
2028
 
2029
      @Override
2030
      public Insert setOauthToken(java.lang.String oauthToken) {
2031
        return (Insert) super.setOauthToken(oauthToken);
2032
      }
2033
 
2034
      @Override
2035
      public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
2036
        return (Insert) super.setPrettyPrint(prettyPrint);
2037
      }
2038
 
2039
      @Override
2040
      public Insert setQuotaUser(java.lang.String quotaUser) {
2041
        return (Insert) super.setQuotaUser(quotaUser);
2042
      }
2043
 
2044
      @Override
2045
      public Insert setUserIp(java.lang.String userIp) {
2046
        return (Insert) super.setUserIp(userIp);
2047
      }
2048
 
2049
      @com.google.api.client.util.Key
2050
      private java.math.BigInteger merchantId;
2051
 
2052
      /**
2053
 
2054
       */
2055
      public java.math.BigInteger getMerchantId() {
2056
        return merchantId;
2057
      }
2058
 
2059
      public Insert setMerchantId(java.math.BigInteger merchantId) {
2060
        this.merchantId = merchantId;
2061
        return this;
2062
      }
2063
 
2064
      @Override
2065
      public Insert set(String parameterName, Object value) {
2066
        return (Insert) super.set(parameterName, value);
2067
      }
2068
    }
2069
    /**
2070
     * Lists the datafeeds in your Merchant Center account.
2071
     *
2072
     * Create a request for the method "datafeeds.list".
2073
     *
2074
     * This request holds the parameters needed by the content server.  After setting any optional
2075
     * parameters, call the {@link List#execute()} method to invoke the remote operation.
2076
     *
2077
     * @param merchantId
2078
     * @return the request
2079
     */
2080
    public List list(java.math.BigInteger merchantId) throws java.io.IOException {
2081
      List result = new List(merchantId);
2082
      initialize(result);
2083
      return result;
2084
    }
2085
 
2086
    public class List extends ShoppingContentRequest<com.google.api.services.content.model.DatafeedsListResponse> {
2087
 
2088
      private static final String REST_PATH = "{merchantId}/datafeeds";
2089
 
2090
      /**
2091
       * Lists the datafeeds in your Merchant Center account.
2092
       *
2093
       * Create a request for the method "datafeeds.list".
2094
       *
2095
       * This request holds the parameters needed by the the content server.  After setting any optional
2096
       * parameters, call the {@link List#execute()} method to invoke the remote operation. <p> {@link
2097
       * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
2098
       * called to initialize this instance immediately after invoking the constructor. </p>
2099
       *
2100
       * @param merchantId
2101
       * @since 1.13
2102
       */
2103
      protected List(java.math.BigInteger merchantId) {
2104
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.DatafeedsListResponse.class);
2105
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
2106
      }
2107
 
2108
      @Override
2109
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
2110
        return super.executeUsingHead();
2111
      }
2112
 
2113
      @Override
2114
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
2115
        return super.buildHttpRequestUsingHead();
2116
      }
2117
 
2118
      @Override
2119
      public List setAlt(java.lang.String alt) {
2120
        return (List) super.setAlt(alt);
2121
      }
2122
 
2123
      @Override
2124
      public List setFields(java.lang.String fields) {
2125
        return (List) super.setFields(fields);
2126
      }
2127
 
2128
      @Override
2129
      public List setKey(java.lang.String key) {
2130
        return (List) super.setKey(key);
2131
      }
2132
 
2133
      @Override
2134
      public List setOauthToken(java.lang.String oauthToken) {
2135
        return (List) super.setOauthToken(oauthToken);
2136
      }
2137
 
2138
      @Override
2139
      public List setPrettyPrint(java.lang.Boolean prettyPrint) {
2140
        return (List) super.setPrettyPrint(prettyPrint);
2141
      }
2142
 
2143
      @Override
2144
      public List setQuotaUser(java.lang.String quotaUser) {
2145
        return (List) super.setQuotaUser(quotaUser);
2146
      }
2147
 
2148
      @Override
2149
      public List setUserIp(java.lang.String userIp) {
2150
        return (List) super.setUserIp(userIp);
2151
      }
2152
 
2153
      @com.google.api.client.util.Key
2154
      private java.math.BigInteger merchantId;
2155
 
2156
      /**
2157
 
2158
       */
2159
      public java.math.BigInteger getMerchantId() {
2160
        return merchantId;
2161
      }
2162
 
2163
      public List setMerchantId(java.math.BigInteger merchantId) {
2164
        this.merchantId = merchantId;
2165
        return this;
2166
      }
2167
 
2168
      @Override
2169
      public List set(String parameterName, Object value) {
2170
        return (List) super.set(parameterName, value);
2171
      }
2172
    }
2173
    /**
2174
     * Updates a datafeed of your Merchant Center account. This method supports patch semantics.
2175
     *
2176
     * Create a request for the method "datafeeds.patch".
2177
     *
2178
     * This request holds the parameters needed by the content server.  After setting any optional
2179
     * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
2180
     *
2181
     * @param merchantId
2182
     * @param datafeedId
2183
     * @param content the {@link com.google.api.services.content.model.Datafeed}
2184
     * @return the request
2185
     */
2186
    public Patch patch(java.math.BigInteger merchantId, java.math.BigInteger datafeedId, com.google.api.services.content.model.Datafeed content) throws java.io.IOException {
2187
      Patch result = new Patch(merchantId, datafeedId, content);
2188
      initialize(result);
2189
      return result;
2190
    }
2191
 
2192
    public class Patch extends ShoppingContentRequest<com.google.api.services.content.model.Datafeed> {
2193
 
2194
      private static final String REST_PATH = "{merchantId}/datafeeds/{datafeedId}";
2195
 
2196
      /**
2197
       * Updates a datafeed of your Merchant Center account. This method supports patch semantics.
2198
       *
2199
       * Create a request for the method "datafeeds.patch".
2200
       *
2201
       * This request holds the parameters needed by the the content server.  After setting any optional
2202
       * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
2203
       * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2204
       * be called to initialize this instance immediately after invoking the constructor. </p>
2205
       *
2206
       * @param merchantId
2207
       * @param datafeedId
2208
       * @param content the {@link com.google.api.services.content.model.Datafeed}
2209
       * @since 1.13
2210
       */
2211
      protected Patch(java.math.BigInteger merchantId, java.math.BigInteger datafeedId, com.google.api.services.content.model.Datafeed content) {
2212
        super(ShoppingContent.this, "PATCH", REST_PATH, content, com.google.api.services.content.model.Datafeed.class);
2213
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
2214
        this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified.");
2215
      }
2216
 
2217
      @Override
2218
      public Patch setAlt(java.lang.String alt) {
2219
        return (Patch) super.setAlt(alt);
2220
      }
2221
 
2222
      @Override
2223
      public Patch setFields(java.lang.String fields) {
2224
        return (Patch) super.setFields(fields);
2225
      }
2226
 
2227
      @Override
2228
      public Patch setKey(java.lang.String key) {
2229
        return (Patch) super.setKey(key);
2230
      }
2231
 
2232
      @Override
2233
      public Patch setOauthToken(java.lang.String oauthToken) {
2234
        return (Patch) super.setOauthToken(oauthToken);
2235
      }
2236
 
2237
      @Override
2238
      public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
2239
        return (Patch) super.setPrettyPrint(prettyPrint);
2240
      }
2241
 
2242
      @Override
2243
      public Patch setQuotaUser(java.lang.String quotaUser) {
2244
        return (Patch) super.setQuotaUser(quotaUser);
2245
      }
2246
 
2247
      @Override
2248
      public Patch setUserIp(java.lang.String userIp) {
2249
        return (Patch) super.setUserIp(userIp);
2250
      }
2251
 
2252
      @com.google.api.client.util.Key
2253
      private java.math.BigInteger merchantId;
2254
 
2255
      /**
2256
 
2257
       */
2258
      public java.math.BigInteger getMerchantId() {
2259
        return merchantId;
2260
      }
2261
 
2262
      public Patch setMerchantId(java.math.BigInteger merchantId) {
2263
        this.merchantId = merchantId;
2264
        return this;
2265
      }
2266
 
2267
      @com.google.api.client.util.Key
2268
      private java.math.BigInteger datafeedId;
2269
 
2270
      /**
2271
 
2272
       */
2273
      public java.math.BigInteger getDatafeedId() {
2274
        return datafeedId;
2275
      }
2276
 
2277
      public Patch setDatafeedId(java.math.BigInteger datafeedId) {
2278
        this.datafeedId = datafeedId;
2279
        return this;
2280
      }
2281
 
2282
      @Override
2283
      public Patch set(String parameterName, Object value) {
2284
        return (Patch) super.set(parameterName, value);
2285
      }
2286
    }
2287
    /**
2288
     * Updates a datafeed of your Merchant Center account.
2289
     *
2290
     * Create a request for the method "datafeeds.update".
2291
     *
2292
     * This request holds the parameters needed by the content server.  After setting any optional
2293
     * parameters, call the {@link Update#execute()} method to invoke the remote operation.
2294
     *
2295
     * @param merchantId
2296
     * @param datafeedId
2297
     * @param content the {@link com.google.api.services.content.model.Datafeed}
2298
     * @return the request
2299
     */
2300
    public Update update(java.math.BigInteger merchantId, java.math.BigInteger datafeedId, com.google.api.services.content.model.Datafeed content) throws java.io.IOException {
2301
      Update result = new Update(merchantId, datafeedId, content);
2302
      initialize(result);
2303
      return result;
2304
    }
2305
 
2306
    public class Update extends ShoppingContentRequest<com.google.api.services.content.model.Datafeed> {
2307
 
2308
      private static final String REST_PATH = "{merchantId}/datafeeds/{datafeedId}";
2309
 
2310
      /**
2311
       * Updates a datafeed of your Merchant Center account.
2312
       *
2313
       * Create a request for the method "datafeeds.update".
2314
       *
2315
       * This request holds the parameters needed by the the content server.  After setting any optional
2316
       * parameters, call the {@link Update#execute()} method to invoke the remote operation. <p> {@link
2317
       * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2318
       * be called to initialize this instance immediately after invoking the constructor. </p>
2319
       *
2320
       * @param merchantId
2321
       * @param datafeedId
2322
       * @param content the {@link com.google.api.services.content.model.Datafeed}
2323
       * @since 1.13
2324
       */
2325
      protected Update(java.math.BigInteger merchantId, java.math.BigInteger datafeedId, com.google.api.services.content.model.Datafeed content) {
2326
        super(ShoppingContent.this, "PUT", REST_PATH, content, com.google.api.services.content.model.Datafeed.class);
2327
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
2328
        this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified.");
2329
      }
2330
 
2331
      @Override
2332
      public Update setAlt(java.lang.String alt) {
2333
        return (Update) super.setAlt(alt);
2334
      }
2335
 
2336
      @Override
2337
      public Update setFields(java.lang.String fields) {
2338
        return (Update) super.setFields(fields);
2339
      }
2340
 
2341
      @Override
2342
      public Update setKey(java.lang.String key) {
2343
        return (Update) super.setKey(key);
2344
      }
2345
 
2346
      @Override
2347
      public Update setOauthToken(java.lang.String oauthToken) {
2348
        return (Update) super.setOauthToken(oauthToken);
2349
      }
2350
 
2351
      @Override
2352
      public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
2353
        return (Update) super.setPrettyPrint(prettyPrint);
2354
      }
2355
 
2356
      @Override
2357
      public Update setQuotaUser(java.lang.String quotaUser) {
2358
        return (Update) super.setQuotaUser(quotaUser);
2359
      }
2360
 
2361
      @Override
2362
      public Update setUserIp(java.lang.String userIp) {
2363
        return (Update) super.setUserIp(userIp);
2364
      }
2365
 
2366
      @com.google.api.client.util.Key
2367
      private java.math.BigInteger merchantId;
2368
 
2369
      /**
2370
 
2371
       */
2372
      public java.math.BigInteger getMerchantId() {
2373
        return merchantId;
2374
      }
2375
 
2376
      public Update setMerchantId(java.math.BigInteger merchantId) {
2377
        this.merchantId = merchantId;
2378
        return this;
2379
      }
2380
 
2381
      @com.google.api.client.util.Key
2382
      private java.math.BigInteger datafeedId;
2383
 
2384
      /**
2385
 
2386
       */
2387
      public java.math.BigInteger getDatafeedId() {
2388
        return datafeedId;
2389
      }
2390
 
2391
      public Update setDatafeedId(java.math.BigInteger datafeedId) {
2392
        this.datafeedId = datafeedId;
2393
        return this;
2394
      }
2395
 
2396
      @Override
2397
      public Update set(String parameterName, Object value) {
2398
        return (Update) super.set(parameterName, value);
2399
      }
2400
    }
2401
 
2402
  }
2403
 
2404
  /**
2405
   * An accessor for creating requests from the Datafeedstatuses collection.
2406
   *
2407
   * <p>The typical use is:</p>
2408
   * <pre>
2409
   *   {@code ShoppingContent content = new ShoppingContent(...);}
2410
   *   {@code ShoppingContent.Datafeedstatuses.List request = content.datafeedstatuses().list(parameters ...)}
2411
   * </pre>
2412
   *
2413
   * @return the resource collection
2414
   */
2415
  public Datafeedstatuses datafeedstatuses() {
2416
    return new Datafeedstatuses();
2417
  }
2418
 
2419
  /**
2420
   * The "datafeedstatuses" collection of methods.
2421
   */
2422
  public class Datafeedstatuses {
2423
 
2424
    /**
2425
     * Create a request for the method "datafeedstatuses.batch".
2426
     *
2427
     * This request holds the parameters needed by the content server.  After setting any optional
2428
     * parameters, call the {@link Batch#execute()} method to invoke the remote operation.
2429
     *
2430
     * @param content the {@link com.google.api.services.content.model.DatafeedstatusesBatchRequest}
2431
     * @return the request
2432
     */
2433
    public Batch batch(com.google.api.services.content.model.DatafeedstatusesBatchRequest content) throws java.io.IOException {
2434
      Batch result = new Batch(content);
2435
      initialize(result);
2436
      return result;
2437
    }
2438
 
2439
    public class Batch extends ShoppingContentRequest<com.google.api.services.content.model.DatafeedstatusesBatchResponse> {
2440
 
2441
      private static final String REST_PATH = "datafeedstatusesNativeBatch";
2442
 
2443
      /**
2444
       * Create a request for the method "datafeedstatuses.batch".
2445
       *
2446
       * This request holds the parameters needed by the the content server.  After setting any optional
2447
       * parameters, call the {@link Batch#execute()} method to invoke the remote operation. <p> {@link
2448
       * Batch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2449
       * be called to initialize this instance immediately after invoking the constructor. </p>
2450
       *
2451
       * @param content the {@link com.google.api.services.content.model.DatafeedstatusesBatchRequest}
2452
       * @since 1.13
2453
       */
2454
      protected Batch(com.google.api.services.content.model.DatafeedstatusesBatchRequest content) {
2455
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.DatafeedstatusesBatchResponse.class);
2456
      }
2457
 
2458
      @Override
2459
      public Batch setAlt(java.lang.String alt) {
2460
        return (Batch) super.setAlt(alt);
2461
      }
2462
 
2463
      @Override
2464
      public Batch setFields(java.lang.String fields) {
2465
        return (Batch) super.setFields(fields);
2466
      }
2467
 
2468
      @Override
2469
      public Batch setKey(java.lang.String key) {
2470
        return (Batch) super.setKey(key);
2471
      }
2472
 
2473
      @Override
2474
      public Batch setOauthToken(java.lang.String oauthToken) {
2475
        return (Batch) super.setOauthToken(oauthToken);
2476
      }
2477
 
2478
      @Override
2479
      public Batch setPrettyPrint(java.lang.Boolean prettyPrint) {
2480
        return (Batch) super.setPrettyPrint(prettyPrint);
2481
      }
2482
 
2483
      @Override
2484
      public Batch setQuotaUser(java.lang.String quotaUser) {
2485
        return (Batch) super.setQuotaUser(quotaUser);
2486
      }
2487
 
2488
      @Override
2489
      public Batch setUserIp(java.lang.String userIp) {
2490
        return (Batch) super.setUserIp(userIp);
2491
      }
2492
 
2493
      @Override
2494
      public Batch set(String parameterName, Object value) {
2495
        return (Batch) super.set(parameterName, value);
2496
      }
2497
    }
2498
    /**
2499
     * Create a request for the method "datafeedstatuses.custombatch".
2500
     *
2501
     * This request holds the parameters needed by the content server.  After setting any optional
2502
     * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.
2503
     *
2504
     * @param content the {@link com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest}
2505
     * @return the request
2506
     */
2507
    public Custombatch custombatch(com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest content) throws java.io.IOException {
2508
      Custombatch result = new Custombatch(content);
2509
      initialize(result);
2510
      return result;
2511
    }
2512
 
2513
    public class Custombatch extends ShoppingContentRequest<com.google.api.services.content.model.DatafeedstatusesCustomBatchResponse> {
2514
 
2515
      private static final String REST_PATH = "datafeedstatuses/batch";
2516
 
2517
      /**
2518
       * Create a request for the method "datafeedstatuses.custombatch".
2519
       *
2520
       * This request holds the parameters needed by the the content server.  After setting any optional
2521
       * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. <p>
2522
       * {@link
2523
       * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
2524
       * must be called to initialize this instance immediately after invoking the constructor. </p>
2525
       *
2526
       * @param content the {@link com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest}
2527
       * @since 1.13
2528
       */
2529
      protected Custombatch(com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest content) {
2530
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.DatafeedstatusesCustomBatchResponse.class);
2531
      }
2532
 
2533
      @Override
2534
      public Custombatch setAlt(java.lang.String alt) {
2535
        return (Custombatch) super.setAlt(alt);
2536
      }
2537
 
2538
      @Override
2539
      public Custombatch setFields(java.lang.String fields) {
2540
        return (Custombatch) super.setFields(fields);
2541
      }
2542
 
2543
      @Override
2544
      public Custombatch setKey(java.lang.String key) {
2545
        return (Custombatch) super.setKey(key);
2546
      }
2547
 
2548
      @Override
2549
      public Custombatch setOauthToken(java.lang.String oauthToken) {
2550
        return (Custombatch) super.setOauthToken(oauthToken);
2551
      }
2552
 
2553
      @Override
2554
      public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) {
2555
        return (Custombatch) super.setPrettyPrint(prettyPrint);
2556
      }
2557
 
2558
      @Override
2559
      public Custombatch setQuotaUser(java.lang.String quotaUser) {
2560
        return (Custombatch) super.setQuotaUser(quotaUser);
2561
      }
2562
 
2563
      @Override
2564
      public Custombatch setUserIp(java.lang.String userIp) {
2565
        return (Custombatch) super.setUserIp(userIp);
2566
      }
2567
 
2568
      @Override
2569
      public Custombatch set(String parameterName, Object value) {
2570
        return (Custombatch) super.set(parameterName, value);
2571
      }
2572
    }
2573
    /**
2574
     * Retrieves the status of a datafeed from your Merchant Center account.
2575
     *
2576
     * Create a request for the method "datafeedstatuses.get".
2577
     *
2578
     * This request holds the parameters needed by the content server.  After setting any optional
2579
     * parameters, call the {@link Get#execute()} method to invoke the remote operation.
2580
     *
2581
     * @param merchantId
2582
     * @param datafeedId
2583
     * @return the request
2584
     */
2585
    public Get get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) throws java.io.IOException {
2586
      Get result = new Get(merchantId, datafeedId);
2587
      initialize(result);
2588
      return result;
2589
    }
2590
 
2591
    public class Get extends ShoppingContentRequest<com.google.api.services.content.model.DatafeedStatus> {
2592
 
2593
      private static final String REST_PATH = "{merchantId}/datafeedstatuses/{datafeedId}";
2594
 
2595
      /**
2596
       * Retrieves the status of a datafeed from your Merchant Center account.
2597
       *
2598
       * Create a request for the method "datafeedstatuses.get".
2599
       *
2600
       * This request holds the parameters needed by the the content server.  After setting any optional
2601
       * parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
2602
       * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
2603
       * called to initialize this instance immediately after invoking the constructor. </p>
2604
       *
2605
       * @param merchantId
2606
       * @param datafeedId
2607
       * @since 1.13
2608
       */
2609
      protected Get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) {
2610
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.DatafeedStatus.class);
2611
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
2612
        this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified.");
2613
      }
2614
 
2615
      @Override
2616
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
2617
        return super.executeUsingHead();
2618
      }
2619
 
2620
      @Override
2621
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
2622
        return super.buildHttpRequestUsingHead();
2623
      }
2624
 
2625
      @Override
2626
      public Get setAlt(java.lang.String alt) {
2627
        return (Get) super.setAlt(alt);
2628
      }
2629
 
2630
      @Override
2631
      public Get setFields(java.lang.String fields) {
2632
        return (Get) super.setFields(fields);
2633
      }
2634
 
2635
      @Override
2636
      public Get setKey(java.lang.String key) {
2637
        return (Get) super.setKey(key);
2638
      }
2639
 
2640
      @Override
2641
      public Get setOauthToken(java.lang.String oauthToken) {
2642
        return (Get) super.setOauthToken(oauthToken);
2643
      }
2644
 
2645
      @Override
2646
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
2647
        return (Get) super.setPrettyPrint(prettyPrint);
2648
      }
2649
 
2650
      @Override
2651
      public Get setQuotaUser(java.lang.String quotaUser) {
2652
        return (Get) super.setQuotaUser(quotaUser);
2653
      }
2654
 
2655
      @Override
2656
      public Get setUserIp(java.lang.String userIp) {
2657
        return (Get) super.setUserIp(userIp);
2658
      }
2659
 
2660
      @com.google.api.client.util.Key
2661
      private java.math.BigInteger merchantId;
2662
 
2663
      /**
2664
 
2665
       */
2666
      public java.math.BigInteger getMerchantId() {
2667
        return merchantId;
2668
      }
2669
 
2670
      public Get setMerchantId(java.math.BigInteger merchantId) {
2671
        this.merchantId = merchantId;
2672
        return this;
2673
      }
2674
 
2675
      @com.google.api.client.util.Key
2676
      private java.math.BigInteger datafeedId;
2677
 
2678
      /**
2679
 
2680
       */
2681
      public java.math.BigInteger getDatafeedId() {
2682
        return datafeedId;
2683
      }
2684
 
2685
      public Get setDatafeedId(java.math.BigInteger datafeedId) {
2686
        this.datafeedId = datafeedId;
2687
        return this;
2688
      }
2689
 
2690
      @Override
2691
      public Get set(String parameterName, Object value) {
2692
        return (Get) super.set(parameterName, value);
2693
      }
2694
    }
2695
    /**
2696
     * Lists the statuses of the datafeeds in your Merchant Center account.
2697
     *
2698
     * Create a request for the method "datafeedstatuses.list".
2699
     *
2700
     * This request holds the parameters needed by the content server.  After setting any optional
2701
     * parameters, call the {@link List#execute()} method to invoke the remote operation.
2702
     *
2703
     * @param merchantId
2704
     * @return the request
2705
     */
2706
    public List list(java.math.BigInteger merchantId) throws java.io.IOException {
2707
      List result = new List(merchantId);
2708
      initialize(result);
2709
      return result;
2710
    }
2711
 
2712
    public class List extends ShoppingContentRequest<com.google.api.services.content.model.DatafeedstatusesListResponse> {
2713
 
2714
      private static final String REST_PATH = "{merchantId}/datafeedstatuses";
2715
 
2716
      /**
2717
       * Lists the statuses of the datafeeds in your Merchant Center account.
2718
       *
2719
       * Create a request for the method "datafeedstatuses.list".
2720
       *
2721
       * This request holds the parameters needed by the the content server.  After setting any optional
2722
       * parameters, call the {@link List#execute()} method to invoke the remote operation. <p> {@link
2723
       * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
2724
       * called to initialize this instance immediately after invoking the constructor. </p>
2725
       *
2726
       * @param merchantId
2727
       * @since 1.13
2728
       */
2729
      protected List(java.math.BigInteger merchantId) {
2730
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.DatafeedstatusesListResponse.class);
2731
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
2732
      }
2733
 
2734
      @Override
2735
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
2736
        return super.executeUsingHead();
2737
      }
2738
 
2739
      @Override
2740
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
2741
        return super.buildHttpRequestUsingHead();
2742
      }
2743
 
2744
      @Override
2745
      public List setAlt(java.lang.String alt) {
2746
        return (List) super.setAlt(alt);
2747
      }
2748
 
2749
      @Override
2750
      public List setFields(java.lang.String fields) {
2751
        return (List) super.setFields(fields);
2752
      }
2753
 
2754
      @Override
2755
      public List setKey(java.lang.String key) {
2756
        return (List) super.setKey(key);
2757
      }
2758
 
2759
      @Override
2760
      public List setOauthToken(java.lang.String oauthToken) {
2761
        return (List) super.setOauthToken(oauthToken);
2762
      }
2763
 
2764
      @Override
2765
      public List setPrettyPrint(java.lang.Boolean prettyPrint) {
2766
        return (List) super.setPrettyPrint(prettyPrint);
2767
      }
2768
 
2769
      @Override
2770
      public List setQuotaUser(java.lang.String quotaUser) {
2771
        return (List) super.setQuotaUser(quotaUser);
2772
      }
2773
 
2774
      @Override
2775
      public List setUserIp(java.lang.String userIp) {
2776
        return (List) super.setUserIp(userIp);
2777
      }
2778
 
2779
      @com.google.api.client.util.Key
2780
      private java.math.BigInteger merchantId;
2781
 
2782
      /**
2783
 
2784
       */
2785
      public java.math.BigInteger getMerchantId() {
2786
        return merchantId;
2787
      }
2788
 
2789
      public List setMerchantId(java.math.BigInteger merchantId) {
2790
        this.merchantId = merchantId;
2791
        return this;
2792
      }
2793
 
2794
      @Override
2795
      public List set(String parameterName, Object value) {
2796
        return (List) super.set(parameterName, value);
2797
      }
2798
    }
2799
 
2800
  }
2801
 
2802
  /**
2803
   * An accessor for creating requests from the Inventory collection.
2804
   *
2805
   * <p>The typical use is:</p>
2806
   * <pre>
2807
   *   {@code ShoppingContent content = new ShoppingContent(...);}
2808
   *   {@code ShoppingContent.Inventory.List request = content.inventory().list(parameters ...)}
2809
   * </pre>
2810
   *
2811
   * @return the resource collection
2812
   */
2813
  public Inventory inventory() {
2814
    return new Inventory();
2815
  }
2816
 
2817
  /**
2818
   * The "inventory" collection of methods.
2819
   */
2820
  public class Inventory {
2821
 
2822
    /**
2823
     * Updates price and availability for multiple products or stores in a single request.
2824
     *
2825
     * Create a request for the method "inventory.custombatch".
2826
     *
2827
     * This request holds the parameters needed by the content server.  After setting any optional
2828
     * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.
2829
     *
2830
     * @param content the {@link com.google.api.services.content.model.InventoryCustomBatchRequest}
2831
     * @return the request
2832
     */
2833
    public Custombatch custombatch(com.google.api.services.content.model.InventoryCustomBatchRequest content) throws java.io.IOException {
2834
      Custombatch result = new Custombatch(content);
2835
      initialize(result);
2836
      return result;
2837
    }
2838
 
2839
    public class Custombatch extends ShoppingContentRequest<com.google.api.services.content.model.InventoryCustomBatchResponse> {
2840
 
2841
      private static final String REST_PATH = "inventory/batch";
2842
 
2843
      /**
2844
       * Updates price and availability for multiple products or stores in a single request.
2845
       *
2846
       * Create a request for the method "inventory.custombatch".
2847
       *
2848
       * This request holds the parameters needed by the the content server.  After setting any optional
2849
       * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. <p>
2850
       * {@link
2851
       * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
2852
       * must be called to initialize this instance immediately after invoking the constructor. </p>
2853
       *
2854
       * @param content the {@link com.google.api.services.content.model.InventoryCustomBatchRequest}
2855
       * @since 1.13
2856
       */
2857
      protected Custombatch(com.google.api.services.content.model.InventoryCustomBatchRequest content) {
2858
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.InventoryCustomBatchResponse.class);
2859
      }
2860
 
2861
      @Override
2862
      public Custombatch setAlt(java.lang.String alt) {
2863
        return (Custombatch) super.setAlt(alt);
2864
      }
2865
 
2866
      @Override
2867
      public Custombatch setFields(java.lang.String fields) {
2868
        return (Custombatch) super.setFields(fields);
2869
      }
2870
 
2871
      @Override
2872
      public Custombatch setKey(java.lang.String key) {
2873
        return (Custombatch) super.setKey(key);
2874
      }
2875
 
2876
      @Override
2877
      public Custombatch setOauthToken(java.lang.String oauthToken) {
2878
        return (Custombatch) super.setOauthToken(oauthToken);
2879
      }
2880
 
2881
      @Override
2882
      public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) {
2883
        return (Custombatch) super.setPrettyPrint(prettyPrint);
2884
      }
2885
 
2886
      @Override
2887
      public Custombatch setQuotaUser(java.lang.String quotaUser) {
2888
        return (Custombatch) super.setQuotaUser(quotaUser);
2889
      }
2890
 
2891
      @Override
2892
      public Custombatch setUserIp(java.lang.String userIp) {
2893
        return (Custombatch) super.setUserIp(userIp);
2894
      }
2895
 
2896
      @Override
2897
      public Custombatch set(String parameterName, Object value) {
2898
        return (Custombatch) super.set(parameterName, value);
2899
      }
2900
    }
2901
    /**
2902
     * Updates price and availability of a product in your Merchant Center account.
2903
     *
2904
     * Create a request for the method "inventory.set".
2905
     *
2906
     * This request holds the parameters needed by the content server.  After setting any optional
2907
     * parameters, call the {@link Set#execute()} method to invoke the remote operation.
2908
     *
2909
     * @param merchantId The ID of the managing account.
2910
     * @param storeCode The code of the store for which to update price and availability. Use online to update price and
2911
     *        availability of an online product.
2912
     * @param productId The ID of the product for which to update price and availability.
2913
     * @param content the {@link com.google.api.services.content.model.InventorySetRequest}
2914
     * @return the request
2915
     */
2916
    public Set set(java.math.BigInteger merchantId, java.lang.String storeCode, java.lang.String productId, com.google.api.services.content.model.InventorySetRequest content) throws java.io.IOException {
2917
      Set result = new Set(merchantId, storeCode, productId, content);
2918
      initialize(result);
2919
      return result;
2920
    }
2921
 
2922
    public class Set extends ShoppingContentRequest<com.google.api.services.content.model.InventorySetResponse> {
2923
 
2924
      private static final String REST_PATH = "{merchantId}/inventory/{storeCode}/products/{productId}";
2925
 
2926
      /**
2927
       * Updates price and availability of a product in your Merchant Center account.
2928
       *
2929
       * Create a request for the method "inventory.set".
2930
       *
2931
       * This request holds the parameters needed by the the content server.  After setting any optional
2932
       * parameters, call the {@link Set#execute()} method to invoke the remote operation. <p> {@link
2933
       * Set#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
2934
       * called to initialize this instance immediately after invoking the constructor. </p>
2935
       *
2936
       * @param merchantId The ID of the managing account.
2937
       * @param storeCode The code of the store for which to update price and availability. Use online to update price and
2938
     *        availability of an online product.
2939
       * @param productId The ID of the product for which to update price and availability.
2940
       * @param content the {@link com.google.api.services.content.model.InventorySetRequest}
2941
       * @since 1.13
2942
       */
2943
      protected Set(java.math.BigInteger merchantId, java.lang.String storeCode, java.lang.String productId, com.google.api.services.content.model.InventorySetRequest content) {
2944
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.InventorySetResponse.class);
2945
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
2946
        this.storeCode = com.google.api.client.util.Preconditions.checkNotNull(storeCode, "Required parameter storeCode must be specified.");
2947
        this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified.");
2948
      }
2949
 
2950
      @Override
2951
      public Set setAlt(java.lang.String alt) {
2952
        return (Set) super.setAlt(alt);
2953
      }
2954
 
2955
      @Override
2956
      public Set setFields(java.lang.String fields) {
2957
        return (Set) super.setFields(fields);
2958
      }
2959
 
2960
      @Override
2961
      public Set setKey(java.lang.String key) {
2962
        return (Set) super.setKey(key);
2963
      }
2964
 
2965
      @Override
2966
      public Set setOauthToken(java.lang.String oauthToken) {
2967
        return (Set) super.setOauthToken(oauthToken);
2968
      }
2969
 
2970
      @Override
2971
      public Set setPrettyPrint(java.lang.Boolean prettyPrint) {
2972
        return (Set) super.setPrettyPrint(prettyPrint);
2973
      }
2974
 
2975
      @Override
2976
      public Set setQuotaUser(java.lang.String quotaUser) {
2977
        return (Set) super.setQuotaUser(quotaUser);
2978
      }
2979
 
2980
      @Override
2981
      public Set setUserIp(java.lang.String userIp) {
2982
        return (Set) super.setUserIp(userIp);
2983
      }
2984
 
2985
      /** The ID of the managing account. */
2986
      @com.google.api.client.util.Key
2987
      private java.math.BigInteger merchantId;
2988
 
2989
      /** The ID of the managing account.
2990
       */
2991
      public java.math.BigInteger getMerchantId() {
2992
        return merchantId;
2993
      }
2994
 
2995
      /** The ID of the managing account. */
2996
      public Set setMerchantId(java.math.BigInteger merchantId) {
2997
        this.merchantId = merchantId;
2998
        return this;
2999
      }
3000
 
3001
      /**
3002
       * The code of the store for which to update price and availability. Use online to update
3003
       * price and availability of an online product.
3004
       */
3005
      @com.google.api.client.util.Key
3006
      private java.lang.String storeCode;
3007
 
3008
      /** The code of the store for which to update price and availability. Use online to update price and
3009
     availability of an online product.
3010
       */
3011
      public java.lang.String getStoreCode() {
3012
        return storeCode;
3013
      }
3014
 
3015
      /**
3016
       * The code of the store for which to update price and availability. Use online to update
3017
       * price and availability of an online product.
3018
       */
3019
      public Set setStoreCode(java.lang.String storeCode) {
3020
        this.storeCode = storeCode;
3021
        return this;
3022
      }
3023
 
3024
      /** The ID of the product for which to update price and availability. */
3025
      @com.google.api.client.util.Key
3026
      private java.lang.String productId;
3027
 
3028
      /** The ID of the product for which to update price and availability.
3029
       */
3030
      public java.lang.String getProductId() {
3031
        return productId;
3032
      }
3033
 
3034
      /** The ID of the product for which to update price and availability. */
3035
      public Set setProductId(java.lang.String productId) {
3036
        this.productId = productId;
3037
        return this;
3038
      }
3039
 
3040
      @Override
3041
      public Set set(String parameterName, Object value) {
3042
        return (Set) super.set(parameterName, value);
3043
      }
3044
    }
3045
 
3046
  }
3047
 
3048
  /**
3049
   * An accessor for creating requests from the Products collection.
3050
   *
3051
   * <p>The typical use is:</p>
3052
   * <pre>
3053
   *   {@code ShoppingContent content = new ShoppingContent(...);}
3054
   *   {@code ShoppingContent.Products.List request = content.products().list(parameters ...)}
3055
   * </pre>
3056
   *
3057
   * @return the resource collection
3058
   */
3059
  public Products products() {
3060
    return new Products();
3061
  }
3062
 
3063
  /**
3064
   * The "products" collection of methods.
3065
   */
3066
  public class Products {
3067
 
3068
    /**
3069
     * Retrieves, inserts, and deletes multiple products in a single request.
3070
     *
3071
     * Create a request for the method "products.custombatch".
3072
     *
3073
     * This request holds the parameters needed by the content server.  After setting any optional
3074
     * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.
3075
     *
3076
     * @param content the {@link com.google.api.services.content.model.ProductsCustomBatchRequest}
3077
     * @return the request
3078
     */
3079
    public Custombatch custombatch(com.google.api.services.content.model.ProductsCustomBatchRequest content) throws java.io.IOException {
3080
      Custombatch result = new Custombatch(content);
3081
      initialize(result);
3082
      return result;
3083
    }
3084
 
3085
    public class Custombatch extends ShoppingContentRequest<com.google.api.services.content.model.ProductsCustomBatchResponse> {
3086
 
3087
      private static final String REST_PATH = "products/batch";
3088
 
3089
      /**
3090
       * Retrieves, inserts, and deletes multiple products in a single request.
3091
       *
3092
       * Create a request for the method "products.custombatch".
3093
       *
3094
       * This request holds the parameters needed by the the content server.  After setting any optional
3095
       * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. <p>
3096
       * {@link
3097
       * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
3098
       * must be called to initialize this instance immediately after invoking the constructor. </p>
3099
       *
3100
       * @param content the {@link com.google.api.services.content.model.ProductsCustomBatchRequest}
3101
       * @since 1.13
3102
       */
3103
      protected Custombatch(com.google.api.services.content.model.ProductsCustomBatchRequest content) {
3104
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.ProductsCustomBatchResponse.class);
3105
      }
3106
 
3107
      @Override
3108
      public Custombatch setAlt(java.lang.String alt) {
3109
        return (Custombatch) super.setAlt(alt);
3110
      }
3111
 
3112
      @Override
3113
      public Custombatch setFields(java.lang.String fields) {
3114
        return (Custombatch) super.setFields(fields);
3115
      }
3116
 
3117
      @Override
3118
      public Custombatch setKey(java.lang.String key) {
3119
        return (Custombatch) super.setKey(key);
3120
      }
3121
 
3122
      @Override
3123
      public Custombatch setOauthToken(java.lang.String oauthToken) {
3124
        return (Custombatch) super.setOauthToken(oauthToken);
3125
      }
3126
 
3127
      @Override
3128
      public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) {
3129
        return (Custombatch) super.setPrettyPrint(prettyPrint);
3130
      }
3131
 
3132
      @Override
3133
      public Custombatch setQuotaUser(java.lang.String quotaUser) {
3134
        return (Custombatch) super.setQuotaUser(quotaUser);
3135
      }
3136
 
3137
      @Override
3138
      public Custombatch setUserIp(java.lang.String userIp) {
3139
        return (Custombatch) super.setUserIp(userIp);
3140
      }
3141
 
3142
      /** Flag to run the request in dry-run mode. */
3143
      @com.google.api.client.util.Key
3144
      private java.lang.Boolean dryRun;
3145
 
3146
      /** Flag to run the request in dry-run mode.
3147
       */
3148
      public java.lang.Boolean getDryRun() {
3149
        return dryRun;
3150
      }
3151
 
3152
      /** Flag to run the request in dry-run mode. */
3153
      public Custombatch setDryRun(java.lang.Boolean dryRun) {
3154
        this.dryRun = dryRun;
3155
        return this;
3156
      }
3157
 
3158
      @Override
3159
      public Custombatch set(String parameterName, Object value) {
3160
        return (Custombatch) super.set(parameterName, value);
3161
      }
3162
    }
3163
    /**
3164
     * Deletes a product from your Merchant Center account.
3165
     *
3166
     * Create a request for the method "products.delete".
3167
     *
3168
     * This request holds the parameters needed by the content server.  After setting any optional
3169
     * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
3170
     *
3171
     * @param merchantId The ID of the managing account.
3172
     * @param productId The ID of the product.
3173
     * @return the request
3174
     */
3175
    public Delete delete(java.math.BigInteger merchantId, java.lang.String productId) throws java.io.IOException {
3176
      Delete result = new Delete(merchantId, productId);
3177
      initialize(result);
3178
      return result;
3179
    }
3180
 
3181
    public class Delete extends ShoppingContentRequest<Void> {
3182
 
3183
      private static final String REST_PATH = "{merchantId}/products/{productId}";
3184
 
3185
      /**
3186
       * Deletes a product from your Merchant Center account.
3187
       *
3188
       * Create a request for the method "products.delete".
3189
       *
3190
       * This request holds the parameters needed by the the content server.  After setting any optional
3191
       * parameters, call the {@link Delete#execute()} method to invoke the remote operation. <p> {@link
3192
       * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
3193
       * be called to initialize this instance immediately after invoking the constructor. </p>
3194
       *
3195
       * @param merchantId The ID of the managing account.
3196
       * @param productId The ID of the product.
3197
       * @since 1.13
3198
       */
3199
      protected Delete(java.math.BigInteger merchantId, java.lang.String productId) {
3200
        super(ShoppingContent.this, "DELETE", REST_PATH, null, Void.class);
3201
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
3202
        this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified.");
3203
      }
3204
 
3205
      @Override
3206
      public Delete setAlt(java.lang.String alt) {
3207
        return (Delete) super.setAlt(alt);
3208
      }
3209
 
3210
      @Override
3211
      public Delete setFields(java.lang.String fields) {
3212
        return (Delete) super.setFields(fields);
3213
      }
3214
 
3215
      @Override
3216
      public Delete setKey(java.lang.String key) {
3217
        return (Delete) super.setKey(key);
3218
      }
3219
 
3220
      @Override
3221
      public Delete setOauthToken(java.lang.String oauthToken) {
3222
        return (Delete) super.setOauthToken(oauthToken);
3223
      }
3224
 
3225
      @Override
3226
      public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
3227
        return (Delete) super.setPrettyPrint(prettyPrint);
3228
      }
3229
 
3230
      @Override
3231
      public Delete setQuotaUser(java.lang.String quotaUser) {
3232
        return (Delete) super.setQuotaUser(quotaUser);
3233
      }
3234
 
3235
      @Override
3236
      public Delete setUserIp(java.lang.String userIp) {
3237
        return (Delete) super.setUserIp(userIp);
3238
      }
3239
 
3240
      /** The ID of the managing account. */
3241
      @com.google.api.client.util.Key
3242
      private java.math.BigInteger merchantId;
3243
 
3244
      /** The ID of the managing account.
3245
       */
3246
      public java.math.BigInteger getMerchantId() {
3247
        return merchantId;
3248
      }
3249
 
3250
      /** The ID of the managing account. */
3251
      public Delete setMerchantId(java.math.BigInteger merchantId) {
3252
        this.merchantId = merchantId;
3253
        return this;
3254
      }
3255
 
3256
      /** The ID of the product. */
3257
      @com.google.api.client.util.Key
3258
      private java.lang.String productId;
3259
 
3260
      /** The ID of the product.
3261
       */
3262
      public java.lang.String getProductId() {
3263
        return productId;
3264
      }
3265
 
3266
      /** The ID of the product. */
3267
      public Delete setProductId(java.lang.String productId) {
3268
        this.productId = productId;
3269
        return this;
3270
      }
3271
 
3272
      /** Flag to run the request in dry-run mode. */
3273
      @com.google.api.client.util.Key
3274
      private java.lang.Boolean dryRun;
3275
 
3276
      /** Flag to run the request in dry-run mode.
3277
       */
3278
      public java.lang.Boolean getDryRun() {
3279
        return dryRun;
3280
      }
3281
 
3282
      /** Flag to run the request in dry-run mode. */
3283
      public Delete setDryRun(java.lang.Boolean dryRun) {
3284
        this.dryRun = dryRun;
3285
        return this;
3286
      }
3287
 
3288
      @Override
3289
      public Delete set(String parameterName, Object value) {
3290
        return (Delete) super.set(parameterName, value);
3291
      }
3292
    }
3293
    /**
3294
     * Retrieves a product from your Merchant Center account.
3295
     *
3296
     * Create a request for the method "products.get".
3297
     *
3298
     * This request holds the parameters needed by the content server.  After setting any optional
3299
     * parameters, call the {@link Get#execute()} method to invoke the remote operation.
3300
     *
3301
     * @param merchantId The ID of the managing account.
3302
     * @param productId The ID of the product.
3303
     * @return the request
3304
     */
3305
    public Get get(java.math.BigInteger merchantId, java.lang.String productId) throws java.io.IOException {
3306
      Get result = new Get(merchantId, productId);
3307
      initialize(result);
3308
      return result;
3309
    }
3310
 
3311
    public class Get extends ShoppingContentRequest<com.google.api.services.content.model.Product> {
3312
 
3313
      private static final String REST_PATH = "{merchantId}/products/{productId}";
3314
 
3315
      /**
3316
       * Retrieves a product from your Merchant Center account.
3317
       *
3318
       * Create a request for the method "products.get".
3319
       *
3320
       * This request holds the parameters needed by the the content server.  After setting any optional
3321
       * parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
3322
       * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
3323
       * called to initialize this instance immediately after invoking the constructor. </p>
3324
       *
3325
       * @param merchantId The ID of the managing account.
3326
       * @param productId The ID of the product.
3327
       * @since 1.13
3328
       */
3329
      protected Get(java.math.BigInteger merchantId, java.lang.String productId) {
3330
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.Product.class);
3331
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
3332
        this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified.");
3333
      }
3334
 
3335
      @Override
3336
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
3337
        return super.executeUsingHead();
3338
      }
3339
 
3340
      @Override
3341
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
3342
        return super.buildHttpRequestUsingHead();
3343
      }
3344
 
3345
      @Override
3346
      public Get setAlt(java.lang.String alt) {
3347
        return (Get) super.setAlt(alt);
3348
      }
3349
 
3350
      @Override
3351
      public Get setFields(java.lang.String fields) {
3352
        return (Get) super.setFields(fields);
3353
      }
3354
 
3355
      @Override
3356
      public Get setKey(java.lang.String key) {
3357
        return (Get) super.setKey(key);
3358
      }
3359
 
3360
      @Override
3361
      public Get setOauthToken(java.lang.String oauthToken) {
3362
        return (Get) super.setOauthToken(oauthToken);
3363
      }
3364
 
3365
      @Override
3366
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
3367
        return (Get) super.setPrettyPrint(prettyPrint);
3368
      }
3369
 
3370
      @Override
3371
      public Get setQuotaUser(java.lang.String quotaUser) {
3372
        return (Get) super.setQuotaUser(quotaUser);
3373
      }
3374
 
3375
      @Override
3376
      public Get setUserIp(java.lang.String userIp) {
3377
        return (Get) super.setUserIp(userIp);
3378
      }
3379
 
3380
      /** The ID of the managing account. */
3381
      @com.google.api.client.util.Key
3382
      private java.math.BigInteger merchantId;
3383
 
3384
      /** The ID of the managing account.
3385
       */
3386
      public java.math.BigInteger getMerchantId() {
3387
        return merchantId;
3388
      }
3389
 
3390
      /** The ID of the managing account. */
3391
      public Get setMerchantId(java.math.BigInteger merchantId) {
3392
        this.merchantId = merchantId;
3393
        return this;
3394
      }
3395
 
3396
      /** The ID of the product. */
3397
      @com.google.api.client.util.Key
3398
      private java.lang.String productId;
3399
 
3400
      /** The ID of the product.
3401
       */
3402
      public java.lang.String getProductId() {
3403
        return productId;
3404
      }
3405
 
3406
      /** The ID of the product. */
3407
      public Get setProductId(java.lang.String productId) {
3408
        this.productId = productId;
3409
        return this;
3410
      }
3411
 
3412
      @Override
3413
      public Get set(String parameterName, Object value) {
3414
        return (Get) super.set(parameterName, value);
3415
      }
3416
    }
3417
    /**
3418
     * Uploads a product to your Merchant Center account.
3419
     *
3420
     * Create a request for the method "products.insert".
3421
     *
3422
     * This request holds the parameters needed by the content server.  After setting any optional
3423
     * parameters, call the {@link Insert#execute()} method to invoke the remote operation.
3424
     *
3425
     * @param merchantId The ID of the managing account.
3426
     * @param content the {@link com.google.api.services.content.model.Product}
3427
     * @return the request
3428
     */
3429
    public Insert insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Product content) throws java.io.IOException {
3430
      Insert result = new Insert(merchantId, content);
3431
      initialize(result);
3432
      return result;
3433
    }
3434
 
3435
    public class Insert extends ShoppingContentRequest<com.google.api.services.content.model.Product> {
3436
 
3437
      private static final String REST_PATH = "{merchantId}/products";
3438
 
3439
      /**
3440
       * Uploads a product to your Merchant Center account.
3441
       *
3442
       * Create a request for the method "products.insert".
3443
       *
3444
       * This request holds the parameters needed by the the content server.  After setting any optional
3445
       * parameters, call the {@link Insert#execute()} method to invoke the remote operation. <p> {@link
3446
       * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
3447
       * be called to initialize this instance immediately after invoking the constructor. </p>
3448
       *
3449
       * @param merchantId The ID of the managing account.
3450
       * @param content the {@link com.google.api.services.content.model.Product}
3451
       * @since 1.13
3452
       */
3453
      protected Insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Product content) {
3454
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.Product.class);
3455
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
3456
        checkRequiredParameter(content, "content");
3457
        checkRequiredParameter(content.getChannel(), "Product.getChannel()");
3458
        checkRequiredParameter(content, "content");
3459
        checkRequiredParameter(content.getContentLanguage(), "Product.getContentLanguage()");
3460
        checkRequiredParameter(content, "content");
3461
        checkRequiredParameter(content.getOfferId(), "Product.getOfferId()");
3462
        checkRequiredParameter(content, "content");
3463
        checkRequiredParameter(content.getTargetCountry(), "Product.getTargetCountry()");
3464
        checkRequiredParameter(content, "content");
3465
        checkRequiredParameter(content.getTitle(), "Product.getTitle()");
3466
      }
3467
 
3468
      @Override
3469
      public Insert setAlt(java.lang.String alt) {
3470
        return (Insert) super.setAlt(alt);
3471
      }
3472
 
3473
      @Override
3474
      public Insert setFields(java.lang.String fields) {
3475
        return (Insert) super.setFields(fields);
3476
      }
3477
 
3478
      @Override
3479
      public Insert setKey(java.lang.String key) {
3480
        return (Insert) super.setKey(key);
3481
      }
3482
 
3483
      @Override
3484
      public Insert setOauthToken(java.lang.String oauthToken) {
3485
        return (Insert) super.setOauthToken(oauthToken);
3486
      }
3487
 
3488
      @Override
3489
      public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
3490
        return (Insert) super.setPrettyPrint(prettyPrint);
3491
      }
3492
 
3493
      @Override
3494
      public Insert setQuotaUser(java.lang.String quotaUser) {
3495
        return (Insert) super.setQuotaUser(quotaUser);
3496
      }
3497
 
3498
      @Override
3499
      public Insert setUserIp(java.lang.String userIp) {
3500
        return (Insert) super.setUserIp(userIp);
3501
      }
3502
 
3503
      /** The ID of the managing account. */
3504
      @com.google.api.client.util.Key
3505
      private java.math.BigInteger merchantId;
3506
 
3507
      /** The ID of the managing account.
3508
       */
3509
      public java.math.BigInteger getMerchantId() {
3510
        return merchantId;
3511
      }
3512
 
3513
      /** The ID of the managing account. */
3514
      public Insert setMerchantId(java.math.BigInteger merchantId) {
3515
        this.merchantId = merchantId;
3516
        return this;
3517
      }
3518
 
3519
      /** Flag to run the request in dry-run mode. */
3520
      @com.google.api.client.util.Key
3521
      private java.lang.Boolean dryRun;
3522
 
3523
      /** Flag to run the request in dry-run mode.
3524
       */
3525
      public java.lang.Boolean getDryRun() {
3526
        return dryRun;
3527
      }
3528
 
3529
      /** Flag to run the request in dry-run mode. */
3530
      public Insert setDryRun(java.lang.Boolean dryRun) {
3531
        this.dryRun = dryRun;
3532
        return this;
3533
      }
3534
 
3535
      @Override
3536
      public Insert set(String parameterName, Object value) {
3537
        return (Insert) super.set(parameterName, value);
3538
      }
3539
    }
3540
    /**
3541
     * Lists the products in your Merchant Center account.
3542
     *
3543
     * Create a request for the method "products.list".
3544
     *
3545
     * This request holds the parameters needed by the content server.  After setting any optional
3546
     * parameters, call the {@link List#execute()} method to invoke the remote operation.
3547
     *
3548
     * @param merchantId The ID of the managing account.
3549
     * @return the request
3550
     */
3551
    public List list(java.math.BigInteger merchantId) throws java.io.IOException {
3552
      List result = new List(merchantId);
3553
      initialize(result);
3554
      return result;
3555
    }
3556
 
3557
    public class List extends ShoppingContentRequest<com.google.api.services.content.model.ProductsListResponse> {
3558
 
3559
      private static final String REST_PATH = "{merchantId}/products";
3560
 
3561
      /**
3562
       * Lists the products in your Merchant Center account.
3563
       *
3564
       * Create a request for the method "products.list".
3565
       *
3566
       * This request holds the parameters needed by the the content server.  After setting any optional
3567
       * parameters, call the {@link List#execute()} method to invoke the remote operation. <p> {@link
3568
       * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
3569
       * called to initialize this instance immediately after invoking the constructor. </p>
3570
       *
3571
       * @param merchantId The ID of the managing account.
3572
       * @since 1.13
3573
       */
3574
      protected List(java.math.BigInteger merchantId) {
3575
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ProductsListResponse.class);
3576
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
3577
      }
3578
 
3579
      @Override
3580
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
3581
        return super.executeUsingHead();
3582
      }
3583
 
3584
      @Override
3585
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
3586
        return super.buildHttpRequestUsingHead();
3587
      }
3588
 
3589
      @Override
3590
      public List setAlt(java.lang.String alt) {
3591
        return (List) super.setAlt(alt);
3592
      }
3593
 
3594
      @Override
3595
      public List setFields(java.lang.String fields) {
3596
        return (List) super.setFields(fields);
3597
      }
3598
 
3599
      @Override
3600
      public List setKey(java.lang.String key) {
3601
        return (List) super.setKey(key);
3602
      }
3603
 
3604
      @Override
3605
      public List setOauthToken(java.lang.String oauthToken) {
3606
        return (List) super.setOauthToken(oauthToken);
3607
      }
3608
 
3609
      @Override
3610
      public List setPrettyPrint(java.lang.Boolean prettyPrint) {
3611
        return (List) super.setPrettyPrint(prettyPrint);
3612
      }
3613
 
3614
      @Override
3615
      public List setQuotaUser(java.lang.String quotaUser) {
3616
        return (List) super.setQuotaUser(quotaUser);
3617
      }
3618
 
3619
      @Override
3620
      public List setUserIp(java.lang.String userIp) {
3621
        return (List) super.setUserIp(userIp);
3622
      }
3623
 
3624
      /** The ID of the managing account. */
3625
      @com.google.api.client.util.Key
3626
      private java.math.BigInteger merchantId;
3627
 
3628
      /** The ID of the managing account.
3629
       */
3630
      public java.math.BigInteger getMerchantId() {
3631
        return merchantId;
3632
      }
3633
 
3634
      /** The ID of the managing account. */
3635
      public List setMerchantId(java.math.BigInteger merchantId) {
3636
        this.merchantId = merchantId;
3637
        return this;
3638
      }
3639
 
3640
      /** The token returned by the previous request. */
3641
      @com.google.api.client.util.Key
3642
      private java.lang.String pageToken;
3643
 
3644
      /** The token returned by the previous request.
3645
       */
3646
      public java.lang.String getPageToken() {
3647
        return pageToken;
3648
      }
3649
 
3650
      /** The token returned by the previous request. */
3651
      public List setPageToken(java.lang.String pageToken) {
3652
        this.pageToken = pageToken;
3653
        return this;
3654
      }
3655
 
3656
      /** The maximum number of products to return in the response, used for paging. */
3657
      @com.google.api.client.util.Key
3658
      private java.lang.Long maxResults;
3659
 
3660
      /** The maximum number of products to return in the response, used for paging.
3661
       */
3662
      public java.lang.Long getMaxResults() {
3663
        return maxResults;
3664
      }
3665
 
3666
      /** The maximum number of products to return in the response, used for paging. */
3667
      public List setMaxResults(java.lang.Long maxResults) {
3668
        this.maxResults = maxResults;
3669
        return this;
3670
      }
3671
 
3672
      @Override
3673
      public List set(String parameterName, Object value) {
3674
        return (List) super.set(parameterName, value);
3675
      }
3676
    }
3677
 
3678
  }
3679
 
3680
  /**
3681
   * An accessor for creating requests from the Productstatuses collection.
3682
   *
3683
   * <p>The typical use is:</p>
3684
   * <pre>
3685
   *   {@code ShoppingContent content = new ShoppingContent(...);}
3686
   *   {@code ShoppingContent.Productstatuses.List request = content.productstatuses().list(parameters ...)}
3687
   * </pre>
3688
   *
3689
   * @return the resource collection
3690
   */
3691
  public Productstatuses productstatuses() {
3692
    return new Productstatuses();
3693
  }
3694
 
3695
  /**
3696
   * The "productstatuses" collection of methods.
3697
   */
3698
  public class Productstatuses {
3699
 
3700
    /**
3701
     * Gets the statuses of multiple products in a single request.
3702
     *
3703
     * Create a request for the method "productstatuses.custombatch".
3704
     *
3705
     * This request holds the parameters needed by the content server.  After setting any optional
3706
     * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.
3707
     *
3708
     * @param content the {@link com.google.api.services.content.model.ProductstatusesCustomBatchRequest}
3709
     * @return the request
3710
     */
3711
    public Custombatch custombatch(com.google.api.services.content.model.ProductstatusesCustomBatchRequest content) throws java.io.IOException {
3712
      Custombatch result = new Custombatch(content);
3713
      initialize(result);
3714
      return result;
3715
    }
3716
 
3717
    public class Custombatch extends ShoppingContentRequest<com.google.api.services.content.model.ProductstatusesCustomBatchResponse> {
3718
 
3719
      private static final String REST_PATH = "productstatuses/batch";
3720
 
3721
      /**
3722
       * Gets the statuses of multiple products in a single request.
3723
       *
3724
       * Create a request for the method "productstatuses.custombatch".
3725
       *
3726
       * This request holds the parameters needed by the the content server.  After setting any optional
3727
       * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. <p>
3728
       * {@link
3729
       * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
3730
       * must be called to initialize this instance immediately after invoking the constructor. </p>
3731
       *
3732
       * @param content the {@link com.google.api.services.content.model.ProductstatusesCustomBatchRequest}
3733
       * @since 1.13
3734
       */
3735
      protected Custombatch(com.google.api.services.content.model.ProductstatusesCustomBatchRequest content) {
3736
        super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.ProductstatusesCustomBatchResponse.class);
3737
      }
3738
 
3739
      @Override
3740
      public Custombatch setAlt(java.lang.String alt) {
3741
        return (Custombatch) super.setAlt(alt);
3742
      }
3743
 
3744
      @Override
3745
      public Custombatch setFields(java.lang.String fields) {
3746
        return (Custombatch) super.setFields(fields);
3747
      }
3748
 
3749
      @Override
3750
      public Custombatch setKey(java.lang.String key) {
3751
        return (Custombatch) super.setKey(key);
3752
      }
3753
 
3754
      @Override
3755
      public Custombatch setOauthToken(java.lang.String oauthToken) {
3756
        return (Custombatch) super.setOauthToken(oauthToken);
3757
      }
3758
 
3759
      @Override
3760
      public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) {
3761
        return (Custombatch) super.setPrettyPrint(prettyPrint);
3762
      }
3763
 
3764
      @Override
3765
      public Custombatch setQuotaUser(java.lang.String quotaUser) {
3766
        return (Custombatch) super.setQuotaUser(quotaUser);
3767
      }
3768
 
3769
      @Override
3770
      public Custombatch setUserIp(java.lang.String userIp) {
3771
        return (Custombatch) super.setUserIp(userIp);
3772
      }
3773
 
3774
      @Override
3775
      public Custombatch set(String parameterName, Object value) {
3776
        return (Custombatch) super.set(parameterName, value);
3777
      }
3778
    }
3779
    /**
3780
     * Gets the status of a product from your Merchant Center account.
3781
     *
3782
     * Create a request for the method "productstatuses.get".
3783
     *
3784
     * This request holds the parameters needed by the content server.  After setting any optional
3785
     * parameters, call the {@link Get#execute()} method to invoke the remote operation.
3786
     *
3787
     * @param merchantId The ID of the managing account.
3788
     * @param productId The ID of the product.
3789
     * @return the request
3790
     */
3791
    public Get get(java.math.BigInteger merchantId, java.lang.String productId) throws java.io.IOException {
3792
      Get result = new Get(merchantId, productId);
3793
      initialize(result);
3794
      return result;
3795
    }
3796
 
3797
    public class Get extends ShoppingContentRequest<com.google.api.services.content.model.ProductStatus> {
3798
 
3799
      private static final String REST_PATH = "{merchantId}/productstatuses/{productId}";
3800
 
3801
      /**
3802
       * Gets the status of a product from your Merchant Center account.
3803
       *
3804
       * Create a request for the method "productstatuses.get".
3805
       *
3806
       * This request holds the parameters needed by the the content server.  After setting any optional
3807
       * parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
3808
       * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
3809
       * called to initialize this instance immediately after invoking the constructor. </p>
3810
       *
3811
       * @param merchantId The ID of the managing account.
3812
       * @param productId The ID of the product.
3813
       * @since 1.13
3814
       */
3815
      protected Get(java.math.BigInteger merchantId, java.lang.String productId) {
3816
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ProductStatus.class);
3817
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
3818
        this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified.");
3819
      }
3820
 
3821
      @Override
3822
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
3823
        return super.executeUsingHead();
3824
      }
3825
 
3826
      @Override
3827
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
3828
        return super.buildHttpRequestUsingHead();
3829
      }
3830
 
3831
      @Override
3832
      public Get setAlt(java.lang.String alt) {
3833
        return (Get) super.setAlt(alt);
3834
      }
3835
 
3836
      @Override
3837
      public Get setFields(java.lang.String fields) {
3838
        return (Get) super.setFields(fields);
3839
      }
3840
 
3841
      @Override
3842
      public Get setKey(java.lang.String key) {
3843
        return (Get) super.setKey(key);
3844
      }
3845
 
3846
      @Override
3847
      public Get setOauthToken(java.lang.String oauthToken) {
3848
        return (Get) super.setOauthToken(oauthToken);
3849
      }
3850
 
3851
      @Override
3852
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
3853
        return (Get) super.setPrettyPrint(prettyPrint);
3854
      }
3855
 
3856
      @Override
3857
      public Get setQuotaUser(java.lang.String quotaUser) {
3858
        return (Get) super.setQuotaUser(quotaUser);
3859
      }
3860
 
3861
      @Override
3862
      public Get setUserIp(java.lang.String userIp) {
3863
        return (Get) super.setUserIp(userIp);
3864
      }
3865
 
3866
      /** The ID of the managing account. */
3867
      @com.google.api.client.util.Key
3868
      private java.math.BigInteger merchantId;
3869
 
3870
      /** The ID of the managing account.
3871
       */
3872
      public java.math.BigInteger getMerchantId() {
3873
        return merchantId;
3874
      }
3875
 
3876
      /** The ID of the managing account. */
3877
      public Get setMerchantId(java.math.BigInteger merchantId) {
3878
        this.merchantId = merchantId;
3879
        return this;
3880
      }
3881
 
3882
      /** The ID of the product. */
3883
      @com.google.api.client.util.Key
3884
      private java.lang.String productId;
3885
 
3886
      /** The ID of the product.
3887
       */
3888
      public java.lang.String getProductId() {
3889
        return productId;
3890
      }
3891
 
3892
      /** The ID of the product. */
3893
      public Get setProductId(java.lang.String productId) {
3894
        this.productId = productId;
3895
        return this;
3896
      }
3897
 
3898
      @Override
3899
      public Get set(String parameterName, Object value) {
3900
        return (Get) super.set(parameterName, value);
3901
      }
3902
    }
3903
    /**
3904
     * Lists the statuses of the products in your Merchant Center account.
3905
     *
3906
     * Create a request for the method "productstatuses.list".
3907
     *
3908
     * This request holds the parameters needed by the content server.  After setting any optional
3909
     * parameters, call the {@link List#execute()} method to invoke the remote operation.
3910
     *
3911
     * @param merchantId The ID of the managing account.
3912
     * @return the request
3913
     */
3914
    public List list(java.math.BigInteger merchantId) throws java.io.IOException {
3915
      List result = new List(merchantId);
3916
      initialize(result);
3917
      return result;
3918
    }
3919
 
3920
    public class List extends ShoppingContentRequest<com.google.api.services.content.model.ProductstatusesListResponse> {
3921
 
3922
      private static final String REST_PATH = "{merchantId}/productstatuses";
3923
 
3924
      /**
3925
       * Lists the statuses of the products in your Merchant Center account.
3926
       *
3927
       * Create a request for the method "productstatuses.list".
3928
       *
3929
       * This request holds the parameters needed by the the content server.  After setting any optional
3930
       * parameters, call the {@link List#execute()} method to invoke the remote operation. <p> {@link
3931
       * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
3932
       * called to initialize this instance immediately after invoking the constructor. </p>
3933
       *
3934
       * @param merchantId The ID of the managing account.
3935
       * @since 1.13
3936
       */
3937
      protected List(java.math.BigInteger merchantId) {
3938
        super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ProductstatusesListResponse.class);
3939
        this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified.");
3940
      }
3941
 
3942
      @Override
3943
      public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
3944
        return super.executeUsingHead();
3945
      }
3946
 
3947
      @Override
3948
      public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
3949
        return super.buildHttpRequestUsingHead();
3950
      }
3951
 
3952
      @Override
3953
      public List setAlt(java.lang.String alt) {
3954
        return (List) super.setAlt(alt);
3955
      }
3956
 
3957
      @Override
3958
      public List setFields(java.lang.String fields) {
3959
        return (List) super.setFields(fields);
3960
      }
3961
 
3962
      @Override
3963
      public List setKey(java.lang.String key) {
3964
        return (List) super.setKey(key);
3965
      }
3966
 
3967
      @Override
3968
      public List setOauthToken(java.lang.String oauthToken) {
3969
        return (List) super.setOauthToken(oauthToken);
3970
      }
3971
 
3972
      @Override
3973
      public List setPrettyPrint(java.lang.Boolean prettyPrint) {
3974
        return (List) super.setPrettyPrint(prettyPrint);
3975
      }
3976
 
3977
      @Override
3978
      public List setQuotaUser(java.lang.String quotaUser) {
3979
        return (List) super.setQuotaUser(quotaUser);
3980
      }
3981
 
3982
      @Override
3983
      public List setUserIp(java.lang.String userIp) {
3984
        return (List) super.setUserIp(userIp);
3985
      }
3986
 
3987
      /** The ID of the managing account. */
3988
      @com.google.api.client.util.Key
3989
      private java.math.BigInteger merchantId;
3990
 
3991
      /** The ID of the managing account.
3992
       */
3993
      public java.math.BigInteger getMerchantId() {
3994
        return merchantId;
3995
      }
3996
 
3997
      /** The ID of the managing account. */
3998
      public List setMerchantId(java.math.BigInteger merchantId) {
3999
        this.merchantId = merchantId;
4000
        return this;
4001
      }
4002
 
4003
      /** The token returned by the previous request. */
4004
      @com.google.api.client.util.Key
4005
      private java.lang.String pageToken;
4006
 
4007
      /** The token returned by the previous request.
4008
       */
4009
      public java.lang.String getPageToken() {
4010
        return pageToken;
4011
      }
4012
 
4013
      /** The token returned by the previous request. */
4014
      public List setPageToken(java.lang.String pageToken) {
4015
        this.pageToken = pageToken;
4016
        return this;
4017
      }
4018
 
4019
      /** The maximum number of product statuses to return in the response, used for paging. */
4020
      @com.google.api.client.util.Key
4021
      private java.lang.Long maxResults;
4022
 
4023
      /** The maximum number of product statuses to return in the response, used for paging.
4024
       */
4025
      public java.lang.Long getMaxResults() {
4026
        return maxResults;
4027
      }
4028
 
4029
      /** The maximum number of product statuses to return in the response, used for paging. */
4030
      public List setMaxResults(java.lang.Long maxResults) {
4031
        this.maxResults = maxResults;
4032
        return this;
4033
      }
4034
 
4035
      @Override
4036
      public List set(String parameterName, Object value) {
4037
        return (List) super.set(parameterName, value);
4038
      }
4039
    }
4040
 
4041
  }
4042
 
4043
  /**
4044
   * Builder for {@link ShoppingContent}.
4045
   *
4046
   * <p>
4047
   * Implementation is not thread-safe.
4048
   * </p>
4049
   *
4050
   * @since 1.3.0
4051
   */
4052
  public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder {
4053
 
4054
    /**
4055
     * Returns an instance of a new builder.
4056
     *
4057
     * @param transport HTTP transport, which should normally be:
4058
     *        <ul>
4059
     *        <li>Google App Engine:
4060
     *        {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
4061
     *        <li>Android: {@code newCompatibleTransport} from
4062
     *        {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
4063
     *        <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
4064
     *        </li>
4065
     *        </ul>
4066
     * @param jsonFactory JSON factory, which may be:
4067
     *        <ul>
4068
     *        <li>Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}</li>
4069
     *        <li>Google GSON: {@code com.google.api.client.json.gson.GsonFactory}</li>
4070
     *        <li>Android Honeycomb or higher:
4071
     *        {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}</li>
4072
     *        </ul>
4073
     * @param httpRequestInitializer HTTP request initializer or {@code null} for none
4074
     * @since 1.7
4075
     */
4076
    public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory,
4077
        com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
4078
      super(
4079
          transport,
4080
          jsonFactory,
4081
          DEFAULT_ROOT_URL,
4082
          DEFAULT_SERVICE_PATH,
4083
          httpRequestInitializer,
4084
          false);
4085
    }
4086
 
4087
    /** Builds a new instance of {@link ShoppingContent}. */
4088
    @Override
4089
    public ShoppingContent build() {
4090
      return new ShoppingContent(this);
4091
    }
4092
 
4093
    @Override
4094
    public Builder setRootUrl(String rootUrl) {
4095
      return (Builder) super.setRootUrl(rootUrl);
4096
    }
4097
 
4098
    @Override
4099
    public Builder setServicePath(String servicePath) {
4100
      return (Builder) super.setServicePath(servicePath);
4101
    }
4102
 
4103
    @Override
4104
    public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
4105
      return (Builder) super.setHttpRequestInitializer(httpRequestInitializer);
4106
    }
4107
 
4108
    @Override
4109
    public Builder setApplicationName(String applicationName) {
4110
      return (Builder) super.setApplicationName(applicationName);
4111
    }
4112
 
4113
    @Override
4114
    public Builder setSuppressPatternChecks(boolean suppressPatternChecks) {
4115
      return (Builder) super.setSuppressPatternChecks(suppressPatternChecks);
4116
    }
4117
 
4118
    @Override
4119
    public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) {
4120
      return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks);
4121
    }
4122
 
4123
    @Override
4124
    public Builder setSuppressAllChecks(boolean suppressAllChecks) {
4125
      return (Builder) super.setSuppressAllChecks(suppressAllChecks);
4126
    }
4127
 
4128
    /**
4129
     * Set the {@link ShoppingContentRequestInitializer}.
4130
     *
4131
     * @since 1.12
4132
     */
4133
    public Builder setShoppingContentRequestInitializer(
4134
        ShoppingContentRequestInitializer shoppingcontentRequestInitializer) {
4135
      return (Builder) super.setGoogleClientRequestInitializer(shoppingcontentRequestInitializer);
4136
    }
4137
 
4138
    @Override
4139
    public Builder setGoogleClientRequestInitializer(
4140
        com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) {
4141
      return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer);
4142
    }
4143
  }
4144
}