Subversion Repositories SmartDukaan

Rev

Rev 9048 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9048 manish.sha 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.googleadwords;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class GoogleAdwordsService {
24
 
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
26
 
27
    public void addAdwordsCampaign(AdwordsCampaign campaign) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
28
 
29
    public void addAdwordsAdGroup(AdwordsAdGroup adgroup) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
30
 
31
    public void addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
32
 
33
    public void addAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
34
 
35
    public void updateAdwordsCampaign(AdwordsCampaign campaign) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
36
 
37
    public void updateAdwordsAdGroup(AdwordsAdGroup adgroup) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
38
 
39
    public void updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
40
 
9233 manish.sha 41
    public void updateAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
42
 
9048 manish.sha 43
    public void deleteAdwordsCampaign(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
44
 
45
    public void deleteAdwordsAdGroup(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
46
 
47
    public void deleteAdwordsAdGroupAd(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
48
 
49
    public void deleteAdwordsAdKeyword(long criterionId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
50
 
51
    public AdwordsCampaign getAdwordsCampaignByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
52
 
53
    public AdwordsAdGroup getAdwordsAdGroupByAdGroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
54
 
55
    public AdwordsAdGroupAd getAdwordsAdgroupAdByAdId(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
56
 
9233 manish.sha 57
    public AdwordsAdKeyword getAdwordsAdKeywordByCriterionIdAndAdGroupId(long criterionId, long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
9048 manish.sha 58
 
59
    public List<AdwordsAdKeyword> getAdwordsAdKeywordsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
60
 
61
    public List<AdwordsAdGroupAd> getAdwordsAdGroupAdsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
62
 
63
    public List<AdwordsAdGroup> getAdwordsAdGroupsByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
64
 
65
    public List<AdwordsCampaign> getAllAdwordsCampaigns() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
66
 
67
    public List<AdwordsAdGroup> getAllAdwordsAdGroups() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
68
 
69
    public List<AdwordsAdGroupAd> getAllAdwordsAdGroupAds() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
70
 
71
    public List<AdwordsAdKeyword> getAllAdwordsAdKeywords() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
72
 
73
  }
74
 
75
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
76
 
77
    public void addAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException;
78
 
79
    public void addAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException;
80
 
81
    public void addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException;
82
 
83
    public void addAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException;
84
 
85
    public void updateAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException;
86
 
87
    public void updateAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException;
88
 
89
    public void updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException;
90
 
9233 manish.sha 91
    public void updateAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException;
92
 
9048 manish.sha 93
    public void deleteAdwordsCampaign(long campaignId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException;
94
 
95
    public void deleteAdwordsAdGroup(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException;
96
 
97
    public void deleteAdwordsAdGroupAd(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException;
98
 
99
    public void deleteAdwordsAdKeyword(long criterionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException;
100
 
101
    public void getAdwordsCampaignByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsCampaignByCampaignId_call> resultHandler) throws org.apache.thrift.TException;
102
 
103
    public void getAdwordsAdGroupByAdGroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdGroupByAdGroupId_call> resultHandler) throws org.apache.thrift.TException;
104
 
105
    public void getAdwordsAdgroupAdByAdId(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdgroupAdByAdId_call> resultHandler) throws org.apache.thrift.TException;
106
 
9233 manish.sha 107
    public void getAdwordsAdKeywordByCriterionIdAndAdGroupId(long criterionId, long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdKeywordByCriterionIdAndAdGroupId_call> resultHandler) throws org.apache.thrift.TException;
9048 manish.sha 108
 
109
    public void getAdwordsAdKeywordsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdKeywordsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException;
110
 
111
    public void getAdwordsAdGroupAdsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdGroupAdsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException;
112
 
113
    public void getAdwordsAdGroupsByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdGroupsByCampaignId_call> resultHandler) throws org.apache.thrift.TException;
114
 
115
    public void getAllAdwordsCampaigns(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsCampaigns_call> resultHandler) throws org.apache.thrift.TException;
116
 
117
    public void getAllAdwordsAdGroups(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsAdGroups_call> resultHandler) throws org.apache.thrift.TException;
118
 
119
    public void getAllAdwordsAdGroupAds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsAdGroupAds_call> resultHandler) throws org.apache.thrift.TException;
120
 
121
    public void getAllAdwordsAdKeywords(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsAdKeywords_call> resultHandler) throws org.apache.thrift.TException;
122
 
123
  }
124
 
125
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
126
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
127
      public Factory() {}
128
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
129
        return new Client(prot);
130
      }
131
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
132
        return new Client(iprot, oprot);
133
      }
134
    }
135
 
136
    public Client(org.apache.thrift.protocol.TProtocol prot)
137
    {
138
      super(prot, prot);
139
    }
140
 
141
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
142
      super(iprot, oprot);
143
    }
144
 
145
    public void addAdwordsCampaign(AdwordsCampaign campaign) throws GoogleAdwordsServiceException, org.apache.thrift.TException
146
    {
147
      send_addAdwordsCampaign(campaign);
148
      recv_addAdwordsCampaign();
149
    }
150
 
151
    public void send_addAdwordsCampaign(AdwordsCampaign campaign) throws org.apache.thrift.TException
152
    {
153
      addAdwordsCampaign_args args = new addAdwordsCampaign_args();
154
      args.setCampaign(campaign);
155
      sendBase("addAdwordsCampaign", args);
156
    }
157
 
158
    public void recv_addAdwordsCampaign() throws GoogleAdwordsServiceException, org.apache.thrift.TException
159
    {
160
      addAdwordsCampaign_result result = new addAdwordsCampaign_result();
161
      receiveBase(result, "addAdwordsCampaign");
162
      if (result.gasex != null) {
163
        throw result.gasex;
164
      }
165
      return;
166
    }
167
 
168
    public void addAdwordsAdGroup(AdwordsAdGroup adgroup) throws GoogleAdwordsServiceException, org.apache.thrift.TException
169
    {
170
      send_addAdwordsAdGroup(adgroup);
171
      recv_addAdwordsAdGroup();
172
    }
173
 
174
    public void send_addAdwordsAdGroup(AdwordsAdGroup adgroup) throws org.apache.thrift.TException
175
    {
176
      addAdwordsAdGroup_args args = new addAdwordsAdGroup_args();
177
      args.setAdgroup(adgroup);
178
      sendBase("addAdwordsAdGroup", args);
179
    }
180
 
181
    public void recv_addAdwordsAdGroup() throws GoogleAdwordsServiceException, org.apache.thrift.TException
182
    {
183
      addAdwordsAdGroup_result result = new addAdwordsAdGroup_result();
184
      receiveBase(result, "addAdwordsAdGroup");
185
      if (result.gasex != null) {
186
        throw result.gasex;
187
      }
188
      return;
189
    }
190
 
191
    public void addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws GoogleAdwordsServiceException, org.apache.thrift.TException
192
    {
193
      send_addAdwordsAdGroupAd(adgroupad);
194
      recv_addAdwordsAdGroupAd();
195
    }
196
 
197
    public void send_addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws org.apache.thrift.TException
198
    {
199
      addAdwordsAdGroupAd_args args = new addAdwordsAdGroupAd_args();
200
      args.setAdgroupad(adgroupad);
201
      sendBase("addAdwordsAdGroupAd", args);
202
    }
203
 
204
    public void recv_addAdwordsAdGroupAd() throws GoogleAdwordsServiceException, org.apache.thrift.TException
205
    {
206
      addAdwordsAdGroupAd_result result = new addAdwordsAdGroupAd_result();
207
      receiveBase(result, "addAdwordsAdGroupAd");
208
      if (result.gasex != null) {
209
        throw result.gasex;
210
      }
211
      return;
212
    }
213
 
214
    public void addAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws GoogleAdwordsServiceException, org.apache.thrift.TException
215
    {
216
      send_addAdwordsAdKeyword(adkeyword);
217
      recv_addAdwordsAdKeyword();
218
    }
219
 
220
    public void send_addAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws org.apache.thrift.TException
221
    {
222
      addAdwordsAdKeyword_args args = new addAdwordsAdKeyword_args();
223
      args.setAdkeyword(adkeyword);
224
      sendBase("addAdwordsAdKeyword", args);
225
    }
226
 
227
    public void recv_addAdwordsAdKeyword() throws GoogleAdwordsServiceException, org.apache.thrift.TException
228
    {
229
      addAdwordsAdKeyword_result result = new addAdwordsAdKeyword_result();
230
      receiveBase(result, "addAdwordsAdKeyword");
231
      if (result.gasex != null) {
232
        throw result.gasex;
233
      }
234
      return;
235
    }
236
 
237
    public void updateAdwordsCampaign(AdwordsCampaign campaign) throws GoogleAdwordsServiceException, org.apache.thrift.TException
238
    {
239
      send_updateAdwordsCampaign(campaign);
240
      recv_updateAdwordsCampaign();
241
    }
242
 
243
    public void send_updateAdwordsCampaign(AdwordsCampaign campaign) throws org.apache.thrift.TException
244
    {
245
      updateAdwordsCampaign_args args = new updateAdwordsCampaign_args();
246
      args.setCampaign(campaign);
247
      sendBase("updateAdwordsCampaign", args);
248
    }
249
 
250
    public void recv_updateAdwordsCampaign() throws GoogleAdwordsServiceException, org.apache.thrift.TException
251
    {
252
      updateAdwordsCampaign_result result = new updateAdwordsCampaign_result();
253
      receiveBase(result, "updateAdwordsCampaign");
254
      if (result.gasex != null) {
255
        throw result.gasex;
256
      }
257
      return;
258
    }
259
 
260
    public void updateAdwordsAdGroup(AdwordsAdGroup adgroup) throws GoogleAdwordsServiceException, org.apache.thrift.TException
261
    {
262
      send_updateAdwordsAdGroup(adgroup);
263
      recv_updateAdwordsAdGroup();
264
    }
265
 
266
    public void send_updateAdwordsAdGroup(AdwordsAdGroup adgroup) throws org.apache.thrift.TException
267
    {
268
      updateAdwordsAdGroup_args args = new updateAdwordsAdGroup_args();
269
      args.setAdgroup(adgroup);
270
      sendBase("updateAdwordsAdGroup", args);
271
    }
272
 
273
    public void recv_updateAdwordsAdGroup() throws GoogleAdwordsServiceException, org.apache.thrift.TException
274
    {
275
      updateAdwordsAdGroup_result result = new updateAdwordsAdGroup_result();
276
      receiveBase(result, "updateAdwordsAdGroup");
277
      if (result.gasex != null) {
278
        throw result.gasex;
279
      }
280
      return;
281
    }
282
 
283
    public void updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws GoogleAdwordsServiceException, org.apache.thrift.TException
284
    {
285
      send_updateAdwordsAdKeyword(adkeyword);
286
      recv_updateAdwordsAdKeyword();
287
    }
288
 
289
    public void send_updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws org.apache.thrift.TException
290
    {
291
      updateAdwordsAdKeyword_args args = new updateAdwordsAdKeyword_args();
292
      args.setAdkeyword(adkeyword);
293
      sendBase("updateAdwordsAdKeyword", args);
294
    }
295
 
296
    public void recv_updateAdwordsAdKeyword() throws GoogleAdwordsServiceException, org.apache.thrift.TException
297
    {
298
      updateAdwordsAdKeyword_result result = new updateAdwordsAdKeyword_result();
299
      receiveBase(result, "updateAdwordsAdKeyword");
300
      if (result.gasex != null) {
301
        throw result.gasex;
302
      }
303
      return;
304
    }
305
 
9233 manish.sha 306
    public void updateAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws GoogleAdwordsServiceException, org.apache.thrift.TException
307
    {
308
      send_updateAdwordsAdGroupAd(adgroupad);
309
      recv_updateAdwordsAdGroupAd();
310
    }
311
 
312
    public void send_updateAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws org.apache.thrift.TException
313
    {
314
      updateAdwordsAdGroupAd_args args = new updateAdwordsAdGroupAd_args();
315
      args.setAdgroupad(adgroupad);
316
      sendBase("updateAdwordsAdGroupAd", args);
317
    }
318
 
319
    public void recv_updateAdwordsAdGroupAd() throws GoogleAdwordsServiceException, org.apache.thrift.TException
320
    {
321
      updateAdwordsAdGroupAd_result result = new updateAdwordsAdGroupAd_result();
322
      receiveBase(result, "updateAdwordsAdGroupAd");
323
      if (result.gasex != null) {
324
        throw result.gasex;
325
      }
326
      return;
327
    }
328
 
9048 manish.sha 329
    public void deleteAdwordsCampaign(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
330
    {
331
      send_deleteAdwordsCampaign(campaignId);
332
      recv_deleteAdwordsCampaign();
333
    }
334
 
335
    public void send_deleteAdwordsCampaign(long campaignId) throws org.apache.thrift.TException
336
    {
337
      deleteAdwordsCampaign_args args = new deleteAdwordsCampaign_args();
338
      args.setCampaignId(campaignId);
339
      sendBase("deleteAdwordsCampaign", args);
340
    }
341
 
342
    public void recv_deleteAdwordsCampaign() throws GoogleAdwordsServiceException, org.apache.thrift.TException
343
    {
344
      deleteAdwordsCampaign_result result = new deleteAdwordsCampaign_result();
345
      receiveBase(result, "deleteAdwordsCampaign");
346
      if (result.gasex != null) {
347
        throw result.gasex;
348
      }
349
      return;
350
    }
351
 
352
    public void deleteAdwordsAdGroup(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
353
    {
354
      send_deleteAdwordsAdGroup(adgroupId);
355
      recv_deleteAdwordsAdGroup();
356
    }
357
 
358
    public void send_deleteAdwordsAdGroup(long adgroupId) throws org.apache.thrift.TException
359
    {
360
      deleteAdwordsAdGroup_args args = new deleteAdwordsAdGroup_args();
361
      args.setAdgroupId(adgroupId);
362
      sendBase("deleteAdwordsAdGroup", args);
363
    }
364
 
365
    public void recv_deleteAdwordsAdGroup() throws GoogleAdwordsServiceException, org.apache.thrift.TException
366
    {
367
      deleteAdwordsAdGroup_result result = new deleteAdwordsAdGroup_result();
368
      receiveBase(result, "deleteAdwordsAdGroup");
369
      if (result.gasex != null) {
370
        throw result.gasex;
371
      }
372
      return;
373
    }
374
 
375
    public void deleteAdwordsAdGroupAd(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
376
    {
377
      send_deleteAdwordsAdGroupAd(adgroupadId);
378
      recv_deleteAdwordsAdGroupAd();
379
    }
380
 
381
    public void send_deleteAdwordsAdGroupAd(long adgroupadId) throws org.apache.thrift.TException
382
    {
383
      deleteAdwordsAdGroupAd_args args = new deleteAdwordsAdGroupAd_args();
384
      args.setAdgroupadId(adgroupadId);
385
      sendBase("deleteAdwordsAdGroupAd", args);
386
    }
387
 
388
    public void recv_deleteAdwordsAdGroupAd() throws GoogleAdwordsServiceException, org.apache.thrift.TException
389
    {
390
      deleteAdwordsAdGroupAd_result result = new deleteAdwordsAdGroupAd_result();
391
      receiveBase(result, "deleteAdwordsAdGroupAd");
392
      if (result.gasex != null) {
393
        throw result.gasex;
394
      }
395
      return;
396
    }
397
 
398
    public void deleteAdwordsAdKeyword(long criterionId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
399
    {
400
      send_deleteAdwordsAdKeyword(criterionId);
401
      recv_deleteAdwordsAdKeyword();
402
    }
403
 
404
    public void send_deleteAdwordsAdKeyword(long criterionId) throws org.apache.thrift.TException
405
    {
406
      deleteAdwordsAdKeyword_args args = new deleteAdwordsAdKeyword_args();
407
      args.setCriterionId(criterionId);
408
      sendBase("deleteAdwordsAdKeyword", args);
409
    }
410
 
411
    public void recv_deleteAdwordsAdKeyword() throws GoogleAdwordsServiceException, org.apache.thrift.TException
412
    {
413
      deleteAdwordsAdKeyword_result result = new deleteAdwordsAdKeyword_result();
414
      receiveBase(result, "deleteAdwordsAdKeyword");
415
      if (result.gasex != null) {
416
        throw result.gasex;
417
      }
418
      return;
419
    }
420
 
421
    public AdwordsCampaign getAdwordsCampaignByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
422
    {
423
      send_getAdwordsCampaignByCampaignId(campaignId);
424
      return recv_getAdwordsCampaignByCampaignId();
425
    }
426
 
427
    public void send_getAdwordsCampaignByCampaignId(long campaignId) throws org.apache.thrift.TException
428
    {
429
      getAdwordsCampaignByCampaignId_args args = new getAdwordsCampaignByCampaignId_args();
430
      args.setCampaignId(campaignId);
431
      sendBase("getAdwordsCampaignByCampaignId", args);
432
    }
433
 
434
    public AdwordsCampaign recv_getAdwordsCampaignByCampaignId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
435
    {
436
      getAdwordsCampaignByCampaignId_result result = new getAdwordsCampaignByCampaignId_result();
437
      receiveBase(result, "getAdwordsCampaignByCampaignId");
438
      if (result.isSetSuccess()) {
439
        return result.success;
440
      }
441
      if (result.gasex != null) {
442
        throw result.gasex;
443
      }
444
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsCampaignByCampaignId failed: unknown result");
445
    }
446
 
447
    public AdwordsAdGroup getAdwordsAdGroupByAdGroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
448
    {
449
      send_getAdwordsAdGroupByAdGroupId(adgroupId);
450
      return recv_getAdwordsAdGroupByAdGroupId();
451
    }
452
 
453
    public void send_getAdwordsAdGroupByAdGroupId(long adgroupId) throws org.apache.thrift.TException
454
    {
455
      getAdwordsAdGroupByAdGroupId_args args = new getAdwordsAdGroupByAdGroupId_args();
456
      args.setAdgroupId(adgroupId);
457
      sendBase("getAdwordsAdGroupByAdGroupId", args);
458
    }
459
 
460
    public AdwordsAdGroup recv_getAdwordsAdGroupByAdGroupId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
461
    {
462
      getAdwordsAdGroupByAdGroupId_result result = new getAdwordsAdGroupByAdGroupId_result();
463
      receiveBase(result, "getAdwordsAdGroupByAdGroupId");
464
      if (result.isSetSuccess()) {
465
        return result.success;
466
      }
467
      if (result.gasex != null) {
468
        throw result.gasex;
469
      }
470
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdGroupByAdGroupId failed: unknown result");
471
    }
472
 
473
    public AdwordsAdGroupAd getAdwordsAdgroupAdByAdId(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
474
    {
475
      send_getAdwordsAdgroupAdByAdId(adgroupadId);
476
      return recv_getAdwordsAdgroupAdByAdId();
477
    }
478
 
479
    public void send_getAdwordsAdgroupAdByAdId(long adgroupadId) throws org.apache.thrift.TException
480
    {
481
      getAdwordsAdgroupAdByAdId_args args = new getAdwordsAdgroupAdByAdId_args();
482
      args.setAdgroupadId(adgroupadId);
483
      sendBase("getAdwordsAdgroupAdByAdId", args);
484
    }
485
 
486
    public AdwordsAdGroupAd recv_getAdwordsAdgroupAdByAdId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
487
    {
488
      getAdwordsAdgroupAdByAdId_result result = new getAdwordsAdgroupAdByAdId_result();
489
      receiveBase(result, "getAdwordsAdgroupAdByAdId");
490
      if (result.isSetSuccess()) {
491
        return result.success;
492
      }
493
      if (result.gasex != null) {
494
        throw result.gasex;
495
      }
496
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdgroupAdByAdId failed: unknown result");
497
    }
498
 
9233 manish.sha 499
    public AdwordsAdKeyword getAdwordsAdKeywordByCriterionIdAndAdGroupId(long criterionId, long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
9048 manish.sha 500
    {
9233 manish.sha 501
      send_getAdwordsAdKeywordByCriterionIdAndAdGroupId(criterionId, adgroupId);
502
      return recv_getAdwordsAdKeywordByCriterionIdAndAdGroupId();
9048 manish.sha 503
    }
504
 
9233 manish.sha 505
    public void send_getAdwordsAdKeywordByCriterionIdAndAdGroupId(long criterionId, long adgroupId) throws org.apache.thrift.TException
9048 manish.sha 506
    {
9233 manish.sha 507
      getAdwordsAdKeywordByCriterionIdAndAdGroupId_args args = new getAdwordsAdKeywordByCriterionIdAndAdGroupId_args();
9048 manish.sha 508
      args.setCriterionId(criterionId);
9233 manish.sha 509
      args.setAdgroupId(adgroupId);
510
      sendBase("getAdwordsAdKeywordByCriterionIdAndAdGroupId", args);
9048 manish.sha 511
    }
512
 
9233 manish.sha 513
    public AdwordsAdKeyword recv_getAdwordsAdKeywordByCriterionIdAndAdGroupId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
9048 manish.sha 514
    {
9233 manish.sha 515
      getAdwordsAdKeywordByCriterionIdAndAdGroupId_result result = new getAdwordsAdKeywordByCriterionIdAndAdGroupId_result();
516
      receiveBase(result, "getAdwordsAdKeywordByCriterionIdAndAdGroupId");
9048 manish.sha 517
      if (result.isSetSuccess()) {
518
        return result.success;
519
      }
520
      if (result.gasex != null) {
521
        throw result.gasex;
522
      }
9233 manish.sha 523
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordByCriterionIdAndAdGroupId failed: unknown result");
9048 manish.sha 524
    }
525
 
526
    public List<AdwordsAdKeyword> getAdwordsAdKeywordsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
527
    {
528
      send_getAdwordsAdKeywordsByAdgroupId(adgroupId);
529
      return recv_getAdwordsAdKeywordsByAdgroupId();
530
    }
531
 
532
    public void send_getAdwordsAdKeywordsByAdgroupId(long adgroupId) throws org.apache.thrift.TException
533
    {
534
      getAdwordsAdKeywordsByAdgroupId_args args = new getAdwordsAdKeywordsByAdgroupId_args();
535
      args.setAdgroupId(adgroupId);
536
      sendBase("getAdwordsAdKeywordsByAdgroupId", args);
537
    }
538
 
539
    public List<AdwordsAdKeyword> recv_getAdwordsAdKeywordsByAdgroupId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
540
    {
541
      getAdwordsAdKeywordsByAdgroupId_result result = new getAdwordsAdKeywordsByAdgroupId_result();
542
      receiveBase(result, "getAdwordsAdKeywordsByAdgroupId");
543
      if (result.isSetSuccess()) {
544
        return result.success;
545
      }
546
      if (result.gasex != null) {
547
        throw result.gasex;
548
      }
549
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordsByAdgroupId failed: unknown result");
550
    }
551
 
552
    public List<AdwordsAdGroupAd> getAdwordsAdGroupAdsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
553
    {
554
      send_getAdwordsAdGroupAdsByAdgroupId(adgroupId);
555
      return recv_getAdwordsAdGroupAdsByAdgroupId();
556
    }
557
 
558
    public void send_getAdwordsAdGroupAdsByAdgroupId(long adgroupId) throws org.apache.thrift.TException
559
    {
560
      getAdwordsAdGroupAdsByAdgroupId_args args = new getAdwordsAdGroupAdsByAdgroupId_args();
561
      args.setAdgroupId(adgroupId);
562
      sendBase("getAdwordsAdGroupAdsByAdgroupId", args);
563
    }
564
 
565
    public List<AdwordsAdGroupAd> recv_getAdwordsAdGroupAdsByAdgroupId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
566
    {
567
      getAdwordsAdGroupAdsByAdgroupId_result result = new getAdwordsAdGroupAdsByAdgroupId_result();
568
      receiveBase(result, "getAdwordsAdGroupAdsByAdgroupId");
569
      if (result.isSetSuccess()) {
570
        return result.success;
571
      }
572
      if (result.gasex != null) {
573
        throw result.gasex;
574
      }
575
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdGroupAdsByAdgroupId failed: unknown result");
576
    }
577
 
578
    public List<AdwordsAdGroup> getAdwordsAdGroupsByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
579
    {
580
      send_getAdwordsAdGroupsByCampaignId(campaignId);
581
      return recv_getAdwordsAdGroupsByCampaignId();
582
    }
583
 
584
    public void send_getAdwordsAdGroupsByCampaignId(long campaignId) throws org.apache.thrift.TException
585
    {
586
      getAdwordsAdGroupsByCampaignId_args args = new getAdwordsAdGroupsByCampaignId_args();
587
      args.setCampaignId(campaignId);
588
      sendBase("getAdwordsAdGroupsByCampaignId", args);
589
    }
590
 
591
    public List<AdwordsAdGroup> recv_getAdwordsAdGroupsByCampaignId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
592
    {
593
      getAdwordsAdGroupsByCampaignId_result result = new getAdwordsAdGroupsByCampaignId_result();
594
      receiveBase(result, "getAdwordsAdGroupsByCampaignId");
595
      if (result.isSetSuccess()) {
596
        return result.success;
597
      }
598
      if (result.gasex != null) {
599
        throw result.gasex;
600
      }
601
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdGroupsByCampaignId failed: unknown result");
602
    }
603
 
604
    public List<AdwordsCampaign> getAllAdwordsCampaigns() throws GoogleAdwordsServiceException, org.apache.thrift.TException
605
    {
606
      send_getAllAdwordsCampaigns();
607
      return recv_getAllAdwordsCampaigns();
608
    }
609
 
610
    public void send_getAllAdwordsCampaigns() throws org.apache.thrift.TException
611
    {
612
      getAllAdwordsCampaigns_args args = new getAllAdwordsCampaigns_args();
613
      sendBase("getAllAdwordsCampaigns", args);
614
    }
615
 
616
    public List<AdwordsCampaign> recv_getAllAdwordsCampaigns() throws GoogleAdwordsServiceException, org.apache.thrift.TException
617
    {
618
      getAllAdwordsCampaigns_result result = new getAllAdwordsCampaigns_result();
619
      receiveBase(result, "getAllAdwordsCampaigns");
620
      if (result.isSetSuccess()) {
621
        return result.success;
622
      }
623
      if (result.gasex != null) {
624
        throw result.gasex;
625
      }
626
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsCampaigns failed: unknown result");
627
    }
628
 
629
    public List<AdwordsAdGroup> getAllAdwordsAdGroups() throws GoogleAdwordsServiceException, org.apache.thrift.TException
630
    {
631
      send_getAllAdwordsAdGroups();
632
      return recv_getAllAdwordsAdGroups();
633
    }
634
 
635
    public void send_getAllAdwordsAdGroups() throws org.apache.thrift.TException
636
    {
637
      getAllAdwordsAdGroups_args args = new getAllAdwordsAdGroups_args();
638
      sendBase("getAllAdwordsAdGroups", args);
639
    }
640
 
641
    public List<AdwordsAdGroup> recv_getAllAdwordsAdGroups() throws GoogleAdwordsServiceException, org.apache.thrift.TException
642
    {
643
      getAllAdwordsAdGroups_result result = new getAllAdwordsAdGroups_result();
644
      receiveBase(result, "getAllAdwordsAdGroups");
645
      if (result.isSetSuccess()) {
646
        return result.success;
647
      }
648
      if (result.gasex != null) {
649
        throw result.gasex;
650
      }
651
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsAdGroups failed: unknown result");
652
    }
653
 
654
    public List<AdwordsAdGroupAd> getAllAdwordsAdGroupAds() throws GoogleAdwordsServiceException, org.apache.thrift.TException
655
    {
656
      send_getAllAdwordsAdGroupAds();
657
      return recv_getAllAdwordsAdGroupAds();
658
    }
659
 
660
    public void send_getAllAdwordsAdGroupAds() throws org.apache.thrift.TException
661
    {
662
      getAllAdwordsAdGroupAds_args args = new getAllAdwordsAdGroupAds_args();
663
      sendBase("getAllAdwordsAdGroupAds", args);
664
    }
665
 
666
    public List<AdwordsAdGroupAd> recv_getAllAdwordsAdGroupAds() throws GoogleAdwordsServiceException, org.apache.thrift.TException
667
    {
668
      getAllAdwordsAdGroupAds_result result = new getAllAdwordsAdGroupAds_result();
669
      receiveBase(result, "getAllAdwordsAdGroupAds");
670
      if (result.isSetSuccess()) {
671
        return result.success;
672
      }
673
      if (result.gasex != null) {
674
        throw result.gasex;
675
      }
676
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsAdGroupAds failed: unknown result");
677
    }
678
 
679
    public List<AdwordsAdKeyword> getAllAdwordsAdKeywords() throws GoogleAdwordsServiceException, org.apache.thrift.TException
680
    {
681
      send_getAllAdwordsAdKeywords();
682
      return recv_getAllAdwordsAdKeywords();
683
    }
684
 
685
    public void send_getAllAdwordsAdKeywords() throws org.apache.thrift.TException
686
    {
687
      getAllAdwordsAdKeywords_args args = new getAllAdwordsAdKeywords_args();
688
      sendBase("getAllAdwordsAdKeywords", args);
689
    }
690
 
691
    public List<AdwordsAdKeyword> recv_getAllAdwordsAdKeywords() throws GoogleAdwordsServiceException, org.apache.thrift.TException
692
    {
693
      getAllAdwordsAdKeywords_result result = new getAllAdwordsAdKeywords_result();
694
      receiveBase(result, "getAllAdwordsAdKeywords");
695
      if (result.isSetSuccess()) {
696
        return result.success;
697
      }
698
      if (result.gasex != null) {
699
        throw result.gasex;
700
      }
701
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsAdKeywords failed: unknown result");
702
    }
703
 
704
  }
705
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
706
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
707
      private org.apache.thrift.async.TAsyncClientManager clientManager;
708
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
709
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
710
        this.clientManager = clientManager;
711
        this.protocolFactory = protocolFactory;
712
      }
713
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
714
        return new AsyncClient(protocolFactory, clientManager, transport);
715
      }
716
    }
717
 
718
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
719
      super(protocolFactory, clientManager, transport);
720
    }
721
 
722
    public void addAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<addAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException {
723
      checkReady();
724
      addAdwordsCampaign_call method_call = new addAdwordsCampaign_call(campaign, resultHandler, this, ___protocolFactory, ___transport);
725
      this.___currentMethod = method_call;
726
      ___manager.call(method_call);
727
    }
728
 
729
    public static class addAdwordsCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {
730
      private AdwordsCampaign campaign;
731
      public addAdwordsCampaign_call(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<addAdwordsCampaign_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
732
        super(client, protocolFactory, transport, resultHandler, false);
733
        this.campaign = campaign;
734
      }
735
 
736
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
737
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));
738
        addAdwordsCampaign_args args = new addAdwordsCampaign_args();
739
        args.setCampaign(campaign);
740
        args.write(prot);
741
        prot.writeMessageEnd();
742
      }
743
 
744
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
745
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
746
          throw new IllegalStateException("Method call not finished!");
747
        }
748
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
749
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
750
        (new Client(prot)).recv_addAdwordsCampaign();
751
      }
752
    }
753
 
754
    public void addAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException {
755
      checkReady();
756
      addAdwordsAdGroup_call method_call = new addAdwordsAdGroup_call(adgroup, resultHandler, this, ___protocolFactory, ___transport);
757
      this.___currentMethod = method_call;
758
      ___manager.call(method_call);
759
    }
760
 
761
    public static class addAdwordsAdGroup_call extends org.apache.thrift.async.TAsyncMethodCall {
762
      private AdwordsAdGroup adgroup;
763
      public addAdwordsAdGroup_call(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdGroup_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
764
        super(client, protocolFactory, transport, resultHandler, false);
765
        this.adgroup = adgroup;
766
      }
767
 
768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsAdGroup", org.apache.thrift.protocol.TMessageType.CALL, 0));
770
        addAdwordsAdGroup_args args = new addAdwordsAdGroup_args();
771
        args.setAdgroup(adgroup);
772
        args.write(prot);
773
        prot.writeMessageEnd();
774
      }
775
 
776
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
777
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
778
          throw new IllegalStateException("Method call not finished!");
779
        }
780
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
781
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
782
        (new Client(prot)).recv_addAdwordsAdGroup();
783
      }
784
    }
785
 
786
    public void addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException {
787
      checkReady();
788
      addAdwordsAdGroupAd_call method_call = new addAdwordsAdGroupAd_call(adgroupad, resultHandler, this, ___protocolFactory, ___transport);
789
      this.___currentMethod = method_call;
790
      ___manager.call(method_call);
791
    }
792
 
793
    public static class addAdwordsAdGroupAd_call extends org.apache.thrift.async.TAsyncMethodCall {
794
      private AdwordsAdGroupAd adgroupad;
795
      public addAdwordsAdGroupAd_call(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdGroupAd_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
796
        super(client, protocolFactory, transport, resultHandler, false);
797
        this.adgroupad = adgroupad;
798
      }
799
 
800
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
801
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsAdGroupAd", org.apache.thrift.protocol.TMessageType.CALL, 0));
802
        addAdwordsAdGroupAd_args args = new addAdwordsAdGroupAd_args();
803
        args.setAdgroupad(adgroupad);
804
        args.write(prot);
805
        prot.writeMessageEnd();
806
      }
807
 
808
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
809
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
810
          throw new IllegalStateException("Method call not finished!");
811
        }
812
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
813
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
814
        (new Client(prot)).recv_addAdwordsAdGroupAd();
815
      }
816
    }
817
 
818
    public void addAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException {
819
      checkReady();
820
      addAdwordsAdKeyword_call method_call = new addAdwordsAdKeyword_call(adkeyword, resultHandler, this, ___protocolFactory, ___transport);
821
      this.___currentMethod = method_call;
822
      ___manager.call(method_call);
823
    }
824
 
825
    public static class addAdwordsAdKeyword_call extends org.apache.thrift.async.TAsyncMethodCall {
826
      private AdwordsAdKeyword adkeyword;
827
      public addAdwordsAdKeyword_call(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdKeyword_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
828
        super(client, protocolFactory, transport, resultHandler, false);
829
        this.adkeyword = adkeyword;
830
      }
831
 
832
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
833
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsAdKeyword", org.apache.thrift.protocol.TMessageType.CALL, 0));
834
        addAdwordsAdKeyword_args args = new addAdwordsAdKeyword_args();
835
        args.setAdkeyword(adkeyword);
836
        args.write(prot);
837
        prot.writeMessageEnd();
838
      }
839
 
840
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
841
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
842
          throw new IllegalStateException("Method call not finished!");
843
        }
844
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
845
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
846
        (new Client(prot)).recv_addAdwordsAdKeyword();
847
      }
848
    }
849
 
850
    public void updateAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException {
851
      checkReady();
852
      updateAdwordsCampaign_call method_call = new updateAdwordsCampaign_call(campaign, resultHandler, this, ___protocolFactory, ___transport);
853
      this.___currentMethod = method_call;
854
      ___manager.call(method_call);
855
    }
856
 
857
    public static class updateAdwordsCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {
858
      private AdwordsCampaign campaign;
859
      public updateAdwordsCampaign_call(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsCampaign_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
860
        super(client, protocolFactory, transport, resultHandler, false);
861
        this.campaign = campaign;
862
      }
863
 
864
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
865
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAdwordsCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));
866
        updateAdwordsCampaign_args args = new updateAdwordsCampaign_args();
867
        args.setCampaign(campaign);
868
        args.write(prot);
869
        prot.writeMessageEnd();
870
      }
871
 
872
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
873
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
874
          throw new IllegalStateException("Method call not finished!");
875
        }
876
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
877
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
878
        (new Client(prot)).recv_updateAdwordsCampaign();
879
      }
880
    }
881
 
882
    public void updateAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException {
883
      checkReady();
884
      updateAdwordsAdGroup_call method_call = new updateAdwordsAdGroup_call(adgroup, resultHandler, this, ___protocolFactory, ___transport);
885
      this.___currentMethod = method_call;
886
      ___manager.call(method_call);
887
    }
888
 
889
    public static class updateAdwordsAdGroup_call extends org.apache.thrift.async.TAsyncMethodCall {
890
      private AdwordsAdGroup adgroup;
891
      public updateAdwordsAdGroup_call(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdGroup_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
892
        super(client, protocolFactory, transport, resultHandler, false);
893
        this.adgroup = adgroup;
894
      }
895
 
896
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
897
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAdwordsAdGroup", org.apache.thrift.protocol.TMessageType.CALL, 0));
898
        updateAdwordsAdGroup_args args = new updateAdwordsAdGroup_args();
899
        args.setAdgroup(adgroup);
900
        args.write(prot);
901
        prot.writeMessageEnd();
902
      }
903
 
904
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
905
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
906
          throw new IllegalStateException("Method call not finished!");
907
        }
908
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
909
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
910
        (new Client(prot)).recv_updateAdwordsAdGroup();
911
      }
912
    }
913
 
914
    public void updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException {
915
      checkReady();
916
      updateAdwordsAdKeyword_call method_call = new updateAdwordsAdKeyword_call(adkeyword, resultHandler, this, ___protocolFactory, ___transport);
917
      this.___currentMethod = method_call;
918
      ___manager.call(method_call);
919
    }
920
 
921
    public static class updateAdwordsAdKeyword_call extends org.apache.thrift.async.TAsyncMethodCall {
922
      private AdwordsAdKeyword adkeyword;
923
      public updateAdwordsAdKeyword_call(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdKeyword_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
924
        super(client, protocolFactory, transport, resultHandler, false);
925
        this.adkeyword = adkeyword;
926
      }
927
 
928
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
929
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAdwordsAdKeyword", org.apache.thrift.protocol.TMessageType.CALL, 0));
930
        updateAdwordsAdKeyword_args args = new updateAdwordsAdKeyword_args();
931
        args.setAdkeyword(adkeyword);
932
        args.write(prot);
933
        prot.writeMessageEnd();
934
      }
935
 
936
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
937
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
938
          throw new IllegalStateException("Method call not finished!");
939
        }
940
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
941
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
942
        (new Client(prot)).recv_updateAdwordsAdKeyword();
943
      }
944
    }
945
 
9233 manish.sha 946
    public void updateAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException {
947
      checkReady();
948
      updateAdwordsAdGroupAd_call method_call = new updateAdwordsAdGroupAd_call(adgroupad, resultHandler, this, ___protocolFactory, ___transport);
949
      this.___currentMethod = method_call;
950
      ___manager.call(method_call);
951
    }
952
 
953
    public static class updateAdwordsAdGroupAd_call extends org.apache.thrift.async.TAsyncMethodCall {
954
      private AdwordsAdGroupAd adgroupad;
955
      public updateAdwordsAdGroupAd_call(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdGroupAd_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
956
        super(client, protocolFactory, transport, resultHandler, false);
957
        this.adgroupad = adgroupad;
958
      }
959
 
960
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
961
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAdwordsAdGroupAd", org.apache.thrift.protocol.TMessageType.CALL, 0));
962
        updateAdwordsAdGroupAd_args args = new updateAdwordsAdGroupAd_args();
963
        args.setAdgroupad(adgroupad);
964
        args.write(prot);
965
        prot.writeMessageEnd();
966
      }
967
 
968
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
969
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
970
          throw new IllegalStateException("Method call not finished!");
971
        }
972
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
973
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
974
        (new Client(prot)).recv_updateAdwordsAdGroupAd();
975
      }
976
    }
977
 
9048 manish.sha 978
    public void deleteAdwordsCampaign(long campaignId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException {
979
      checkReady();
980
      deleteAdwordsCampaign_call method_call = new deleteAdwordsCampaign_call(campaignId, resultHandler, this, ___protocolFactory, ___transport);
981
      this.___currentMethod = method_call;
982
      ___manager.call(method_call);
983
    }
984
 
985
    public static class deleteAdwordsCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {
986
      private long campaignId;
987
      public deleteAdwordsCampaign_call(long campaignId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsCampaign_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
988
        super(client, protocolFactory, transport, resultHandler, false);
989
        this.campaignId = campaignId;
990
      }
991
 
992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
993
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));
994
        deleteAdwordsCampaign_args args = new deleteAdwordsCampaign_args();
995
        args.setCampaignId(campaignId);
996
        args.write(prot);
997
        prot.writeMessageEnd();
998
      }
999
 
1000
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1001
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1002
          throw new IllegalStateException("Method call not finished!");
1003
        }
1004
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1005
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1006
        (new Client(prot)).recv_deleteAdwordsCampaign();
1007
      }
1008
    }
1009
 
1010
    public void deleteAdwordsAdGroup(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException {
1011
      checkReady();
1012
      deleteAdwordsAdGroup_call method_call = new deleteAdwordsAdGroup_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
1013
      this.___currentMethod = method_call;
1014
      ___manager.call(method_call);
1015
    }
1016
 
1017
    public static class deleteAdwordsAdGroup_call extends org.apache.thrift.async.TAsyncMethodCall {
1018
      private long adgroupId;
1019
      public deleteAdwordsAdGroup_call(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdGroup_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1020
        super(client, protocolFactory, transport, resultHandler, false);
1021
        this.adgroupId = adgroupId;
1022
      }
1023
 
1024
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1025
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsAdGroup", org.apache.thrift.protocol.TMessageType.CALL, 0));
1026
        deleteAdwordsAdGroup_args args = new deleteAdwordsAdGroup_args();
1027
        args.setAdgroupId(adgroupId);
1028
        args.write(prot);
1029
        prot.writeMessageEnd();
1030
      }
1031
 
1032
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1033
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1034
          throw new IllegalStateException("Method call not finished!");
1035
        }
1036
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1037
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1038
        (new Client(prot)).recv_deleteAdwordsAdGroup();
1039
      }
1040
    }
1041
 
1042
    public void deleteAdwordsAdGroupAd(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException {
1043
      checkReady();
1044
      deleteAdwordsAdGroupAd_call method_call = new deleteAdwordsAdGroupAd_call(adgroupadId, resultHandler, this, ___protocolFactory, ___transport);
1045
      this.___currentMethod = method_call;
1046
      ___manager.call(method_call);
1047
    }
1048
 
1049
    public static class deleteAdwordsAdGroupAd_call extends org.apache.thrift.async.TAsyncMethodCall {
1050
      private long adgroupadId;
1051
      public deleteAdwordsAdGroupAd_call(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdGroupAd_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1052
        super(client, protocolFactory, transport, resultHandler, false);
1053
        this.adgroupadId = adgroupadId;
1054
      }
1055
 
1056
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1057
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsAdGroupAd", org.apache.thrift.protocol.TMessageType.CALL, 0));
1058
        deleteAdwordsAdGroupAd_args args = new deleteAdwordsAdGroupAd_args();
1059
        args.setAdgroupadId(adgroupadId);
1060
        args.write(prot);
1061
        prot.writeMessageEnd();
1062
      }
1063
 
1064
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1066
          throw new IllegalStateException("Method call not finished!");
1067
        }
1068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1070
        (new Client(prot)).recv_deleteAdwordsAdGroupAd();
1071
      }
1072
    }
1073
 
1074
    public void deleteAdwordsAdKeyword(long criterionId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException {
1075
      checkReady();
1076
      deleteAdwordsAdKeyword_call method_call = new deleteAdwordsAdKeyword_call(criterionId, resultHandler, this, ___protocolFactory, ___transport);
1077
      this.___currentMethod = method_call;
1078
      ___manager.call(method_call);
1079
    }
1080
 
1081
    public static class deleteAdwordsAdKeyword_call extends org.apache.thrift.async.TAsyncMethodCall {
1082
      private long criterionId;
1083
      public deleteAdwordsAdKeyword_call(long criterionId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdKeyword_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1084
        super(client, protocolFactory, transport, resultHandler, false);
1085
        this.criterionId = criterionId;
1086
      }
1087
 
1088
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1089
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsAdKeyword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1090
        deleteAdwordsAdKeyword_args args = new deleteAdwordsAdKeyword_args();
1091
        args.setCriterionId(criterionId);
1092
        args.write(prot);
1093
        prot.writeMessageEnd();
1094
      }
1095
 
1096
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1097
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1098
          throw new IllegalStateException("Method call not finished!");
1099
        }
1100
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1101
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1102
        (new Client(prot)).recv_deleteAdwordsAdKeyword();
1103
      }
1104
    }
1105
 
1106
    public void getAdwordsCampaignByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsCampaignByCampaignId_call> resultHandler) throws org.apache.thrift.TException {
1107
      checkReady();
1108
      getAdwordsCampaignByCampaignId_call method_call = new getAdwordsCampaignByCampaignId_call(campaignId, resultHandler, this, ___protocolFactory, ___transport);
1109
      this.___currentMethod = method_call;
1110
      ___manager.call(method_call);
1111
    }
1112
 
1113
    public static class getAdwordsCampaignByCampaignId_call extends org.apache.thrift.async.TAsyncMethodCall {
1114
      private long campaignId;
1115
      public getAdwordsCampaignByCampaignId_call(long campaignId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsCampaignByCampaignId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1116
        super(client, protocolFactory, transport, resultHandler, false);
1117
        this.campaignId = campaignId;
1118
      }
1119
 
1120
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1121
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsCampaignByCampaignId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1122
        getAdwordsCampaignByCampaignId_args args = new getAdwordsCampaignByCampaignId_args();
1123
        args.setCampaignId(campaignId);
1124
        args.write(prot);
1125
        prot.writeMessageEnd();
1126
      }
1127
 
1128
      public AdwordsCampaign getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1130
          throw new IllegalStateException("Method call not finished!");
1131
        }
1132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1134
        return (new Client(prot)).recv_getAdwordsCampaignByCampaignId();
1135
      }
1136
    }
1137
 
1138
    public void getAdwordsAdGroupByAdGroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupByAdGroupId_call> resultHandler) throws org.apache.thrift.TException {
1139
      checkReady();
1140
      getAdwordsAdGroupByAdGroupId_call method_call = new getAdwordsAdGroupByAdGroupId_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
1141
      this.___currentMethod = method_call;
1142
      ___manager.call(method_call);
1143
    }
1144
 
1145
    public static class getAdwordsAdGroupByAdGroupId_call extends org.apache.thrift.async.TAsyncMethodCall {
1146
      private long adgroupId;
1147
      public getAdwordsAdGroupByAdGroupId_call(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupByAdGroupId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1148
        super(client, protocolFactory, transport, resultHandler, false);
1149
        this.adgroupId = adgroupId;
1150
      }
1151
 
1152
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1153
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdGroupByAdGroupId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1154
        getAdwordsAdGroupByAdGroupId_args args = new getAdwordsAdGroupByAdGroupId_args();
1155
        args.setAdgroupId(adgroupId);
1156
        args.write(prot);
1157
        prot.writeMessageEnd();
1158
      }
1159
 
1160
      public AdwordsAdGroup getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1161
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1162
          throw new IllegalStateException("Method call not finished!");
1163
        }
1164
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1166
        return (new Client(prot)).recv_getAdwordsAdGroupByAdGroupId();
1167
      }
1168
    }
1169
 
1170
    public void getAdwordsAdgroupAdByAdId(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdgroupAdByAdId_call> resultHandler) throws org.apache.thrift.TException {
1171
      checkReady();
1172
      getAdwordsAdgroupAdByAdId_call method_call = new getAdwordsAdgroupAdByAdId_call(adgroupadId, resultHandler, this, ___protocolFactory, ___transport);
1173
      this.___currentMethod = method_call;
1174
      ___manager.call(method_call);
1175
    }
1176
 
1177
    public static class getAdwordsAdgroupAdByAdId_call extends org.apache.thrift.async.TAsyncMethodCall {
1178
      private long adgroupadId;
1179
      public getAdwordsAdgroupAdByAdId_call(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdgroupAdByAdId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1180
        super(client, protocolFactory, transport, resultHandler, false);
1181
        this.adgroupadId = adgroupadId;
1182
      }
1183
 
1184
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1185
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdgroupAdByAdId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1186
        getAdwordsAdgroupAdByAdId_args args = new getAdwordsAdgroupAdByAdId_args();
1187
        args.setAdgroupadId(adgroupadId);
1188
        args.write(prot);
1189
        prot.writeMessageEnd();
1190
      }
1191
 
1192
      public AdwordsAdGroupAd getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1193
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1194
          throw new IllegalStateException("Method call not finished!");
1195
        }
1196
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1197
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1198
        return (new Client(prot)).recv_getAdwordsAdgroupAdByAdId();
1199
      }
1200
    }
1201
 
9233 manish.sha 1202
    public void getAdwordsAdKeywordByCriterionIdAndAdGroupId(long criterionId, long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdKeywordByCriterionIdAndAdGroupId_call> resultHandler) throws org.apache.thrift.TException {
9048 manish.sha 1203
      checkReady();
9233 manish.sha 1204
      getAdwordsAdKeywordByCriterionIdAndAdGroupId_call method_call = new getAdwordsAdKeywordByCriterionIdAndAdGroupId_call(criterionId, adgroupId, resultHandler, this, ___protocolFactory, ___transport);
9048 manish.sha 1205
      this.___currentMethod = method_call;
1206
      ___manager.call(method_call);
1207
    }
1208
 
9233 manish.sha 1209
    public static class getAdwordsAdKeywordByCriterionIdAndAdGroupId_call extends org.apache.thrift.async.TAsyncMethodCall {
9048 manish.sha 1210
      private long criterionId;
9233 manish.sha 1211
      private long adgroupId;
1212
      public getAdwordsAdKeywordByCriterionIdAndAdGroupId_call(long criterionId, long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdKeywordByCriterionIdAndAdGroupId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
9048 manish.sha 1213
        super(client, protocolFactory, transport, resultHandler, false);
1214
        this.criterionId = criterionId;
9233 manish.sha 1215
        this.adgroupId = adgroupId;
9048 manish.sha 1216
      }
1217
 
1218
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
9233 manish.sha 1219
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdKeywordByCriterionIdAndAdGroupId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1220
        getAdwordsAdKeywordByCriterionIdAndAdGroupId_args args = new getAdwordsAdKeywordByCriterionIdAndAdGroupId_args();
9048 manish.sha 1221
        args.setCriterionId(criterionId);
9233 manish.sha 1222
        args.setAdgroupId(adgroupId);
9048 manish.sha 1223
        args.write(prot);
1224
        prot.writeMessageEnd();
1225
      }
1226
 
1227
      public AdwordsAdKeyword getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1228
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1229
          throw new IllegalStateException("Method call not finished!");
1230
        }
1231
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1232
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9233 manish.sha 1233
        return (new Client(prot)).recv_getAdwordsAdKeywordByCriterionIdAndAdGroupId();
9048 manish.sha 1234
      }
1235
    }
1236
 
1237
    public void getAdwordsAdKeywordsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdKeywordsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException {
1238
      checkReady();
1239
      getAdwordsAdKeywordsByAdgroupId_call method_call = new getAdwordsAdKeywordsByAdgroupId_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
1240
      this.___currentMethod = method_call;
1241
      ___manager.call(method_call);
1242
    }
1243
 
1244
    public static class getAdwordsAdKeywordsByAdgroupId_call extends org.apache.thrift.async.TAsyncMethodCall {
1245
      private long adgroupId;
1246
      public getAdwordsAdKeywordsByAdgroupId_call(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdKeywordsByAdgroupId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1247
        super(client, protocolFactory, transport, resultHandler, false);
1248
        this.adgroupId = adgroupId;
1249
      }
1250
 
1251
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1252
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdKeywordsByAdgroupId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1253
        getAdwordsAdKeywordsByAdgroupId_args args = new getAdwordsAdKeywordsByAdgroupId_args();
1254
        args.setAdgroupId(adgroupId);
1255
        args.write(prot);
1256
        prot.writeMessageEnd();
1257
      }
1258
 
1259
      public List<AdwordsAdKeyword> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1260
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1261
          throw new IllegalStateException("Method call not finished!");
1262
        }
1263
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1264
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1265
        return (new Client(prot)).recv_getAdwordsAdKeywordsByAdgroupId();
1266
      }
1267
    }
1268
 
1269
    public void getAdwordsAdGroupAdsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupAdsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException {
1270
      checkReady();
1271
      getAdwordsAdGroupAdsByAdgroupId_call method_call = new getAdwordsAdGroupAdsByAdgroupId_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
1272
      this.___currentMethod = method_call;
1273
      ___manager.call(method_call);
1274
    }
1275
 
1276
    public static class getAdwordsAdGroupAdsByAdgroupId_call extends org.apache.thrift.async.TAsyncMethodCall {
1277
      private long adgroupId;
1278
      public getAdwordsAdGroupAdsByAdgroupId_call(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupAdsByAdgroupId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1279
        super(client, protocolFactory, transport, resultHandler, false);
1280
        this.adgroupId = adgroupId;
1281
      }
1282
 
1283
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1284
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdGroupAdsByAdgroupId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1285
        getAdwordsAdGroupAdsByAdgroupId_args args = new getAdwordsAdGroupAdsByAdgroupId_args();
1286
        args.setAdgroupId(adgroupId);
1287
        args.write(prot);
1288
        prot.writeMessageEnd();
1289
      }
1290
 
1291
      public List<AdwordsAdGroupAd> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1292
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1293
          throw new IllegalStateException("Method call not finished!");
1294
        }
1295
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1296
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1297
        return (new Client(prot)).recv_getAdwordsAdGroupAdsByAdgroupId();
1298
      }
1299
    }
1300
 
1301
    public void getAdwordsAdGroupsByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupsByCampaignId_call> resultHandler) throws org.apache.thrift.TException {
1302
      checkReady();
1303
      getAdwordsAdGroupsByCampaignId_call method_call = new getAdwordsAdGroupsByCampaignId_call(campaignId, resultHandler, this, ___protocolFactory, ___transport);
1304
      this.___currentMethod = method_call;
1305
      ___manager.call(method_call);
1306
    }
1307
 
1308
    public static class getAdwordsAdGroupsByCampaignId_call extends org.apache.thrift.async.TAsyncMethodCall {
1309
      private long campaignId;
1310
      public getAdwordsAdGroupsByCampaignId_call(long campaignId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupsByCampaignId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1311
        super(client, protocolFactory, transport, resultHandler, false);
1312
        this.campaignId = campaignId;
1313
      }
1314
 
1315
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1316
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdGroupsByCampaignId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1317
        getAdwordsAdGroupsByCampaignId_args args = new getAdwordsAdGroupsByCampaignId_args();
1318
        args.setCampaignId(campaignId);
1319
        args.write(prot);
1320
        prot.writeMessageEnd();
1321
      }
1322
 
1323
      public List<AdwordsAdGroup> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1324
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1325
          throw new IllegalStateException("Method call not finished!");
1326
        }
1327
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1328
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1329
        return (new Client(prot)).recv_getAdwordsAdGroupsByCampaignId();
1330
      }
1331
    }
1332
 
1333
    public void getAllAdwordsCampaigns(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsCampaigns_call> resultHandler) throws org.apache.thrift.TException {
1334
      checkReady();
1335
      getAllAdwordsCampaigns_call method_call = new getAllAdwordsCampaigns_call(resultHandler, this, ___protocolFactory, ___transport);
1336
      this.___currentMethod = method_call;
1337
      ___manager.call(method_call);
1338
    }
1339
 
1340
    public static class getAllAdwordsCampaigns_call extends org.apache.thrift.async.TAsyncMethodCall {
1341
      public getAllAdwordsCampaigns_call(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsCampaigns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1342
        super(client, protocolFactory, transport, resultHandler, false);
1343
      }
1344
 
1345
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1346
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsCampaigns", org.apache.thrift.protocol.TMessageType.CALL, 0));
1347
        getAllAdwordsCampaigns_args args = new getAllAdwordsCampaigns_args();
1348
        args.write(prot);
1349
        prot.writeMessageEnd();
1350
      }
1351
 
1352
      public List<AdwordsCampaign> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1353
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1354
          throw new IllegalStateException("Method call not finished!");
1355
        }
1356
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1357
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1358
        return (new Client(prot)).recv_getAllAdwordsCampaigns();
1359
      }
1360
    }
1361
 
1362
    public void getAllAdwordsAdGroups(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdGroups_call> resultHandler) throws org.apache.thrift.TException {
1363
      checkReady();
1364
      getAllAdwordsAdGroups_call method_call = new getAllAdwordsAdGroups_call(resultHandler, this, ___protocolFactory, ___transport);
1365
      this.___currentMethod = method_call;
1366
      ___manager.call(method_call);
1367
    }
1368
 
1369
    public static class getAllAdwordsAdGroups_call extends org.apache.thrift.async.TAsyncMethodCall {
1370
      public getAllAdwordsAdGroups_call(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdGroups_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1371
        super(client, protocolFactory, transport, resultHandler, false);
1372
      }
1373
 
1374
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1375
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsAdGroups", org.apache.thrift.protocol.TMessageType.CALL, 0));
1376
        getAllAdwordsAdGroups_args args = new getAllAdwordsAdGroups_args();
1377
        args.write(prot);
1378
        prot.writeMessageEnd();
1379
      }
1380
 
1381
      public List<AdwordsAdGroup> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1382
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1383
          throw new IllegalStateException("Method call not finished!");
1384
        }
1385
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1386
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1387
        return (new Client(prot)).recv_getAllAdwordsAdGroups();
1388
      }
1389
    }
1390
 
1391
    public void getAllAdwordsAdGroupAds(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdGroupAds_call> resultHandler) throws org.apache.thrift.TException {
1392
      checkReady();
1393
      getAllAdwordsAdGroupAds_call method_call = new getAllAdwordsAdGroupAds_call(resultHandler, this, ___protocolFactory, ___transport);
1394
      this.___currentMethod = method_call;
1395
      ___manager.call(method_call);
1396
    }
1397
 
1398
    public static class getAllAdwordsAdGroupAds_call extends org.apache.thrift.async.TAsyncMethodCall {
1399
      public getAllAdwordsAdGroupAds_call(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdGroupAds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1400
        super(client, protocolFactory, transport, resultHandler, false);
1401
      }
1402
 
1403
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1404
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsAdGroupAds", org.apache.thrift.protocol.TMessageType.CALL, 0));
1405
        getAllAdwordsAdGroupAds_args args = new getAllAdwordsAdGroupAds_args();
1406
        args.write(prot);
1407
        prot.writeMessageEnd();
1408
      }
1409
 
1410
      public List<AdwordsAdGroupAd> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1411
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1412
          throw new IllegalStateException("Method call not finished!");
1413
        }
1414
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1415
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1416
        return (new Client(prot)).recv_getAllAdwordsAdGroupAds();
1417
      }
1418
    }
1419
 
1420
    public void getAllAdwordsAdKeywords(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdKeywords_call> resultHandler) throws org.apache.thrift.TException {
1421
      checkReady();
1422
      getAllAdwordsAdKeywords_call method_call = new getAllAdwordsAdKeywords_call(resultHandler, this, ___protocolFactory, ___transport);
1423
      this.___currentMethod = method_call;
1424
      ___manager.call(method_call);
1425
    }
1426
 
1427
    public static class getAllAdwordsAdKeywords_call extends org.apache.thrift.async.TAsyncMethodCall {
1428
      public getAllAdwordsAdKeywords_call(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdKeywords_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1429
        super(client, protocolFactory, transport, resultHandler, false);
1430
      }
1431
 
1432
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1433
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsAdKeywords", org.apache.thrift.protocol.TMessageType.CALL, 0));
1434
        getAllAdwordsAdKeywords_args args = new getAllAdwordsAdKeywords_args();
1435
        args.write(prot);
1436
        prot.writeMessageEnd();
1437
      }
1438
 
1439
      public List<AdwordsAdKeyword> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1440
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1441
          throw new IllegalStateException("Method call not finished!");
1442
        }
1443
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1444
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1445
        return (new Client(prot)).recv_getAllAdwordsAdKeywords();
1446
      }
1447
    }
1448
 
1449
  }
1450
 
1451
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1452
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1453
    public Processor(I iface) {
1454
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1455
    }
1456
 
1457
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1458
      super(iface, getProcessMap(processMap));
1459
    }
1460
 
1461
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1462
      processMap.put("addAdwordsCampaign", new addAdwordsCampaign());
1463
      processMap.put("addAdwordsAdGroup", new addAdwordsAdGroup());
1464
      processMap.put("addAdwordsAdGroupAd", new addAdwordsAdGroupAd());
1465
      processMap.put("addAdwordsAdKeyword", new addAdwordsAdKeyword());
1466
      processMap.put("updateAdwordsCampaign", new updateAdwordsCampaign());
1467
      processMap.put("updateAdwordsAdGroup", new updateAdwordsAdGroup());
1468
      processMap.put("updateAdwordsAdKeyword", new updateAdwordsAdKeyword());
9233 manish.sha 1469
      processMap.put("updateAdwordsAdGroupAd", new updateAdwordsAdGroupAd());
9048 manish.sha 1470
      processMap.put("deleteAdwordsCampaign", new deleteAdwordsCampaign());
1471
      processMap.put("deleteAdwordsAdGroup", new deleteAdwordsAdGroup());
1472
      processMap.put("deleteAdwordsAdGroupAd", new deleteAdwordsAdGroupAd());
1473
      processMap.put("deleteAdwordsAdKeyword", new deleteAdwordsAdKeyword());
1474
      processMap.put("getAdwordsCampaignByCampaignId", new getAdwordsCampaignByCampaignId());
1475
      processMap.put("getAdwordsAdGroupByAdGroupId", new getAdwordsAdGroupByAdGroupId());
1476
      processMap.put("getAdwordsAdgroupAdByAdId", new getAdwordsAdgroupAdByAdId());
9233 manish.sha 1477
      processMap.put("getAdwordsAdKeywordByCriterionIdAndAdGroupId", new getAdwordsAdKeywordByCriterionIdAndAdGroupId());
9048 manish.sha 1478
      processMap.put("getAdwordsAdKeywordsByAdgroupId", new getAdwordsAdKeywordsByAdgroupId());
1479
      processMap.put("getAdwordsAdGroupAdsByAdgroupId", new getAdwordsAdGroupAdsByAdgroupId());
1480
      processMap.put("getAdwordsAdGroupsByCampaignId", new getAdwordsAdGroupsByCampaignId());
1481
      processMap.put("getAllAdwordsCampaigns", new getAllAdwordsCampaigns());
1482
      processMap.put("getAllAdwordsAdGroups", new getAllAdwordsAdGroups());
1483
      processMap.put("getAllAdwordsAdGroupAds", new getAllAdwordsAdGroupAds());
1484
      processMap.put("getAllAdwordsAdKeywords", new getAllAdwordsAdKeywords());
1485
      return processMap;
1486
    }
1487
 
1488
    private static class addAdwordsCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsCampaign_args> {
1489
      public addAdwordsCampaign() {
1490
        super("addAdwordsCampaign");
1491
      }
1492
 
1493
      protected addAdwordsCampaign_args getEmptyArgsInstance() {
1494
        return new addAdwordsCampaign_args();
1495
      }
1496
 
1497
      protected addAdwordsCampaign_result getResult(I iface, addAdwordsCampaign_args args) throws org.apache.thrift.TException {
1498
        addAdwordsCampaign_result result = new addAdwordsCampaign_result();
1499
        try {
1500
          iface.addAdwordsCampaign(args.campaign);
1501
        } catch (GoogleAdwordsServiceException gasex) {
1502
          result.gasex = gasex;
1503
        }
1504
        return result;
1505
      }
1506
    }
1507
 
1508
    private static class addAdwordsAdGroup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsAdGroup_args> {
1509
      public addAdwordsAdGroup() {
1510
        super("addAdwordsAdGroup");
1511
      }
1512
 
1513
      protected addAdwordsAdGroup_args getEmptyArgsInstance() {
1514
        return new addAdwordsAdGroup_args();
1515
      }
1516
 
1517
      protected addAdwordsAdGroup_result getResult(I iface, addAdwordsAdGroup_args args) throws org.apache.thrift.TException {
1518
        addAdwordsAdGroup_result result = new addAdwordsAdGroup_result();
1519
        try {
1520
          iface.addAdwordsAdGroup(args.adgroup);
1521
        } catch (GoogleAdwordsServiceException gasex) {
1522
          result.gasex = gasex;
1523
        }
1524
        return result;
1525
      }
1526
    }
1527
 
1528
    private static class addAdwordsAdGroupAd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsAdGroupAd_args> {
1529
      public addAdwordsAdGroupAd() {
1530
        super("addAdwordsAdGroupAd");
1531
      }
1532
 
1533
      protected addAdwordsAdGroupAd_args getEmptyArgsInstance() {
1534
        return new addAdwordsAdGroupAd_args();
1535
      }
1536
 
1537
      protected addAdwordsAdGroupAd_result getResult(I iface, addAdwordsAdGroupAd_args args) throws org.apache.thrift.TException {
1538
        addAdwordsAdGroupAd_result result = new addAdwordsAdGroupAd_result();
1539
        try {
1540
          iface.addAdwordsAdGroupAd(args.adgroupad);
1541
        } catch (GoogleAdwordsServiceException gasex) {
1542
          result.gasex = gasex;
1543
        }
1544
        return result;
1545
      }
1546
    }
1547
 
1548
    private static class addAdwordsAdKeyword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsAdKeyword_args> {
1549
      public addAdwordsAdKeyword() {
1550
        super("addAdwordsAdKeyword");
1551
      }
1552
 
1553
      protected addAdwordsAdKeyword_args getEmptyArgsInstance() {
1554
        return new addAdwordsAdKeyword_args();
1555
      }
1556
 
1557
      protected addAdwordsAdKeyword_result getResult(I iface, addAdwordsAdKeyword_args args) throws org.apache.thrift.TException {
1558
        addAdwordsAdKeyword_result result = new addAdwordsAdKeyword_result();
1559
        try {
1560
          iface.addAdwordsAdKeyword(args.adkeyword);
1561
        } catch (GoogleAdwordsServiceException gasex) {
1562
          result.gasex = gasex;
1563
        }
1564
        return result;
1565
      }
1566
    }
1567
 
1568
    private static class updateAdwordsCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAdwordsCampaign_args> {
1569
      public updateAdwordsCampaign() {
1570
        super("updateAdwordsCampaign");
1571
      }
1572
 
1573
      protected updateAdwordsCampaign_args getEmptyArgsInstance() {
1574
        return new updateAdwordsCampaign_args();
1575
      }
1576
 
1577
      protected updateAdwordsCampaign_result getResult(I iface, updateAdwordsCampaign_args args) throws org.apache.thrift.TException {
1578
        updateAdwordsCampaign_result result = new updateAdwordsCampaign_result();
1579
        try {
1580
          iface.updateAdwordsCampaign(args.campaign);
1581
        } catch (GoogleAdwordsServiceException gasex) {
1582
          result.gasex = gasex;
1583
        }
1584
        return result;
1585
      }
1586
    }
1587
 
1588
    private static class updateAdwordsAdGroup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAdwordsAdGroup_args> {
1589
      public updateAdwordsAdGroup() {
1590
        super("updateAdwordsAdGroup");
1591
      }
1592
 
1593
      protected updateAdwordsAdGroup_args getEmptyArgsInstance() {
1594
        return new updateAdwordsAdGroup_args();
1595
      }
1596
 
1597
      protected updateAdwordsAdGroup_result getResult(I iface, updateAdwordsAdGroup_args args) throws org.apache.thrift.TException {
1598
        updateAdwordsAdGroup_result result = new updateAdwordsAdGroup_result();
1599
        try {
1600
          iface.updateAdwordsAdGroup(args.adgroup);
1601
        } catch (GoogleAdwordsServiceException gasex) {
1602
          result.gasex = gasex;
1603
        }
1604
        return result;
1605
      }
1606
    }
1607
 
1608
    private static class updateAdwordsAdKeyword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAdwordsAdKeyword_args> {
1609
      public updateAdwordsAdKeyword() {
1610
        super("updateAdwordsAdKeyword");
1611
      }
1612
 
1613
      protected updateAdwordsAdKeyword_args getEmptyArgsInstance() {
1614
        return new updateAdwordsAdKeyword_args();
1615
      }
1616
 
1617
      protected updateAdwordsAdKeyword_result getResult(I iface, updateAdwordsAdKeyword_args args) throws org.apache.thrift.TException {
1618
        updateAdwordsAdKeyword_result result = new updateAdwordsAdKeyword_result();
1619
        try {
1620
          iface.updateAdwordsAdKeyword(args.adkeyword);
1621
        } catch (GoogleAdwordsServiceException gasex) {
1622
          result.gasex = gasex;
1623
        }
1624
        return result;
1625
      }
1626
    }
1627
 
9233 manish.sha 1628
    private static class updateAdwordsAdGroupAd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAdwordsAdGroupAd_args> {
1629
      public updateAdwordsAdGroupAd() {
1630
        super("updateAdwordsAdGroupAd");
1631
      }
1632
 
1633
      protected updateAdwordsAdGroupAd_args getEmptyArgsInstance() {
1634
        return new updateAdwordsAdGroupAd_args();
1635
      }
1636
 
1637
      protected updateAdwordsAdGroupAd_result getResult(I iface, updateAdwordsAdGroupAd_args args) throws org.apache.thrift.TException {
1638
        updateAdwordsAdGroupAd_result result = new updateAdwordsAdGroupAd_result();
1639
        try {
1640
          iface.updateAdwordsAdGroupAd(args.adgroupad);
1641
        } catch (GoogleAdwordsServiceException gasex) {
1642
          result.gasex = gasex;
1643
        }
1644
        return result;
1645
      }
1646
    }
1647
 
9048 manish.sha 1648
    private static class deleteAdwordsCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsCampaign_args> {
1649
      public deleteAdwordsCampaign() {
1650
        super("deleteAdwordsCampaign");
1651
      }
1652
 
1653
      protected deleteAdwordsCampaign_args getEmptyArgsInstance() {
1654
        return new deleteAdwordsCampaign_args();
1655
      }
1656
 
1657
      protected deleteAdwordsCampaign_result getResult(I iface, deleteAdwordsCampaign_args args) throws org.apache.thrift.TException {
1658
        deleteAdwordsCampaign_result result = new deleteAdwordsCampaign_result();
1659
        try {
1660
          iface.deleteAdwordsCampaign(args.campaignId);
1661
        } catch (GoogleAdwordsServiceException gasex) {
1662
          result.gasex = gasex;
1663
        }
1664
        return result;
1665
      }
1666
    }
1667
 
1668
    private static class deleteAdwordsAdGroup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsAdGroup_args> {
1669
      public deleteAdwordsAdGroup() {
1670
        super("deleteAdwordsAdGroup");
1671
      }
1672
 
1673
      protected deleteAdwordsAdGroup_args getEmptyArgsInstance() {
1674
        return new deleteAdwordsAdGroup_args();
1675
      }
1676
 
1677
      protected deleteAdwordsAdGroup_result getResult(I iface, deleteAdwordsAdGroup_args args) throws org.apache.thrift.TException {
1678
        deleteAdwordsAdGroup_result result = new deleteAdwordsAdGroup_result();
1679
        try {
1680
          iface.deleteAdwordsAdGroup(args.adgroupId);
1681
        } catch (GoogleAdwordsServiceException gasex) {
1682
          result.gasex = gasex;
1683
        }
1684
        return result;
1685
      }
1686
    }
1687
 
1688
    private static class deleteAdwordsAdGroupAd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsAdGroupAd_args> {
1689
      public deleteAdwordsAdGroupAd() {
1690
        super("deleteAdwordsAdGroupAd");
1691
      }
1692
 
1693
      protected deleteAdwordsAdGroupAd_args getEmptyArgsInstance() {
1694
        return new deleteAdwordsAdGroupAd_args();
1695
      }
1696
 
1697
      protected deleteAdwordsAdGroupAd_result getResult(I iface, deleteAdwordsAdGroupAd_args args) throws org.apache.thrift.TException {
1698
        deleteAdwordsAdGroupAd_result result = new deleteAdwordsAdGroupAd_result();
1699
        try {
1700
          iface.deleteAdwordsAdGroupAd(args.adgroupadId);
1701
        } catch (GoogleAdwordsServiceException gasex) {
1702
          result.gasex = gasex;
1703
        }
1704
        return result;
1705
      }
1706
    }
1707
 
1708
    private static class deleteAdwordsAdKeyword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsAdKeyword_args> {
1709
      public deleteAdwordsAdKeyword() {
1710
        super("deleteAdwordsAdKeyword");
1711
      }
1712
 
1713
      protected deleteAdwordsAdKeyword_args getEmptyArgsInstance() {
1714
        return new deleteAdwordsAdKeyword_args();
1715
      }
1716
 
1717
      protected deleteAdwordsAdKeyword_result getResult(I iface, deleteAdwordsAdKeyword_args args) throws org.apache.thrift.TException {
1718
        deleteAdwordsAdKeyword_result result = new deleteAdwordsAdKeyword_result();
1719
        try {
1720
          iface.deleteAdwordsAdKeyword(args.criterionId);
1721
        } catch (GoogleAdwordsServiceException gasex) {
1722
          result.gasex = gasex;
1723
        }
1724
        return result;
1725
      }
1726
    }
1727
 
1728
    private static class getAdwordsCampaignByCampaignId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsCampaignByCampaignId_args> {
1729
      public getAdwordsCampaignByCampaignId() {
1730
        super("getAdwordsCampaignByCampaignId");
1731
      }
1732
 
1733
      protected getAdwordsCampaignByCampaignId_args getEmptyArgsInstance() {
1734
        return new getAdwordsCampaignByCampaignId_args();
1735
      }
1736
 
1737
      protected getAdwordsCampaignByCampaignId_result getResult(I iface, getAdwordsCampaignByCampaignId_args args) throws org.apache.thrift.TException {
1738
        getAdwordsCampaignByCampaignId_result result = new getAdwordsCampaignByCampaignId_result();
1739
        try {
1740
          result.success = iface.getAdwordsCampaignByCampaignId(args.campaignId);
1741
        } catch (GoogleAdwordsServiceException gasex) {
1742
          result.gasex = gasex;
1743
        }
1744
        return result;
1745
      }
1746
    }
1747
 
1748
    private static class getAdwordsAdGroupByAdGroupId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdGroupByAdGroupId_args> {
1749
      public getAdwordsAdGroupByAdGroupId() {
1750
        super("getAdwordsAdGroupByAdGroupId");
1751
      }
1752
 
1753
      protected getAdwordsAdGroupByAdGroupId_args getEmptyArgsInstance() {
1754
        return new getAdwordsAdGroupByAdGroupId_args();
1755
      }
1756
 
1757
      protected getAdwordsAdGroupByAdGroupId_result getResult(I iface, getAdwordsAdGroupByAdGroupId_args args) throws org.apache.thrift.TException {
1758
        getAdwordsAdGroupByAdGroupId_result result = new getAdwordsAdGroupByAdGroupId_result();
1759
        try {
1760
          result.success = iface.getAdwordsAdGroupByAdGroupId(args.adgroupId);
1761
        } catch (GoogleAdwordsServiceException gasex) {
1762
          result.gasex = gasex;
1763
        }
1764
        return result;
1765
      }
1766
    }
1767
 
1768
    private static class getAdwordsAdgroupAdByAdId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdgroupAdByAdId_args> {
1769
      public getAdwordsAdgroupAdByAdId() {
1770
        super("getAdwordsAdgroupAdByAdId");
1771
      }
1772
 
1773
      protected getAdwordsAdgroupAdByAdId_args getEmptyArgsInstance() {
1774
        return new getAdwordsAdgroupAdByAdId_args();
1775
      }
1776
 
1777
      protected getAdwordsAdgroupAdByAdId_result getResult(I iface, getAdwordsAdgroupAdByAdId_args args) throws org.apache.thrift.TException {
1778
        getAdwordsAdgroupAdByAdId_result result = new getAdwordsAdgroupAdByAdId_result();
1779
        try {
1780
          result.success = iface.getAdwordsAdgroupAdByAdId(args.adgroupadId);
1781
        } catch (GoogleAdwordsServiceException gasex) {
1782
          result.gasex = gasex;
1783
        }
1784
        return result;
1785
      }
1786
    }
1787
 
9233 manish.sha 1788
    private static class getAdwordsAdKeywordByCriterionIdAndAdGroupId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdKeywordByCriterionIdAndAdGroupId_args> {
1789
      public getAdwordsAdKeywordByCriterionIdAndAdGroupId() {
1790
        super("getAdwordsAdKeywordByCriterionIdAndAdGroupId");
9048 manish.sha 1791
      }
1792
 
9233 manish.sha 1793
      protected getAdwordsAdKeywordByCriterionIdAndAdGroupId_args getEmptyArgsInstance() {
1794
        return new getAdwordsAdKeywordByCriterionIdAndAdGroupId_args();
9048 manish.sha 1795
      }
1796
 
9233 manish.sha 1797
      protected getAdwordsAdKeywordByCriterionIdAndAdGroupId_result getResult(I iface, getAdwordsAdKeywordByCriterionIdAndAdGroupId_args args) throws org.apache.thrift.TException {
1798
        getAdwordsAdKeywordByCriterionIdAndAdGroupId_result result = new getAdwordsAdKeywordByCriterionIdAndAdGroupId_result();
9048 manish.sha 1799
        try {
9233 manish.sha 1800
          result.success = iface.getAdwordsAdKeywordByCriterionIdAndAdGroupId(args.criterionId, args.adgroupId);
9048 manish.sha 1801
        } catch (GoogleAdwordsServiceException gasex) {
1802
          result.gasex = gasex;
1803
        }
1804
        return result;
1805
      }
1806
    }
1807
 
1808
    private static class getAdwordsAdKeywordsByAdgroupId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdKeywordsByAdgroupId_args> {
1809
      public getAdwordsAdKeywordsByAdgroupId() {
1810
        super("getAdwordsAdKeywordsByAdgroupId");
1811
      }
1812
 
1813
      protected getAdwordsAdKeywordsByAdgroupId_args getEmptyArgsInstance() {
1814
        return new getAdwordsAdKeywordsByAdgroupId_args();
1815
      }
1816
 
1817
      protected getAdwordsAdKeywordsByAdgroupId_result getResult(I iface, getAdwordsAdKeywordsByAdgroupId_args args) throws org.apache.thrift.TException {
1818
        getAdwordsAdKeywordsByAdgroupId_result result = new getAdwordsAdKeywordsByAdgroupId_result();
1819
        try {
1820
          result.success = iface.getAdwordsAdKeywordsByAdgroupId(args.adgroupId);
1821
        } catch (GoogleAdwordsServiceException gasex) {
1822
          result.gasex = gasex;
1823
        }
1824
        return result;
1825
      }
1826
    }
1827
 
1828
    private static class getAdwordsAdGroupAdsByAdgroupId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdGroupAdsByAdgroupId_args> {
1829
      public getAdwordsAdGroupAdsByAdgroupId() {
1830
        super("getAdwordsAdGroupAdsByAdgroupId");
1831
      }
1832
 
1833
      protected getAdwordsAdGroupAdsByAdgroupId_args getEmptyArgsInstance() {
1834
        return new getAdwordsAdGroupAdsByAdgroupId_args();
1835
      }
1836
 
1837
      protected getAdwordsAdGroupAdsByAdgroupId_result getResult(I iface, getAdwordsAdGroupAdsByAdgroupId_args args) throws org.apache.thrift.TException {
1838
        getAdwordsAdGroupAdsByAdgroupId_result result = new getAdwordsAdGroupAdsByAdgroupId_result();
1839
        try {
1840
          result.success = iface.getAdwordsAdGroupAdsByAdgroupId(args.adgroupId);
1841
        } catch (GoogleAdwordsServiceException gasex) {
1842
          result.gasex = gasex;
1843
        }
1844
        return result;
1845
      }
1846
    }
1847
 
1848
    private static class getAdwordsAdGroupsByCampaignId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdGroupsByCampaignId_args> {
1849
      public getAdwordsAdGroupsByCampaignId() {
1850
        super("getAdwordsAdGroupsByCampaignId");
1851
      }
1852
 
1853
      protected getAdwordsAdGroupsByCampaignId_args getEmptyArgsInstance() {
1854
        return new getAdwordsAdGroupsByCampaignId_args();
1855
      }
1856
 
1857
      protected getAdwordsAdGroupsByCampaignId_result getResult(I iface, getAdwordsAdGroupsByCampaignId_args args) throws org.apache.thrift.TException {
1858
        getAdwordsAdGroupsByCampaignId_result result = new getAdwordsAdGroupsByCampaignId_result();
1859
        try {
1860
          result.success = iface.getAdwordsAdGroupsByCampaignId(args.campaignId);
1861
        } catch (GoogleAdwordsServiceException gasex) {
1862
          result.gasex = gasex;
1863
        }
1864
        return result;
1865
      }
1866
    }
1867
 
1868
    private static class getAllAdwordsCampaigns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsCampaigns_args> {
1869
      public getAllAdwordsCampaigns() {
1870
        super("getAllAdwordsCampaigns");
1871
      }
1872
 
1873
      protected getAllAdwordsCampaigns_args getEmptyArgsInstance() {
1874
        return new getAllAdwordsCampaigns_args();
1875
      }
1876
 
1877
      protected getAllAdwordsCampaigns_result getResult(I iface, getAllAdwordsCampaigns_args args) throws org.apache.thrift.TException {
1878
        getAllAdwordsCampaigns_result result = new getAllAdwordsCampaigns_result();
1879
        try {
1880
          result.success = iface.getAllAdwordsCampaigns();
1881
        } catch (GoogleAdwordsServiceException gasex) {
1882
          result.gasex = gasex;
1883
        }
1884
        return result;
1885
      }
1886
    }
1887
 
1888
    private static class getAllAdwordsAdGroups<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsAdGroups_args> {
1889
      public getAllAdwordsAdGroups() {
1890
        super("getAllAdwordsAdGroups");
1891
      }
1892
 
1893
      protected getAllAdwordsAdGroups_args getEmptyArgsInstance() {
1894
        return new getAllAdwordsAdGroups_args();
1895
      }
1896
 
1897
      protected getAllAdwordsAdGroups_result getResult(I iface, getAllAdwordsAdGroups_args args) throws org.apache.thrift.TException {
1898
        getAllAdwordsAdGroups_result result = new getAllAdwordsAdGroups_result();
1899
        try {
1900
          result.success = iface.getAllAdwordsAdGroups();
1901
        } catch (GoogleAdwordsServiceException gasex) {
1902
          result.gasex = gasex;
1903
        }
1904
        return result;
1905
      }
1906
    }
1907
 
1908
    private static class getAllAdwordsAdGroupAds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsAdGroupAds_args> {
1909
      public getAllAdwordsAdGroupAds() {
1910
        super("getAllAdwordsAdGroupAds");
1911
      }
1912
 
1913
      protected getAllAdwordsAdGroupAds_args getEmptyArgsInstance() {
1914
        return new getAllAdwordsAdGroupAds_args();
1915
      }
1916
 
1917
      protected getAllAdwordsAdGroupAds_result getResult(I iface, getAllAdwordsAdGroupAds_args args) throws org.apache.thrift.TException {
1918
        getAllAdwordsAdGroupAds_result result = new getAllAdwordsAdGroupAds_result();
1919
        try {
1920
          result.success = iface.getAllAdwordsAdGroupAds();
1921
        } catch (GoogleAdwordsServiceException gasex) {
1922
          result.gasex = gasex;
1923
        }
1924
        return result;
1925
      }
1926
    }
1927
 
1928
    private static class getAllAdwordsAdKeywords<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsAdKeywords_args> {
1929
      public getAllAdwordsAdKeywords() {
1930
        super("getAllAdwordsAdKeywords");
1931
      }
1932
 
1933
      protected getAllAdwordsAdKeywords_args getEmptyArgsInstance() {
1934
        return new getAllAdwordsAdKeywords_args();
1935
      }
1936
 
1937
      protected getAllAdwordsAdKeywords_result getResult(I iface, getAllAdwordsAdKeywords_args args) throws org.apache.thrift.TException {
1938
        getAllAdwordsAdKeywords_result result = new getAllAdwordsAdKeywords_result();
1939
        try {
1940
          result.success = iface.getAllAdwordsAdKeywords();
1941
        } catch (GoogleAdwordsServiceException gasex) {
1942
          result.gasex = gasex;
1943
        }
1944
        return result;
1945
      }
1946
    }
1947
 
1948
  }
1949
 
1950
  public static class addAdwordsCampaign_args implements org.apache.thrift.TBase<addAdwordsCampaign_args, addAdwordsCampaign_args._Fields>, java.io.Serializable, Cloneable   {
1951
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsCampaign_args");
1952
 
1953
    private static final org.apache.thrift.protocol.TField CAMPAIGN_FIELD_DESC = new org.apache.thrift.protocol.TField("campaign", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1954
 
1955
    private AdwordsCampaign campaign; // required
1956
 
1957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1958
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1959
      CAMPAIGN((short)1, "campaign");
1960
 
1961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1962
 
1963
      static {
1964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1965
          byName.put(field.getFieldName(), field);
1966
        }
1967
      }
1968
 
1969
      /**
1970
       * Find the _Fields constant that matches fieldId, or null if its not found.
1971
       */
1972
      public static _Fields findByThriftId(int fieldId) {
1973
        switch(fieldId) {
1974
          case 1: // CAMPAIGN
1975
            return CAMPAIGN;
1976
          default:
1977
            return null;
1978
        }
1979
      }
1980
 
1981
      /**
1982
       * Find the _Fields constant that matches fieldId, throwing an exception
1983
       * if it is not found.
1984
       */
1985
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1986
        _Fields fields = findByThriftId(fieldId);
1987
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1988
        return fields;
1989
      }
1990
 
1991
      /**
1992
       * Find the _Fields constant that matches name, or null if its not found.
1993
       */
1994
      public static _Fields findByName(String name) {
1995
        return byName.get(name);
1996
      }
1997
 
1998
      private final short _thriftId;
1999
      private final String _fieldName;
2000
 
2001
      _Fields(short thriftId, String fieldName) {
2002
        _thriftId = thriftId;
2003
        _fieldName = fieldName;
2004
      }
2005
 
2006
      public short getThriftFieldId() {
2007
        return _thriftId;
2008
      }
2009
 
2010
      public String getFieldName() {
2011
        return _fieldName;
2012
      }
2013
    }
2014
 
2015
    // isset id assignments
2016
 
2017
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2018
    static {
2019
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2020
      tmpMap.put(_Fields.CAMPAIGN, new org.apache.thrift.meta_data.FieldMetaData("campaign", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2021
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class)));
2022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsCampaign_args.class, metaDataMap);
2024
    }
2025
 
2026
    public addAdwordsCampaign_args() {
2027
    }
2028
 
2029
    public addAdwordsCampaign_args(
2030
      AdwordsCampaign campaign)
2031
    {
2032
      this();
2033
      this.campaign = campaign;
2034
    }
2035
 
2036
    /**
2037
     * Performs a deep copy on <i>other</i>.
2038
     */
2039
    public addAdwordsCampaign_args(addAdwordsCampaign_args other) {
2040
      if (other.isSetCampaign()) {
2041
        this.campaign = new AdwordsCampaign(other.campaign);
2042
      }
2043
    }
2044
 
2045
    public addAdwordsCampaign_args deepCopy() {
2046
      return new addAdwordsCampaign_args(this);
2047
    }
2048
 
2049
    @Override
2050
    public void clear() {
2051
      this.campaign = null;
2052
    }
2053
 
2054
    public AdwordsCampaign getCampaign() {
2055
      return this.campaign;
2056
    }
2057
 
2058
    public void setCampaign(AdwordsCampaign campaign) {
2059
      this.campaign = campaign;
2060
    }
2061
 
2062
    public void unsetCampaign() {
2063
      this.campaign = null;
2064
    }
2065
 
2066
    /** Returns true if field campaign is set (has been assigned a value) and false otherwise */
2067
    public boolean isSetCampaign() {
2068
      return this.campaign != null;
2069
    }
2070
 
2071
    public void setCampaignIsSet(boolean value) {
2072
      if (!value) {
2073
        this.campaign = null;
2074
      }
2075
    }
2076
 
2077
    public void setFieldValue(_Fields field, Object value) {
2078
      switch (field) {
2079
      case CAMPAIGN:
2080
        if (value == null) {
2081
          unsetCampaign();
2082
        } else {
2083
          setCampaign((AdwordsCampaign)value);
2084
        }
2085
        break;
2086
 
2087
      }
2088
    }
2089
 
2090
    public Object getFieldValue(_Fields field) {
2091
      switch (field) {
2092
      case CAMPAIGN:
2093
        return getCampaign();
2094
 
2095
      }
2096
      throw new IllegalStateException();
2097
    }
2098
 
2099
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2100
    public boolean isSet(_Fields field) {
2101
      if (field == null) {
2102
        throw new IllegalArgumentException();
2103
      }
2104
 
2105
      switch (field) {
2106
      case CAMPAIGN:
2107
        return isSetCampaign();
2108
      }
2109
      throw new IllegalStateException();
2110
    }
2111
 
2112
    @Override
2113
    public boolean equals(Object that) {
2114
      if (that == null)
2115
        return false;
2116
      if (that instanceof addAdwordsCampaign_args)
2117
        return this.equals((addAdwordsCampaign_args)that);
2118
      return false;
2119
    }
2120
 
2121
    public boolean equals(addAdwordsCampaign_args that) {
2122
      if (that == null)
2123
        return false;
2124
 
2125
      boolean this_present_campaign = true && this.isSetCampaign();
2126
      boolean that_present_campaign = true && that.isSetCampaign();
2127
      if (this_present_campaign || that_present_campaign) {
2128
        if (!(this_present_campaign && that_present_campaign))
2129
          return false;
2130
        if (!this.campaign.equals(that.campaign))
2131
          return false;
2132
      }
2133
 
2134
      return true;
2135
    }
2136
 
2137
    @Override
2138
    public int hashCode() {
2139
      return 0;
2140
    }
2141
 
2142
    public int compareTo(addAdwordsCampaign_args other) {
2143
      if (!getClass().equals(other.getClass())) {
2144
        return getClass().getName().compareTo(other.getClass().getName());
2145
      }
2146
 
2147
      int lastComparison = 0;
2148
      addAdwordsCampaign_args typedOther = (addAdwordsCampaign_args)other;
2149
 
2150
      lastComparison = Boolean.valueOf(isSetCampaign()).compareTo(typedOther.isSetCampaign());
2151
      if (lastComparison != 0) {
2152
        return lastComparison;
2153
      }
2154
      if (isSetCampaign()) {
2155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaign, typedOther.campaign);
2156
        if (lastComparison != 0) {
2157
          return lastComparison;
2158
        }
2159
      }
2160
      return 0;
2161
    }
2162
 
2163
    public _Fields fieldForId(int fieldId) {
2164
      return _Fields.findByThriftId(fieldId);
2165
    }
2166
 
2167
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2168
      org.apache.thrift.protocol.TField field;
2169
      iprot.readStructBegin();
2170
      while (true)
2171
      {
2172
        field = iprot.readFieldBegin();
2173
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2174
          break;
2175
        }
2176
        switch (field.id) {
2177
          case 1: // CAMPAIGN
2178
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2179
              this.campaign = new AdwordsCampaign();
2180
              this.campaign.read(iprot);
2181
            } else { 
2182
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2183
            }
2184
            break;
2185
          default:
2186
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2187
        }
2188
        iprot.readFieldEnd();
2189
      }
2190
      iprot.readStructEnd();
2191
      validate();
2192
    }
2193
 
2194
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2195
      validate();
2196
 
2197
      oprot.writeStructBegin(STRUCT_DESC);
2198
      if (this.campaign != null) {
2199
        oprot.writeFieldBegin(CAMPAIGN_FIELD_DESC);
2200
        this.campaign.write(oprot);
2201
        oprot.writeFieldEnd();
2202
      }
2203
      oprot.writeFieldStop();
2204
      oprot.writeStructEnd();
2205
    }
2206
 
2207
    @Override
2208
    public String toString() {
2209
      StringBuilder sb = new StringBuilder("addAdwordsCampaign_args(");
2210
      boolean first = true;
2211
 
2212
      sb.append("campaign:");
2213
      if (this.campaign == null) {
2214
        sb.append("null");
2215
      } else {
2216
        sb.append(this.campaign);
2217
      }
2218
      first = false;
2219
      sb.append(")");
2220
      return sb.toString();
2221
    }
2222
 
2223
    public void validate() throws org.apache.thrift.TException {
2224
      // check for required fields
2225
    }
2226
 
2227
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2228
      try {
2229
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2230
      } catch (org.apache.thrift.TException te) {
2231
        throw new java.io.IOException(te);
2232
      }
2233
    }
2234
 
2235
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2236
      try {
2237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2238
      } catch (org.apache.thrift.TException te) {
2239
        throw new java.io.IOException(te);
2240
      }
2241
    }
2242
 
2243
  }
2244
 
2245
  public static class addAdwordsCampaign_result implements org.apache.thrift.TBase<addAdwordsCampaign_result, addAdwordsCampaign_result._Fields>, java.io.Serializable, Cloneable   {
2246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsCampaign_result");
2247
 
2248
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2249
 
2250
    private GoogleAdwordsServiceException gasex; // required
2251
 
2252
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2253
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2254
      GASEX((short)1, "gasex");
2255
 
2256
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2257
 
2258
      static {
2259
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2260
          byName.put(field.getFieldName(), field);
2261
        }
2262
      }
2263
 
2264
      /**
2265
       * Find the _Fields constant that matches fieldId, or null if its not found.
2266
       */
2267
      public static _Fields findByThriftId(int fieldId) {
2268
        switch(fieldId) {
2269
          case 1: // GASEX
2270
            return GASEX;
2271
          default:
2272
            return null;
2273
        }
2274
      }
2275
 
2276
      /**
2277
       * Find the _Fields constant that matches fieldId, throwing an exception
2278
       * if it is not found.
2279
       */
2280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2281
        _Fields fields = findByThriftId(fieldId);
2282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2283
        return fields;
2284
      }
2285
 
2286
      /**
2287
       * Find the _Fields constant that matches name, or null if its not found.
2288
       */
2289
      public static _Fields findByName(String name) {
2290
        return byName.get(name);
2291
      }
2292
 
2293
      private final short _thriftId;
2294
      private final String _fieldName;
2295
 
2296
      _Fields(short thriftId, String fieldName) {
2297
        _thriftId = thriftId;
2298
        _fieldName = fieldName;
2299
      }
2300
 
2301
      public short getThriftFieldId() {
2302
        return _thriftId;
2303
      }
2304
 
2305
      public String getFieldName() {
2306
        return _fieldName;
2307
      }
2308
    }
2309
 
2310
    // isset id assignments
2311
 
2312
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2313
    static {
2314
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2315
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2316
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2317
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2318
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsCampaign_result.class, metaDataMap);
2319
    }
2320
 
2321
    public addAdwordsCampaign_result() {
2322
    }
2323
 
2324
    public addAdwordsCampaign_result(
2325
      GoogleAdwordsServiceException gasex)
2326
    {
2327
      this();
2328
      this.gasex = gasex;
2329
    }
2330
 
2331
    /**
2332
     * Performs a deep copy on <i>other</i>.
2333
     */
2334
    public addAdwordsCampaign_result(addAdwordsCampaign_result other) {
2335
      if (other.isSetGasex()) {
2336
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
2337
      }
2338
    }
2339
 
2340
    public addAdwordsCampaign_result deepCopy() {
2341
      return new addAdwordsCampaign_result(this);
2342
    }
2343
 
2344
    @Override
2345
    public void clear() {
2346
      this.gasex = null;
2347
    }
2348
 
2349
    public GoogleAdwordsServiceException getGasex() {
2350
      return this.gasex;
2351
    }
2352
 
2353
    public void setGasex(GoogleAdwordsServiceException gasex) {
2354
      this.gasex = gasex;
2355
    }
2356
 
2357
    public void unsetGasex() {
2358
      this.gasex = null;
2359
    }
2360
 
2361
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
2362
    public boolean isSetGasex() {
2363
      return this.gasex != null;
2364
    }
2365
 
2366
    public void setGasexIsSet(boolean value) {
2367
      if (!value) {
2368
        this.gasex = null;
2369
      }
2370
    }
2371
 
2372
    public void setFieldValue(_Fields field, Object value) {
2373
      switch (field) {
2374
      case GASEX:
2375
        if (value == null) {
2376
          unsetGasex();
2377
        } else {
2378
          setGasex((GoogleAdwordsServiceException)value);
2379
        }
2380
        break;
2381
 
2382
      }
2383
    }
2384
 
2385
    public Object getFieldValue(_Fields field) {
2386
      switch (field) {
2387
      case GASEX:
2388
        return getGasex();
2389
 
2390
      }
2391
      throw new IllegalStateException();
2392
    }
2393
 
2394
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2395
    public boolean isSet(_Fields field) {
2396
      if (field == null) {
2397
        throw new IllegalArgumentException();
2398
      }
2399
 
2400
      switch (field) {
2401
      case GASEX:
2402
        return isSetGasex();
2403
      }
2404
      throw new IllegalStateException();
2405
    }
2406
 
2407
    @Override
2408
    public boolean equals(Object that) {
2409
      if (that == null)
2410
        return false;
2411
      if (that instanceof addAdwordsCampaign_result)
2412
        return this.equals((addAdwordsCampaign_result)that);
2413
      return false;
2414
    }
2415
 
2416
    public boolean equals(addAdwordsCampaign_result that) {
2417
      if (that == null)
2418
        return false;
2419
 
2420
      boolean this_present_gasex = true && this.isSetGasex();
2421
      boolean that_present_gasex = true && that.isSetGasex();
2422
      if (this_present_gasex || that_present_gasex) {
2423
        if (!(this_present_gasex && that_present_gasex))
2424
          return false;
2425
        if (!this.gasex.equals(that.gasex))
2426
          return false;
2427
      }
2428
 
2429
      return true;
2430
    }
2431
 
2432
    @Override
2433
    public int hashCode() {
2434
      return 0;
2435
    }
2436
 
2437
    public int compareTo(addAdwordsCampaign_result other) {
2438
      if (!getClass().equals(other.getClass())) {
2439
        return getClass().getName().compareTo(other.getClass().getName());
2440
      }
2441
 
2442
      int lastComparison = 0;
2443
      addAdwordsCampaign_result typedOther = (addAdwordsCampaign_result)other;
2444
 
2445
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
2446
      if (lastComparison != 0) {
2447
        return lastComparison;
2448
      }
2449
      if (isSetGasex()) {
2450
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
2451
        if (lastComparison != 0) {
2452
          return lastComparison;
2453
        }
2454
      }
2455
      return 0;
2456
    }
2457
 
2458
    public _Fields fieldForId(int fieldId) {
2459
      return _Fields.findByThriftId(fieldId);
2460
    }
2461
 
2462
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2463
      org.apache.thrift.protocol.TField field;
2464
      iprot.readStructBegin();
2465
      while (true)
2466
      {
2467
        field = iprot.readFieldBegin();
2468
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2469
          break;
2470
        }
2471
        switch (field.id) {
2472
          case 1: // GASEX
2473
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2474
              this.gasex = new GoogleAdwordsServiceException();
2475
              this.gasex.read(iprot);
2476
            } else { 
2477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2478
            }
2479
            break;
2480
          default:
2481
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2482
        }
2483
        iprot.readFieldEnd();
2484
      }
2485
      iprot.readStructEnd();
2486
      validate();
2487
    }
2488
 
2489
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2490
      oprot.writeStructBegin(STRUCT_DESC);
2491
 
2492
      if (this.isSetGasex()) {
2493
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
2494
        this.gasex.write(oprot);
2495
        oprot.writeFieldEnd();
2496
      }
2497
      oprot.writeFieldStop();
2498
      oprot.writeStructEnd();
2499
    }
2500
 
2501
    @Override
2502
    public String toString() {
2503
      StringBuilder sb = new StringBuilder("addAdwordsCampaign_result(");
2504
      boolean first = true;
2505
 
2506
      sb.append("gasex:");
2507
      if (this.gasex == null) {
2508
        sb.append("null");
2509
      } else {
2510
        sb.append(this.gasex);
2511
      }
2512
      first = false;
2513
      sb.append(")");
2514
      return sb.toString();
2515
    }
2516
 
2517
    public void validate() throws org.apache.thrift.TException {
2518
      // check for required fields
2519
    }
2520
 
2521
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2522
      try {
2523
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2524
      } catch (org.apache.thrift.TException te) {
2525
        throw new java.io.IOException(te);
2526
      }
2527
    }
2528
 
2529
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2530
      try {
2531
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2532
      } catch (org.apache.thrift.TException te) {
2533
        throw new java.io.IOException(te);
2534
      }
2535
    }
2536
 
2537
  }
2538
 
2539
  public static class addAdwordsAdGroup_args implements org.apache.thrift.TBase<addAdwordsAdGroup_args, addAdwordsAdGroup_args._Fields>, java.io.Serializable, Cloneable   {
2540
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroup_args");
2541
 
2542
    private static final org.apache.thrift.protocol.TField ADGROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroup", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2543
 
2544
    private AdwordsAdGroup adgroup; // required
2545
 
2546
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2547
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2548
      ADGROUP((short)1, "adgroup");
2549
 
2550
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2551
 
2552
      static {
2553
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2554
          byName.put(field.getFieldName(), field);
2555
        }
2556
      }
2557
 
2558
      /**
2559
       * Find the _Fields constant that matches fieldId, or null if its not found.
2560
       */
2561
      public static _Fields findByThriftId(int fieldId) {
2562
        switch(fieldId) {
2563
          case 1: // ADGROUP
2564
            return ADGROUP;
2565
          default:
2566
            return null;
2567
        }
2568
      }
2569
 
2570
      /**
2571
       * Find the _Fields constant that matches fieldId, throwing an exception
2572
       * if it is not found.
2573
       */
2574
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2575
        _Fields fields = findByThriftId(fieldId);
2576
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2577
        return fields;
2578
      }
2579
 
2580
      /**
2581
       * Find the _Fields constant that matches name, or null if its not found.
2582
       */
2583
      public static _Fields findByName(String name) {
2584
        return byName.get(name);
2585
      }
2586
 
2587
      private final short _thriftId;
2588
      private final String _fieldName;
2589
 
2590
      _Fields(short thriftId, String fieldName) {
2591
        _thriftId = thriftId;
2592
        _fieldName = fieldName;
2593
      }
2594
 
2595
      public short getThriftFieldId() {
2596
        return _thriftId;
2597
      }
2598
 
2599
      public String getFieldName() {
2600
        return _fieldName;
2601
      }
2602
    }
2603
 
2604
    // isset id assignments
2605
 
2606
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2607
    static {
2608
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2609
      tmpMap.put(_Fields.ADGROUP, new org.apache.thrift.meta_data.FieldMetaData("adgroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2610
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class)));
2611
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2612
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroup_args.class, metaDataMap);
2613
    }
2614
 
2615
    public addAdwordsAdGroup_args() {
2616
    }
2617
 
2618
    public addAdwordsAdGroup_args(
2619
      AdwordsAdGroup adgroup)
2620
    {
2621
      this();
2622
      this.adgroup = adgroup;
2623
    }
2624
 
2625
    /**
2626
     * Performs a deep copy on <i>other</i>.
2627
     */
2628
    public addAdwordsAdGroup_args(addAdwordsAdGroup_args other) {
2629
      if (other.isSetAdgroup()) {
2630
        this.adgroup = new AdwordsAdGroup(other.adgroup);
2631
      }
2632
    }
2633
 
2634
    public addAdwordsAdGroup_args deepCopy() {
2635
      return new addAdwordsAdGroup_args(this);
2636
    }
2637
 
2638
    @Override
2639
    public void clear() {
2640
      this.adgroup = null;
2641
    }
2642
 
2643
    public AdwordsAdGroup getAdgroup() {
2644
      return this.adgroup;
2645
    }
2646
 
2647
    public void setAdgroup(AdwordsAdGroup adgroup) {
2648
      this.adgroup = adgroup;
2649
    }
2650
 
2651
    public void unsetAdgroup() {
2652
      this.adgroup = null;
2653
    }
2654
 
2655
    /** Returns true if field adgroup is set (has been assigned a value) and false otherwise */
2656
    public boolean isSetAdgroup() {
2657
      return this.adgroup != null;
2658
    }
2659
 
2660
    public void setAdgroupIsSet(boolean value) {
2661
      if (!value) {
2662
        this.adgroup = null;
2663
      }
2664
    }
2665
 
2666
    public void setFieldValue(_Fields field, Object value) {
2667
      switch (field) {
2668
      case ADGROUP:
2669
        if (value == null) {
2670
          unsetAdgroup();
2671
        } else {
2672
          setAdgroup((AdwordsAdGroup)value);
2673
        }
2674
        break;
2675
 
2676
      }
2677
    }
2678
 
2679
    public Object getFieldValue(_Fields field) {
2680
      switch (field) {
2681
      case ADGROUP:
2682
        return getAdgroup();
2683
 
2684
      }
2685
      throw new IllegalStateException();
2686
    }
2687
 
2688
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2689
    public boolean isSet(_Fields field) {
2690
      if (field == null) {
2691
        throw new IllegalArgumentException();
2692
      }
2693
 
2694
      switch (field) {
2695
      case ADGROUP:
2696
        return isSetAdgroup();
2697
      }
2698
      throw new IllegalStateException();
2699
    }
2700
 
2701
    @Override
2702
    public boolean equals(Object that) {
2703
      if (that == null)
2704
        return false;
2705
      if (that instanceof addAdwordsAdGroup_args)
2706
        return this.equals((addAdwordsAdGroup_args)that);
2707
      return false;
2708
    }
2709
 
2710
    public boolean equals(addAdwordsAdGroup_args that) {
2711
      if (that == null)
2712
        return false;
2713
 
2714
      boolean this_present_adgroup = true && this.isSetAdgroup();
2715
      boolean that_present_adgroup = true && that.isSetAdgroup();
2716
      if (this_present_adgroup || that_present_adgroup) {
2717
        if (!(this_present_adgroup && that_present_adgroup))
2718
          return false;
2719
        if (!this.adgroup.equals(that.adgroup))
2720
          return false;
2721
      }
2722
 
2723
      return true;
2724
    }
2725
 
2726
    @Override
2727
    public int hashCode() {
2728
      return 0;
2729
    }
2730
 
2731
    public int compareTo(addAdwordsAdGroup_args other) {
2732
      if (!getClass().equals(other.getClass())) {
2733
        return getClass().getName().compareTo(other.getClass().getName());
2734
      }
2735
 
2736
      int lastComparison = 0;
2737
      addAdwordsAdGroup_args typedOther = (addAdwordsAdGroup_args)other;
2738
 
2739
      lastComparison = Boolean.valueOf(isSetAdgroup()).compareTo(typedOther.isSetAdgroup());
2740
      if (lastComparison != 0) {
2741
        return lastComparison;
2742
      }
2743
      if (isSetAdgroup()) {
2744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroup, typedOther.adgroup);
2745
        if (lastComparison != 0) {
2746
          return lastComparison;
2747
        }
2748
      }
2749
      return 0;
2750
    }
2751
 
2752
    public _Fields fieldForId(int fieldId) {
2753
      return _Fields.findByThriftId(fieldId);
2754
    }
2755
 
2756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2757
      org.apache.thrift.protocol.TField field;
2758
      iprot.readStructBegin();
2759
      while (true)
2760
      {
2761
        field = iprot.readFieldBegin();
2762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2763
          break;
2764
        }
2765
        switch (field.id) {
2766
          case 1: // ADGROUP
2767
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2768
              this.adgroup = new AdwordsAdGroup();
2769
              this.adgroup.read(iprot);
2770
            } else { 
2771
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2772
            }
2773
            break;
2774
          default:
2775
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2776
        }
2777
        iprot.readFieldEnd();
2778
      }
2779
      iprot.readStructEnd();
2780
      validate();
2781
    }
2782
 
2783
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2784
      validate();
2785
 
2786
      oprot.writeStructBegin(STRUCT_DESC);
2787
      if (this.adgroup != null) {
2788
        oprot.writeFieldBegin(ADGROUP_FIELD_DESC);
2789
        this.adgroup.write(oprot);
2790
        oprot.writeFieldEnd();
2791
      }
2792
      oprot.writeFieldStop();
2793
      oprot.writeStructEnd();
2794
    }
2795
 
2796
    @Override
2797
    public String toString() {
2798
      StringBuilder sb = new StringBuilder("addAdwordsAdGroup_args(");
2799
      boolean first = true;
2800
 
2801
      sb.append("adgroup:");
2802
      if (this.adgroup == null) {
2803
        sb.append("null");
2804
      } else {
2805
        sb.append(this.adgroup);
2806
      }
2807
      first = false;
2808
      sb.append(")");
2809
      return sb.toString();
2810
    }
2811
 
2812
    public void validate() throws org.apache.thrift.TException {
2813
      // check for required fields
2814
    }
2815
 
2816
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2817
      try {
2818
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2819
      } catch (org.apache.thrift.TException te) {
2820
        throw new java.io.IOException(te);
2821
      }
2822
    }
2823
 
2824
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2825
      try {
2826
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2827
      } catch (org.apache.thrift.TException te) {
2828
        throw new java.io.IOException(te);
2829
      }
2830
    }
2831
 
2832
  }
2833
 
2834
  public static class addAdwordsAdGroup_result implements org.apache.thrift.TBase<addAdwordsAdGroup_result, addAdwordsAdGroup_result._Fields>, java.io.Serializable, Cloneable   {
2835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroup_result");
2836
 
2837
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2838
 
2839
    private GoogleAdwordsServiceException gasex; // required
2840
 
2841
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2842
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2843
      GASEX((short)1, "gasex");
2844
 
2845
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2846
 
2847
      static {
2848
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2849
          byName.put(field.getFieldName(), field);
2850
        }
2851
      }
2852
 
2853
      /**
2854
       * Find the _Fields constant that matches fieldId, or null if its not found.
2855
       */
2856
      public static _Fields findByThriftId(int fieldId) {
2857
        switch(fieldId) {
2858
          case 1: // GASEX
2859
            return GASEX;
2860
          default:
2861
            return null;
2862
        }
2863
      }
2864
 
2865
      /**
2866
       * Find the _Fields constant that matches fieldId, throwing an exception
2867
       * if it is not found.
2868
       */
2869
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2870
        _Fields fields = findByThriftId(fieldId);
2871
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2872
        return fields;
2873
      }
2874
 
2875
      /**
2876
       * Find the _Fields constant that matches name, or null if its not found.
2877
       */
2878
      public static _Fields findByName(String name) {
2879
        return byName.get(name);
2880
      }
2881
 
2882
      private final short _thriftId;
2883
      private final String _fieldName;
2884
 
2885
      _Fields(short thriftId, String fieldName) {
2886
        _thriftId = thriftId;
2887
        _fieldName = fieldName;
2888
      }
2889
 
2890
      public short getThriftFieldId() {
2891
        return _thriftId;
2892
      }
2893
 
2894
      public String getFieldName() {
2895
        return _fieldName;
2896
      }
2897
    }
2898
 
2899
    // isset id assignments
2900
 
2901
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2902
    static {
2903
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2904
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2905
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2906
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2907
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroup_result.class, metaDataMap);
2908
    }
2909
 
2910
    public addAdwordsAdGroup_result() {
2911
    }
2912
 
2913
    public addAdwordsAdGroup_result(
2914
      GoogleAdwordsServiceException gasex)
2915
    {
2916
      this();
2917
      this.gasex = gasex;
2918
    }
2919
 
2920
    /**
2921
     * Performs a deep copy on <i>other</i>.
2922
     */
2923
    public addAdwordsAdGroup_result(addAdwordsAdGroup_result other) {
2924
      if (other.isSetGasex()) {
2925
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
2926
      }
2927
    }
2928
 
2929
    public addAdwordsAdGroup_result deepCopy() {
2930
      return new addAdwordsAdGroup_result(this);
2931
    }
2932
 
2933
    @Override
2934
    public void clear() {
2935
      this.gasex = null;
2936
    }
2937
 
2938
    public GoogleAdwordsServiceException getGasex() {
2939
      return this.gasex;
2940
    }
2941
 
2942
    public void setGasex(GoogleAdwordsServiceException gasex) {
2943
      this.gasex = gasex;
2944
    }
2945
 
2946
    public void unsetGasex() {
2947
      this.gasex = null;
2948
    }
2949
 
2950
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
2951
    public boolean isSetGasex() {
2952
      return this.gasex != null;
2953
    }
2954
 
2955
    public void setGasexIsSet(boolean value) {
2956
      if (!value) {
2957
        this.gasex = null;
2958
      }
2959
    }
2960
 
2961
    public void setFieldValue(_Fields field, Object value) {
2962
      switch (field) {
2963
      case GASEX:
2964
        if (value == null) {
2965
          unsetGasex();
2966
        } else {
2967
          setGasex((GoogleAdwordsServiceException)value);
2968
        }
2969
        break;
2970
 
2971
      }
2972
    }
2973
 
2974
    public Object getFieldValue(_Fields field) {
2975
      switch (field) {
2976
      case GASEX:
2977
        return getGasex();
2978
 
2979
      }
2980
      throw new IllegalStateException();
2981
    }
2982
 
2983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2984
    public boolean isSet(_Fields field) {
2985
      if (field == null) {
2986
        throw new IllegalArgumentException();
2987
      }
2988
 
2989
      switch (field) {
2990
      case GASEX:
2991
        return isSetGasex();
2992
      }
2993
      throw new IllegalStateException();
2994
    }
2995
 
2996
    @Override
2997
    public boolean equals(Object that) {
2998
      if (that == null)
2999
        return false;
3000
      if (that instanceof addAdwordsAdGroup_result)
3001
        return this.equals((addAdwordsAdGroup_result)that);
3002
      return false;
3003
    }
3004
 
3005
    public boolean equals(addAdwordsAdGroup_result that) {
3006
      if (that == null)
3007
        return false;
3008
 
3009
      boolean this_present_gasex = true && this.isSetGasex();
3010
      boolean that_present_gasex = true && that.isSetGasex();
3011
      if (this_present_gasex || that_present_gasex) {
3012
        if (!(this_present_gasex && that_present_gasex))
3013
          return false;
3014
        if (!this.gasex.equals(that.gasex))
3015
          return false;
3016
      }
3017
 
3018
      return true;
3019
    }
3020
 
3021
    @Override
3022
    public int hashCode() {
3023
      return 0;
3024
    }
3025
 
3026
    public int compareTo(addAdwordsAdGroup_result other) {
3027
      if (!getClass().equals(other.getClass())) {
3028
        return getClass().getName().compareTo(other.getClass().getName());
3029
      }
3030
 
3031
      int lastComparison = 0;
3032
      addAdwordsAdGroup_result typedOther = (addAdwordsAdGroup_result)other;
3033
 
3034
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
3035
      if (lastComparison != 0) {
3036
        return lastComparison;
3037
      }
3038
      if (isSetGasex()) {
3039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
3040
        if (lastComparison != 0) {
3041
          return lastComparison;
3042
        }
3043
      }
3044
      return 0;
3045
    }
3046
 
3047
    public _Fields fieldForId(int fieldId) {
3048
      return _Fields.findByThriftId(fieldId);
3049
    }
3050
 
3051
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3052
      org.apache.thrift.protocol.TField field;
3053
      iprot.readStructBegin();
3054
      while (true)
3055
      {
3056
        field = iprot.readFieldBegin();
3057
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3058
          break;
3059
        }
3060
        switch (field.id) {
3061
          case 1: // GASEX
3062
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3063
              this.gasex = new GoogleAdwordsServiceException();
3064
              this.gasex.read(iprot);
3065
            } else { 
3066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3067
            }
3068
            break;
3069
          default:
3070
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3071
        }
3072
        iprot.readFieldEnd();
3073
      }
3074
      iprot.readStructEnd();
3075
      validate();
3076
    }
3077
 
3078
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3079
      oprot.writeStructBegin(STRUCT_DESC);
3080
 
3081
      if (this.isSetGasex()) {
3082
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
3083
        this.gasex.write(oprot);
3084
        oprot.writeFieldEnd();
3085
      }
3086
      oprot.writeFieldStop();
3087
      oprot.writeStructEnd();
3088
    }
3089
 
3090
    @Override
3091
    public String toString() {
3092
      StringBuilder sb = new StringBuilder("addAdwordsAdGroup_result(");
3093
      boolean first = true;
3094
 
3095
      sb.append("gasex:");
3096
      if (this.gasex == null) {
3097
        sb.append("null");
3098
      } else {
3099
        sb.append(this.gasex);
3100
      }
3101
      first = false;
3102
      sb.append(")");
3103
      return sb.toString();
3104
    }
3105
 
3106
    public void validate() throws org.apache.thrift.TException {
3107
      // check for required fields
3108
    }
3109
 
3110
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3111
      try {
3112
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3113
      } catch (org.apache.thrift.TException te) {
3114
        throw new java.io.IOException(te);
3115
      }
3116
    }
3117
 
3118
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3119
      try {
3120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3121
      } catch (org.apache.thrift.TException te) {
3122
        throw new java.io.IOException(te);
3123
      }
3124
    }
3125
 
3126
  }
3127
 
3128
  public static class addAdwordsAdGroupAd_args implements org.apache.thrift.TBase<addAdwordsAdGroupAd_args, addAdwordsAdGroupAd_args._Fields>, java.io.Serializable, Cloneable   {
3129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroupAd_args");
3130
 
3131
    private static final org.apache.thrift.protocol.TField ADGROUPAD_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupad", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3132
 
3133
    private AdwordsAdGroupAd adgroupad; // required
3134
 
3135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3137
      ADGROUPAD((short)1, "adgroupad");
3138
 
3139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3140
 
3141
      static {
3142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3143
          byName.put(field.getFieldName(), field);
3144
        }
3145
      }
3146
 
3147
      /**
3148
       * Find the _Fields constant that matches fieldId, or null if its not found.
3149
       */
3150
      public static _Fields findByThriftId(int fieldId) {
3151
        switch(fieldId) {
3152
          case 1: // ADGROUPAD
3153
            return ADGROUPAD;
3154
          default:
3155
            return null;
3156
        }
3157
      }
3158
 
3159
      /**
3160
       * Find the _Fields constant that matches fieldId, throwing an exception
3161
       * if it is not found.
3162
       */
3163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3164
        _Fields fields = findByThriftId(fieldId);
3165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3166
        return fields;
3167
      }
3168
 
3169
      /**
3170
       * Find the _Fields constant that matches name, or null if its not found.
3171
       */
3172
      public static _Fields findByName(String name) {
3173
        return byName.get(name);
3174
      }
3175
 
3176
      private final short _thriftId;
3177
      private final String _fieldName;
3178
 
3179
      _Fields(short thriftId, String fieldName) {
3180
        _thriftId = thriftId;
3181
        _fieldName = fieldName;
3182
      }
3183
 
3184
      public short getThriftFieldId() {
3185
        return _thriftId;
3186
      }
3187
 
3188
      public String getFieldName() {
3189
        return _fieldName;
3190
      }
3191
    }
3192
 
3193
    // isset id assignments
3194
 
3195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3196
    static {
3197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3198
      tmpMap.put(_Fields.ADGROUPAD, new org.apache.thrift.meta_data.FieldMetaData("adgroupad", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3199
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class)));
3200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroupAd_args.class, metaDataMap);
3202
    }
3203
 
3204
    public addAdwordsAdGroupAd_args() {
3205
    }
3206
 
3207
    public addAdwordsAdGroupAd_args(
3208
      AdwordsAdGroupAd adgroupad)
3209
    {
3210
      this();
3211
      this.adgroupad = adgroupad;
3212
    }
3213
 
3214
    /**
3215
     * Performs a deep copy on <i>other</i>.
3216
     */
3217
    public addAdwordsAdGroupAd_args(addAdwordsAdGroupAd_args other) {
3218
      if (other.isSetAdgroupad()) {
3219
        this.adgroupad = new AdwordsAdGroupAd(other.adgroupad);
3220
      }
3221
    }
3222
 
3223
    public addAdwordsAdGroupAd_args deepCopy() {
3224
      return new addAdwordsAdGroupAd_args(this);
3225
    }
3226
 
3227
    @Override
3228
    public void clear() {
3229
      this.adgroupad = null;
3230
    }
3231
 
3232
    public AdwordsAdGroupAd getAdgroupad() {
3233
      return this.adgroupad;
3234
    }
3235
 
3236
    public void setAdgroupad(AdwordsAdGroupAd adgroupad) {
3237
      this.adgroupad = adgroupad;
3238
    }
3239
 
3240
    public void unsetAdgroupad() {
3241
      this.adgroupad = null;
3242
    }
3243
 
3244
    /** Returns true if field adgroupad is set (has been assigned a value) and false otherwise */
3245
    public boolean isSetAdgroupad() {
3246
      return this.adgroupad != null;
3247
    }
3248
 
3249
    public void setAdgroupadIsSet(boolean value) {
3250
      if (!value) {
3251
        this.adgroupad = null;
3252
      }
3253
    }
3254
 
3255
    public void setFieldValue(_Fields field, Object value) {
3256
      switch (field) {
3257
      case ADGROUPAD:
3258
        if (value == null) {
3259
          unsetAdgroupad();
3260
        } else {
3261
          setAdgroupad((AdwordsAdGroupAd)value);
3262
        }
3263
        break;
3264
 
3265
      }
3266
    }
3267
 
3268
    public Object getFieldValue(_Fields field) {
3269
      switch (field) {
3270
      case ADGROUPAD:
3271
        return getAdgroupad();
3272
 
3273
      }
3274
      throw new IllegalStateException();
3275
    }
3276
 
3277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3278
    public boolean isSet(_Fields field) {
3279
      if (field == null) {
3280
        throw new IllegalArgumentException();
3281
      }
3282
 
3283
      switch (field) {
3284
      case ADGROUPAD:
3285
        return isSetAdgroupad();
3286
      }
3287
      throw new IllegalStateException();
3288
    }
3289
 
3290
    @Override
3291
    public boolean equals(Object that) {
3292
      if (that == null)
3293
        return false;
3294
      if (that instanceof addAdwordsAdGroupAd_args)
3295
        return this.equals((addAdwordsAdGroupAd_args)that);
3296
      return false;
3297
    }
3298
 
3299
    public boolean equals(addAdwordsAdGroupAd_args that) {
3300
      if (that == null)
3301
        return false;
3302
 
3303
      boolean this_present_adgroupad = true && this.isSetAdgroupad();
3304
      boolean that_present_adgroupad = true && that.isSetAdgroupad();
3305
      if (this_present_adgroupad || that_present_adgroupad) {
3306
        if (!(this_present_adgroupad && that_present_adgroupad))
3307
          return false;
3308
        if (!this.adgroupad.equals(that.adgroupad))
3309
          return false;
3310
      }
3311
 
3312
      return true;
3313
    }
3314
 
3315
    @Override
3316
    public int hashCode() {
3317
      return 0;
3318
    }
3319
 
3320
    public int compareTo(addAdwordsAdGroupAd_args other) {
3321
      if (!getClass().equals(other.getClass())) {
3322
        return getClass().getName().compareTo(other.getClass().getName());
3323
      }
3324
 
3325
      int lastComparison = 0;
3326
      addAdwordsAdGroupAd_args typedOther = (addAdwordsAdGroupAd_args)other;
3327
 
3328
      lastComparison = Boolean.valueOf(isSetAdgroupad()).compareTo(typedOther.isSetAdgroupad());
3329
      if (lastComparison != 0) {
3330
        return lastComparison;
3331
      }
3332
      if (isSetAdgroupad()) {
3333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupad, typedOther.adgroupad);
3334
        if (lastComparison != 0) {
3335
          return lastComparison;
3336
        }
3337
      }
3338
      return 0;
3339
    }
3340
 
3341
    public _Fields fieldForId(int fieldId) {
3342
      return _Fields.findByThriftId(fieldId);
3343
    }
3344
 
3345
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3346
      org.apache.thrift.protocol.TField field;
3347
      iprot.readStructBegin();
3348
      while (true)
3349
      {
3350
        field = iprot.readFieldBegin();
3351
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3352
          break;
3353
        }
3354
        switch (field.id) {
3355
          case 1: // ADGROUPAD
3356
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3357
              this.adgroupad = new AdwordsAdGroupAd();
3358
              this.adgroupad.read(iprot);
3359
            } else { 
3360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3361
            }
3362
            break;
3363
          default:
3364
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3365
        }
3366
        iprot.readFieldEnd();
3367
      }
3368
      iprot.readStructEnd();
3369
      validate();
3370
    }
3371
 
3372
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3373
      validate();
3374
 
3375
      oprot.writeStructBegin(STRUCT_DESC);
3376
      if (this.adgroupad != null) {
3377
        oprot.writeFieldBegin(ADGROUPAD_FIELD_DESC);
3378
        this.adgroupad.write(oprot);
3379
        oprot.writeFieldEnd();
3380
      }
3381
      oprot.writeFieldStop();
3382
      oprot.writeStructEnd();
3383
    }
3384
 
3385
    @Override
3386
    public String toString() {
3387
      StringBuilder sb = new StringBuilder("addAdwordsAdGroupAd_args(");
3388
      boolean first = true;
3389
 
3390
      sb.append("adgroupad:");
3391
      if (this.adgroupad == null) {
3392
        sb.append("null");
3393
      } else {
3394
        sb.append(this.adgroupad);
3395
      }
3396
      first = false;
3397
      sb.append(")");
3398
      return sb.toString();
3399
    }
3400
 
3401
    public void validate() throws org.apache.thrift.TException {
3402
      // check for required fields
3403
    }
3404
 
3405
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3406
      try {
3407
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3408
      } catch (org.apache.thrift.TException te) {
3409
        throw new java.io.IOException(te);
3410
      }
3411
    }
3412
 
3413
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3414
      try {
3415
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3416
      } catch (org.apache.thrift.TException te) {
3417
        throw new java.io.IOException(te);
3418
      }
3419
    }
3420
 
3421
  }
3422
 
3423
  public static class addAdwordsAdGroupAd_result implements org.apache.thrift.TBase<addAdwordsAdGroupAd_result, addAdwordsAdGroupAd_result._Fields>, java.io.Serializable, Cloneable   {
3424
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroupAd_result");
3425
 
3426
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3427
 
3428
    private GoogleAdwordsServiceException gasex; // required
3429
 
3430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3431
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3432
      GASEX((short)1, "gasex");
3433
 
3434
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3435
 
3436
      static {
3437
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3438
          byName.put(field.getFieldName(), field);
3439
        }
3440
      }
3441
 
3442
      /**
3443
       * Find the _Fields constant that matches fieldId, or null if its not found.
3444
       */
3445
      public static _Fields findByThriftId(int fieldId) {
3446
        switch(fieldId) {
3447
          case 1: // GASEX
3448
            return GASEX;
3449
          default:
3450
            return null;
3451
        }
3452
      }
3453
 
3454
      /**
3455
       * Find the _Fields constant that matches fieldId, throwing an exception
3456
       * if it is not found.
3457
       */
3458
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3459
        _Fields fields = findByThriftId(fieldId);
3460
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3461
        return fields;
3462
      }
3463
 
3464
      /**
3465
       * Find the _Fields constant that matches name, or null if its not found.
3466
       */
3467
      public static _Fields findByName(String name) {
3468
        return byName.get(name);
3469
      }
3470
 
3471
      private final short _thriftId;
3472
      private final String _fieldName;
3473
 
3474
      _Fields(short thriftId, String fieldName) {
3475
        _thriftId = thriftId;
3476
        _fieldName = fieldName;
3477
      }
3478
 
3479
      public short getThriftFieldId() {
3480
        return _thriftId;
3481
      }
3482
 
3483
      public String getFieldName() {
3484
        return _fieldName;
3485
      }
3486
    }
3487
 
3488
    // isset id assignments
3489
 
3490
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3491
    static {
3492
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3493
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroupAd_result.class, metaDataMap);
3497
    }
3498
 
3499
    public addAdwordsAdGroupAd_result() {
3500
    }
3501
 
3502
    public addAdwordsAdGroupAd_result(
3503
      GoogleAdwordsServiceException gasex)
3504
    {
3505
      this();
3506
      this.gasex = gasex;
3507
    }
3508
 
3509
    /**
3510
     * Performs a deep copy on <i>other</i>.
3511
     */
3512
    public addAdwordsAdGroupAd_result(addAdwordsAdGroupAd_result other) {
3513
      if (other.isSetGasex()) {
3514
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
3515
      }
3516
    }
3517
 
3518
    public addAdwordsAdGroupAd_result deepCopy() {
3519
      return new addAdwordsAdGroupAd_result(this);
3520
    }
3521
 
3522
    @Override
3523
    public void clear() {
3524
      this.gasex = null;
3525
    }
3526
 
3527
    public GoogleAdwordsServiceException getGasex() {
3528
      return this.gasex;
3529
    }
3530
 
3531
    public void setGasex(GoogleAdwordsServiceException gasex) {
3532
      this.gasex = gasex;
3533
    }
3534
 
3535
    public void unsetGasex() {
3536
      this.gasex = null;
3537
    }
3538
 
3539
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
3540
    public boolean isSetGasex() {
3541
      return this.gasex != null;
3542
    }
3543
 
3544
    public void setGasexIsSet(boolean value) {
3545
      if (!value) {
3546
        this.gasex = null;
3547
      }
3548
    }
3549
 
3550
    public void setFieldValue(_Fields field, Object value) {
3551
      switch (field) {
3552
      case GASEX:
3553
        if (value == null) {
3554
          unsetGasex();
3555
        } else {
3556
          setGasex((GoogleAdwordsServiceException)value);
3557
        }
3558
        break;
3559
 
3560
      }
3561
    }
3562
 
3563
    public Object getFieldValue(_Fields field) {
3564
      switch (field) {
3565
      case GASEX:
3566
        return getGasex();
3567
 
3568
      }
3569
      throw new IllegalStateException();
3570
    }
3571
 
3572
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3573
    public boolean isSet(_Fields field) {
3574
      if (field == null) {
3575
        throw new IllegalArgumentException();
3576
      }
3577
 
3578
      switch (field) {
3579
      case GASEX:
3580
        return isSetGasex();
3581
      }
3582
      throw new IllegalStateException();
3583
    }
3584
 
3585
    @Override
3586
    public boolean equals(Object that) {
3587
      if (that == null)
3588
        return false;
3589
      if (that instanceof addAdwordsAdGroupAd_result)
3590
        return this.equals((addAdwordsAdGroupAd_result)that);
3591
      return false;
3592
    }
3593
 
3594
    public boolean equals(addAdwordsAdGroupAd_result that) {
3595
      if (that == null)
3596
        return false;
3597
 
3598
      boolean this_present_gasex = true && this.isSetGasex();
3599
      boolean that_present_gasex = true && that.isSetGasex();
3600
      if (this_present_gasex || that_present_gasex) {
3601
        if (!(this_present_gasex && that_present_gasex))
3602
          return false;
3603
        if (!this.gasex.equals(that.gasex))
3604
          return false;
3605
      }
3606
 
3607
      return true;
3608
    }
3609
 
3610
    @Override
3611
    public int hashCode() {
3612
      return 0;
3613
    }
3614
 
3615
    public int compareTo(addAdwordsAdGroupAd_result other) {
3616
      if (!getClass().equals(other.getClass())) {
3617
        return getClass().getName().compareTo(other.getClass().getName());
3618
      }
3619
 
3620
      int lastComparison = 0;
3621
      addAdwordsAdGroupAd_result typedOther = (addAdwordsAdGroupAd_result)other;
3622
 
3623
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
3624
      if (lastComparison != 0) {
3625
        return lastComparison;
3626
      }
3627
      if (isSetGasex()) {
3628
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
3629
        if (lastComparison != 0) {
3630
          return lastComparison;
3631
        }
3632
      }
3633
      return 0;
3634
    }
3635
 
3636
    public _Fields fieldForId(int fieldId) {
3637
      return _Fields.findByThriftId(fieldId);
3638
    }
3639
 
3640
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3641
      org.apache.thrift.protocol.TField field;
3642
      iprot.readStructBegin();
3643
      while (true)
3644
      {
3645
        field = iprot.readFieldBegin();
3646
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3647
          break;
3648
        }
3649
        switch (field.id) {
3650
          case 1: // GASEX
3651
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3652
              this.gasex = new GoogleAdwordsServiceException();
3653
              this.gasex.read(iprot);
3654
            } else { 
3655
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3656
            }
3657
            break;
3658
          default:
3659
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3660
        }
3661
        iprot.readFieldEnd();
3662
      }
3663
      iprot.readStructEnd();
3664
      validate();
3665
    }
3666
 
3667
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3668
      oprot.writeStructBegin(STRUCT_DESC);
3669
 
3670
      if (this.isSetGasex()) {
3671
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
3672
        this.gasex.write(oprot);
3673
        oprot.writeFieldEnd();
3674
      }
3675
      oprot.writeFieldStop();
3676
      oprot.writeStructEnd();
3677
    }
3678
 
3679
    @Override
3680
    public String toString() {
3681
      StringBuilder sb = new StringBuilder("addAdwordsAdGroupAd_result(");
3682
      boolean first = true;
3683
 
3684
      sb.append("gasex:");
3685
      if (this.gasex == null) {
3686
        sb.append("null");
3687
      } else {
3688
        sb.append(this.gasex);
3689
      }
3690
      first = false;
3691
      sb.append(")");
3692
      return sb.toString();
3693
    }
3694
 
3695
    public void validate() throws org.apache.thrift.TException {
3696
      // check for required fields
3697
    }
3698
 
3699
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3700
      try {
3701
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3702
      } catch (org.apache.thrift.TException te) {
3703
        throw new java.io.IOException(te);
3704
      }
3705
    }
3706
 
3707
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3708
      try {
3709
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3710
      } catch (org.apache.thrift.TException te) {
3711
        throw new java.io.IOException(te);
3712
      }
3713
    }
3714
 
3715
  }
3716
 
3717
  public static class addAdwordsAdKeyword_args implements org.apache.thrift.TBase<addAdwordsAdKeyword_args, addAdwordsAdKeyword_args._Fields>, java.io.Serializable, Cloneable   {
3718
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdKeyword_args");
3719
 
3720
    private static final org.apache.thrift.protocol.TField ADKEYWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("adkeyword", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3721
 
3722
    private AdwordsAdKeyword adkeyword; // required
3723
 
3724
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3725
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3726
      ADKEYWORD((short)1, "adkeyword");
3727
 
3728
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3729
 
3730
      static {
3731
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3732
          byName.put(field.getFieldName(), field);
3733
        }
3734
      }
3735
 
3736
      /**
3737
       * Find the _Fields constant that matches fieldId, or null if its not found.
3738
       */
3739
      public static _Fields findByThriftId(int fieldId) {
3740
        switch(fieldId) {
3741
          case 1: // ADKEYWORD
3742
            return ADKEYWORD;
3743
          default:
3744
            return null;
3745
        }
3746
      }
3747
 
3748
      /**
3749
       * Find the _Fields constant that matches fieldId, throwing an exception
3750
       * if it is not found.
3751
       */
3752
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3753
        _Fields fields = findByThriftId(fieldId);
3754
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3755
        return fields;
3756
      }
3757
 
3758
      /**
3759
       * Find the _Fields constant that matches name, or null if its not found.
3760
       */
3761
      public static _Fields findByName(String name) {
3762
        return byName.get(name);
3763
      }
3764
 
3765
      private final short _thriftId;
3766
      private final String _fieldName;
3767
 
3768
      _Fields(short thriftId, String fieldName) {
3769
        _thriftId = thriftId;
3770
        _fieldName = fieldName;
3771
      }
3772
 
3773
      public short getThriftFieldId() {
3774
        return _thriftId;
3775
      }
3776
 
3777
      public String getFieldName() {
3778
        return _fieldName;
3779
      }
3780
    }
3781
 
3782
    // isset id assignments
3783
 
3784
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3785
    static {
3786
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3787
      tmpMap.put(_Fields.ADKEYWORD, new org.apache.thrift.meta_data.FieldMetaData("adkeyword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3788
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class)));
3789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdKeyword_args.class, metaDataMap);
3791
    }
3792
 
3793
    public addAdwordsAdKeyword_args() {
3794
    }
3795
 
3796
    public addAdwordsAdKeyword_args(
3797
      AdwordsAdKeyword adkeyword)
3798
    {
3799
      this();
3800
      this.adkeyword = adkeyword;
3801
    }
3802
 
3803
    /**
3804
     * Performs a deep copy on <i>other</i>.
3805
     */
3806
    public addAdwordsAdKeyword_args(addAdwordsAdKeyword_args other) {
3807
      if (other.isSetAdkeyword()) {
3808
        this.adkeyword = new AdwordsAdKeyword(other.adkeyword);
3809
      }
3810
    }
3811
 
3812
    public addAdwordsAdKeyword_args deepCopy() {
3813
      return new addAdwordsAdKeyword_args(this);
3814
    }
3815
 
3816
    @Override
3817
    public void clear() {
3818
      this.adkeyword = null;
3819
    }
3820
 
3821
    public AdwordsAdKeyword getAdkeyword() {
3822
      return this.adkeyword;
3823
    }
3824
 
3825
    public void setAdkeyword(AdwordsAdKeyword adkeyword) {
3826
      this.adkeyword = adkeyword;
3827
    }
3828
 
3829
    public void unsetAdkeyword() {
3830
      this.adkeyword = null;
3831
    }
3832
 
3833
    /** Returns true if field adkeyword is set (has been assigned a value) and false otherwise */
3834
    public boolean isSetAdkeyword() {
3835
      return this.adkeyword != null;
3836
    }
3837
 
3838
    public void setAdkeywordIsSet(boolean value) {
3839
      if (!value) {
3840
        this.adkeyword = null;
3841
      }
3842
    }
3843
 
3844
    public void setFieldValue(_Fields field, Object value) {
3845
      switch (field) {
3846
      case ADKEYWORD:
3847
        if (value == null) {
3848
          unsetAdkeyword();
3849
        } else {
3850
          setAdkeyword((AdwordsAdKeyword)value);
3851
        }
3852
        break;
3853
 
3854
      }
3855
    }
3856
 
3857
    public Object getFieldValue(_Fields field) {
3858
      switch (field) {
3859
      case ADKEYWORD:
3860
        return getAdkeyword();
3861
 
3862
      }
3863
      throw new IllegalStateException();
3864
    }
3865
 
3866
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3867
    public boolean isSet(_Fields field) {
3868
      if (field == null) {
3869
        throw new IllegalArgumentException();
3870
      }
3871
 
3872
      switch (field) {
3873
      case ADKEYWORD:
3874
        return isSetAdkeyword();
3875
      }
3876
      throw new IllegalStateException();
3877
    }
3878
 
3879
    @Override
3880
    public boolean equals(Object that) {
3881
      if (that == null)
3882
        return false;
3883
      if (that instanceof addAdwordsAdKeyword_args)
3884
        return this.equals((addAdwordsAdKeyword_args)that);
3885
      return false;
3886
    }
3887
 
3888
    public boolean equals(addAdwordsAdKeyword_args that) {
3889
      if (that == null)
3890
        return false;
3891
 
3892
      boolean this_present_adkeyword = true && this.isSetAdkeyword();
3893
      boolean that_present_adkeyword = true && that.isSetAdkeyword();
3894
      if (this_present_adkeyword || that_present_adkeyword) {
3895
        if (!(this_present_adkeyword && that_present_adkeyword))
3896
          return false;
3897
        if (!this.adkeyword.equals(that.adkeyword))
3898
          return false;
3899
      }
3900
 
3901
      return true;
3902
    }
3903
 
3904
    @Override
3905
    public int hashCode() {
3906
      return 0;
3907
    }
3908
 
3909
    public int compareTo(addAdwordsAdKeyword_args other) {
3910
      if (!getClass().equals(other.getClass())) {
3911
        return getClass().getName().compareTo(other.getClass().getName());
3912
      }
3913
 
3914
      int lastComparison = 0;
3915
      addAdwordsAdKeyword_args typedOther = (addAdwordsAdKeyword_args)other;
3916
 
3917
      lastComparison = Boolean.valueOf(isSetAdkeyword()).compareTo(typedOther.isSetAdkeyword());
3918
      if (lastComparison != 0) {
3919
        return lastComparison;
3920
      }
3921
      if (isSetAdkeyword()) {
3922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adkeyword, typedOther.adkeyword);
3923
        if (lastComparison != 0) {
3924
          return lastComparison;
3925
        }
3926
      }
3927
      return 0;
3928
    }
3929
 
3930
    public _Fields fieldForId(int fieldId) {
3931
      return _Fields.findByThriftId(fieldId);
3932
    }
3933
 
3934
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3935
      org.apache.thrift.protocol.TField field;
3936
      iprot.readStructBegin();
3937
      while (true)
3938
      {
3939
        field = iprot.readFieldBegin();
3940
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3941
          break;
3942
        }
3943
        switch (field.id) {
3944
          case 1: // ADKEYWORD
3945
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3946
              this.adkeyword = new AdwordsAdKeyword();
3947
              this.adkeyword.read(iprot);
3948
            } else { 
3949
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3950
            }
3951
            break;
3952
          default:
3953
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3954
        }
3955
        iprot.readFieldEnd();
3956
      }
3957
      iprot.readStructEnd();
3958
      validate();
3959
    }
3960
 
3961
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3962
      validate();
3963
 
3964
      oprot.writeStructBegin(STRUCT_DESC);
3965
      if (this.adkeyword != null) {
3966
        oprot.writeFieldBegin(ADKEYWORD_FIELD_DESC);
3967
        this.adkeyword.write(oprot);
3968
        oprot.writeFieldEnd();
3969
      }
3970
      oprot.writeFieldStop();
3971
      oprot.writeStructEnd();
3972
    }
3973
 
3974
    @Override
3975
    public String toString() {
3976
      StringBuilder sb = new StringBuilder("addAdwordsAdKeyword_args(");
3977
      boolean first = true;
3978
 
3979
      sb.append("adkeyword:");
3980
      if (this.adkeyword == null) {
3981
        sb.append("null");
3982
      } else {
3983
        sb.append(this.adkeyword);
3984
      }
3985
      first = false;
3986
      sb.append(")");
3987
      return sb.toString();
3988
    }
3989
 
3990
    public void validate() throws org.apache.thrift.TException {
3991
      // check for required fields
3992
    }
3993
 
3994
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3995
      try {
3996
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3997
      } catch (org.apache.thrift.TException te) {
3998
        throw new java.io.IOException(te);
3999
      }
4000
    }
4001
 
4002
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4003
      try {
4004
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4005
      } catch (org.apache.thrift.TException te) {
4006
        throw new java.io.IOException(te);
4007
      }
4008
    }
4009
 
4010
  }
4011
 
4012
  public static class addAdwordsAdKeyword_result implements org.apache.thrift.TBase<addAdwordsAdKeyword_result, addAdwordsAdKeyword_result._Fields>, java.io.Serializable, Cloneable   {
4013
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdKeyword_result");
4014
 
4015
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4016
 
4017
    private GoogleAdwordsServiceException gasex; // required
4018
 
4019
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4020
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4021
      GASEX((short)1, "gasex");
4022
 
4023
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4024
 
4025
      static {
4026
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4027
          byName.put(field.getFieldName(), field);
4028
        }
4029
      }
4030
 
4031
      /**
4032
       * Find the _Fields constant that matches fieldId, or null if its not found.
4033
       */
4034
      public static _Fields findByThriftId(int fieldId) {
4035
        switch(fieldId) {
4036
          case 1: // GASEX
4037
            return GASEX;
4038
          default:
4039
            return null;
4040
        }
4041
      }
4042
 
4043
      /**
4044
       * Find the _Fields constant that matches fieldId, throwing an exception
4045
       * if it is not found.
4046
       */
4047
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4048
        _Fields fields = findByThriftId(fieldId);
4049
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4050
        return fields;
4051
      }
4052
 
4053
      /**
4054
       * Find the _Fields constant that matches name, or null if its not found.
4055
       */
4056
      public static _Fields findByName(String name) {
4057
        return byName.get(name);
4058
      }
4059
 
4060
      private final short _thriftId;
4061
      private final String _fieldName;
4062
 
4063
      _Fields(short thriftId, String fieldName) {
4064
        _thriftId = thriftId;
4065
        _fieldName = fieldName;
4066
      }
4067
 
4068
      public short getThriftFieldId() {
4069
        return _thriftId;
4070
      }
4071
 
4072
      public String getFieldName() {
4073
        return _fieldName;
4074
      }
4075
    }
4076
 
4077
    // isset id assignments
4078
 
4079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4080
    static {
4081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4082
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4084
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4085
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdKeyword_result.class, metaDataMap);
4086
    }
4087
 
4088
    public addAdwordsAdKeyword_result() {
4089
    }
4090
 
4091
    public addAdwordsAdKeyword_result(
4092
      GoogleAdwordsServiceException gasex)
4093
    {
4094
      this();
4095
      this.gasex = gasex;
4096
    }
4097
 
4098
    /**
4099
     * Performs a deep copy on <i>other</i>.
4100
     */
4101
    public addAdwordsAdKeyword_result(addAdwordsAdKeyword_result other) {
4102
      if (other.isSetGasex()) {
4103
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
4104
      }
4105
    }
4106
 
4107
    public addAdwordsAdKeyword_result deepCopy() {
4108
      return new addAdwordsAdKeyword_result(this);
4109
    }
4110
 
4111
    @Override
4112
    public void clear() {
4113
      this.gasex = null;
4114
    }
4115
 
4116
    public GoogleAdwordsServiceException getGasex() {
4117
      return this.gasex;
4118
    }
4119
 
4120
    public void setGasex(GoogleAdwordsServiceException gasex) {
4121
      this.gasex = gasex;
4122
    }
4123
 
4124
    public void unsetGasex() {
4125
      this.gasex = null;
4126
    }
4127
 
4128
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
4129
    public boolean isSetGasex() {
4130
      return this.gasex != null;
4131
    }
4132
 
4133
    public void setGasexIsSet(boolean value) {
4134
      if (!value) {
4135
        this.gasex = null;
4136
      }
4137
    }
4138
 
4139
    public void setFieldValue(_Fields field, Object value) {
4140
      switch (field) {
4141
      case GASEX:
4142
        if (value == null) {
4143
          unsetGasex();
4144
        } else {
4145
          setGasex((GoogleAdwordsServiceException)value);
4146
        }
4147
        break;
4148
 
4149
      }
4150
    }
4151
 
4152
    public Object getFieldValue(_Fields field) {
4153
      switch (field) {
4154
      case GASEX:
4155
        return getGasex();
4156
 
4157
      }
4158
      throw new IllegalStateException();
4159
    }
4160
 
4161
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4162
    public boolean isSet(_Fields field) {
4163
      if (field == null) {
4164
        throw new IllegalArgumentException();
4165
      }
4166
 
4167
      switch (field) {
4168
      case GASEX:
4169
        return isSetGasex();
4170
      }
4171
      throw new IllegalStateException();
4172
    }
4173
 
4174
    @Override
4175
    public boolean equals(Object that) {
4176
      if (that == null)
4177
        return false;
4178
      if (that instanceof addAdwordsAdKeyword_result)
4179
        return this.equals((addAdwordsAdKeyword_result)that);
4180
      return false;
4181
    }
4182
 
4183
    public boolean equals(addAdwordsAdKeyword_result that) {
4184
      if (that == null)
4185
        return false;
4186
 
4187
      boolean this_present_gasex = true && this.isSetGasex();
4188
      boolean that_present_gasex = true && that.isSetGasex();
4189
      if (this_present_gasex || that_present_gasex) {
4190
        if (!(this_present_gasex && that_present_gasex))
4191
          return false;
4192
        if (!this.gasex.equals(that.gasex))
4193
          return false;
4194
      }
4195
 
4196
      return true;
4197
    }
4198
 
4199
    @Override
4200
    public int hashCode() {
4201
      return 0;
4202
    }
4203
 
4204
    public int compareTo(addAdwordsAdKeyword_result other) {
4205
      if (!getClass().equals(other.getClass())) {
4206
        return getClass().getName().compareTo(other.getClass().getName());
4207
      }
4208
 
4209
      int lastComparison = 0;
4210
      addAdwordsAdKeyword_result typedOther = (addAdwordsAdKeyword_result)other;
4211
 
4212
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
4213
      if (lastComparison != 0) {
4214
        return lastComparison;
4215
      }
4216
      if (isSetGasex()) {
4217
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
4218
        if (lastComparison != 0) {
4219
          return lastComparison;
4220
        }
4221
      }
4222
      return 0;
4223
    }
4224
 
4225
    public _Fields fieldForId(int fieldId) {
4226
      return _Fields.findByThriftId(fieldId);
4227
    }
4228
 
4229
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4230
      org.apache.thrift.protocol.TField field;
4231
      iprot.readStructBegin();
4232
      while (true)
4233
      {
4234
        field = iprot.readFieldBegin();
4235
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4236
          break;
4237
        }
4238
        switch (field.id) {
4239
          case 1: // GASEX
4240
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4241
              this.gasex = new GoogleAdwordsServiceException();
4242
              this.gasex.read(iprot);
4243
            } else { 
4244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4245
            }
4246
            break;
4247
          default:
4248
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4249
        }
4250
        iprot.readFieldEnd();
4251
      }
4252
      iprot.readStructEnd();
4253
      validate();
4254
    }
4255
 
4256
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4257
      oprot.writeStructBegin(STRUCT_DESC);
4258
 
4259
      if (this.isSetGasex()) {
4260
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
4261
        this.gasex.write(oprot);
4262
        oprot.writeFieldEnd();
4263
      }
4264
      oprot.writeFieldStop();
4265
      oprot.writeStructEnd();
4266
    }
4267
 
4268
    @Override
4269
    public String toString() {
4270
      StringBuilder sb = new StringBuilder("addAdwordsAdKeyword_result(");
4271
      boolean first = true;
4272
 
4273
      sb.append("gasex:");
4274
      if (this.gasex == null) {
4275
        sb.append("null");
4276
      } else {
4277
        sb.append(this.gasex);
4278
      }
4279
      first = false;
4280
      sb.append(")");
4281
      return sb.toString();
4282
    }
4283
 
4284
    public void validate() throws org.apache.thrift.TException {
4285
      // check for required fields
4286
    }
4287
 
4288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4289
      try {
4290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4291
      } catch (org.apache.thrift.TException te) {
4292
        throw new java.io.IOException(te);
4293
      }
4294
    }
4295
 
4296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4297
      try {
4298
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4299
      } catch (org.apache.thrift.TException te) {
4300
        throw new java.io.IOException(te);
4301
      }
4302
    }
4303
 
4304
  }
4305
 
4306
  public static class updateAdwordsCampaign_args implements org.apache.thrift.TBase<updateAdwordsCampaign_args, updateAdwordsCampaign_args._Fields>, java.io.Serializable, Cloneable   {
4307
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsCampaign_args");
4308
 
4309
    private static final org.apache.thrift.protocol.TField CAMPAIGN_FIELD_DESC = new org.apache.thrift.protocol.TField("campaign", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4310
 
4311
    private AdwordsCampaign campaign; // required
4312
 
4313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4315
      CAMPAIGN((short)1, "campaign");
4316
 
4317
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4318
 
4319
      static {
4320
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4321
          byName.put(field.getFieldName(), field);
4322
        }
4323
      }
4324
 
4325
      /**
4326
       * Find the _Fields constant that matches fieldId, or null if its not found.
4327
       */
4328
      public static _Fields findByThriftId(int fieldId) {
4329
        switch(fieldId) {
4330
          case 1: // CAMPAIGN
4331
            return CAMPAIGN;
4332
          default:
4333
            return null;
4334
        }
4335
      }
4336
 
4337
      /**
4338
       * Find the _Fields constant that matches fieldId, throwing an exception
4339
       * if it is not found.
4340
       */
4341
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4342
        _Fields fields = findByThriftId(fieldId);
4343
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4344
        return fields;
4345
      }
4346
 
4347
      /**
4348
       * Find the _Fields constant that matches name, or null if its not found.
4349
       */
4350
      public static _Fields findByName(String name) {
4351
        return byName.get(name);
4352
      }
4353
 
4354
      private final short _thriftId;
4355
      private final String _fieldName;
4356
 
4357
      _Fields(short thriftId, String fieldName) {
4358
        _thriftId = thriftId;
4359
        _fieldName = fieldName;
4360
      }
4361
 
4362
      public short getThriftFieldId() {
4363
        return _thriftId;
4364
      }
4365
 
4366
      public String getFieldName() {
4367
        return _fieldName;
4368
      }
4369
    }
4370
 
4371
    // isset id assignments
4372
 
4373
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4374
    static {
4375
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4376
      tmpMap.put(_Fields.CAMPAIGN, new org.apache.thrift.meta_data.FieldMetaData("campaign", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4377
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class)));
4378
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4379
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsCampaign_args.class, metaDataMap);
4380
    }
4381
 
4382
    public updateAdwordsCampaign_args() {
4383
    }
4384
 
4385
    public updateAdwordsCampaign_args(
4386
      AdwordsCampaign campaign)
4387
    {
4388
      this();
4389
      this.campaign = campaign;
4390
    }
4391
 
4392
    /**
4393
     * Performs a deep copy on <i>other</i>.
4394
     */
4395
    public updateAdwordsCampaign_args(updateAdwordsCampaign_args other) {
4396
      if (other.isSetCampaign()) {
4397
        this.campaign = new AdwordsCampaign(other.campaign);
4398
      }
4399
    }
4400
 
4401
    public updateAdwordsCampaign_args deepCopy() {
4402
      return new updateAdwordsCampaign_args(this);
4403
    }
4404
 
4405
    @Override
4406
    public void clear() {
4407
      this.campaign = null;
4408
    }
4409
 
4410
    public AdwordsCampaign getCampaign() {
4411
      return this.campaign;
4412
    }
4413
 
4414
    public void setCampaign(AdwordsCampaign campaign) {
4415
      this.campaign = campaign;
4416
    }
4417
 
4418
    public void unsetCampaign() {
4419
      this.campaign = null;
4420
    }
4421
 
4422
    /** Returns true if field campaign is set (has been assigned a value) and false otherwise */
4423
    public boolean isSetCampaign() {
4424
      return this.campaign != null;
4425
    }
4426
 
4427
    public void setCampaignIsSet(boolean value) {
4428
      if (!value) {
4429
        this.campaign = null;
4430
      }
4431
    }
4432
 
4433
    public void setFieldValue(_Fields field, Object value) {
4434
      switch (field) {
4435
      case CAMPAIGN:
4436
        if (value == null) {
4437
          unsetCampaign();
4438
        } else {
4439
          setCampaign((AdwordsCampaign)value);
4440
        }
4441
        break;
4442
 
4443
      }
4444
    }
4445
 
4446
    public Object getFieldValue(_Fields field) {
4447
      switch (field) {
4448
      case CAMPAIGN:
4449
        return getCampaign();
4450
 
4451
      }
4452
      throw new IllegalStateException();
4453
    }
4454
 
4455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4456
    public boolean isSet(_Fields field) {
4457
      if (field == null) {
4458
        throw new IllegalArgumentException();
4459
      }
4460
 
4461
      switch (field) {
4462
      case CAMPAIGN:
4463
        return isSetCampaign();
4464
      }
4465
      throw new IllegalStateException();
4466
    }
4467
 
4468
    @Override
4469
    public boolean equals(Object that) {
4470
      if (that == null)
4471
        return false;
4472
      if (that instanceof updateAdwordsCampaign_args)
4473
        return this.equals((updateAdwordsCampaign_args)that);
4474
      return false;
4475
    }
4476
 
4477
    public boolean equals(updateAdwordsCampaign_args that) {
4478
      if (that == null)
4479
        return false;
4480
 
4481
      boolean this_present_campaign = true && this.isSetCampaign();
4482
      boolean that_present_campaign = true && that.isSetCampaign();
4483
      if (this_present_campaign || that_present_campaign) {
4484
        if (!(this_present_campaign && that_present_campaign))
4485
          return false;
4486
        if (!this.campaign.equals(that.campaign))
4487
          return false;
4488
      }
4489
 
4490
      return true;
4491
    }
4492
 
4493
    @Override
4494
    public int hashCode() {
4495
      return 0;
4496
    }
4497
 
4498
    public int compareTo(updateAdwordsCampaign_args other) {
4499
      if (!getClass().equals(other.getClass())) {
4500
        return getClass().getName().compareTo(other.getClass().getName());
4501
      }
4502
 
4503
      int lastComparison = 0;
4504
      updateAdwordsCampaign_args typedOther = (updateAdwordsCampaign_args)other;
4505
 
4506
      lastComparison = Boolean.valueOf(isSetCampaign()).compareTo(typedOther.isSetCampaign());
4507
      if (lastComparison != 0) {
4508
        return lastComparison;
4509
      }
4510
      if (isSetCampaign()) {
4511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaign, typedOther.campaign);
4512
        if (lastComparison != 0) {
4513
          return lastComparison;
4514
        }
4515
      }
4516
      return 0;
4517
    }
4518
 
4519
    public _Fields fieldForId(int fieldId) {
4520
      return _Fields.findByThriftId(fieldId);
4521
    }
4522
 
4523
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4524
      org.apache.thrift.protocol.TField field;
4525
      iprot.readStructBegin();
4526
      while (true)
4527
      {
4528
        field = iprot.readFieldBegin();
4529
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4530
          break;
4531
        }
4532
        switch (field.id) {
4533
          case 1: // CAMPAIGN
4534
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4535
              this.campaign = new AdwordsCampaign();
4536
              this.campaign.read(iprot);
4537
            } else { 
4538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4539
            }
4540
            break;
4541
          default:
4542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4543
        }
4544
        iprot.readFieldEnd();
4545
      }
4546
      iprot.readStructEnd();
4547
      validate();
4548
    }
4549
 
4550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4551
      validate();
4552
 
4553
      oprot.writeStructBegin(STRUCT_DESC);
4554
      if (this.campaign != null) {
4555
        oprot.writeFieldBegin(CAMPAIGN_FIELD_DESC);
4556
        this.campaign.write(oprot);
4557
        oprot.writeFieldEnd();
4558
      }
4559
      oprot.writeFieldStop();
4560
      oprot.writeStructEnd();
4561
    }
4562
 
4563
    @Override
4564
    public String toString() {
4565
      StringBuilder sb = new StringBuilder("updateAdwordsCampaign_args(");
4566
      boolean first = true;
4567
 
4568
      sb.append("campaign:");
4569
      if (this.campaign == null) {
4570
        sb.append("null");
4571
      } else {
4572
        sb.append(this.campaign);
4573
      }
4574
      first = false;
4575
      sb.append(")");
4576
      return sb.toString();
4577
    }
4578
 
4579
    public void validate() throws org.apache.thrift.TException {
4580
      // check for required fields
4581
    }
4582
 
4583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4584
      try {
4585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4586
      } catch (org.apache.thrift.TException te) {
4587
        throw new java.io.IOException(te);
4588
      }
4589
    }
4590
 
4591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4592
      try {
4593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4594
      } catch (org.apache.thrift.TException te) {
4595
        throw new java.io.IOException(te);
4596
      }
4597
    }
4598
 
4599
  }
4600
 
4601
  public static class updateAdwordsCampaign_result implements org.apache.thrift.TBase<updateAdwordsCampaign_result, updateAdwordsCampaign_result._Fields>, java.io.Serializable, Cloneable   {
4602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsCampaign_result");
4603
 
4604
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4605
 
4606
    private GoogleAdwordsServiceException gasex; // required
4607
 
4608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4610
      GASEX((short)1, "gasex");
4611
 
4612
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4613
 
4614
      static {
4615
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4616
          byName.put(field.getFieldName(), field);
4617
        }
4618
      }
4619
 
4620
      /**
4621
       * Find the _Fields constant that matches fieldId, or null if its not found.
4622
       */
4623
      public static _Fields findByThriftId(int fieldId) {
4624
        switch(fieldId) {
4625
          case 1: // GASEX
4626
            return GASEX;
4627
          default:
4628
            return null;
4629
        }
4630
      }
4631
 
4632
      /**
4633
       * Find the _Fields constant that matches fieldId, throwing an exception
4634
       * if it is not found.
4635
       */
4636
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4637
        _Fields fields = findByThriftId(fieldId);
4638
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4639
        return fields;
4640
      }
4641
 
4642
      /**
4643
       * Find the _Fields constant that matches name, or null if its not found.
4644
       */
4645
      public static _Fields findByName(String name) {
4646
        return byName.get(name);
4647
      }
4648
 
4649
      private final short _thriftId;
4650
      private final String _fieldName;
4651
 
4652
      _Fields(short thriftId, String fieldName) {
4653
        _thriftId = thriftId;
4654
        _fieldName = fieldName;
4655
      }
4656
 
4657
      public short getThriftFieldId() {
4658
        return _thriftId;
4659
      }
4660
 
4661
      public String getFieldName() {
4662
        return _fieldName;
4663
      }
4664
    }
4665
 
4666
    // isset id assignments
4667
 
4668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4669
    static {
4670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4671
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4672
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsCampaign_result.class, metaDataMap);
4675
    }
4676
 
4677
    public updateAdwordsCampaign_result() {
4678
    }
4679
 
4680
    public updateAdwordsCampaign_result(
4681
      GoogleAdwordsServiceException gasex)
4682
    {
4683
      this();
4684
      this.gasex = gasex;
4685
    }
4686
 
4687
    /**
4688
     * Performs a deep copy on <i>other</i>.
4689
     */
4690
    public updateAdwordsCampaign_result(updateAdwordsCampaign_result other) {
4691
      if (other.isSetGasex()) {
4692
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
4693
      }
4694
    }
4695
 
4696
    public updateAdwordsCampaign_result deepCopy() {
4697
      return new updateAdwordsCampaign_result(this);
4698
    }
4699
 
4700
    @Override
4701
    public void clear() {
4702
      this.gasex = null;
4703
    }
4704
 
4705
    public GoogleAdwordsServiceException getGasex() {
4706
      return this.gasex;
4707
    }
4708
 
4709
    public void setGasex(GoogleAdwordsServiceException gasex) {
4710
      this.gasex = gasex;
4711
    }
4712
 
4713
    public void unsetGasex() {
4714
      this.gasex = null;
4715
    }
4716
 
4717
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
4718
    public boolean isSetGasex() {
4719
      return this.gasex != null;
4720
    }
4721
 
4722
    public void setGasexIsSet(boolean value) {
4723
      if (!value) {
4724
        this.gasex = null;
4725
      }
4726
    }
4727
 
4728
    public void setFieldValue(_Fields field, Object value) {
4729
      switch (field) {
4730
      case GASEX:
4731
        if (value == null) {
4732
          unsetGasex();
4733
        } else {
4734
          setGasex((GoogleAdwordsServiceException)value);
4735
        }
4736
        break;
4737
 
4738
      }
4739
    }
4740
 
4741
    public Object getFieldValue(_Fields field) {
4742
      switch (field) {
4743
      case GASEX:
4744
        return getGasex();
4745
 
4746
      }
4747
      throw new IllegalStateException();
4748
    }
4749
 
4750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4751
    public boolean isSet(_Fields field) {
4752
      if (field == null) {
4753
        throw new IllegalArgumentException();
4754
      }
4755
 
4756
      switch (field) {
4757
      case GASEX:
4758
        return isSetGasex();
4759
      }
4760
      throw new IllegalStateException();
4761
    }
4762
 
4763
    @Override
4764
    public boolean equals(Object that) {
4765
      if (that == null)
4766
        return false;
4767
      if (that instanceof updateAdwordsCampaign_result)
4768
        return this.equals((updateAdwordsCampaign_result)that);
4769
      return false;
4770
    }
4771
 
4772
    public boolean equals(updateAdwordsCampaign_result that) {
4773
      if (that == null)
4774
        return false;
4775
 
4776
      boolean this_present_gasex = true && this.isSetGasex();
4777
      boolean that_present_gasex = true && that.isSetGasex();
4778
      if (this_present_gasex || that_present_gasex) {
4779
        if (!(this_present_gasex && that_present_gasex))
4780
          return false;
4781
        if (!this.gasex.equals(that.gasex))
4782
          return false;
4783
      }
4784
 
4785
      return true;
4786
    }
4787
 
4788
    @Override
4789
    public int hashCode() {
4790
      return 0;
4791
    }
4792
 
4793
    public int compareTo(updateAdwordsCampaign_result other) {
4794
      if (!getClass().equals(other.getClass())) {
4795
        return getClass().getName().compareTo(other.getClass().getName());
4796
      }
4797
 
4798
      int lastComparison = 0;
4799
      updateAdwordsCampaign_result typedOther = (updateAdwordsCampaign_result)other;
4800
 
4801
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
4802
      if (lastComparison != 0) {
4803
        return lastComparison;
4804
      }
4805
      if (isSetGasex()) {
4806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
4807
        if (lastComparison != 0) {
4808
          return lastComparison;
4809
        }
4810
      }
4811
      return 0;
4812
    }
4813
 
4814
    public _Fields fieldForId(int fieldId) {
4815
      return _Fields.findByThriftId(fieldId);
4816
    }
4817
 
4818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4819
      org.apache.thrift.protocol.TField field;
4820
      iprot.readStructBegin();
4821
      while (true)
4822
      {
4823
        field = iprot.readFieldBegin();
4824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4825
          break;
4826
        }
4827
        switch (field.id) {
4828
          case 1: // GASEX
4829
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4830
              this.gasex = new GoogleAdwordsServiceException();
4831
              this.gasex.read(iprot);
4832
            } else { 
4833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4834
            }
4835
            break;
4836
          default:
4837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4838
        }
4839
        iprot.readFieldEnd();
4840
      }
4841
      iprot.readStructEnd();
4842
      validate();
4843
    }
4844
 
4845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4846
      oprot.writeStructBegin(STRUCT_DESC);
4847
 
4848
      if (this.isSetGasex()) {
4849
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
4850
        this.gasex.write(oprot);
4851
        oprot.writeFieldEnd();
4852
      }
4853
      oprot.writeFieldStop();
4854
      oprot.writeStructEnd();
4855
    }
4856
 
4857
    @Override
4858
    public String toString() {
4859
      StringBuilder sb = new StringBuilder("updateAdwordsCampaign_result(");
4860
      boolean first = true;
4861
 
4862
      sb.append("gasex:");
4863
      if (this.gasex == null) {
4864
        sb.append("null");
4865
      } else {
4866
        sb.append(this.gasex);
4867
      }
4868
      first = false;
4869
      sb.append(")");
4870
      return sb.toString();
4871
    }
4872
 
4873
    public void validate() throws org.apache.thrift.TException {
4874
      // check for required fields
4875
    }
4876
 
4877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4878
      try {
4879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4880
      } catch (org.apache.thrift.TException te) {
4881
        throw new java.io.IOException(te);
4882
      }
4883
    }
4884
 
4885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4886
      try {
4887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4888
      } catch (org.apache.thrift.TException te) {
4889
        throw new java.io.IOException(te);
4890
      }
4891
    }
4892
 
4893
  }
4894
 
4895
  public static class updateAdwordsAdGroup_args implements org.apache.thrift.TBase<updateAdwordsAdGroup_args, updateAdwordsAdGroup_args._Fields>, java.io.Serializable, Cloneable   {
4896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdGroup_args");
4897
 
4898
    private static final org.apache.thrift.protocol.TField ADGROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroup", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4899
 
4900
    private AdwordsAdGroup adgroup; // required
4901
 
4902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4904
      ADGROUP((short)1, "adgroup");
4905
 
4906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4907
 
4908
      static {
4909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4910
          byName.put(field.getFieldName(), field);
4911
        }
4912
      }
4913
 
4914
      /**
4915
       * Find the _Fields constant that matches fieldId, or null if its not found.
4916
       */
4917
      public static _Fields findByThriftId(int fieldId) {
4918
        switch(fieldId) {
4919
          case 1: // ADGROUP
4920
            return ADGROUP;
4921
          default:
4922
            return null;
4923
        }
4924
      }
4925
 
4926
      /**
4927
       * Find the _Fields constant that matches fieldId, throwing an exception
4928
       * if it is not found.
4929
       */
4930
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4931
        _Fields fields = findByThriftId(fieldId);
4932
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4933
        return fields;
4934
      }
4935
 
4936
      /**
4937
       * Find the _Fields constant that matches name, or null if its not found.
4938
       */
4939
      public static _Fields findByName(String name) {
4940
        return byName.get(name);
4941
      }
4942
 
4943
      private final short _thriftId;
4944
      private final String _fieldName;
4945
 
4946
      _Fields(short thriftId, String fieldName) {
4947
        _thriftId = thriftId;
4948
        _fieldName = fieldName;
4949
      }
4950
 
4951
      public short getThriftFieldId() {
4952
        return _thriftId;
4953
      }
4954
 
4955
      public String getFieldName() {
4956
        return _fieldName;
4957
      }
4958
    }
4959
 
4960
    // isset id assignments
4961
 
4962
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4963
    static {
4964
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4965
      tmpMap.put(_Fields.ADGROUP, new org.apache.thrift.meta_data.FieldMetaData("adgroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4966
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class)));
4967
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4968
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdGroup_args.class, metaDataMap);
4969
    }
4970
 
4971
    public updateAdwordsAdGroup_args() {
4972
    }
4973
 
4974
    public updateAdwordsAdGroup_args(
4975
      AdwordsAdGroup adgroup)
4976
    {
4977
      this();
4978
      this.adgroup = adgroup;
4979
    }
4980
 
4981
    /**
4982
     * Performs a deep copy on <i>other</i>.
4983
     */
4984
    public updateAdwordsAdGroup_args(updateAdwordsAdGroup_args other) {
4985
      if (other.isSetAdgroup()) {
4986
        this.adgroup = new AdwordsAdGroup(other.adgroup);
4987
      }
4988
    }
4989
 
4990
    public updateAdwordsAdGroup_args deepCopy() {
4991
      return new updateAdwordsAdGroup_args(this);
4992
    }
4993
 
4994
    @Override
4995
    public void clear() {
4996
      this.adgroup = null;
4997
    }
4998
 
4999
    public AdwordsAdGroup getAdgroup() {
5000
      return this.adgroup;
5001
    }
5002
 
5003
    public void setAdgroup(AdwordsAdGroup adgroup) {
5004
      this.adgroup = adgroup;
5005
    }
5006
 
5007
    public void unsetAdgroup() {
5008
      this.adgroup = null;
5009
    }
5010
 
5011
    /** Returns true if field adgroup is set (has been assigned a value) and false otherwise */
5012
    public boolean isSetAdgroup() {
5013
      return this.adgroup != null;
5014
    }
5015
 
5016
    public void setAdgroupIsSet(boolean value) {
5017
      if (!value) {
5018
        this.adgroup = null;
5019
      }
5020
    }
5021
 
5022
    public void setFieldValue(_Fields field, Object value) {
5023
      switch (field) {
5024
      case ADGROUP:
5025
        if (value == null) {
5026
          unsetAdgroup();
5027
        } else {
5028
          setAdgroup((AdwordsAdGroup)value);
5029
        }
5030
        break;
5031
 
5032
      }
5033
    }
5034
 
5035
    public Object getFieldValue(_Fields field) {
5036
      switch (field) {
5037
      case ADGROUP:
5038
        return getAdgroup();
5039
 
5040
      }
5041
      throw new IllegalStateException();
5042
    }
5043
 
5044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5045
    public boolean isSet(_Fields field) {
5046
      if (field == null) {
5047
        throw new IllegalArgumentException();
5048
      }
5049
 
5050
      switch (field) {
5051
      case ADGROUP:
5052
        return isSetAdgroup();
5053
      }
5054
      throw new IllegalStateException();
5055
    }
5056
 
5057
    @Override
5058
    public boolean equals(Object that) {
5059
      if (that == null)
5060
        return false;
5061
      if (that instanceof updateAdwordsAdGroup_args)
5062
        return this.equals((updateAdwordsAdGroup_args)that);
5063
      return false;
5064
    }
5065
 
5066
    public boolean equals(updateAdwordsAdGroup_args that) {
5067
      if (that == null)
5068
        return false;
5069
 
5070
      boolean this_present_adgroup = true && this.isSetAdgroup();
5071
      boolean that_present_adgroup = true && that.isSetAdgroup();
5072
      if (this_present_adgroup || that_present_adgroup) {
5073
        if (!(this_present_adgroup && that_present_adgroup))
5074
          return false;
5075
        if (!this.adgroup.equals(that.adgroup))
5076
          return false;
5077
      }
5078
 
5079
      return true;
5080
    }
5081
 
5082
    @Override
5083
    public int hashCode() {
5084
      return 0;
5085
    }
5086
 
5087
    public int compareTo(updateAdwordsAdGroup_args other) {
5088
      if (!getClass().equals(other.getClass())) {
5089
        return getClass().getName().compareTo(other.getClass().getName());
5090
      }
5091
 
5092
      int lastComparison = 0;
5093
      updateAdwordsAdGroup_args typedOther = (updateAdwordsAdGroup_args)other;
5094
 
5095
      lastComparison = Boolean.valueOf(isSetAdgroup()).compareTo(typedOther.isSetAdgroup());
5096
      if (lastComparison != 0) {
5097
        return lastComparison;
5098
      }
5099
      if (isSetAdgroup()) {
5100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroup, typedOther.adgroup);
5101
        if (lastComparison != 0) {
5102
          return lastComparison;
5103
        }
5104
      }
5105
      return 0;
5106
    }
5107
 
5108
    public _Fields fieldForId(int fieldId) {
5109
      return _Fields.findByThriftId(fieldId);
5110
    }
5111
 
5112
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5113
      org.apache.thrift.protocol.TField field;
5114
      iprot.readStructBegin();
5115
      while (true)
5116
      {
5117
        field = iprot.readFieldBegin();
5118
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5119
          break;
5120
        }
5121
        switch (field.id) {
5122
          case 1: // ADGROUP
5123
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5124
              this.adgroup = new AdwordsAdGroup();
5125
              this.adgroup.read(iprot);
5126
            } else { 
5127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5128
            }
5129
            break;
5130
          default:
5131
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5132
        }
5133
        iprot.readFieldEnd();
5134
      }
5135
      iprot.readStructEnd();
5136
      validate();
5137
    }
5138
 
5139
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5140
      validate();
5141
 
5142
      oprot.writeStructBegin(STRUCT_DESC);
5143
      if (this.adgroup != null) {
5144
        oprot.writeFieldBegin(ADGROUP_FIELD_DESC);
5145
        this.adgroup.write(oprot);
5146
        oprot.writeFieldEnd();
5147
      }
5148
      oprot.writeFieldStop();
5149
      oprot.writeStructEnd();
5150
    }
5151
 
5152
    @Override
5153
    public String toString() {
5154
      StringBuilder sb = new StringBuilder("updateAdwordsAdGroup_args(");
5155
      boolean first = true;
5156
 
5157
      sb.append("adgroup:");
5158
      if (this.adgroup == null) {
5159
        sb.append("null");
5160
      } else {
5161
        sb.append(this.adgroup);
5162
      }
5163
      first = false;
5164
      sb.append(")");
5165
      return sb.toString();
5166
    }
5167
 
5168
    public void validate() throws org.apache.thrift.TException {
5169
      // check for required fields
5170
    }
5171
 
5172
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5173
      try {
5174
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5175
      } catch (org.apache.thrift.TException te) {
5176
        throw new java.io.IOException(te);
5177
      }
5178
    }
5179
 
5180
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5181
      try {
5182
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5183
      } catch (org.apache.thrift.TException te) {
5184
        throw new java.io.IOException(te);
5185
      }
5186
    }
5187
 
5188
  }
5189
 
5190
  public static class updateAdwordsAdGroup_result implements org.apache.thrift.TBase<updateAdwordsAdGroup_result, updateAdwordsAdGroup_result._Fields>, java.io.Serializable, Cloneable   {
5191
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdGroup_result");
5192
 
5193
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5194
 
5195
    private GoogleAdwordsServiceException gasex; // required
5196
 
5197
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5198
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5199
      GASEX((short)1, "gasex");
5200
 
5201
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5202
 
5203
      static {
5204
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5205
          byName.put(field.getFieldName(), field);
5206
        }
5207
      }
5208
 
5209
      /**
5210
       * Find the _Fields constant that matches fieldId, or null if its not found.
5211
       */
5212
      public static _Fields findByThriftId(int fieldId) {
5213
        switch(fieldId) {
5214
          case 1: // GASEX
5215
            return GASEX;
5216
          default:
5217
            return null;
5218
        }
5219
      }
5220
 
5221
      /**
5222
       * Find the _Fields constant that matches fieldId, throwing an exception
5223
       * if it is not found.
5224
       */
5225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5226
        _Fields fields = findByThriftId(fieldId);
5227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5228
        return fields;
5229
      }
5230
 
5231
      /**
5232
       * Find the _Fields constant that matches name, or null if its not found.
5233
       */
5234
      public static _Fields findByName(String name) {
5235
        return byName.get(name);
5236
      }
5237
 
5238
      private final short _thriftId;
5239
      private final String _fieldName;
5240
 
5241
      _Fields(short thriftId, String fieldName) {
5242
        _thriftId = thriftId;
5243
        _fieldName = fieldName;
5244
      }
5245
 
5246
      public short getThriftFieldId() {
5247
        return _thriftId;
5248
      }
5249
 
5250
      public String getFieldName() {
5251
        return _fieldName;
5252
      }
5253
    }
5254
 
5255
    // isset id assignments
5256
 
5257
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5258
    static {
5259
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5260
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5261
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdGroup_result.class, metaDataMap);
5264
    }
5265
 
5266
    public updateAdwordsAdGroup_result() {
5267
    }
5268
 
5269
    public updateAdwordsAdGroup_result(
5270
      GoogleAdwordsServiceException gasex)
5271
    {
5272
      this();
5273
      this.gasex = gasex;
5274
    }
5275
 
5276
    /**
5277
     * Performs a deep copy on <i>other</i>.
5278
     */
5279
    public updateAdwordsAdGroup_result(updateAdwordsAdGroup_result other) {
5280
      if (other.isSetGasex()) {
5281
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
5282
      }
5283
    }
5284
 
5285
    public updateAdwordsAdGroup_result deepCopy() {
5286
      return new updateAdwordsAdGroup_result(this);
5287
    }
5288
 
5289
    @Override
5290
    public void clear() {
5291
      this.gasex = null;
5292
    }
5293
 
5294
    public GoogleAdwordsServiceException getGasex() {
5295
      return this.gasex;
5296
    }
5297
 
5298
    public void setGasex(GoogleAdwordsServiceException gasex) {
5299
      this.gasex = gasex;
5300
    }
5301
 
5302
    public void unsetGasex() {
5303
      this.gasex = null;
5304
    }
5305
 
5306
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
5307
    public boolean isSetGasex() {
5308
      return this.gasex != null;
5309
    }
5310
 
5311
    public void setGasexIsSet(boolean value) {
5312
      if (!value) {
5313
        this.gasex = null;
5314
      }
5315
    }
5316
 
5317
    public void setFieldValue(_Fields field, Object value) {
5318
      switch (field) {
5319
      case GASEX:
5320
        if (value == null) {
5321
          unsetGasex();
5322
        } else {
5323
          setGasex((GoogleAdwordsServiceException)value);
5324
        }
5325
        break;
5326
 
5327
      }
5328
    }
5329
 
5330
    public Object getFieldValue(_Fields field) {
5331
      switch (field) {
5332
      case GASEX:
5333
        return getGasex();
5334
 
5335
      }
5336
      throw new IllegalStateException();
5337
    }
5338
 
5339
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5340
    public boolean isSet(_Fields field) {
5341
      if (field == null) {
5342
        throw new IllegalArgumentException();
5343
      }
5344
 
5345
      switch (field) {
5346
      case GASEX:
5347
        return isSetGasex();
5348
      }
5349
      throw new IllegalStateException();
5350
    }
5351
 
5352
    @Override
5353
    public boolean equals(Object that) {
5354
      if (that == null)
5355
        return false;
5356
      if (that instanceof updateAdwordsAdGroup_result)
5357
        return this.equals((updateAdwordsAdGroup_result)that);
5358
      return false;
5359
    }
5360
 
5361
    public boolean equals(updateAdwordsAdGroup_result that) {
5362
      if (that == null)
5363
        return false;
5364
 
5365
      boolean this_present_gasex = true && this.isSetGasex();
5366
      boolean that_present_gasex = true && that.isSetGasex();
5367
      if (this_present_gasex || that_present_gasex) {
5368
        if (!(this_present_gasex && that_present_gasex))
5369
          return false;
5370
        if (!this.gasex.equals(that.gasex))
5371
          return false;
5372
      }
5373
 
5374
      return true;
5375
    }
5376
 
5377
    @Override
5378
    public int hashCode() {
5379
      return 0;
5380
    }
5381
 
5382
    public int compareTo(updateAdwordsAdGroup_result other) {
5383
      if (!getClass().equals(other.getClass())) {
5384
        return getClass().getName().compareTo(other.getClass().getName());
5385
      }
5386
 
5387
      int lastComparison = 0;
5388
      updateAdwordsAdGroup_result typedOther = (updateAdwordsAdGroup_result)other;
5389
 
5390
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
5391
      if (lastComparison != 0) {
5392
        return lastComparison;
5393
      }
5394
      if (isSetGasex()) {
5395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
5396
        if (lastComparison != 0) {
5397
          return lastComparison;
5398
        }
5399
      }
5400
      return 0;
5401
    }
5402
 
5403
    public _Fields fieldForId(int fieldId) {
5404
      return _Fields.findByThriftId(fieldId);
5405
    }
5406
 
5407
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5408
      org.apache.thrift.protocol.TField field;
5409
      iprot.readStructBegin();
5410
      while (true)
5411
      {
5412
        field = iprot.readFieldBegin();
5413
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5414
          break;
5415
        }
5416
        switch (field.id) {
5417
          case 1: // GASEX
5418
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5419
              this.gasex = new GoogleAdwordsServiceException();
5420
              this.gasex.read(iprot);
5421
            } else { 
5422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5423
            }
5424
            break;
5425
          default:
5426
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5427
        }
5428
        iprot.readFieldEnd();
5429
      }
5430
      iprot.readStructEnd();
5431
      validate();
5432
    }
5433
 
5434
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5435
      oprot.writeStructBegin(STRUCT_DESC);
5436
 
5437
      if (this.isSetGasex()) {
5438
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
5439
        this.gasex.write(oprot);
5440
        oprot.writeFieldEnd();
5441
      }
5442
      oprot.writeFieldStop();
5443
      oprot.writeStructEnd();
5444
    }
5445
 
5446
    @Override
5447
    public String toString() {
5448
      StringBuilder sb = new StringBuilder("updateAdwordsAdGroup_result(");
5449
      boolean first = true;
5450
 
5451
      sb.append("gasex:");
5452
      if (this.gasex == null) {
5453
        sb.append("null");
5454
      } else {
5455
        sb.append(this.gasex);
5456
      }
5457
      first = false;
5458
      sb.append(")");
5459
      return sb.toString();
5460
    }
5461
 
5462
    public void validate() throws org.apache.thrift.TException {
5463
      // check for required fields
5464
    }
5465
 
5466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5467
      try {
5468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5469
      } catch (org.apache.thrift.TException te) {
5470
        throw new java.io.IOException(te);
5471
      }
5472
    }
5473
 
5474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5475
      try {
5476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5477
      } catch (org.apache.thrift.TException te) {
5478
        throw new java.io.IOException(te);
5479
      }
5480
    }
5481
 
5482
  }
5483
 
5484
  public static class updateAdwordsAdKeyword_args implements org.apache.thrift.TBase<updateAdwordsAdKeyword_args, updateAdwordsAdKeyword_args._Fields>, java.io.Serializable, Cloneable   {
5485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdKeyword_args");
5486
 
5487
    private static final org.apache.thrift.protocol.TField ADKEYWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("adkeyword", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5488
 
5489
    private AdwordsAdKeyword adkeyword; // required
5490
 
5491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5492
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5493
      ADKEYWORD((short)1, "adkeyword");
5494
 
5495
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5496
 
5497
      static {
5498
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5499
          byName.put(field.getFieldName(), field);
5500
        }
5501
      }
5502
 
5503
      /**
5504
       * Find the _Fields constant that matches fieldId, or null if its not found.
5505
       */
5506
      public static _Fields findByThriftId(int fieldId) {
5507
        switch(fieldId) {
5508
          case 1: // ADKEYWORD
5509
            return ADKEYWORD;
5510
          default:
5511
            return null;
5512
        }
5513
      }
5514
 
5515
      /**
5516
       * Find the _Fields constant that matches fieldId, throwing an exception
5517
       * if it is not found.
5518
       */
5519
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5520
        _Fields fields = findByThriftId(fieldId);
5521
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5522
        return fields;
5523
      }
5524
 
5525
      /**
5526
       * Find the _Fields constant that matches name, or null if its not found.
5527
       */
5528
      public static _Fields findByName(String name) {
5529
        return byName.get(name);
5530
      }
5531
 
5532
      private final short _thriftId;
5533
      private final String _fieldName;
5534
 
5535
      _Fields(short thriftId, String fieldName) {
5536
        _thriftId = thriftId;
5537
        _fieldName = fieldName;
5538
      }
5539
 
5540
      public short getThriftFieldId() {
5541
        return _thriftId;
5542
      }
5543
 
5544
      public String getFieldName() {
5545
        return _fieldName;
5546
      }
5547
    }
5548
 
5549
    // isset id assignments
5550
 
5551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5552
    static {
5553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5554
      tmpMap.put(_Fields.ADKEYWORD, new org.apache.thrift.meta_data.FieldMetaData("adkeyword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5555
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class)));
5556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdKeyword_args.class, metaDataMap);
5558
    }
5559
 
5560
    public updateAdwordsAdKeyword_args() {
5561
    }
5562
 
5563
    public updateAdwordsAdKeyword_args(
5564
      AdwordsAdKeyword adkeyword)
5565
    {
5566
      this();
5567
      this.adkeyword = adkeyword;
5568
    }
5569
 
5570
    /**
5571
     * Performs a deep copy on <i>other</i>.
5572
     */
5573
    public updateAdwordsAdKeyword_args(updateAdwordsAdKeyword_args other) {
5574
      if (other.isSetAdkeyword()) {
5575
        this.adkeyword = new AdwordsAdKeyword(other.adkeyword);
5576
      }
5577
    }
5578
 
5579
    public updateAdwordsAdKeyword_args deepCopy() {
5580
      return new updateAdwordsAdKeyword_args(this);
5581
    }
5582
 
5583
    @Override
5584
    public void clear() {
5585
      this.adkeyword = null;
5586
    }
5587
 
5588
    public AdwordsAdKeyword getAdkeyword() {
5589
      return this.adkeyword;
5590
    }
5591
 
5592
    public void setAdkeyword(AdwordsAdKeyword adkeyword) {
5593
      this.adkeyword = adkeyword;
5594
    }
5595
 
5596
    public void unsetAdkeyword() {
5597
      this.adkeyword = null;
5598
    }
5599
 
5600
    /** Returns true if field adkeyword is set (has been assigned a value) and false otherwise */
5601
    public boolean isSetAdkeyword() {
5602
      return this.adkeyword != null;
5603
    }
5604
 
5605
    public void setAdkeywordIsSet(boolean value) {
5606
      if (!value) {
5607
        this.adkeyword = null;
5608
      }
5609
    }
5610
 
5611
    public void setFieldValue(_Fields field, Object value) {
5612
      switch (field) {
5613
      case ADKEYWORD:
5614
        if (value == null) {
5615
          unsetAdkeyword();
5616
        } else {
5617
          setAdkeyword((AdwordsAdKeyword)value);
5618
        }
5619
        break;
5620
 
5621
      }
5622
    }
5623
 
5624
    public Object getFieldValue(_Fields field) {
5625
      switch (field) {
5626
      case ADKEYWORD:
5627
        return getAdkeyword();
5628
 
5629
      }
5630
      throw new IllegalStateException();
5631
    }
5632
 
5633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5634
    public boolean isSet(_Fields field) {
5635
      if (field == null) {
5636
        throw new IllegalArgumentException();
5637
      }
5638
 
5639
      switch (field) {
5640
      case ADKEYWORD:
5641
        return isSetAdkeyword();
5642
      }
5643
      throw new IllegalStateException();
5644
    }
5645
 
5646
    @Override
5647
    public boolean equals(Object that) {
5648
      if (that == null)
5649
        return false;
5650
      if (that instanceof updateAdwordsAdKeyword_args)
5651
        return this.equals((updateAdwordsAdKeyword_args)that);
5652
      return false;
5653
    }
5654
 
5655
    public boolean equals(updateAdwordsAdKeyword_args that) {
5656
      if (that == null)
5657
        return false;
5658
 
5659
      boolean this_present_adkeyword = true && this.isSetAdkeyword();
5660
      boolean that_present_adkeyword = true && that.isSetAdkeyword();
5661
      if (this_present_adkeyword || that_present_adkeyword) {
5662
        if (!(this_present_adkeyword && that_present_adkeyword))
5663
          return false;
5664
        if (!this.adkeyword.equals(that.adkeyword))
5665
          return false;
5666
      }
5667
 
5668
      return true;
5669
    }
5670
 
5671
    @Override
5672
    public int hashCode() {
5673
      return 0;
5674
    }
5675
 
5676
    public int compareTo(updateAdwordsAdKeyword_args other) {
5677
      if (!getClass().equals(other.getClass())) {
5678
        return getClass().getName().compareTo(other.getClass().getName());
5679
      }
5680
 
5681
      int lastComparison = 0;
5682
      updateAdwordsAdKeyword_args typedOther = (updateAdwordsAdKeyword_args)other;
5683
 
5684
      lastComparison = Boolean.valueOf(isSetAdkeyword()).compareTo(typedOther.isSetAdkeyword());
5685
      if (lastComparison != 0) {
5686
        return lastComparison;
5687
      }
5688
      if (isSetAdkeyword()) {
5689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adkeyword, typedOther.adkeyword);
5690
        if (lastComparison != 0) {
5691
          return lastComparison;
5692
        }
5693
      }
5694
      return 0;
5695
    }
5696
 
5697
    public _Fields fieldForId(int fieldId) {
5698
      return _Fields.findByThriftId(fieldId);
5699
    }
5700
 
5701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5702
      org.apache.thrift.protocol.TField field;
5703
      iprot.readStructBegin();
5704
      while (true)
5705
      {
5706
        field = iprot.readFieldBegin();
5707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5708
          break;
5709
        }
5710
        switch (field.id) {
5711
          case 1: // ADKEYWORD
5712
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5713
              this.adkeyword = new AdwordsAdKeyword();
5714
              this.adkeyword.read(iprot);
5715
            } else { 
5716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5717
            }
5718
            break;
5719
          default:
5720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5721
        }
5722
        iprot.readFieldEnd();
5723
      }
5724
      iprot.readStructEnd();
5725
      validate();
5726
    }
5727
 
5728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5729
      validate();
5730
 
5731
      oprot.writeStructBegin(STRUCT_DESC);
5732
      if (this.adkeyword != null) {
5733
        oprot.writeFieldBegin(ADKEYWORD_FIELD_DESC);
5734
        this.adkeyword.write(oprot);
5735
        oprot.writeFieldEnd();
5736
      }
5737
      oprot.writeFieldStop();
5738
      oprot.writeStructEnd();
5739
    }
5740
 
5741
    @Override
5742
    public String toString() {
5743
      StringBuilder sb = new StringBuilder("updateAdwordsAdKeyword_args(");
5744
      boolean first = true;
5745
 
5746
      sb.append("adkeyword:");
5747
      if (this.adkeyword == null) {
5748
        sb.append("null");
5749
      } else {
5750
        sb.append(this.adkeyword);
5751
      }
5752
      first = false;
5753
      sb.append(")");
5754
      return sb.toString();
5755
    }
5756
 
5757
    public void validate() throws org.apache.thrift.TException {
5758
      // check for required fields
5759
    }
5760
 
5761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5762
      try {
5763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5764
      } catch (org.apache.thrift.TException te) {
5765
        throw new java.io.IOException(te);
5766
      }
5767
    }
5768
 
5769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5770
      try {
5771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5772
      } catch (org.apache.thrift.TException te) {
5773
        throw new java.io.IOException(te);
5774
      }
5775
    }
5776
 
5777
  }
5778
 
5779
  public static class updateAdwordsAdKeyword_result implements org.apache.thrift.TBase<updateAdwordsAdKeyword_result, updateAdwordsAdKeyword_result._Fields>, java.io.Serializable, Cloneable   {
5780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdKeyword_result");
5781
 
5782
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5783
 
5784
    private GoogleAdwordsServiceException gasex; // required
5785
 
5786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5788
      GASEX((short)1, "gasex");
5789
 
5790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5791
 
5792
      static {
5793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5794
          byName.put(field.getFieldName(), field);
5795
        }
5796
      }
5797
 
5798
      /**
5799
       * Find the _Fields constant that matches fieldId, or null if its not found.
5800
       */
5801
      public static _Fields findByThriftId(int fieldId) {
5802
        switch(fieldId) {
5803
          case 1: // GASEX
5804
            return GASEX;
5805
          default:
5806
            return null;
5807
        }
5808
      }
5809
 
5810
      /**
5811
       * Find the _Fields constant that matches fieldId, throwing an exception
5812
       * if it is not found.
5813
       */
5814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5815
        _Fields fields = findByThriftId(fieldId);
5816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5817
        return fields;
5818
      }
5819
 
5820
      /**
5821
       * Find the _Fields constant that matches name, or null if its not found.
5822
       */
5823
      public static _Fields findByName(String name) {
5824
        return byName.get(name);
5825
      }
5826
 
5827
      private final short _thriftId;
5828
      private final String _fieldName;
5829
 
5830
      _Fields(short thriftId, String fieldName) {
5831
        _thriftId = thriftId;
5832
        _fieldName = fieldName;
5833
      }
5834
 
5835
      public short getThriftFieldId() {
5836
        return _thriftId;
5837
      }
5838
 
5839
      public String getFieldName() {
5840
        return _fieldName;
5841
      }
5842
    }
5843
 
5844
    // isset id assignments
5845
 
5846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5847
    static {
5848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5849
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5851
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5852
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdKeyword_result.class, metaDataMap);
5853
    }
5854
 
5855
    public updateAdwordsAdKeyword_result() {
5856
    }
5857
 
5858
    public updateAdwordsAdKeyword_result(
5859
      GoogleAdwordsServiceException gasex)
5860
    {
5861
      this();
5862
      this.gasex = gasex;
5863
    }
5864
 
5865
    /**
5866
     * Performs a deep copy on <i>other</i>.
5867
     */
5868
    public updateAdwordsAdKeyword_result(updateAdwordsAdKeyword_result other) {
5869
      if (other.isSetGasex()) {
5870
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
5871
      }
5872
    }
5873
 
5874
    public updateAdwordsAdKeyword_result deepCopy() {
5875
      return new updateAdwordsAdKeyword_result(this);
5876
    }
5877
 
5878
    @Override
5879
    public void clear() {
5880
      this.gasex = null;
5881
    }
5882
 
5883
    public GoogleAdwordsServiceException getGasex() {
5884
      return this.gasex;
5885
    }
5886
 
5887
    public void setGasex(GoogleAdwordsServiceException gasex) {
5888
      this.gasex = gasex;
5889
    }
5890
 
5891
    public void unsetGasex() {
5892
      this.gasex = null;
5893
    }
5894
 
5895
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
5896
    public boolean isSetGasex() {
5897
      return this.gasex != null;
5898
    }
5899
 
5900
    public void setGasexIsSet(boolean value) {
5901
      if (!value) {
5902
        this.gasex = null;
5903
      }
5904
    }
5905
 
5906
    public void setFieldValue(_Fields field, Object value) {
5907
      switch (field) {
5908
      case GASEX:
5909
        if (value == null) {
5910
          unsetGasex();
5911
        } else {
5912
          setGasex((GoogleAdwordsServiceException)value);
5913
        }
5914
        break;
5915
 
5916
      }
5917
    }
5918
 
5919
    public Object getFieldValue(_Fields field) {
5920
      switch (field) {
5921
      case GASEX:
5922
        return getGasex();
5923
 
5924
      }
5925
      throw new IllegalStateException();
5926
    }
5927
 
5928
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5929
    public boolean isSet(_Fields field) {
5930
      if (field == null) {
5931
        throw new IllegalArgumentException();
5932
      }
5933
 
5934
      switch (field) {
5935
      case GASEX:
5936
        return isSetGasex();
5937
      }
5938
      throw new IllegalStateException();
5939
    }
5940
 
5941
    @Override
5942
    public boolean equals(Object that) {
5943
      if (that == null)
5944
        return false;
5945
      if (that instanceof updateAdwordsAdKeyword_result)
5946
        return this.equals((updateAdwordsAdKeyword_result)that);
5947
      return false;
5948
    }
5949
 
5950
    public boolean equals(updateAdwordsAdKeyword_result that) {
5951
      if (that == null)
5952
        return false;
5953
 
5954
      boolean this_present_gasex = true && this.isSetGasex();
5955
      boolean that_present_gasex = true && that.isSetGasex();
5956
      if (this_present_gasex || that_present_gasex) {
5957
        if (!(this_present_gasex && that_present_gasex))
5958
          return false;
5959
        if (!this.gasex.equals(that.gasex))
5960
          return false;
5961
      }
5962
 
5963
      return true;
5964
    }
5965
 
5966
    @Override
5967
    public int hashCode() {
5968
      return 0;
5969
    }
5970
 
5971
    public int compareTo(updateAdwordsAdKeyword_result other) {
5972
      if (!getClass().equals(other.getClass())) {
5973
        return getClass().getName().compareTo(other.getClass().getName());
5974
      }
5975
 
5976
      int lastComparison = 0;
5977
      updateAdwordsAdKeyword_result typedOther = (updateAdwordsAdKeyword_result)other;
5978
 
5979
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
5980
      if (lastComparison != 0) {
5981
        return lastComparison;
5982
      }
5983
      if (isSetGasex()) {
5984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
5985
        if (lastComparison != 0) {
5986
          return lastComparison;
5987
        }
5988
      }
5989
      return 0;
5990
    }
5991
 
5992
    public _Fields fieldForId(int fieldId) {
5993
      return _Fields.findByThriftId(fieldId);
5994
    }
5995
 
5996
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5997
      org.apache.thrift.protocol.TField field;
5998
      iprot.readStructBegin();
5999
      while (true)
6000
      {
6001
        field = iprot.readFieldBegin();
6002
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6003
          break;
6004
        }
6005
        switch (field.id) {
6006
          case 1: // GASEX
6007
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6008
              this.gasex = new GoogleAdwordsServiceException();
6009
              this.gasex.read(iprot);
6010
            } else { 
6011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6012
            }
6013
            break;
6014
          default:
6015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6016
        }
6017
        iprot.readFieldEnd();
6018
      }
6019
      iprot.readStructEnd();
6020
      validate();
6021
    }
6022
 
6023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6024
      oprot.writeStructBegin(STRUCT_DESC);
6025
 
6026
      if (this.isSetGasex()) {
6027
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
6028
        this.gasex.write(oprot);
6029
        oprot.writeFieldEnd();
6030
      }
6031
      oprot.writeFieldStop();
6032
      oprot.writeStructEnd();
6033
    }
6034
 
6035
    @Override
6036
    public String toString() {
6037
      StringBuilder sb = new StringBuilder("updateAdwordsAdKeyword_result(");
6038
      boolean first = true;
6039
 
6040
      sb.append("gasex:");
6041
      if (this.gasex == null) {
6042
        sb.append("null");
6043
      } else {
6044
        sb.append(this.gasex);
6045
      }
6046
      first = false;
6047
      sb.append(")");
6048
      return sb.toString();
6049
    }
6050
 
6051
    public void validate() throws org.apache.thrift.TException {
6052
      // check for required fields
6053
    }
6054
 
6055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6056
      try {
6057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6058
      } catch (org.apache.thrift.TException te) {
6059
        throw new java.io.IOException(te);
6060
      }
6061
    }
6062
 
6063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6064
      try {
6065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6066
      } catch (org.apache.thrift.TException te) {
6067
        throw new java.io.IOException(te);
6068
      }
6069
    }
6070
 
6071
  }
6072
 
9233 manish.sha 6073
  public static class updateAdwordsAdGroupAd_args implements org.apache.thrift.TBase<updateAdwordsAdGroupAd_args, updateAdwordsAdGroupAd_args._Fields>, java.io.Serializable, Cloneable   {
6074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdGroupAd_args");
6075
 
6076
    private static final org.apache.thrift.protocol.TField ADGROUPAD_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupad", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6077
 
6078
    private AdwordsAdGroupAd adgroupad; // required
6079
 
6080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6081
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6082
      ADGROUPAD((short)1, "adgroupad");
6083
 
6084
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6085
 
6086
      static {
6087
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6088
          byName.put(field.getFieldName(), field);
6089
        }
6090
      }
6091
 
6092
      /**
6093
       * Find the _Fields constant that matches fieldId, or null if its not found.
6094
       */
6095
      public static _Fields findByThriftId(int fieldId) {
6096
        switch(fieldId) {
6097
          case 1: // ADGROUPAD
6098
            return ADGROUPAD;
6099
          default:
6100
            return null;
6101
        }
6102
      }
6103
 
6104
      /**
6105
       * Find the _Fields constant that matches fieldId, throwing an exception
6106
       * if it is not found.
6107
       */
6108
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6109
        _Fields fields = findByThriftId(fieldId);
6110
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6111
        return fields;
6112
      }
6113
 
6114
      /**
6115
       * Find the _Fields constant that matches name, or null if its not found.
6116
       */
6117
      public static _Fields findByName(String name) {
6118
        return byName.get(name);
6119
      }
6120
 
6121
      private final short _thriftId;
6122
      private final String _fieldName;
6123
 
6124
      _Fields(short thriftId, String fieldName) {
6125
        _thriftId = thriftId;
6126
        _fieldName = fieldName;
6127
      }
6128
 
6129
      public short getThriftFieldId() {
6130
        return _thriftId;
6131
      }
6132
 
6133
      public String getFieldName() {
6134
        return _fieldName;
6135
      }
6136
    }
6137
 
6138
    // isset id assignments
6139
 
6140
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6141
    static {
6142
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6143
      tmpMap.put(_Fields.ADGROUPAD, new org.apache.thrift.meta_data.FieldMetaData("adgroupad", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6144
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class)));
6145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdGroupAd_args.class, metaDataMap);
6147
    }
6148
 
6149
    public updateAdwordsAdGroupAd_args() {
6150
    }
6151
 
6152
    public updateAdwordsAdGroupAd_args(
6153
      AdwordsAdGroupAd adgroupad)
6154
    {
6155
      this();
6156
      this.adgroupad = adgroupad;
6157
    }
6158
 
6159
    /**
6160
     * Performs a deep copy on <i>other</i>.
6161
     */
6162
    public updateAdwordsAdGroupAd_args(updateAdwordsAdGroupAd_args other) {
6163
      if (other.isSetAdgroupad()) {
6164
        this.adgroupad = new AdwordsAdGroupAd(other.adgroupad);
6165
      }
6166
    }
6167
 
6168
    public updateAdwordsAdGroupAd_args deepCopy() {
6169
      return new updateAdwordsAdGroupAd_args(this);
6170
    }
6171
 
6172
    @Override
6173
    public void clear() {
6174
      this.adgroupad = null;
6175
    }
6176
 
6177
    public AdwordsAdGroupAd getAdgroupad() {
6178
      return this.adgroupad;
6179
    }
6180
 
6181
    public void setAdgroupad(AdwordsAdGroupAd adgroupad) {
6182
      this.adgroupad = adgroupad;
6183
    }
6184
 
6185
    public void unsetAdgroupad() {
6186
      this.adgroupad = null;
6187
    }
6188
 
6189
    /** Returns true if field adgroupad is set (has been assigned a value) and false otherwise */
6190
    public boolean isSetAdgroupad() {
6191
      return this.adgroupad != null;
6192
    }
6193
 
6194
    public void setAdgroupadIsSet(boolean value) {
6195
      if (!value) {
6196
        this.adgroupad = null;
6197
      }
6198
    }
6199
 
6200
    public void setFieldValue(_Fields field, Object value) {
6201
      switch (field) {
6202
      case ADGROUPAD:
6203
        if (value == null) {
6204
          unsetAdgroupad();
6205
        } else {
6206
          setAdgroupad((AdwordsAdGroupAd)value);
6207
        }
6208
        break;
6209
 
6210
      }
6211
    }
6212
 
6213
    public Object getFieldValue(_Fields field) {
6214
      switch (field) {
6215
      case ADGROUPAD:
6216
        return getAdgroupad();
6217
 
6218
      }
6219
      throw new IllegalStateException();
6220
    }
6221
 
6222
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6223
    public boolean isSet(_Fields field) {
6224
      if (field == null) {
6225
        throw new IllegalArgumentException();
6226
      }
6227
 
6228
      switch (field) {
6229
      case ADGROUPAD:
6230
        return isSetAdgroupad();
6231
      }
6232
      throw new IllegalStateException();
6233
    }
6234
 
6235
    @Override
6236
    public boolean equals(Object that) {
6237
      if (that == null)
6238
        return false;
6239
      if (that instanceof updateAdwordsAdGroupAd_args)
6240
        return this.equals((updateAdwordsAdGroupAd_args)that);
6241
      return false;
6242
    }
6243
 
6244
    public boolean equals(updateAdwordsAdGroupAd_args that) {
6245
      if (that == null)
6246
        return false;
6247
 
6248
      boolean this_present_adgroupad = true && this.isSetAdgroupad();
6249
      boolean that_present_adgroupad = true && that.isSetAdgroupad();
6250
      if (this_present_adgroupad || that_present_adgroupad) {
6251
        if (!(this_present_adgroupad && that_present_adgroupad))
6252
          return false;
6253
        if (!this.adgroupad.equals(that.adgroupad))
6254
          return false;
6255
      }
6256
 
6257
      return true;
6258
    }
6259
 
6260
    @Override
6261
    public int hashCode() {
6262
      return 0;
6263
    }
6264
 
6265
    public int compareTo(updateAdwordsAdGroupAd_args other) {
6266
      if (!getClass().equals(other.getClass())) {
6267
        return getClass().getName().compareTo(other.getClass().getName());
6268
      }
6269
 
6270
      int lastComparison = 0;
6271
      updateAdwordsAdGroupAd_args typedOther = (updateAdwordsAdGroupAd_args)other;
6272
 
6273
      lastComparison = Boolean.valueOf(isSetAdgroupad()).compareTo(typedOther.isSetAdgroupad());
6274
      if (lastComparison != 0) {
6275
        return lastComparison;
6276
      }
6277
      if (isSetAdgroupad()) {
6278
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupad, typedOther.adgroupad);
6279
        if (lastComparison != 0) {
6280
          return lastComparison;
6281
        }
6282
      }
6283
      return 0;
6284
    }
6285
 
6286
    public _Fields fieldForId(int fieldId) {
6287
      return _Fields.findByThriftId(fieldId);
6288
    }
6289
 
6290
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6291
      org.apache.thrift.protocol.TField field;
6292
      iprot.readStructBegin();
6293
      while (true)
6294
      {
6295
        field = iprot.readFieldBegin();
6296
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6297
          break;
6298
        }
6299
        switch (field.id) {
6300
          case 1: // ADGROUPAD
6301
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6302
              this.adgroupad = new AdwordsAdGroupAd();
6303
              this.adgroupad.read(iprot);
6304
            } else { 
6305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6306
            }
6307
            break;
6308
          default:
6309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6310
        }
6311
        iprot.readFieldEnd();
6312
      }
6313
      iprot.readStructEnd();
6314
      validate();
6315
    }
6316
 
6317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6318
      validate();
6319
 
6320
      oprot.writeStructBegin(STRUCT_DESC);
6321
      if (this.adgroupad != null) {
6322
        oprot.writeFieldBegin(ADGROUPAD_FIELD_DESC);
6323
        this.adgroupad.write(oprot);
6324
        oprot.writeFieldEnd();
6325
      }
6326
      oprot.writeFieldStop();
6327
      oprot.writeStructEnd();
6328
    }
6329
 
6330
    @Override
6331
    public String toString() {
6332
      StringBuilder sb = new StringBuilder("updateAdwordsAdGroupAd_args(");
6333
      boolean first = true;
6334
 
6335
      sb.append("adgroupad:");
6336
      if (this.adgroupad == null) {
6337
        sb.append("null");
6338
      } else {
6339
        sb.append(this.adgroupad);
6340
      }
6341
      first = false;
6342
      sb.append(")");
6343
      return sb.toString();
6344
    }
6345
 
6346
    public void validate() throws org.apache.thrift.TException {
6347
      // check for required fields
6348
    }
6349
 
6350
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6351
      try {
6352
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6353
      } catch (org.apache.thrift.TException te) {
6354
        throw new java.io.IOException(te);
6355
      }
6356
    }
6357
 
6358
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6359
      try {
6360
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6361
      } catch (org.apache.thrift.TException te) {
6362
        throw new java.io.IOException(te);
6363
      }
6364
    }
6365
 
6366
  }
6367
 
6368
  public static class updateAdwordsAdGroupAd_result implements org.apache.thrift.TBase<updateAdwordsAdGroupAd_result, updateAdwordsAdGroupAd_result._Fields>, java.io.Serializable, Cloneable   {
6369
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdGroupAd_result");
6370
 
6371
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6372
 
6373
    private GoogleAdwordsServiceException gasex; // required
6374
 
6375
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6376
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6377
      GASEX((short)1, "gasex");
6378
 
6379
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6380
 
6381
      static {
6382
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6383
          byName.put(field.getFieldName(), field);
6384
        }
6385
      }
6386
 
6387
      /**
6388
       * Find the _Fields constant that matches fieldId, or null if its not found.
6389
       */
6390
      public static _Fields findByThriftId(int fieldId) {
6391
        switch(fieldId) {
6392
          case 1: // GASEX
6393
            return GASEX;
6394
          default:
6395
            return null;
6396
        }
6397
      }
6398
 
6399
      /**
6400
       * Find the _Fields constant that matches fieldId, throwing an exception
6401
       * if it is not found.
6402
       */
6403
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6404
        _Fields fields = findByThriftId(fieldId);
6405
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6406
        return fields;
6407
      }
6408
 
6409
      /**
6410
       * Find the _Fields constant that matches name, or null if its not found.
6411
       */
6412
      public static _Fields findByName(String name) {
6413
        return byName.get(name);
6414
      }
6415
 
6416
      private final short _thriftId;
6417
      private final String _fieldName;
6418
 
6419
      _Fields(short thriftId, String fieldName) {
6420
        _thriftId = thriftId;
6421
        _fieldName = fieldName;
6422
      }
6423
 
6424
      public short getThriftFieldId() {
6425
        return _thriftId;
6426
      }
6427
 
6428
      public String getFieldName() {
6429
        return _fieldName;
6430
      }
6431
    }
6432
 
6433
    // isset id assignments
6434
 
6435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6436
    static {
6437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6438
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6439
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6440
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6441
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdGroupAd_result.class, metaDataMap);
6442
    }
6443
 
6444
    public updateAdwordsAdGroupAd_result() {
6445
    }
6446
 
6447
    public updateAdwordsAdGroupAd_result(
6448
      GoogleAdwordsServiceException gasex)
6449
    {
6450
      this();
6451
      this.gasex = gasex;
6452
    }
6453
 
6454
    /**
6455
     * Performs a deep copy on <i>other</i>.
6456
     */
6457
    public updateAdwordsAdGroupAd_result(updateAdwordsAdGroupAd_result other) {
6458
      if (other.isSetGasex()) {
6459
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
6460
      }
6461
    }
6462
 
6463
    public updateAdwordsAdGroupAd_result deepCopy() {
6464
      return new updateAdwordsAdGroupAd_result(this);
6465
    }
6466
 
6467
    @Override
6468
    public void clear() {
6469
      this.gasex = null;
6470
    }
6471
 
6472
    public GoogleAdwordsServiceException getGasex() {
6473
      return this.gasex;
6474
    }
6475
 
6476
    public void setGasex(GoogleAdwordsServiceException gasex) {
6477
      this.gasex = gasex;
6478
    }
6479
 
6480
    public void unsetGasex() {
6481
      this.gasex = null;
6482
    }
6483
 
6484
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
6485
    public boolean isSetGasex() {
6486
      return this.gasex != null;
6487
    }
6488
 
6489
    public void setGasexIsSet(boolean value) {
6490
      if (!value) {
6491
        this.gasex = null;
6492
      }
6493
    }
6494
 
6495
    public void setFieldValue(_Fields field, Object value) {
6496
      switch (field) {
6497
      case GASEX:
6498
        if (value == null) {
6499
          unsetGasex();
6500
        } else {
6501
          setGasex((GoogleAdwordsServiceException)value);
6502
        }
6503
        break;
6504
 
6505
      }
6506
    }
6507
 
6508
    public Object getFieldValue(_Fields field) {
6509
      switch (field) {
6510
      case GASEX:
6511
        return getGasex();
6512
 
6513
      }
6514
      throw new IllegalStateException();
6515
    }
6516
 
6517
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6518
    public boolean isSet(_Fields field) {
6519
      if (field == null) {
6520
        throw new IllegalArgumentException();
6521
      }
6522
 
6523
      switch (field) {
6524
      case GASEX:
6525
        return isSetGasex();
6526
      }
6527
      throw new IllegalStateException();
6528
    }
6529
 
6530
    @Override
6531
    public boolean equals(Object that) {
6532
      if (that == null)
6533
        return false;
6534
      if (that instanceof updateAdwordsAdGroupAd_result)
6535
        return this.equals((updateAdwordsAdGroupAd_result)that);
6536
      return false;
6537
    }
6538
 
6539
    public boolean equals(updateAdwordsAdGroupAd_result that) {
6540
      if (that == null)
6541
        return false;
6542
 
6543
      boolean this_present_gasex = true && this.isSetGasex();
6544
      boolean that_present_gasex = true && that.isSetGasex();
6545
      if (this_present_gasex || that_present_gasex) {
6546
        if (!(this_present_gasex && that_present_gasex))
6547
          return false;
6548
        if (!this.gasex.equals(that.gasex))
6549
          return false;
6550
      }
6551
 
6552
      return true;
6553
    }
6554
 
6555
    @Override
6556
    public int hashCode() {
6557
      return 0;
6558
    }
6559
 
6560
    public int compareTo(updateAdwordsAdGroupAd_result other) {
6561
      if (!getClass().equals(other.getClass())) {
6562
        return getClass().getName().compareTo(other.getClass().getName());
6563
      }
6564
 
6565
      int lastComparison = 0;
6566
      updateAdwordsAdGroupAd_result typedOther = (updateAdwordsAdGroupAd_result)other;
6567
 
6568
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
6569
      if (lastComparison != 0) {
6570
        return lastComparison;
6571
      }
6572
      if (isSetGasex()) {
6573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
6574
        if (lastComparison != 0) {
6575
          return lastComparison;
6576
        }
6577
      }
6578
      return 0;
6579
    }
6580
 
6581
    public _Fields fieldForId(int fieldId) {
6582
      return _Fields.findByThriftId(fieldId);
6583
    }
6584
 
6585
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6586
      org.apache.thrift.protocol.TField field;
6587
      iprot.readStructBegin();
6588
      while (true)
6589
      {
6590
        field = iprot.readFieldBegin();
6591
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6592
          break;
6593
        }
6594
        switch (field.id) {
6595
          case 1: // GASEX
6596
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6597
              this.gasex = new GoogleAdwordsServiceException();
6598
              this.gasex.read(iprot);
6599
            } else { 
6600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6601
            }
6602
            break;
6603
          default:
6604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6605
        }
6606
        iprot.readFieldEnd();
6607
      }
6608
      iprot.readStructEnd();
6609
      validate();
6610
    }
6611
 
6612
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6613
      oprot.writeStructBegin(STRUCT_DESC);
6614
 
6615
      if (this.isSetGasex()) {
6616
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
6617
        this.gasex.write(oprot);
6618
        oprot.writeFieldEnd();
6619
      }
6620
      oprot.writeFieldStop();
6621
      oprot.writeStructEnd();
6622
    }
6623
 
6624
    @Override
6625
    public String toString() {
6626
      StringBuilder sb = new StringBuilder("updateAdwordsAdGroupAd_result(");
6627
      boolean first = true;
6628
 
6629
      sb.append("gasex:");
6630
      if (this.gasex == null) {
6631
        sb.append("null");
6632
      } else {
6633
        sb.append(this.gasex);
6634
      }
6635
      first = false;
6636
      sb.append(")");
6637
      return sb.toString();
6638
    }
6639
 
6640
    public void validate() throws org.apache.thrift.TException {
6641
      // check for required fields
6642
    }
6643
 
6644
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6645
      try {
6646
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6647
      } catch (org.apache.thrift.TException te) {
6648
        throw new java.io.IOException(te);
6649
      }
6650
    }
6651
 
6652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6653
      try {
6654
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6655
      } catch (org.apache.thrift.TException te) {
6656
        throw new java.io.IOException(te);
6657
      }
6658
    }
6659
 
6660
  }
6661
 
9048 manish.sha 6662
  public static class deleteAdwordsCampaign_args implements org.apache.thrift.TBase<deleteAdwordsCampaign_args, deleteAdwordsCampaign_args._Fields>, java.io.Serializable, Cloneable   {
6663
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsCampaign_args");
6664
 
6665
    private static final org.apache.thrift.protocol.TField CAMPAIGN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("campaignId", org.apache.thrift.protocol.TType.I64, (short)1);
6666
 
6667
    private long campaignId; // required
6668
 
6669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6671
      CAMPAIGN_ID((short)1, "campaignId");
6672
 
6673
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6674
 
6675
      static {
6676
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6677
          byName.put(field.getFieldName(), field);
6678
        }
6679
      }
6680
 
6681
      /**
6682
       * Find the _Fields constant that matches fieldId, or null if its not found.
6683
       */
6684
      public static _Fields findByThriftId(int fieldId) {
6685
        switch(fieldId) {
6686
          case 1: // CAMPAIGN_ID
6687
            return CAMPAIGN_ID;
6688
          default:
6689
            return null;
6690
        }
6691
      }
6692
 
6693
      /**
6694
       * Find the _Fields constant that matches fieldId, throwing an exception
6695
       * if it is not found.
6696
       */
6697
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6698
        _Fields fields = findByThriftId(fieldId);
6699
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6700
        return fields;
6701
      }
6702
 
6703
      /**
6704
       * Find the _Fields constant that matches name, or null if its not found.
6705
       */
6706
      public static _Fields findByName(String name) {
6707
        return byName.get(name);
6708
      }
6709
 
6710
      private final short _thriftId;
6711
      private final String _fieldName;
6712
 
6713
      _Fields(short thriftId, String fieldName) {
6714
        _thriftId = thriftId;
6715
        _fieldName = fieldName;
6716
      }
6717
 
6718
      public short getThriftFieldId() {
6719
        return _thriftId;
6720
      }
6721
 
6722
      public String getFieldName() {
6723
        return _fieldName;
6724
      }
6725
    }
6726
 
6727
    // isset id assignments
6728
    private static final int __CAMPAIGNID_ISSET_ID = 0;
6729
    private BitSet __isset_bit_vector = new BitSet(1);
6730
 
6731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6732
    static {
6733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6734
      tmpMap.put(_Fields.CAMPAIGN_ID, new org.apache.thrift.meta_data.FieldMetaData("campaignId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsCampaign_args.class, metaDataMap);
6738
    }
6739
 
6740
    public deleteAdwordsCampaign_args() {
6741
    }
6742
 
6743
    public deleteAdwordsCampaign_args(
6744
      long campaignId)
6745
    {
6746
      this();
6747
      this.campaignId = campaignId;
6748
      setCampaignIdIsSet(true);
6749
    }
6750
 
6751
    /**
6752
     * Performs a deep copy on <i>other</i>.
6753
     */
6754
    public deleteAdwordsCampaign_args(deleteAdwordsCampaign_args other) {
6755
      __isset_bit_vector.clear();
6756
      __isset_bit_vector.or(other.__isset_bit_vector);
6757
      this.campaignId = other.campaignId;
6758
    }
6759
 
6760
    public deleteAdwordsCampaign_args deepCopy() {
6761
      return new deleteAdwordsCampaign_args(this);
6762
    }
6763
 
6764
    @Override
6765
    public void clear() {
6766
      setCampaignIdIsSet(false);
6767
      this.campaignId = 0;
6768
    }
6769
 
6770
    public long getCampaignId() {
6771
      return this.campaignId;
6772
    }
6773
 
6774
    public void setCampaignId(long campaignId) {
6775
      this.campaignId = campaignId;
6776
      setCampaignIdIsSet(true);
6777
    }
6778
 
6779
    public void unsetCampaignId() {
6780
      __isset_bit_vector.clear(__CAMPAIGNID_ISSET_ID);
6781
    }
6782
 
6783
    /** Returns true if field campaignId is set (has been assigned a value) and false otherwise */
6784
    public boolean isSetCampaignId() {
6785
      return __isset_bit_vector.get(__CAMPAIGNID_ISSET_ID);
6786
    }
6787
 
6788
    public void setCampaignIdIsSet(boolean value) {
6789
      __isset_bit_vector.set(__CAMPAIGNID_ISSET_ID, value);
6790
    }
6791
 
6792
    public void setFieldValue(_Fields field, Object value) {
6793
      switch (field) {
6794
      case CAMPAIGN_ID:
6795
        if (value == null) {
6796
          unsetCampaignId();
6797
        } else {
6798
          setCampaignId((Long)value);
6799
        }
6800
        break;
6801
 
6802
      }
6803
    }
6804
 
6805
    public Object getFieldValue(_Fields field) {
6806
      switch (field) {
6807
      case CAMPAIGN_ID:
6808
        return Long.valueOf(getCampaignId());
6809
 
6810
      }
6811
      throw new IllegalStateException();
6812
    }
6813
 
6814
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6815
    public boolean isSet(_Fields field) {
6816
      if (field == null) {
6817
        throw new IllegalArgumentException();
6818
      }
6819
 
6820
      switch (field) {
6821
      case CAMPAIGN_ID:
6822
        return isSetCampaignId();
6823
      }
6824
      throw new IllegalStateException();
6825
    }
6826
 
6827
    @Override
6828
    public boolean equals(Object that) {
6829
      if (that == null)
6830
        return false;
6831
      if (that instanceof deleteAdwordsCampaign_args)
6832
        return this.equals((deleteAdwordsCampaign_args)that);
6833
      return false;
6834
    }
6835
 
6836
    public boolean equals(deleteAdwordsCampaign_args that) {
6837
      if (that == null)
6838
        return false;
6839
 
6840
      boolean this_present_campaignId = true;
6841
      boolean that_present_campaignId = true;
6842
      if (this_present_campaignId || that_present_campaignId) {
6843
        if (!(this_present_campaignId && that_present_campaignId))
6844
          return false;
6845
        if (this.campaignId != that.campaignId)
6846
          return false;
6847
      }
6848
 
6849
      return true;
6850
    }
6851
 
6852
    @Override
6853
    public int hashCode() {
6854
      return 0;
6855
    }
6856
 
6857
    public int compareTo(deleteAdwordsCampaign_args other) {
6858
      if (!getClass().equals(other.getClass())) {
6859
        return getClass().getName().compareTo(other.getClass().getName());
6860
      }
6861
 
6862
      int lastComparison = 0;
6863
      deleteAdwordsCampaign_args typedOther = (deleteAdwordsCampaign_args)other;
6864
 
6865
      lastComparison = Boolean.valueOf(isSetCampaignId()).compareTo(typedOther.isSetCampaignId());
6866
      if (lastComparison != 0) {
6867
        return lastComparison;
6868
      }
6869
      if (isSetCampaignId()) {
6870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignId, typedOther.campaignId);
6871
        if (lastComparison != 0) {
6872
          return lastComparison;
6873
        }
6874
      }
6875
      return 0;
6876
    }
6877
 
6878
    public _Fields fieldForId(int fieldId) {
6879
      return _Fields.findByThriftId(fieldId);
6880
    }
6881
 
6882
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6883
      org.apache.thrift.protocol.TField field;
6884
      iprot.readStructBegin();
6885
      while (true)
6886
      {
6887
        field = iprot.readFieldBegin();
6888
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6889
          break;
6890
        }
6891
        switch (field.id) {
6892
          case 1: // CAMPAIGN_ID
6893
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6894
              this.campaignId = iprot.readI64();
6895
              setCampaignIdIsSet(true);
6896
            } else { 
6897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6898
            }
6899
            break;
6900
          default:
6901
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6902
        }
6903
        iprot.readFieldEnd();
6904
      }
6905
      iprot.readStructEnd();
6906
      validate();
6907
    }
6908
 
6909
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6910
      validate();
6911
 
6912
      oprot.writeStructBegin(STRUCT_DESC);
6913
      oprot.writeFieldBegin(CAMPAIGN_ID_FIELD_DESC);
6914
      oprot.writeI64(this.campaignId);
6915
      oprot.writeFieldEnd();
6916
      oprot.writeFieldStop();
6917
      oprot.writeStructEnd();
6918
    }
6919
 
6920
    @Override
6921
    public String toString() {
6922
      StringBuilder sb = new StringBuilder("deleteAdwordsCampaign_args(");
6923
      boolean first = true;
6924
 
6925
      sb.append("campaignId:");
6926
      sb.append(this.campaignId);
6927
      first = false;
6928
      sb.append(")");
6929
      return sb.toString();
6930
    }
6931
 
6932
    public void validate() throws org.apache.thrift.TException {
6933
      // check for required fields
6934
    }
6935
 
6936
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6937
      try {
6938
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6939
      } catch (org.apache.thrift.TException te) {
6940
        throw new java.io.IOException(te);
6941
      }
6942
    }
6943
 
6944
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6945
      try {
6946
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6947
        __isset_bit_vector = new BitSet(1);
6948
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6949
      } catch (org.apache.thrift.TException te) {
6950
        throw new java.io.IOException(te);
6951
      }
6952
    }
6953
 
6954
  }
6955
 
6956
  public static class deleteAdwordsCampaign_result implements org.apache.thrift.TBase<deleteAdwordsCampaign_result, deleteAdwordsCampaign_result._Fields>, java.io.Serializable, Cloneable   {
6957
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsCampaign_result");
6958
 
6959
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6960
 
6961
    private GoogleAdwordsServiceException gasex; // required
6962
 
6963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6964
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6965
      GASEX((short)1, "gasex");
6966
 
6967
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6968
 
6969
      static {
6970
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6971
          byName.put(field.getFieldName(), field);
6972
        }
6973
      }
6974
 
6975
      /**
6976
       * Find the _Fields constant that matches fieldId, or null if its not found.
6977
       */
6978
      public static _Fields findByThriftId(int fieldId) {
6979
        switch(fieldId) {
6980
          case 1: // GASEX
6981
            return GASEX;
6982
          default:
6983
            return null;
6984
        }
6985
      }
6986
 
6987
      /**
6988
       * Find the _Fields constant that matches fieldId, throwing an exception
6989
       * if it is not found.
6990
       */
6991
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6992
        _Fields fields = findByThriftId(fieldId);
6993
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6994
        return fields;
6995
      }
6996
 
6997
      /**
6998
       * Find the _Fields constant that matches name, or null if its not found.
6999
       */
7000
      public static _Fields findByName(String name) {
7001
        return byName.get(name);
7002
      }
7003
 
7004
      private final short _thriftId;
7005
      private final String _fieldName;
7006
 
7007
      _Fields(short thriftId, String fieldName) {
7008
        _thriftId = thriftId;
7009
        _fieldName = fieldName;
7010
      }
7011
 
7012
      public short getThriftFieldId() {
7013
        return _thriftId;
7014
      }
7015
 
7016
      public String getFieldName() {
7017
        return _fieldName;
7018
      }
7019
    }
7020
 
7021
    // isset id assignments
7022
 
7023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7024
    static {
7025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7026
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7027
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7028
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7029
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsCampaign_result.class, metaDataMap);
7030
    }
7031
 
7032
    public deleteAdwordsCampaign_result() {
7033
    }
7034
 
7035
    public deleteAdwordsCampaign_result(
7036
      GoogleAdwordsServiceException gasex)
7037
    {
7038
      this();
7039
      this.gasex = gasex;
7040
    }
7041
 
7042
    /**
7043
     * Performs a deep copy on <i>other</i>.
7044
     */
7045
    public deleteAdwordsCampaign_result(deleteAdwordsCampaign_result other) {
7046
      if (other.isSetGasex()) {
7047
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
7048
      }
7049
    }
7050
 
7051
    public deleteAdwordsCampaign_result deepCopy() {
7052
      return new deleteAdwordsCampaign_result(this);
7053
    }
7054
 
7055
    @Override
7056
    public void clear() {
7057
      this.gasex = null;
7058
    }
7059
 
7060
    public GoogleAdwordsServiceException getGasex() {
7061
      return this.gasex;
7062
    }
7063
 
7064
    public void setGasex(GoogleAdwordsServiceException gasex) {
7065
      this.gasex = gasex;
7066
    }
7067
 
7068
    public void unsetGasex() {
7069
      this.gasex = null;
7070
    }
7071
 
7072
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
7073
    public boolean isSetGasex() {
7074
      return this.gasex != null;
7075
    }
7076
 
7077
    public void setGasexIsSet(boolean value) {
7078
      if (!value) {
7079
        this.gasex = null;
7080
      }
7081
    }
7082
 
7083
    public void setFieldValue(_Fields field, Object value) {
7084
      switch (field) {
7085
      case GASEX:
7086
        if (value == null) {
7087
          unsetGasex();
7088
        } else {
7089
          setGasex((GoogleAdwordsServiceException)value);
7090
        }
7091
        break;
7092
 
7093
      }
7094
    }
7095
 
7096
    public Object getFieldValue(_Fields field) {
7097
      switch (field) {
7098
      case GASEX:
7099
        return getGasex();
7100
 
7101
      }
7102
      throw new IllegalStateException();
7103
    }
7104
 
7105
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7106
    public boolean isSet(_Fields field) {
7107
      if (field == null) {
7108
        throw new IllegalArgumentException();
7109
      }
7110
 
7111
      switch (field) {
7112
      case GASEX:
7113
        return isSetGasex();
7114
      }
7115
      throw new IllegalStateException();
7116
    }
7117
 
7118
    @Override
7119
    public boolean equals(Object that) {
7120
      if (that == null)
7121
        return false;
7122
      if (that instanceof deleteAdwordsCampaign_result)
7123
        return this.equals((deleteAdwordsCampaign_result)that);
7124
      return false;
7125
    }
7126
 
7127
    public boolean equals(deleteAdwordsCampaign_result that) {
7128
      if (that == null)
7129
        return false;
7130
 
7131
      boolean this_present_gasex = true && this.isSetGasex();
7132
      boolean that_present_gasex = true && that.isSetGasex();
7133
      if (this_present_gasex || that_present_gasex) {
7134
        if (!(this_present_gasex && that_present_gasex))
7135
          return false;
7136
        if (!this.gasex.equals(that.gasex))
7137
          return false;
7138
      }
7139
 
7140
      return true;
7141
    }
7142
 
7143
    @Override
7144
    public int hashCode() {
7145
      return 0;
7146
    }
7147
 
7148
    public int compareTo(deleteAdwordsCampaign_result other) {
7149
      if (!getClass().equals(other.getClass())) {
7150
        return getClass().getName().compareTo(other.getClass().getName());
7151
      }
7152
 
7153
      int lastComparison = 0;
7154
      deleteAdwordsCampaign_result typedOther = (deleteAdwordsCampaign_result)other;
7155
 
7156
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
7157
      if (lastComparison != 0) {
7158
        return lastComparison;
7159
      }
7160
      if (isSetGasex()) {
7161
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
7162
        if (lastComparison != 0) {
7163
          return lastComparison;
7164
        }
7165
      }
7166
      return 0;
7167
    }
7168
 
7169
    public _Fields fieldForId(int fieldId) {
7170
      return _Fields.findByThriftId(fieldId);
7171
    }
7172
 
7173
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7174
      org.apache.thrift.protocol.TField field;
7175
      iprot.readStructBegin();
7176
      while (true)
7177
      {
7178
        field = iprot.readFieldBegin();
7179
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7180
          break;
7181
        }
7182
        switch (field.id) {
7183
          case 1: // GASEX
7184
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7185
              this.gasex = new GoogleAdwordsServiceException();
7186
              this.gasex.read(iprot);
7187
            } else { 
7188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7189
            }
7190
            break;
7191
          default:
7192
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7193
        }
7194
        iprot.readFieldEnd();
7195
      }
7196
      iprot.readStructEnd();
7197
      validate();
7198
    }
7199
 
7200
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7201
      oprot.writeStructBegin(STRUCT_DESC);
7202
 
7203
      if (this.isSetGasex()) {
7204
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
7205
        this.gasex.write(oprot);
7206
        oprot.writeFieldEnd();
7207
      }
7208
      oprot.writeFieldStop();
7209
      oprot.writeStructEnd();
7210
    }
7211
 
7212
    @Override
7213
    public String toString() {
7214
      StringBuilder sb = new StringBuilder("deleteAdwordsCampaign_result(");
7215
      boolean first = true;
7216
 
7217
      sb.append("gasex:");
7218
      if (this.gasex == null) {
7219
        sb.append("null");
7220
      } else {
7221
        sb.append(this.gasex);
7222
      }
7223
      first = false;
7224
      sb.append(")");
7225
      return sb.toString();
7226
    }
7227
 
7228
    public void validate() throws org.apache.thrift.TException {
7229
      // check for required fields
7230
    }
7231
 
7232
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7233
      try {
7234
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7235
      } catch (org.apache.thrift.TException te) {
7236
        throw new java.io.IOException(te);
7237
      }
7238
    }
7239
 
7240
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7241
      try {
7242
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7243
      } catch (org.apache.thrift.TException te) {
7244
        throw new java.io.IOException(te);
7245
      }
7246
    }
7247
 
7248
  }
7249
 
7250
  public static class deleteAdwordsAdGroup_args implements org.apache.thrift.TBase<deleteAdwordsAdGroup_args, deleteAdwordsAdGroup_args._Fields>, java.io.Serializable, Cloneable   {
7251
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroup_args");
7252
 
7253
    private static final org.apache.thrift.protocol.TField ADGROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupId", org.apache.thrift.protocol.TType.I64, (short)1);
7254
 
7255
    private long adgroupId; // required
7256
 
7257
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7258
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7259
      ADGROUP_ID((short)1, "adgroupId");
7260
 
7261
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7262
 
7263
      static {
7264
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7265
          byName.put(field.getFieldName(), field);
7266
        }
7267
      }
7268
 
7269
      /**
7270
       * Find the _Fields constant that matches fieldId, or null if its not found.
7271
       */
7272
      public static _Fields findByThriftId(int fieldId) {
7273
        switch(fieldId) {
7274
          case 1: // ADGROUP_ID
7275
            return ADGROUP_ID;
7276
          default:
7277
            return null;
7278
        }
7279
      }
7280
 
7281
      /**
7282
       * Find the _Fields constant that matches fieldId, throwing an exception
7283
       * if it is not found.
7284
       */
7285
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7286
        _Fields fields = findByThriftId(fieldId);
7287
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7288
        return fields;
7289
      }
7290
 
7291
      /**
7292
       * Find the _Fields constant that matches name, or null if its not found.
7293
       */
7294
      public static _Fields findByName(String name) {
7295
        return byName.get(name);
7296
      }
7297
 
7298
      private final short _thriftId;
7299
      private final String _fieldName;
7300
 
7301
      _Fields(short thriftId, String fieldName) {
7302
        _thriftId = thriftId;
7303
        _fieldName = fieldName;
7304
      }
7305
 
7306
      public short getThriftFieldId() {
7307
        return _thriftId;
7308
      }
7309
 
7310
      public String getFieldName() {
7311
        return _fieldName;
7312
      }
7313
    }
7314
 
7315
    // isset id assignments
7316
    private static final int __ADGROUPID_ISSET_ID = 0;
7317
    private BitSet __isset_bit_vector = new BitSet(1);
7318
 
7319
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7320
    static {
7321
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7322
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7323
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7324
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7325
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroup_args.class, metaDataMap);
7326
    }
7327
 
7328
    public deleteAdwordsAdGroup_args() {
7329
    }
7330
 
7331
    public deleteAdwordsAdGroup_args(
7332
      long adgroupId)
7333
    {
7334
      this();
7335
      this.adgroupId = adgroupId;
7336
      setAdgroupIdIsSet(true);
7337
    }
7338
 
7339
    /**
7340
     * Performs a deep copy on <i>other</i>.
7341
     */
7342
    public deleteAdwordsAdGroup_args(deleteAdwordsAdGroup_args other) {
7343
      __isset_bit_vector.clear();
7344
      __isset_bit_vector.or(other.__isset_bit_vector);
7345
      this.adgroupId = other.adgroupId;
7346
    }
7347
 
7348
    public deleteAdwordsAdGroup_args deepCopy() {
7349
      return new deleteAdwordsAdGroup_args(this);
7350
    }
7351
 
7352
    @Override
7353
    public void clear() {
7354
      setAdgroupIdIsSet(false);
7355
      this.adgroupId = 0;
7356
    }
7357
 
7358
    public long getAdgroupId() {
7359
      return this.adgroupId;
7360
    }
7361
 
7362
    public void setAdgroupId(long adgroupId) {
7363
      this.adgroupId = adgroupId;
7364
      setAdgroupIdIsSet(true);
7365
    }
7366
 
7367
    public void unsetAdgroupId() {
7368
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
7369
    }
7370
 
7371
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
7372
    public boolean isSetAdgroupId() {
7373
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
7374
    }
7375
 
7376
    public void setAdgroupIdIsSet(boolean value) {
7377
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
7378
    }
7379
 
7380
    public void setFieldValue(_Fields field, Object value) {
7381
      switch (field) {
7382
      case ADGROUP_ID:
7383
        if (value == null) {
7384
          unsetAdgroupId();
7385
        } else {
7386
          setAdgroupId((Long)value);
7387
        }
7388
        break;
7389
 
7390
      }
7391
    }
7392
 
7393
    public Object getFieldValue(_Fields field) {
7394
      switch (field) {
7395
      case ADGROUP_ID:
7396
        return Long.valueOf(getAdgroupId());
7397
 
7398
      }
7399
      throw new IllegalStateException();
7400
    }
7401
 
7402
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7403
    public boolean isSet(_Fields field) {
7404
      if (field == null) {
7405
        throw new IllegalArgumentException();
7406
      }
7407
 
7408
      switch (field) {
7409
      case ADGROUP_ID:
7410
        return isSetAdgroupId();
7411
      }
7412
      throw new IllegalStateException();
7413
    }
7414
 
7415
    @Override
7416
    public boolean equals(Object that) {
7417
      if (that == null)
7418
        return false;
7419
      if (that instanceof deleteAdwordsAdGroup_args)
7420
        return this.equals((deleteAdwordsAdGroup_args)that);
7421
      return false;
7422
    }
7423
 
7424
    public boolean equals(deleteAdwordsAdGroup_args that) {
7425
      if (that == null)
7426
        return false;
7427
 
7428
      boolean this_present_adgroupId = true;
7429
      boolean that_present_adgroupId = true;
7430
      if (this_present_adgroupId || that_present_adgroupId) {
7431
        if (!(this_present_adgroupId && that_present_adgroupId))
7432
          return false;
7433
        if (this.adgroupId != that.adgroupId)
7434
          return false;
7435
      }
7436
 
7437
      return true;
7438
    }
7439
 
7440
    @Override
7441
    public int hashCode() {
7442
      return 0;
7443
    }
7444
 
7445
    public int compareTo(deleteAdwordsAdGroup_args other) {
7446
      if (!getClass().equals(other.getClass())) {
7447
        return getClass().getName().compareTo(other.getClass().getName());
7448
      }
7449
 
7450
      int lastComparison = 0;
7451
      deleteAdwordsAdGroup_args typedOther = (deleteAdwordsAdGroup_args)other;
7452
 
7453
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
7454
      if (lastComparison != 0) {
7455
        return lastComparison;
7456
      }
7457
      if (isSetAdgroupId()) {
7458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
7459
        if (lastComparison != 0) {
7460
          return lastComparison;
7461
        }
7462
      }
7463
      return 0;
7464
    }
7465
 
7466
    public _Fields fieldForId(int fieldId) {
7467
      return _Fields.findByThriftId(fieldId);
7468
    }
7469
 
7470
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7471
      org.apache.thrift.protocol.TField field;
7472
      iprot.readStructBegin();
7473
      while (true)
7474
      {
7475
        field = iprot.readFieldBegin();
7476
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7477
          break;
7478
        }
7479
        switch (field.id) {
7480
          case 1: // ADGROUP_ID
7481
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7482
              this.adgroupId = iprot.readI64();
7483
              setAdgroupIdIsSet(true);
7484
            } else { 
7485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7486
            }
7487
            break;
7488
          default:
7489
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7490
        }
7491
        iprot.readFieldEnd();
7492
      }
7493
      iprot.readStructEnd();
7494
      validate();
7495
    }
7496
 
7497
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7498
      validate();
7499
 
7500
      oprot.writeStructBegin(STRUCT_DESC);
7501
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
7502
      oprot.writeI64(this.adgroupId);
7503
      oprot.writeFieldEnd();
7504
      oprot.writeFieldStop();
7505
      oprot.writeStructEnd();
7506
    }
7507
 
7508
    @Override
7509
    public String toString() {
7510
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroup_args(");
7511
      boolean first = true;
7512
 
7513
      sb.append("adgroupId:");
7514
      sb.append(this.adgroupId);
7515
      first = false;
7516
      sb.append(")");
7517
      return sb.toString();
7518
    }
7519
 
7520
    public void validate() throws org.apache.thrift.TException {
7521
      // check for required fields
7522
    }
7523
 
7524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7525
      try {
7526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7527
      } catch (org.apache.thrift.TException te) {
7528
        throw new java.io.IOException(te);
7529
      }
7530
    }
7531
 
7532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7533
      try {
7534
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7535
        __isset_bit_vector = new BitSet(1);
7536
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7537
      } catch (org.apache.thrift.TException te) {
7538
        throw new java.io.IOException(te);
7539
      }
7540
    }
7541
 
7542
  }
7543
 
7544
  public static class deleteAdwordsAdGroup_result implements org.apache.thrift.TBase<deleteAdwordsAdGroup_result, deleteAdwordsAdGroup_result._Fields>, java.io.Serializable, Cloneable   {
7545
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroup_result");
7546
 
7547
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7548
 
7549
    private GoogleAdwordsServiceException gasex; // required
7550
 
7551
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7552
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7553
      GASEX((short)1, "gasex");
7554
 
7555
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7556
 
7557
      static {
7558
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7559
          byName.put(field.getFieldName(), field);
7560
        }
7561
      }
7562
 
7563
      /**
7564
       * Find the _Fields constant that matches fieldId, or null if its not found.
7565
       */
7566
      public static _Fields findByThriftId(int fieldId) {
7567
        switch(fieldId) {
7568
          case 1: // GASEX
7569
            return GASEX;
7570
          default:
7571
            return null;
7572
        }
7573
      }
7574
 
7575
      /**
7576
       * Find the _Fields constant that matches fieldId, throwing an exception
7577
       * if it is not found.
7578
       */
7579
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7580
        _Fields fields = findByThriftId(fieldId);
7581
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7582
        return fields;
7583
      }
7584
 
7585
      /**
7586
       * Find the _Fields constant that matches name, or null if its not found.
7587
       */
7588
      public static _Fields findByName(String name) {
7589
        return byName.get(name);
7590
      }
7591
 
7592
      private final short _thriftId;
7593
      private final String _fieldName;
7594
 
7595
      _Fields(short thriftId, String fieldName) {
7596
        _thriftId = thriftId;
7597
        _fieldName = fieldName;
7598
      }
7599
 
7600
      public short getThriftFieldId() {
7601
        return _thriftId;
7602
      }
7603
 
7604
      public String getFieldName() {
7605
        return _fieldName;
7606
      }
7607
    }
7608
 
7609
    // isset id assignments
7610
 
7611
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7612
    static {
7613
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7614
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7615
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroup_result.class, metaDataMap);
7618
    }
7619
 
7620
    public deleteAdwordsAdGroup_result() {
7621
    }
7622
 
7623
    public deleteAdwordsAdGroup_result(
7624
      GoogleAdwordsServiceException gasex)
7625
    {
7626
      this();
7627
      this.gasex = gasex;
7628
    }
7629
 
7630
    /**
7631
     * Performs a deep copy on <i>other</i>.
7632
     */
7633
    public deleteAdwordsAdGroup_result(deleteAdwordsAdGroup_result other) {
7634
      if (other.isSetGasex()) {
7635
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
7636
      }
7637
    }
7638
 
7639
    public deleteAdwordsAdGroup_result deepCopy() {
7640
      return new deleteAdwordsAdGroup_result(this);
7641
    }
7642
 
7643
    @Override
7644
    public void clear() {
7645
      this.gasex = null;
7646
    }
7647
 
7648
    public GoogleAdwordsServiceException getGasex() {
7649
      return this.gasex;
7650
    }
7651
 
7652
    public void setGasex(GoogleAdwordsServiceException gasex) {
7653
      this.gasex = gasex;
7654
    }
7655
 
7656
    public void unsetGasex() {
7657
      this.gasex = null;
7658
    }
7659
 
7660
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
7661
    public boolean isSetGasex() {
7662
      return this.gasex != null;
7663
    }
7664
 
7665
    public void setGasexIsSet(boolean value) {
7666
      if (!value) {
7667
        this.gasex = null;
7668
      }
7669
    }
7670
 
7671
    public void setFieldValue(_Fields field, Object value) {
7672
      switch (field) {
7673
      case GASEX:
7674
        if (value == null) {
7675
          unsetGasex();
7676
        } else {
7677
          setGasex((GoogleAdwordsServiceException)value);
7678
        }
7679
        break;
7680
 
7681
      }
7682
    }
7683
 
7684
    public Object getFieldValue(_Fields field) {
7685
      switch (field) {
7686
      case GASEX:
7687
        return getGasex();
7688
 
7689
      }
7690
      throw new IllegalStateException();
7691
    }
7692
 
7693
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7694
    public boolean isSet(_Fields field) {
7695
      if (field == null) {
7696
        throw new IllegalArgumentException();
7697
      }
7698
 
7699
      switch (field) {
7700
      case GASEX:
7701
        return isSetGasex();
7702
      }
7703
      throw new IllegalStateException();
7704
    }
7705
 
7706
    @Override
7707
    public boolean equals(Object that) {
7708
      if (that == null)
7709
        return false;
7710
      if (that instanceof deleteAdwordsAdGroup_result)
7711
        return this.equals((deleteAdwordsAdGroup_result)that);
7712
      return false;
7713
    }
7714
 
7715
    public boolean equals(deleteAdwordsAdGroup_result that) {
7716
      if (that == null)
7717
        return false;
7718
 
7719
      boolean this_present_gasex = true && this.isSetGasex();
7720
      boolean that_present_gasex = true && that.isSetGasex();
7721
      if (this_present_gasex || that_present_gasex) {
7722
        if (!(this_present_gasex && that_present_gasex))
7723
          return false;
7724
        if (!this.gasex.equals(that.gasex))
7725
          return false;
7726
      }
7727
 
7728
      return true;
7729
    }
7730
 
7731
    @Override
7732
    public int hashCode() {
7733
      return 0;
7734
    }
7735
 
7736
    public int compareTo(deleteAdwordsAdGroup_result other) {
7737
      if (!getClass().equals(other.getClass())) {
7738
        return getClass().getName().compareTo(other.getClass().getName());
7739
      }
7740
 
7741
      int lastComparison = 0;
7742
      deleteAdwordsAdGroup_result typedOther = (deleteAdwordsAdGroup_result)other;
7743
 
7744
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
7745
      if (lastComparison != 0) {
7746
        return lastComparison;
7747
      }
7748
      if (isSetGasex()) {
7749
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
7750
        if (lastComparison != 0) {
7751
          return lastComparison;
7752
        }
7753
      }
7754
      return 0;
7755
    }
7756
 
7757
    public _Fields fieldForId(int fieldId) {
7758
      return _Fields.findByThriftId(fieldId);
7759
    }
7760
 
7761
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7762
      org.apache.thrift.protocol.TField field;
7763
      iprot.readStructBegin();
7764
      while (true)
7765
      {
7766
        field = iprot.readFieldBegin();
7767
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7768
          break;
7769
        }
7770
        switch (field.id) {
7771
          case 1: // GASEX
7772
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7773
              this.gasex = new GoogleAdwordsServiceException();
7774
              this.gasex.read(iprot);
7775
            } else { 
7776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7777
            }
7778
            break;
7779
          default:
7780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7781
        }
7782
        iprot.readFieldEnd();
7783
      }
7784
      iprot.readStructEnd();
7785
      validate();
7786
    }
7787
 
7788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7789
      oprot.writeStructBegin(STRUCT_DESC);
7790
 
7791
      if (this.isSetGasex()) {
7792
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
7793
        this.gasex.write(oprot);
7794
        oprot.writeFieldEnd();
7795
      }
7796
      oprot.writeFieldStop();
7797
      oprot.writeStructEnd();
7798
    }
7799
 
7800
    @Override
7801
    public String toString() {
7802
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroup_result(");
7803
      boolean first = true;
7804
 
7805
      sb.append("gasex:");
7806
      if (this.gasex == null) {
7807
        sb.append("null");
7808
      } else {
7809
        sb.append(this.gasex);
7810
      }
7811
      first = false;
7812
      sb.append(")");
7813
      return sb.toString();
7814
    }
7815
 
7816
    public void validate() throws org.apache.thrift.TException {
7817
      // check for required fields
7818
    }
7819
 
7820
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7821
      try {
7822
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7823
      } catch (org.apache.thrift.TException te) {
7824
        throw new java.io.IOException(te);
7825
      }
7826
    }
7827
 
7828
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7829
      try {
7830
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7831
      } catch (org.apache.thrift.TException te) {
7832
        throw new java.io.IOException(te);
7833
      }
7834
    }
7835
 
7836
  }
7837
 
7838
  public static class deleteAdwordsAdGroupAd_args implements org.apache.thrift.TBase<deleteAdwordsAdGroupAd_args, deleteAdwordsAdGroupAd_args._Fields>, java.io.Serializable, Cloneable   {
7839
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroupAd_args");
7840
 
7841
    private static final org.apache.thrift.protocol.TField ADGROUPAD_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupadId", org.apache.thrift.protocol.TType.I64, (short)1);
7842
 
7843
    private long adgroupadId; // required
7844
 
7845
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7846
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7847
      ADGROUPAD_ID((short)1, "adgroupadId");
7848
 
7849
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7850
 
7851
      static {
7852
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7853
          byName.put(field.getFieldName(), field);
7854
        }
7855
      }
7856
 
7857
      /**
7858
       * Find the _Fields constant that matches fieldId, or null if its not found.
7859
       */
7860
      public static _Fields findByThriftId(int fieldId) {
7861
        switch(fieldId) {
7862
          case 1: // ADGROUPAD_ID
7863
            return ADGROUPAD_ID;
7864
          default:
7865
            return null;
7866
        }
7867
      }
7868
 
7869
      /**
7870
       * Find the _Fields constant that matches fieldId, throwing an exception
7871
       * if it is not found.
7872
       */
7873
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7874
        _Fields fields = findByThriftId(fieldId);
7875
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7876
        return fields;
7877
      }
7878
 
7879
      /**
7880
       * Find the _Fields constant that matches name, or null if its not found.
7881
       */
7882
      public static _Fields findByName(String name) {
7883
        return byName.get(name);
7884
      }
7885
 
7886
      private final short _thriftId;
7887
      private final String _fieldName;
7888
 
7889
      _Fields(short thriftId, String fieldName) {
7890
        _thriftId = thriftId;
7891
        _fieldName = fieldName;
7892
      }
7893
 
7894
      public short getThriftFieldId() {
7895
        return _thriftId;
7896
      }
7897
 
7898
      public String getFieldName() {
7899
        return _fieldName;
7900
      }
7901
    }
7902
 
7903
    // isset id assignments
7904
    private static final int __ADGROUPADID_ISSET_ID = 0;
7905
    private BitSet __isset_bit_vector = new BitSet(1);
7906
 
7907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7908
    static {
7909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7910
      tmpMap.put(_Fields.ADGROUPAD_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupadId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7911
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7912
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7913
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroupAd_args.class, metaDataMap);
7914
    }
7915
 
7916
    public deleteAdwordsAdGroupAd_args() {
7917
    }
7918
 
7919
    public deleteAdwordsAdGroupAd_args(
7920
      long adgroupadId)
7921
    {
7922
      this();
7923
      this.adgroupadId = adgroupadId;
7924
      setAdgroupadIdIsSet(true);
7925
    }
7926
 
7927
    /**
7928
     * Performs a deep copy on <i>other</i>.
7929
     */
7930
    public deleteAdwordsAdGroupAd_args(deleteAdwordsAdGroupAd_args other) {
7931
      __isset_bit_vector.clear();
7932
      __isset_bit_vector.or(other.__isset_bit_vector);
7933
      this.adgroupadId = other.adgroupadId;
7934
    }
7935
 
7936
    public deleteAdwordsAdGroupAd_args deepCopy() {
7937
      return new deleteAdwordsAdGroupAd_args(this);
7938
    }
7939
 
7940
    @Override
7941
    public void clear() {
7942
      setAdgroupadIdIsSet(false);
7943
      this.adgroupadId = 0;
7944
    }
7945
 
7946
    public long getAdgroupadId() {
7947
      return this.adgroupadId;
7948
    }
7949
 
7950
    public void setAdgroupadId(long adgroupadId) {
7951
      this.adgroupadId = adgroupadId;
7952
      setAdgroupadIdIsSet(true);
7953
    }
7954
 
7955
    public void unsetAdgroupadId() {
7956
      __isset_bit_vector.clear(__ADGROUPADID_ISSET_ID);
7957
    }
7958
 
7959
    /** Returns true if field adgroupadId is set (has been assigned a value) and false otherwise */
7960
    public boolean isSetAdgroupadId() {
7961
      return __isset_bit_vector.get(__ADGROUPADID_ISSET_ID);
7962
    }
7963
 
7964
    public void setAdgroupadIdIsSet(boolean value) {
7965
      __isset_bit_vector.set(__ADGROUPADID_ISSET_ID, value);
7966
    }
7967
 
7968
    public void setFieldValue(_Fields field, Object value) {
7969
      switch (field) {
7970
      case ADGROUPAD_ID:
7971
        if (value == null) {
7972
          unsetAdgroupadId();
7973
        } else {
7974
          setAdgroupadId((Long)value);
7975
        }
7976
        break;
7977
 
7978
      }
7979
    }
7980
 
7981
    public Object getFieldValue(_Fields field) {
7982
      switch (field) {
7983
      case ADGROUPAD_ID:
7984
        return Long.valueOf(getAdgroupadId());
7985
 
7986
      }
7987
      throw new IllegalStateException();
7988
    }
7989
 
7990
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7991
    public boolean isSet(_Fields field) {
7992
      if (field == null) {
7993
        throw new IllegalArgumentException();
7994
      }
7995
 
7996
      switch (field) {
7997
      case ADGROUPAD_ID:
7998
        return isSetAdgroupadId();
7999
      }
8000
      throw new IllegalStateException();
8001
    }
8002
 
8003
    @Override
8004
    public boolean equals(Object that) {
8005
      if (that == null)
8006
        return false;
8007
      if (that instanceof deleteAdwordsAdGroupAd_args)
8008
        return this.equals((deleteAdwordsAdGroupAd_args)that);
8009
      return false;
8010
    }
8011
 
8012
    public boolean equals(deleteAdwordsAdGroupAd_args that) {
8013
      if (that == null)
8014
        return false;
8015
 
8016
      boolean this_present_adgroupadId = true;
8017
      boolean that_present_adgroupadId = true;
8018
      if (this_present_adgroupadId || that_present_adgroupadId) {
8019
        if (!(this_present_adgroupadId && that_present_adgroupadId))
8020
          return false;
8021
        if (this.adgroupadId != that.adgroupadId)
8022
          return false;
8023
      }
8024
 
8025
      return true;
8026
    }
8027
 
8028
    @Override
8029
    public int hashCode() {
8030
      return 0;
8031
    }
8032
 
8033
    public int compareTo(deleteAdwordsAdGroupAd_args other) {
8034
      if (!getClass().equals(other.getClass())) {
8035
        return getClass().getName().compareTo(other.getClass().getName());
8036
      }
8037
 
8038
      int lastComparison = 0;
8039
      deleteAdwordsAdGroupAd_args typedOther = (deleteAdwordsAdGroupAd_args)other;
8040
 
8041
      lastComparison = Boolean.valueOf(isSetAdgroupadId()).compareTo(typedOther.isSetAdgroupadId());
8042
      if (lastComparison != 0) {
8043
        return lastComparison;
8044
      }
8045
      if (isSetAdgroupadId()) {
8046
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupadId, typedOther.adgroupadId);
8047
        if (lastComparison != 0) {
8048
          return lastComparison;
8049
        }
8050
      }
8051
      return 0;
8052
    }
8053
 
8054
    public _Fields fieldForId(int fieldId) {
8055
      return _Fields.findByThriftId(fieldId);
8056
    }
8057
 
8058
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8059
      org.apache.thrift.protocol.TField field;
8060
      iprot.readStructBegin();
8061
      while (true)
8062
      {
8063
        field = iprot.readFieldBegin();
8064
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8065
          break;
8066
        }
8067
        switch (field.id) {
8068
          case 1: // ADGROUPAD_ID
8069
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8070
              this.adgroupadId = iprot.readI64();
8071
              setAdgroupadIdIsSet(true);
8072
            } else { 
8073
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8074
            }
8075
            break;
8076
          default:
8077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8078
        }
8079
        iprot.readFieldEnd();
8080
      }
8081
      iprot.readStructEnd();
8082
      validate();
8083
    }
8084
 
8085
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8086
      validate();
8087
 
8088
      oprot.writeStructBegin(STRUCT_DESC);
8089
      oprot.writeFieldBegin(ADGROUPAD_ID_FIELD_DESC);
8090
      oprot.writeI64(this.adgroupadId);
8091
      oprot.writeFieldEnd();
8092
      oprot.writeFieldStop();
8093
      oprot.writeStructEnd();
8094
    }
8095
 
8096
    @Override
8097
    public String toString() {
8098
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroupAd_args(");
8099
      boolean first = true;
8100
 
8101
      sb.append("adgroupadId:");
8102
      sb.append(this.adgroupadId);
8103
      first = false;
8104
      sb.append(")");
8105
      return sb.toString();
8106
    }
8107
 
8108
    public void validate() throws org.apache.thrift.TException {
8109
      // check for required fields
8110
    }
8111
 
8112
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8113
      try {
8114
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8115
      } catch (org.apache.thrift.TException te) {
8116
        throw new java.io.IOException(te);
8117
      }
8118
    }
8119
 
8120
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8121
      try {
8122
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8123
        __isset_bit_vector = new BitSet(1);
8124
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8125
      } catch (org.apache.thrift.TException te) {
8126
        throw new java.io.IOException(te);
8127
      }
8128
    }
8129
 
8130
  }
8131
 
8132
  public static class deleteAdwordsAdGroupAd_result implements org.apache.thrift.TBase<deleteAdwordsAdGroupAd_result, deleteAdwordsAdGroupAd_result._Fields>, java.io.Serializable, Cloneable   {
8133
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroupAd_result");
8134
 
8135
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8136
 
8137
    private GoogleAdwordsServiceException gasex; // required
8138
 
8139
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8140
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8141
      GASEX((short)1, "gasex");
8142
 
8143
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8144
 
8145
      static {
8146
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8147
          byName.put(field.getFieldName(), field);
8148
        }
8149
      }
8150
 
8151
      /**
8152
       * Find the _Fields constant that matches fieldId, or null if its not found.
8153
       */
8154
      public static _Fields findByThriftId(int fieldId) {
8155
        switch(fieldId) {
8156
          case 1: // GASEX
8157
            return GASEX;
8158
          default:
8159
            return null;
8160
        }
8161
      }
8162
 
8163
      /**
8164
       * Find the _Fields constant that matches fieldId, throwing an exception
8165
       * if it is not found.
8166
       */
8167
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8168
        _Fields fields = findByThriftId(fieldId);
8169
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8170
        return fields;
8171
      }
8172
 
8173
      /**
8174
       * Find the _Fields constant that matches name, or null if its not found.
8175
       */
8176
      public static _Fields findByName(String name) {
8177
        return byName.get(name);
8178
      }
8179
 
8180
      private final short _thriftId;
8181
      private final String _fieldName;
8182
 
8183
      _Fields(short thriftId, String fieldName) {
8184
        _thriftId = thriftId;
8185
        _fieldName = fieldName;
8186
      }
8187
 
8188
      public short getThriftFieldId() {
8189
        return _thriftId;
8190
      }
8191
 
8192
      public String getFieldName() {
8193
        return _fieldName;
8194
      }
8195
    }
8196
 
8197
    // isset id assignments
8198
 
8199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8200
    static {
8201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8202
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8203
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8204
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8205
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroupAd_result.class, metaDataMap);
8206
    }
8207
 
8208
    public deleteAdwordsAdGroupAd_result() {
8209
    }
8210
 
8211
    public deleteAdwordsAdGroupAd_result(
8212
      GoogleAdwordsServiceException gasex)
8213
    {
8214
      this();
8215
      this.gasex = gasex;
8216
    }
8217
 
8218
    /**
8219
     * Performs a deep copy on <i>other</i>.
8220
     */
8221
    public deleteAdwordsAdGroupAd_result(deleteAdwordsAdGroupAd_result other) {
8222
      if (other.isSetGasex()) {
8223
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
8224
      }
8225
    }
8226
 
8227
    public deleteAdwordsAdGroupAd_result deepCopy() {
8228
      return new deleteAdwordsAdGroupAd_result(this);
8229
    }
8230
 
8231
    @Override
8232
    public void clear() {
8233
      this.gasex = null;
8234
    }
8235
 
8236
    public GoogleAdwordsServiceException getGasex() {
8237
      return this.gasex;
8238
    }
8239
 
8240
    public void setGasex(GoogleAdwordsServiceException gasex) {
8241
      this.gasex = gasex;
8242
    }
8243
 
8244
    public void unsetGasex() {
8245
      this.gasex = null;
8246
    }
8247
 
8248
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
8249
    public boolean isSetGasex() {
8250
      return this.gasex != null;
8251
    }
8252
 
8253
    public void setGasexIsSet(boolean value) {
8254
      if (!value) {
8255
        this.gasex = null;
8256
      }
8257
    }
8258
 
8259
    public void setFieldValue(_Fields field, Object value) {
8260
      switch (field) {
8261
      case GASEX:
8262
        if (value == null) {
8263
          unsetGasex();
8264
        } else {
8265
          setGasex((GoogleAdwordsServiceException)value);
8266
        }
8267
        break;
8268
 
8269
      }
8270
    }
8271
 
8272
    public Object getFieldValue(_Fields field) {
8273
      switch (field) {
8274
      case GASEX:
8275
        return getGasex();
8276
 
8277
      }
8278
      throw new IllegalStateException();
8279
    }
8280
 
8281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8282
    public boolean isSet(_Fields field) {
8283
      if (field == null) {
8284
        throw new IllegalArgumentException();
8285
      }
8286
 
8287
      switch (field) {
8288
      case GASEX:
8289
        return isSetGasex();
8290
      }
8291
      throw new IllegalStateException();
8292
    }
8293
 
8294
    @Override
8295
    public boolean equals(Object that) {
8296
      if (that == null)
8297
        return false;
8298
      if (that instanceof deleteAdwordsAdGroupAd_result)
8299
        return this.equals((deleteAdwordsAdGroupAd_result)that);
8300
      return false;
8301
    }
8302
 
8303
    public boolean equals(deleteAdwordsAdGroupAd_result that) {
8304
      if (that == null)
8305
        return false;
8306
 
8307
      boolean this_present_gasex = true && this.isSetGasex();
8308
      boolean that_present_gasex = true && that.isSetGasex();
8309
      if (this_present_gasex || that_present_gasex) {
8310
        if (!(this_present_gasex && that_present_gasex))
8311
          return false;
8312
        if (!this.gasex.equals(that.gasex))
8313
          return false;
8314
      }
8315
 
8316
      return true;
8317
    }
8318
 
8319
    @Override
8320
    public int hashCode() {
8321
      return 0;
8322
    }
8323
 
8324
    public int compareTo(deleteAdwordsAdGroupAd_result other) {
8325
      if (!getClass().equals(other.getClass())) {
8326
        return getClass().getName().compareTo(other.getClass().getName());
8327
      }
8328
 
8329
      int lastComparison = 0;
8330
      deleteAdwordsAdGroupAd_result typedOther = (deleteAdwordsAdGroupAd_result)other;
8331
 
8332
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
8333
      if (lastComparison != 0) {
8334
        return lastComparison;
8335
      }
8336
      if (isSetGasex()) {
8337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
8338
        if (lastComparison != 0) {
8339
          return lastComparison;
8340
        }
8341
      }
8342
      return 0;
8343
    }
8344
 
8345
    public _Fields fieldForId(int fieldId) {
8346
      return _Fields.findByThriftId(fieldId);
8347
    }
8348
 
8349
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8350
      org.apache.thrift.protocol.TField field;
8351
      iprot.readStructBegin();
8352
      while (true)
8353
      {
8354
        field = iprot.readFieldBegin();
8355
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8356
          break;
8357
        }
8358
        switch (field.id) {
8359
          case 1: // GASEX
8360
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8361
              this.gasex = new GoogleAdwordsServiceException();
8362
              this.gasex.read(iprot);
8363
            } else { 
8364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8365
            }
8366
            break;
8367
          default:
8368
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8369
        }
8370
        iprot.readFieldEnd();
8371
      }
8372
      iprot.readStructEnd();
8373
      validate();
8374
    }
8375
 
8376
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8377
      oprot.writeStructBegin(STRUCT_DESC);
8378
 
8379
      if (this.isSetGasex()) {
8380
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
8381
        this.gasex.write(oprot);
8382
        oprot.writeFieldEnd();
8383
      }
8384
      oprot.writeFieldStop();
8385
      oprot.writeStructEnd();
8386
    }
8387
 
8388
    @Override
8389
    public String toString() {
8390
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroupAd_result(");
8391
      boolean first = true;
8392
 
8393
      sb.append("gasex:");
8394
      if (this.gasex == null) {
8395
        sb.append("null");
8396
      } else {
8397
        sb.append(this.gasex);
8398
      }
8399
      first = false;
8400
      sb.append(")");
8401
      return sb.toString();
8402
    }
8403
 
8404
    public void validate() throws org.apache.thrift.TException {
8405
      // check for required fields
8406
    }
8407
 
8408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8409
      try {
8410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8411
      } catch (org.apache.thrift.TException te) {
8412
        throw new java.io.IOException(te);
8413
      }
8414
    }
8415
 
8416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8417
      try {
8418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8419
      } catch (org.apache.thrift.TException te) {
8420
        throw new java.io.IOException(te);
8421
      }
8422
    }
8423
 
8424
  }
8425
 
8426
  public static class deleteAdwordsAdKeyword_args implements org.apache.thrift.TBase<deleteAdwordsAdKeyword_args, deleteAdwordsAdKeyword_args._Fields>, java.io.Serializable, Cloneable   {
8427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdKeyword_args");
8428
 
8429
    private static final org.apache.thrift.protocol.TField CRITERION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("criterionId", org.apache.thrift.protocol.TType.I64, (short)1);
8430
 
8431
    private long criterionId; // required
8432
 
8433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8435
      CRITERION_ID((short)1, "criterionId");
8436
 
8437
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8438
 
8439
      static {
8440
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8441
          byName.put(field.getFieldName(), field);
8442
        }
8443
      }
8444
 
8445
      /**
8446
       * Find the _Fields constant that matches fieldId, or null if its not found.
8447
       */
8448
      public static _Fields findByThriftId(int fieldId) {
8449
        switch(fieldId) {
8450
          case 1: // CRITERION_ID
8451
            return CRITERION_ID;
8452
          default:
8453
            return null;
8454
        }
8455
      }
8456
 
8457
      /**
8458
       * Find the _Fields constant that matches fieldId, throwing an exception
8459
       * if it is not found.
8460
       */
8461
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8462
        _Fields fields = findByThriftId(fieldId);
8463
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8464
        return fields;
8465
      }
8466
 
8467
      /**
8468
       * Find the _Fields constant that matches name, or null if its not found.
8469
       */
8470
      public static _Fields findByName(String name) {
8471
        return byName.get(name);
8472
      }
8473
 
8474
      private final short _thriftId;
8475
      private final String _fieldName;
8476
 
8477
      _Fields(short thriftId, String fieldName) {
8478
        _thriftId = thriftId;
8479
        _fieldName = fieldName;
8480
      }
8481
 
8482
      public short getThriftFieldId() {
8483
        return _thriftId;
8484
      }
8485
 
8486
      public String getFieldName() {
8487
        return _fieldName;
8488
      }
8489
    }
8490
 
8491
    // isset id assignments
8492
    private static final int __CRITERIONID_ISSET_ID = 0;
8493
    private BitSet __isset_bit_vector = new BitSet(1);
8494
 
8495
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8496
    static {
8497
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8498
      tmpMap.put(_Fields.CRITERION_ID, new org.apache.thrift.meta_data.FieldMetaData("criterionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdKeyword_args.class, metaDataMap);
8502
    }
8503
 
8504
    public deleteAdwordsAdKeyword_args() {
8505
    }
8506
 
8507
    public deleteAdwordsAdKeyword_args(
8508
      long criterionId)
8509
    {
8510
      this();
8511
      this.criterionId = criterionId;
8512
      setCriterionIdIsSet(true);
8513
    }
8514
 
8515
    /**
8516
     * Performs a deep copy on <i>other</i>.
8517
     */
8518
    public deleteAdwordsAdKeyword_args(deleteAdwordsAdKeyword_args other) {
8519
      __isset_bit_vector.clear();
8520
      __isset_bit_vector.or(other.__isset_bit_vector);
8521
      this.criterionId = other.criterionId;
8522
    }
8523
 
8524
    public deleteAdwordsAdKeyword_args deepCopy() {
8525
      return new deleteAdwordsAdKeyword_args(this);
8526
    }
8527
 
8528
    @Override
8529
    public void clear() {
8530
      setCriterionIdIsSet(false);
8531
      this.criterionId = 0;
8532
    }
8533
 
8534
    public long getCriterionId() {
8535
      return this.criterionId;
8536
    }
8537
 
8538
    public void setCriterionId(long criterionId) {
8539
      this.criterionId = criterionId;
8540
      setCriterionIdIsSet(true);
8541
    }
8542
 
8543
    public void unsetCriterionId() {
8544
      __isset_bit_vector.clear(__CRITERIONID_ISSET_ID);
8545
    }
8546
 
8547
    /** Returns true if field criterionId is set (has been assigned a value) and false otherwise */
8548
    public boolean isSetCriterionId() {
8549
      return __isset_bit_vector.get(__CRITERIONID_ISSET_ID);
8550
    }
8551
 
8552
    public void setCriterionIdIsSet(boolean value) {
8553
      __isset_bit_vector.set(__CRITERIONID_ISSET_ID, value);
8554
    }
8555
 
8556
    public void setFieldValue(_Fields field, Object value) {
8557
      switch (field) {
8558
      case CRITERION_ID:
8559
        if (value == null) {
8560
          unsetCriterionId();
8561
        } else {
8562
          setCriterionId((Long)value);
8563
        }
8564
        break;
8565
 
8566
      }
8567
    }
8568
 
8569
    public Object getFieldValue(_Fields field) {
8570
      switch (field) {
8571
      case CRITERION_ID:
8572
        return Long.valueOf(getCriterionId());
8573
 
8574
      }
8575
      throw new IllegalStateException();
8576
    }
8577
 
8578
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8579
    public boolean isSet(_Fields field) {
8580
      if (field == null) {
8581
        throw new IllegalArgumentException();
8582
      }
8583
 
8584
      switch (field) {
8585
      case CRITERION_ID:
8586
        return isSetCriterionId();
8587
      }
8588
      throw new IllegalStateException();
8589
    }
8590
 
8591
    @Override
8592
    public boolean equals(Object that) {
8593
      if (that == null)
8594
        return false;
8595
      if (that instanceof deleteAdwordsAdKeyword_args)
8596
        return this.equals((deleteAdwordsAdKeyword_args)that);
8597
      return false;
8598
    }
8599
 
8600
    public boolean equals(deleteAdwordsAdKeyword_args that) {
8601
      if (that == null)
8602
        return false;
8603
 
8604
      boolean this_present_criterionId = true;
8605
      boolean that_present_criterionId = true;
8606
      if (this_present_criterionId || that_present_criterionId) {
8607
        if (!(this_present_criterionId && that_present_criterionId))
8608
          return false;
8609
        if (this.criterionId != that.criterionId)
8610
          return false;
8611
      }
8612
 
8613
      return true;
8614
    }
8615
 
8616
    @Override
8617
    public int hashCode() {
8618
      return 0;
8619
    }
8620
 
8621
    public int compareTo(deleteAdwordsAdKeyword_args other) {
8622
      if (!getClass().equals(other.getClass())) {
8623
        return getClass().getName().compareTo(other.getClass().getName());
8624
      }
8625
 
8626
      int lastComparison = 0;
8627
      deleteAdwordsAdKeyword_args typedOther = (deleteAdwordsAdKeyword_args)other;
8628
 
8629
      lastComparison = Boolean.valueOf(isSetCriterionId()).compareTo(typedOther.isSetCriterionId());
8630
      if (lastComparison != 0) {
8631
        return lastComparison;
8632
      }
8633
      if (isSetCriterionId()) {
8634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criterionId, typedOther.criterionId);
8635
        if (lastComparison != 0) {
8636
          return lastComparison;
8637
        }
8638
      }
8639
      return 0;
8640
    }
8641
 
8642
    public _Fields fieldForId(int fieldId) {
8643
      return _Fields.findByThriftId(fieldId);
8644
    }
8645
 
8646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8647
      org.apache.thrift.protocol.TField field;
8648
      iprot.readStructBegin();
8649
      while (true)
8650
      {
8651
        field = iprot.readFieldBegin();
8652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8653
          break;
8654
        }
8655
        switch (field.id) {
8656
          case 1: // CRITERION_ID
8657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8658
              this.criterionId = iprot.readI64();
8659
              setCriterionIdIsSet(true);
8660
            } else { 
8661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8662
            }
8663
            break;
8664
          default:
8665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8666
        }
8667
        iprot.readFieldEnd();
8668
      }
8669
      iprot.readStructEnd();
8670
      validate();
8671
    }
8672
 
8673
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8674
      validate();
8675
 
8676
      oprot.writeStructBegin(STRUCT_DESC);
8677
      oprot.writeFieldBegin(CRITERION_ID_FIELD_DESC);
8678
      oprot.writeI64(this.criterionId);
8679
      oprot.writeFieldEnd();
8680
      oprot.writeFieldStop();
8681
      oprot.writeStructEnd();
8682
    }
8683
 
8684
    @Override
8685
    public String toString() {
8686
      StringBuilder sb = new StringBuilder("deleteAdwordsAdKeyword_args(");
8687
      boolean first = true;
8688
 
8689
      sb.append("criterionId:");
8690
      sb.append(this.criterionId);
8691
      first = false;
8692
      sb.append(")");
8693
      return sb.toString();
8694
    }
8695
 
8696
    public void validate() throws org.apache.thrift.TException {
8697
      // check for required fields
8698
    }
8699
 
8700
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8701
      try {
8702
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8703
      } catch (org.apache.thrift.TException te) {
8704
        throw new java.io.IOException(te);
8705
      }
8706
    }
8707
 
8708
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8709
      try {
8710
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8711
        __isset_bit_vector = new BitSet(1);
8712
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8713
      } catch (org.apache.thrift.TException te) {
8714
        throw new java.io.IOException(te);
8715
      }
8716
    }
8717
 
8718
  }
8719
 
8720
  public static class deleteAdwordsAdKeyword_result implements org.apache.thrift.TBase<deleteAdwordsAdKeyword_result, deleteAdwordsAdKeyword_result._Fields>, java.io.Serializable, Cloneable   {
8721
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdKeyword_result");
8722
 
8723
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8724
 
8725
    private GoogleAdwordsServiceException gasex; // required
8726
 
8727
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8728
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8729
      GASEX((short)1, "gasex");
8730
 
8731
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8732
 
8733
      static {
8734
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8735
          byName.put(field.getFieldName(), field);
8736
        }
8737
      }
8738
 
8739
      /**
8740
       * Find the _Fields constant that matches fieldId, or null if its not found.
8741
       */
8742
      public static _Fields findByThriftId(int fieldId) {
8743
        switch(fieldId) {
8744
          case 1: // GASEX
8745
            return GASEX;
8746
          default:
8747
            return null;
8748
        }
8749
      }
8750
 
8751
      /**
8752
       * Find the _Fields constant that matches fieldId, throwing an exception
8753
       * if it is not found.
8754
       */
8755
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8756
        _Fields fields = findByThriftId(fieldId);
8757
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8758
        return fields;
8759
      }
8760
 
8761
      /**
8762
       * Find the _Fields constant that matches name, or null if its not found.
8763
       */
8764
      public static _Fields findByName(String name) {
8765
        return byName.get(name);
8766
      }
8767
 
8768
      private final short _thriftId;
8769
      private final String _fieldName;
8770
 
8771
      _Fields(short thriftId, String fieldName) {
8772
        _thriftId = thriftId;
8773
        _fieldName = fieldName;
8774
      }
8775
 
8776
      public short getThriftFieldId() {
8777
        return _thriftId;
8778
      }
8779
 
8780
      public String getFieldName() {
8781
        return _fieldName;
8782
      }
8783
    }
8784
 
8785
    // isset id assignments
8786
 
8787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8788
    static {
8789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8790
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8792
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8793
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdKeyword_result.class, metaDataMap);
8794
    }
8795
 
8796
    public deleteAdwordsAdKeyword_result() {
8797
    }
8798
 
8799
    public deleteAdwordsAdKeyword_result(
8800
      GoogleAdwordsServiceException gasex)
8801
    {
8802
      this();
8803
      this.gasex = gasex;
8804
    }
8805
 
8806
    /**
8807
     * Performs a deep copy on <i>other</i>.
8808
     */
8809
    public deleteAdwordsAdKeyword_result(deleteAdwordsAdKeyword_result other) {
8810
      if (other.isSetGasex()) {
8811
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
8812
      }
8813
    }
8814
 
8815
    public deleteAdwordsAdKeyword_result deepCopy() {
8816
      return new deleteAdwordsAdKeyword_result(this);
8817
    }
8818
 
8819
    @Override
8820
    public void clear() {
8821
      this.gasex = null;
8822
    }
8823
 
8824
    public GoogleAdwordsServiceException getGasex() {
8825
      return this.gasex;
8826
    }
8827
 
8828
    public void setGasex(GoogleAdwordsServiceException gasex) {
8829
      this.gasex = gasex;
8830
    }
8831
 
8832
    public void unsetGasex() {
8833
      this.gasex = null;
8834
    }
8835
 
8836
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
8837
    public boolean isSetGasex() {
8838
      return this.gasex != null;
8839
    }
8840
 
8841
    public void setGasexIsSet(boolean value) {
8842
      if (!value) {
8843
        this.gasex = null;
8844
      }
8845
    }
8846
 
8847
    public void setFieldValue(_Fields field, Object value) {
8848
      switch (field) {
8849
      case GASEX:
8850
        if (value == null) {
8851
          unsetGasex();
8852
        } else {
8853
          setGasex((GoogleAdwordsServiceException)value);
8854
        }
8855
        break;
8856
 
8857
      }
8858
    }
8859
 
8860
    public Object getFieldValue(_Fields field) {
8861
      switch (field) {
8862
      case GASEX:
8863
        return getGasex();
8864
 
8865
      }
8866
      throw new IllegalStateException();
8867
    }
8868
 
8869
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8870
    public boolean isSet(_Fields field) {
8871
      if (field == null) {
8872
        throw new IllegalArgumentException();
8873
      }
8874
 
8875
      switch (field) {
8876
      case GASEX:
8877
        return isSetGasex();
8878
      }
8879
      throw new IllegalStateException();
8880
    }
8881
 
8882
    @Override
8883
    public boolean equals(Object that) {
8884
      if (that == null)
8885
        return false;
8886
      if (that instanceof deleteAdwordsAdKeyword_result)
8887
        return this.equals((deleteAdwordsAdKeyword_result)that);
8888
      return false;
8889
    }
8890
 
8891
    public boolean equals(deleteAdwordsAdKeyword_result that) {
8892
      if (that == null)
8893
        return false;
8894
 
8895
      boolean this_present_gasex = true && this.isSetGasex();
8896
      boolean that_present_gasex = true && that.isSetGasex();
8897
      if (this_present_gasex || that_present_gasex) {
8898
        if (!(this_present_gasex && that_present_gasex))
8899
          return false;
8900
        if (!this.gasex.equals(that.gasex))
8901
          return false;
8902
      }
8903
 
8904
      return true;
8905
    }
8906
 
8907
    @Override
8908
    public int hashCode() {
8909
      return 0;
8910
    }
8911
 
8912
    public int compareTo(deleteAdwordsAdKeyword_result other) {
8913
      if (!getClass().equals(other.getClass())) {
8914
        return getClass().getName().compareTo(other.getClass().getName());
8915
      }
8916
 
8917
      int lastComparison = 0;
8918
      deleteAdwordsAdKeyword_result typedOther = (deleteAdwordsAdKeyword_result)other;
8919
 
8920
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
8921
      if (lastComparison != 0) {
8922
        return lastComparison;
8923
      }
8924
      if (isSetGasex()) {
8925
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
8926
        if (lastComparison != 0) {
8927
          return lastComparison;
8928
        }
8929
      }
8930
      return 0;
8931
    }
8932
 
8933
    public _Fields fieldForId(int fieldId) {
8934
      return _Fields.findByThriftId(fieldId);
8935
    }
8936
 
8937
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8938
      org.apache.thrift.protocol.TField field;
8939
      iprot.readStructBegin();
8940
      while (true)
8941
      {
8942
        field = iprot.readFieldBegin();
8943
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8944
          break;
8945
        }
8946
        switch (field.id) {
8947
          case 1: // GASEX
8948
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8949
              this.gasex = new GoogleAdwordsServiceException();
8950
              this.gasex.read(iprot);
8951
            } else { 
8952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8953
            }
8954
            break;
8955
          default:
8956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8957
        }
8958
        iprot.readFieldEnd();
8959
      }
8960
      iprot.readStructEnd();
8961
      validate();
8962
    }
8963
 
8964
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8965
      oprot.writeStructBegin(STRUCT_DESC);
8966
 
8967
      if (this.isSetGasex()) {
8968
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
8969
        this.gasex.write(oprot);
8970
        oprot.writeFieldEnd();
8971
      }
8972
      oprot.writeFieldStop();
8973
      oprot.writeStructEnd();
8974
    }
8975
 
8976
    @Override
8977
    public String toString() {
8978
      StringBuilder sb = new StringBuilder("deleteAdwordsAdKeyword_result(");
8979
      boolean first = true;
8980
 
8981
      sb.append("gasex:");
8982
      if (this.gasex == null) {
8983
        sb.append("null");
8984
      } else {
8985
        sb.append(this.gasex);
8986
      }
8987
      first = false;
8988
      sb.append(")");
8989
      return sb.toString();
8990
    }
8991
 
8992
    public void validate() throws org.apache.thrift.TException {
8993
      // check for required fields
8994
    }
8995
 
8996
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8997
      try {
8998
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8999
      } catch (org.apache.thrift.TException te) {
9000
        throw new java.io.IOException(te);
9001
      }
9002
    }
9003
 
9004
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9005
      try {
9006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9007
      } catch (org.apache.thrift.TException te) {
9008
        throw new java.io.IOException(te);
9009
      }
9010
    }
9011
 
9012
  }
9013
 
9014
  public static class getAdwordsCampaignByCampaignId_args implements org.apache.thrift.TBase<getAdwordsCampaignByCampaignId_args, getAdwordsCampaignByCampaignId_args._Fields>, java.io.Serializable, Cloneable   {
9015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsCampaignByCampaignId_args");
9016
 
9017
    private static final org.apache.thrift.protocol.TField CAMPAIGN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("campaignId", org.apache.thrift.protocol.TType.I64, (short)1);
9018
 
9019
    private long campaignId; // required
9020
 
9021
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9022
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9023
      CAMPAIGN_ID((short)1, "campaignId");
9024
 
9025
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9026
 
9027
      static {
9028
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9029
          byName.put(field.getFieldName(), field);
9030
        }
9031
      }
9032
 
9033
      /**
9034
       * Find the _Fields constant that matches fieldId, or null if its not found.
9035
       */
9036
      public static _Fields findByThriftId(int fieldId) {
9037
        switch(fieldId) {
9038
          case 1: // CAMPAIGN_ID
9039
            return CAMPAIGN_ID;
9040
          default:
9041
            return null;
9042
        }
9043
      }
9044
 
9045
      /**
9046
       * Find the _Fields constant that matches fieldId, throwing an exception
9047
       * if it is not found.
9048
       */
9049
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9050
        _Fields fields = findByThriftId(fieldId);
9051
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9052
        return fields;
9053
      }
9054
 
9055
      /**
9056
       * Find the _Fields constant that matches name, or null if its not found.
9057
       */
9058
      public static _Fields findByName(String name) {
9059
        return byName.get(name);
9060
      }
9061
 
9062
      private final short _thriftId;
9063
      private final String _fieldName;
9064
 
9065
      _Fields(short thriftId, String fieldName) {
9066
        _thriftId = thriftId;
9067
        _fieldName = fieldName;
9068
      }
9069
 
9070
      public short getThriftFieldId() {
9071
        return _thriftId;
9072
      }
9073
 
9074
      public String getFieldName() {
9075
        return _fieldName;
9076
      }
9077
    }
9078
 
9079
    // isset id assignments
9080
    private static final int __CAMPAIGNID_ISSET_ID = 0;
9081
    private BitSet __isset_bit_vector = new BitSet(1);
9082
 
9083
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9084
    static {
9085
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9086
      tmpMap.put(_Fields.CAMPAIGN_ID, new org.apache.thrift.meta_data.FieldMetaData("campaignId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsCampaignByCampaignId_args.class, metaDataMap);
9090
    }
9091
 
9092
    public getAdwordsCampaignByCampaignId_args() {
9093
    }
9094
 
9095
    public getAdwordsCampaignByCampaignId_args(
9096
      long campaignId)
9097
    {
9098
      this();
9099
      this.campaignId = campaignId;
9100
      setCampaignIdIsSet(true);
9101
    }
9102
 
9103
    /**
9104
     * Performs a deep copy on <i>other</i>.
9105
     */
9106
    public getAdwordsCampaignByCampaignId_args(getAdwordsCampaignByCampaignId_args other) {
9107
      __isset_bit_vector.clear();
9108
      __isset_bit_vector.or(other.__isset_bit_vector);
9109
      this.campaignId = other.campaignId;
9110
    }
9111
 
9112
    public getAdwordsCampaignByCampaignId_args deepCopy() {
9113
      return new getAdwordsCampaignByCampaignId_args(this);
9114
    }
9115
 
9116
    @Override
9117
    public void clear() {
9118
      setCampaignIdIsSet(false);
9119
      this.campaignId = 0;
9120
    }
9121
 
9122
    public long getCampaignId() {
9123
      return this.campaignId;
9124
    }
9125
 
9126
    public void setCampaignId(long campaignId) {
9127
      this.campaignId = campaignId;
9128
      setCampaignIdIsSet(true);
9129
    }
9130
 
9131
    public void unsetCampaignId() {
9132
      __isset_bit_vector.clear(__CAMPAIGNID_ISSET_ID);
9133
    }
9134
 
9135
    /** Returns true if field campaignId is set (has been assigned a value) and false otherwise */
9136
    public boolean isSetCampaignId() {
9137
      return __isset_bit_vector.get(__CAMPAIGNID_ISSET_ID);
9138
    }
9139
 
9140
    public void setCampaignIdIsSet(boolean value) {
9141
      __isset_bit_vector.set(__CAMPAIGNID_ISSET_ID, value);
9142
    }
9143
 
9144
    public void setFieldValue(_Fields field, Object value) {
9145
      switch (field) {
9146
      case CAMPAIGN_ID:
9147
        if (value == null) {
9148
          unsetCampaignId();
9149
        } else {
9150
          setCampaignId((Long)value);
9151
        }
9152
        break;
9153
 
9154
      }
9155
    }
9156
 
9157
    public Object getFieldValue(_Fields field) {
9158
      switch (field) {
9159
      case CAMPAIGN_ID:
9160
        return Long.valueOf(getCampaignId());
9161
 
9162
      }
9163
      throw new IllegalStateException();
9164
    }
9165
 
9166
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9167
    public boolean isSet(_Fields field) {
9168
      if (field == null) {
9169
        throw new IllegalArgumentException();
9170
      }
9171
 
9172
      switch (field) {
9173
      case CAMPAIGN_ID:
9174
        return isSetCampaignId();
9175
      }
9176
      throw new IllegalStateException();
9177
    }
9178
 
9179
    @Override
9180
    public boolean equals(Object that) {
9181
      if (that == null)
9182
        return false;
9183
      if (that instanceof getAdwordsCampaignByCampaignId_args)
9184
        return this.equals((getAdwordsCampaignByCampaignId_args)that);
9185
      return false;
9186
    }
9187
 
9188
    public boolean equals(getAdwordsCampaignByCampaignId_args that) {
9189
      if (that == null)
9190
        return false;
9191
 
9192
      boolean this_present_campaignId = true;
9193
      boolean that_present_campaignId = true;
9194
      if (this_present_campaignId || that_present_campaignId) {
9195
        if (!(this_present_campaignId && that_present_campaignId))
9196
          return false;
9197
        if (this.campaignId != that.campaignId)
9198
          return false;
9199
      }
9200
 
9201
      return true;
9202
    }
9203
 
9204
    @Override
9205
    public int hashCode() {
9206
      return 0;
9207
    }
9208
 
9209
    public int compareTo(getAdwordsCampaignByCampaignId_args other) {
9210
      if (!getClass().equals(other.getClass())) {
9211
        return getClass().getName().compareTo(other.getClass().getName());
9212
      }
9213
 
9214
      int lastComparison = 0;
9215
      getAdwordsCampaignByCampaignId_args typedOther = (getAdwordsCampaignByCampaignId_args)other;
9216
 
9217
      lastComparison = Boolean.valueOf(isSetCampaignId()).compareTo(typedOther.isSetCampaignId());
9218
      if (lastComparison != 0) {
9219
        return lastComparison;
9220
      }
9221
      if (isSetCampaignId()) {
9222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignId, typedOther.campaignId);
9223
        if (lastComparison != 0) {
9224
          return lastComparison;
9225
        }
9226
      }
9227
      return 0;
9228
    }
9229
 
9230
    public _Fields fieldForId(int fieldId) {
9231
      return _Fields.findByThriftId(fieldId);
9232
    }
9233
 
9234
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9235
      org.apache.thrift.protocol.TField field;
9236
      iprot.readStructBegin();
9237
      while (true)
9238
      {
9239
        field = iprot.readFieldBegin();
9240
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9241
          break;
9242
        }
9243
        switch (field.id) {
9244
          case 1: // CAMPAIGN_ID
9245
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9246
              this.campaignId = iprot.readI64();
9247
              setCampaignIdIsSet(true);
9248
            } else { 
9249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9250
            }
9251
            break;
9252
          default:
9253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9254
        }
9255
        iprot.readFieldEnd();
9256
      }
9257
      iprot.readStructEnd();
9258
      validate();
9259
    }
9260
 
9261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9262
      validate();
9263
 
9264
      oprot.writeStructBegin(STRUCT_DESC);
9265
      oprot.writeFieldBegin(CAMPAIGN_ID_FIELD_DESC);
9266
      oprot.writeI64(this.campaignId);
9267
      oprot.writeFieldEnd();
9268
      oprot.writeFieldStop();
9269
      oprot.writeStructEnd();
9270
    }
9271
 
9272
    @Override
9273
    public String toString() {
9274
      StringBuilder sb = new StringBuilder("getAdwordsCampaignByCampaignId_args(");
9275
      boolean first = true;
9276
 
9277
      sb.append("campaignId:");
9278
      sb.append(this.campaignId);
9279
      first = false;
9280
      sb.append(")");
9281
      return sb.toString();
9282
    }
9283
 
9284
    public void validate() throws org.apache.thrift.TException {
9285
      // check for required fields
9286
    }
9287
 
9288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9289
      try {
9290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9291
      } catch (org.apache.thrift.TException te) {
9292
        throw new java.io.IOException(te);
9293
      }
9294
    }
9295
 
9296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9297
      try {
9298
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9299
        __isset_bit_vector = new BitSet(1);
9300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9301
      } catch (org.apache.thrift.TException te) {
9302
        throw new java.io.IOException(te);
9303
      }
9304
    }
9305
 
9306
  }
9307
 
9308
  public static class getAdwordsCampaignByCampaignId_result implements org.apache.thrift.TBase<getAdwordsCampaignByCampaignId_result, getAdwordsCampaignByCampaignId_result._Fields>, java.io.Serializable, Cloneable   {
9309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsCampaignByCampaignId_result");
9310
 
9311
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
9312
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9313
 
9314
    private AdwordsCampaign success; // required
9315
    private GoogleAdwordsServiceException gasex; // required
9316
 
9317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9319
      SUCCESS((short)0, "success"),
9320
      GASEX((short)1, "gasex");
9321
 
9322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9323
 
9324
      static {
9325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9326
          byName.put(field.getFieldName(), field);
9327
        }
9328
      }
9329
 
9330
      /**
9331
       * Find the _Fields constant that matches fieldId, or null if its not found.
9332
       */
9333
      public static _Fields findByThriftId(int fieldId) {
9334
        switch(fieldId) {
9335
          case 0: // SUCCESS
9336
            return SUCCESS;
9337
          case 1: // GASEX
9338
            return GASEX;
9339
          default:
9340
            return null;
9341
        }
9342
      }
9343
 
9344
      /**
9345
       * Find the _Fields constant that matches fieldId, throwing an exception
9346
       * if it is not found.
9347
       */
9348
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9349
        _Fields fields = findByThriftId(fieldId);
9350
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9351
        return fields;
9352
      }
9353
 
9354
      /**
9355
       * Find the _Fields constant that matches name, or null if its not found.
9356
       */
9357
      public static _Fields findByName(String name) {
9358
        return byName.get(name);
9359
      }
9360
 
9361
      private final short _thriftId;
9362
      private final String _fieldName;
9363
 
9364
      _Fields(short thriftId, String fieldName) {
9365
        _thriftId = thriftId;
9366
        _fieldName = fieldName;
9367
      }
9368
 
9369
      public short getThriftFieldId() {
9370
        return _thriftId;
9371
      }
9372
 
9373
      public String getFieldName() {
9374
        return _fieldName;
9375
      }
9376
    }
9377
 
9378
    // isset id assignments
9379
 
9380
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9381
    static {
9382
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9383
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9384
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class)));
9385
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9386
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9387
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9388
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsCampaignByCampaignId_result.class, metaDataMap);
9389
    }
9390
 
9391
    public getAdwordsCampaignByCampaignId_result() {
9392
    }
9393
 
9394
    public getAdwordsCampaignByCampaignId_result(
9395
      AdwordsCampaign success,
9396
      GoogleAdwordsServiceException gasex)
9397
    {
9398
      this();
9399
      this.success = success;
9400
      this.gasex = gasex;
9401
    }
9402
 
9403
    /**
9404
     * Performs a deep copy on <i>other</i>.
9405
     */
9406
    public getAdwordsCampaignByCampaignId_result(getAdwordsCampaignByCampaignId_result other) {
9407
      if (other.isSetSuccess()) {
9408
        this.success = new AdwordsCampaign(other.success);
9409
      }
9410
      if (other.isSetGasex()) {
9411
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
9412
      }
9413
    }
9414
 
9415
    public getAdwordsCampaignByCampaignId_result deepCopy() {
9416
      return new getAdwordsCampaignByCampaignId_result(this);
9417
    }
9418
 
9419
    @Override
9420
    public void clear() {
9421
      this.success = null;
9422
      this.gasex = null;
9423
    }
9424
 
9425
    public AdwordsCampaign getSuccess() {
9426
      return this.success;
9427
    }
9428
 
9429
    public void setSuccess(AdwordsCampaign success) {
9430
      this.success = success;
9431
    }
9432
 
9433
    public void unsetSuccess() {
9434
      this.success = null;
9435
    }
9436
 
9437
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9438
    public boolean isSetSuccess() {
9439
      return this.success != null;
9440
    }
9441
 
9442
    public void setSuccessIsSet(boolean value) {
9443
      if (!value) {
9444
        this.success = null;
9445
      }
9446
    }
9447
 
9448
    public GoogleAdwordsServiceException getGasex() {
9449
      return this.gasex;
9450
    }
9451
 
9452
    public void setGasex(GoogleAdwordsServiceException gasex) {
9453
      this.gasex = gasex;
9454
    }
9455
 
9456
    public void unsetGasex() {
9457
      this.gasex = null;
9458
    }
9459
 
9460
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
9461
    public boolean isSetGasex() {
9462
      return this.gasex != null;
9463
    }
9464
 
9465
    public void setGasexIsSet(boolean value) {
9466
      if (!value) {
9467
        this.gasex = null;
9468
      }
9469
    }
9470
 
9471
    public void setFieldValue(_Fields field, Object value) {
9472
      switch (field) {
9473
      case SUCCESS:
9474
        if (value == null) {
9475
          unsetSuccess();
9476
        } else {
9477
          setSuccess((AdwordsCampaign)value);
9478
        }
9479
        break;
9480
 
9481
      case GASEX:
9482
        if (value == null) {
9483
          unsetGasex();
9484
        } else {
9485
          setGasex((GoogleAdwordsServiceException)value);
9486
        }
9487
        break;
9488
 
9489
      }
9490
    }
9491
 
9492
    public Object getFieldValue(_Fields field) {
9493
      switch (field) {
9494
      case SUCCESS:
9495
        return getSuccess();
9496
 
9497
      case GASEX:
9498
        return getGasex();
9499
 
9500
      }
9501
      throw new IllegalStateException();
9502
    }
9503
 
9504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9505
    public boolean isSet(_Fields field) {
9506
      if (field == null) {
9507
        throw new IllegalArgumentException();
9508
      }
9509
 
9510
      switch (field) {
9511
      case SUCCESS:
9512
        return isSetSuccess();
9513
      case GASEX:
9514
        return isSetGasex();
9515
      }
9516
      throw new IllegalStateException();
9517
    }
9518
 
9519
    @Override
9520
    public boolean equals(Object that) {
9521
      if (that == null)
9522
        return false;
9523
      if (that instanceof getAdwordsCampaignByCampaignId_result)
9524
        return this.equals((getAdwordsCampaignByCampaignId_result)that);
9525
      return false;
9526
    }
9527
 
9528
    public boolean equals(getAdwordsCampaignByCampaignId_result that) {
9529
      if (that == null)
9530
        return false;
9531
 
9532
      boolean this_present_success = true && this.isSetSuccess();
9533
      boolean that_present_success = true && that.isSetSuccess();
9534
      if (this_present_success || that_present_success) {
9535
        if (!(this_present_success && that_present_success))
9536
          return false;
9537
        if (!this.success.equals(that.success))
9538
          return false;
9539
      }
9540
 
9541
      boolean this_present_gasex = true && this.isSetGasex();
9542
      boolean that_present_gasex = true && that.isSetGasex();
9543
      if (this_present_gasex || that_present_gasex) {
9544
        if (!(this_present_gasex && that_present_gasex))
9545
          return false;
9546
        if (!this.gasex.equals(that.gasex))
9547
          return false;
9548
      }
9549
 
9550
      return true;
9551
    }
9552
 
9553
    @Override
9554
    public int hashCode() {
9555
      return 0;
9556
    }
9557
 
9558
    public int compareTo(getAdwordsCampaignByCampaignId_result other) {
9559
      if (!getClass().equals(other.getClass())) {
9560
        return getClass().getName().compareTo(other.getClass().getName());
9561
      }
9562
 
9563
      int lastComparison = 0;
9564
      getAdwordsCampaignByCampaignId_result typedOther = (getAdwordsCampaignByCampaignId_result)other;
9565
 
9566
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9567
      if (lastComparison != 0) {
9568
        return lastComparison;
9569
      }
9570
      if (isSetSuccess()) {
9571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9572
        if (lastComparison != 0) {
9573
          return lastComparison;
9574
        }
9575
      }
9576
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
9577
      if (lastComparison != 0) {
9578
        return lastComparison;
9579
      }
9580
      if (isSetGasex()) {
9581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
9582
        if (lastComparison != 0) {
9583
          return lastComparison;
9584
        }
9585
      }
9586
      return 0;
9587
    }
9588
 
9589
    public _Fields fieldForId(int fieldId) {
9590
      return _Fields.findByThriftId(fieldId);
9591
    }
9592
 
9593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9594
      org.apache.thrift.protocol.TField field;
9595
      iprot.readStructBegin();
9596
      while (true)
9597
      {
9598
        field = iprot.readFieldBegin();
9599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9600
          break;
9601
        }
9602
        switch (field.id) {
9603
          case 0: // SUCCESS
9604
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9605
              this.success = new AdwordsCampaign();
9606
              this.success.read(iprot);
9607
            } else { 
9608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9609
            }
9610
            break;
9611
          case 1: // GASEX
9612
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9613
              this.gasex = new GoogleAdwordsServiceException();
9614
              this.gasex.read(iprot);
9615
            } else { 
9616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9617
            }
9618
            break;
9619
          default:
9620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9621
        }
9622
        iprot.readFieldEnd();
9623
      }
9624
      iprot.readStructEnd();
9625
      validate();
9626
    }
9627
 
9628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9629
      oprot.writeStructBegin(STRUCT_DESC);
9630
 
9631
      if (this.isSetSuccess()) {
9632
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9633
        this.success.write(oprot);
9634
        oprot.writeFieldEnd();
9635
      } else if (this.isSetGasex()) {
9636
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
9637
        this.gasex.write(oprot);
9638
        oprot.writeFieldEnd();
9639
      }
9640
      oprot.writeFieldStop();
9641
      oprot.writeStructEnd();
9642
    }
9643
 
9644
    @Override
9645
    public String toString() {
9646
      StringBuilder sb = new StringBuilder("getAdwordsCampaignByCampaignId_result(");
9647
      boolean first = true;
9648
 
9649
      sb.append("success:");
9650
      if (this.success == null) {
9651
        sb.append("null");
9652
      } else {
9653
        sb.append(this.success);
9654
      }
9655
      first = false;
9656
      if (!first) sb.append(", ");
9657
      sb.append("gasex:");
9658
      if (this.gasex == null) {
9659
        sb.append("null");
9660
      } else {
9661
        sb.append(this.gasex);
9662
      }
9663
      first = false;
9664
      sb.append(")");
9665
      return sb.toString();
9666
    }
9667
 
9668
    public void validate() throws org.apache.thrift.TException {
9669
      // check for required fields
9670
    }
9671
 
9672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9673
      try {
9674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9675
      } catch (org.apache.thrift.TException te) {
9676
        throw new java.io.IOException(te);
9677
      }
9678
    }
9679
 
9680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9681
      try {
9682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9683
      } catch (org.apache.thrift.TException te) {
9684
        throw new java.io.IOException(te);
9685
      }
9686
    }
9687
 
9688
  }
9689
 
9690
  public static class getAdwordsAdGroupByAdGroupId_args implements org.apache.thrift.TBase<getAdwordsAdGroupByAdGroupId_args, getAdwordsAdGroupByAdGroupId_args._Fields>, java.io.Serializable, Cloneable   {
9691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupByAdGroupId_args");
9692
 
9693
    private static final org.apache.thrift.protocol.TField ADGROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupId", org.apache.thrift.protocol.TType.I64, (short)1);
9694
 
9695
    private long adgroupId; // required
9696
 
9697
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9698
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9699
      ADGROUP_ID((short)1, "adgroupId");
9700
 
9701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9702
 
9703
      static {
9704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9705
          byName.put(field.getFieldName(), field);
9706
        }
9707
      }
9708
 
9709
      /**
9710
       * Find the _Fields constant that matches fieldId, or null if its not found.
9711
       */
9712
      public static _Fields findByThriftId(int fieldId) {
9713
        switch(fieldId) {
9714
          case 1: // ADGROUP_ID
9715
            return ADGROUP_ID;
9716
          default:
9717
            return null;
9718
        }
9719
      }
9720
 
9721
      /**
9722
       * Find the _Fields constant that matches fieldId, throwing an exception
9723
       * if it is not found.
9724
       */
9725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9726
        _Fields fields = findByThriftId(fieldId);
9727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9728
        return fields;
9729
      }
9730
 
9731
      /**
9732
       * Find the _Fields constant that matches name, or null if its not found.
9733
       */
9734
      public static _Fields findByName(String name) {
9735
        return byName.get(name);
9736
      }
9737
 
9738
      private final short _thriftId;
9739
      private final String _fieldName;
9740
 
9741
      _Fields(short thriftId, String fieldName) {
9742
        _thriftId = thriftId;
9743
        _fieldName = fieldName;
9744
      }
9745
 
9746
      public short getThriftFieldId() {
9747
        return _thriftId;
9748
      }
9749
 
9750
      public String getFieldName() {
9751
        return _fieldName;
9752
      }
9753
    }
9754
 
9755
    // isset id assignments
9756
    private static final int __ADGROUPID_ISSET_ID = 0;
9757
    private BitSet __isset_bit_vector = new BitSet(1);
9758
 
9759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9760
    static {
9761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9762
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupByAdGroupId_args.class, metaDataMap);
9766
    }
9767
 
9768
    public getAdwordsAdGroupByAdGroupId_args() {
9769
    }
9770
 
9771
    public getAdwordsAdGroupByAdGroupId_args(
9772
      long adgroupId)
9773
    {
9774
      this();
9775
      this.adgroupId = adgroupId;
9776
      setAdgroupIdIsSet(true);
9777
    }
9778
 
9779
    /**
9780
     * Performs a deep copy on <i>other</i>.
9781
     */
9782
    public getAdwordsAdGroupByAdGroupId_args(getAdwordsAdGroupByAdGroupId_args other) {
9783
      __isset_bit_vector.clear();
9784
      __isset_bit_vector.or(other.__isset_bit_vector);
9785
      this.adgroupId = other.adgroupId;
9786
    }
9787
 
9788
    public getAdwordsAdGroupByAdGroupId_args deepCopy() {
9789
      return new getAdwordsAdGroupByAdGroupId_args(this);
9790
    }
9791
 
9792
    @Override
9793
    public void clear() {
9794
      setAdgroupIdIsSet(false);
9795
      this.adgroupId = 0;
9796
    }
9797
 
9798
    public long getAdgroupId() {
9799
      return this.adgroupId;
9800
    }
9801
 
9802
    public void setAdgroupId(long adgroupId) {
9803
      this.adgroupId = adgroupId;
9804
      setAdgroupIdIsSet(true);
9805
    }
9806
 
9807
    public void unsetAdgroupId() {
9808
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
9809
    }
9810
 
9811
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
9812
    public boolean isSetAdgroupId() {
9813
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
9814
    }
9815
 
9816
    public void setAdgroupIdIsSet(boolean value) {
9817
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
9818
    }
9819
 
9820
    public void setFieldValue(_Fields field, Object value) {
9821
      switch (field) {
9822
      case ADGROUP_ID:
9823
        if (value == null) {
9824
          unsetAdgroupId();
9825
        } else {
9826
          setAdgroupId((Long)value);
9827
        }
9828
        break;
9829
 
9830
      }
9831
    }
9832
 
9833
    public Object getFieldValue(_Fields field) {
9834
      switch (field) {
9835
      case ADGROUP_ID:
9836
        return Long.valueOf(getAdgroupId());
9837
 
9838
      }
9839
      throw new IllegalStateException();
9840
    }
9841
 
9842
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9843
    public boolean isSet(_Fields field) {
9844
      if (field == null) {
9845
        throw new IllegalArgumentException();
9846
      }
9847
 
9848
      switch (field) {
9849
      case ADGROUP_ID:
9850
        return isSetAdgroupId();
9851
      }
9852
      throw new IllegalStateException();
9853
    }
9854
 
9855
    @Override
9856
    public boolean equals(Object that) {
9857
      if (that == null)
9858
        return false;
9859
      if (that instanceof getAdwordsAdGroupByAdGroupId_args)
9860
        return this.equals((getAdwordsAdGroupByAdGroupId_args)that);
9861
      return false;
9862
    }
9863
 
9864
    public boolean equals(getAdwordsAdGroupByAdGroupId_args that) {
9865
      if (that == null)
9866
        return false;
9867
 
9868
      boolean this_present_adgroupId = true;
9869
      boolean that_present_adgroupId = true;
9870
      if (this_present_adgroupId || that_present_adgroupId) {
9871
        if (!(this_present_adgroupId && that_present_adgroupId))
9872
          return false;
9873
        if (this.adgroupId != that.adgroupId)
9874
          return false;
9875
      }
9876
 
9877
      return true;
9878
    }
9879
 
9880
    @Override
9881
    public int hashCode() {
9882
      return 0;
9883
    }
9884
 
9885
    public int compareTo(getAdwordsAdGroupByAdGroupId_args other) {
9886
      if (!getClass().equals(other.getClass())) {
9887
        return getClass().getName().compareTo(other.getClass().getName());
9888
      }
9889
 
9890
      int lastComparison = 0;
9891
      getAdwordsAdGroupByAdGroupId_args typedOther = (getAdwordsAdGroupByAdGroupId_args)other;
9892
 
9893
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
9894
      if (lastComparison != 0) {
9895
        return lastComparison;
9896
      }
9897
      if (isSetAdgroupId()) {
9898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
9899
        if (lastComparison != 0) {
9900
          return lastComparison;
9901
        }
9902
      }
9903
      return 0;
9904
    }
9905
 
9906
    public _Fields fieldForId(int fieldId) {
9907
      return _Fields.findByThriftId(fieldId);
9908
    }
9909
 
9910
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9911
      org.apache.thrift.protocol.TField field;
9912
      iprot.readStructBegin();
9913
      while (true)
9914
      {
9915
        field = iprot.readFieldBegin();
9916
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9917
          break;
9918
        }
9919
        switch (field.id) {
9920
          case 1: // ADGROUP_ID
9921
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9922
              this.adgroupId = iprot.readI64();
9923
              setAdgroupIdIsSet(true);
9924
            } else { 
9925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9926
            }
9927
            break;
9928
          default:
9929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9930
        }
9931
        iprot.readFieldEnd();
9932
      }
9933
      iprot.readStructEnd();
9934
      validate();
9935
    }
9936
 
9937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9938
      validate();
9939
 
9940
      oprot.writeStructBegin(STRUCT_DESC);
9941
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
9942
      oprot.writeI64(this.adgroupId);
9943
      oprot.writeFieldEnd();
9944
      oprot.writeFieldStop();
9945
      oprot.writeStructEnd();
9946
    }
9947
 
9948
    @Override
9949
    public String toString() {
9950
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupByAdGroupId_args(");
9951
      boolean first = true;
9952
 
9953
      sb.append("adgroupId:");
9954
      sb.append(this.adgroupId);
9955
      first = false;
9956
      sb.append(")");
9957
      return sb.toString();
9958
    }
9959
 
9960
    public void validate() throws org.apache.thrift.TException {
9961
      // check for required fields
9962
    }
9963
 
9964
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9965
      try {
9966
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9967
      } catch (org.apache.thrift.TException te) {
9968
        throw new java.io.IOException(te);
9969
      }
9970
    }
9971
 
9972
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9973
      try {
9974
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9975
        __isset_bit_vector = new BitSet(1);
9976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9977
      } catch (org.apache.thrift.TException te) {
9978
        throw new java.io.IOException(te);
9979
      }
9980
    }
9981
 
9982
  }
9983
 
9984
  public static class getAdwordsAdGroupByAdGroupId_result implements org.apache.thrift.TBase<getAdwordsAdGroupByAdGroupId_result, getAdwordsAdGroupByAdGroupId_result._Fields>, java.io.Serializable, Cloneable   {
9985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupByAdGroupId_result");
9986
 
9987
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
9988
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9989
 
9990
    private AdwordsAdGroup success; // required
9991
    private GoogleAdwordsServiceException gasex; // required
9992
 
9993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9995
      SUCCESS((short)0, "success"),
9996
      GASEX((short)1, "gasex");
9997
 
9998
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9999
 
10000
      static {
10001
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10002
          byName.put(field.getFieldName(), field);
10003
        }
10004
      }
10005
 
10006
      /**
10007
       * Find the _Fields constant that matches fieldId, or null if its not found.
10008
       */
10009
      public static _Fields findByThriftId(int fieldId) {
10010
        switch(fieldId) {
10011
          case 0: // SUCCESS
10012
            return SUCCESS;
10013
          case 1: // GASEX
10014
            return GASEX;
10015
          default:
10016
            return null;
10017
        }
10018
      }
10019
 
10020
      /**
10021
       * Find the _Fields constant that matches fieldId, throwing an exception
10022
       * if it is not found.
10023
       */
10024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10025
        _Fields fields = findByThriftId(fieldId);
10026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10027
        return fields;
10028
      }
10029
 
10030
      /**
10031
       * Find the _Fields constant that matches name, or null if its not found.
10032
       */
10033
      public static _Fields findByName(String name) {
10034
        return byName.get(name);
10035
      }
10036
 
10037
      private final short _thriftId;
10038
      private final String _fieldName;
10039
 
10040
      _Fields(short thriftId, String fieldName) {
10041
        _thriftId = thriftId;
10042
        _fieldName = fieldName;
10043
      }
10044
 
10045
      public short getThriftFieldId() {
10046
        return _thriftId;
10047
      }
10048
 
10049
      public String getFieldName() {
10050
        return _fieldName;
10051
      }
10052
    }
10053
 
10054
    // isset id assignments
10055
 
10056
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10057
    static {
10058
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10059
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10060
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class)));
10061
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupByAdGroupId_result.class, metaDataMap);
10065
    }
10066
 
10067
    public getAdwordsAdGroupByAdGroupId_result() {
10068
    }
10069
 
10070
    public getAdwordsAdGroupByAdGroupId_result(
10071
      AdwordsAdGroup success,
10072
      GoogleAdwordsServiceException gasex)
10073
    {
10074
      this();
10075
      this.success = success;
10076
      this.gasex = gasex;
10077
    }
10078
 
10079
    /**
10080
     * Performs a deep copy on <i>other</i>.
10081
     */
10082
    public getAdwordsAdGroupByAdGroupId_result(getAdwordsAdGroupByAdGroupId_result other) {
10083
      if (other.isSetSuccess()) {
10084
        this.success = new AdwordsAdGroup(other.success);
10085
      }
10086
      if (other.isSetGasex()) {
10087
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
10088
      }
10089
    }
10090
 
10091
    public getAdwordsAdGroupByAdGroupId_result deepCopy() {
10092
      return new getAdwordsAdGroupByAdGroupId_result(this);
10093
    }
10094
 
10095
    @Override
10096
    public void clear() {
10097
      this.success = null;
10098
      this.gasex = null;
10099
    }
10100
 
10101
    public AdwordsAdGroup getSuccess() {
10102
      return this.success;
10103
    }
10104
 
10105
    public void setSuccess(AdwordsAdGroup success) {
10106
      this.success = success;
10107
    }
10108
 
10109
    public void unsetSuccess() {
10110
      this.success = null;
10111
    }
10112
 
10113
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10114
    public boolean isSetSuccess() {
10115
      return this.success != null;
10116
    }
10117
 
10118
    public void setSuccessIsSet(boolean value) {
10119
      if (!value) {
10120
        this.success = null;
10121
      }
10122
    }
10123
 
10124
    public GoogleAdwordsServiceException getGasex() {
10125
      return this.gasex;
10126
    }
10127
 
10128
    public void setGasex(GoogleAdwordsServiceException gasex) {
10129
      this.gasex = gasex;
10130
    }
10131
 
10132
    public void unsetGasex() {
10133
      this.gasex = null;
10134
    }
10135
 
10136
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
10137
    public boolean isSetGasex() {
10138
      return this.gasex != null;
10139
    }
10140
 
10141
    public void setGasexIsSet(boolean value) {
10142
      if (!value) {
10143
        this.gasex = null;
10144
      }
10145
    }
10146
 
10147
    public void setFieldValue(_Fields field, Object value) {
10148
      switch (field) {
10149
      case SUCCESS:
10150
        if (value == null) {
10151
          unsetSuccess();
10152
        } else {
10153
          setSuccess((AdwordsAdGroup)value);
10154
        }
10155
        break;
10156
 
10157
      case GASEX:
10158
        if (value == null) {
10159
          unsetGasex();
10160
        } else {
10161
          setGasex((GoogleAdwordsServiceException)value);
10162
        }
10163
        break;
10164
 
10165
      }
10166
    }
10167
 
10168
    public Object getFieldValue(_Fields field) {
10169
      switch (field) {
10170
      case SUCCESS:
10171
        return getSuccess();
10172
 
10173
      case GASEX:
10174
        return getGasex();
10175
 
10176
      }
10177
      throw new IllegalStateException();
10178
    }
10179
 
10180
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10181
    public boolean isSet(_Fields field) {
10182
      if (field == null) {
10183
        throw new IllegalArgumentException();
10184
      }
10185
 
10186
      switch (field) {
10187
      case SUCCESS:
10188
        return isSetSuccess();
10189
      case GASEX:
10190
        return isSetGasex();
10191
      }
10192
      throw new IllegalStateException();
10193
    }
10194
 
10195
    @Override
10196
    public boolean equals(Object that) {
10197
      if (that == null)
10198
        return false;
10199
      if (that instanceof getAdwordsAdGroupByAdGroupId_result)
10200
        return this.equals((getAdwordsAdGroupByAdGroupId_result)that);
10201
      return false;
10202
    }
10203
 
10204
    public boolean equals(getAdwordsAdGroupByAdGroupId_result that) {
10205
      if (that == null)
10206
        return false;
10207
 
10208
      boolean this_present_success = true && this.isSetSuccess();
10209
      boolean that_present_success = true && that.isSetSuccess();
10210
      if (this_present_success || that_present_success) {
10211
        if (!(this_present_success && that_present_success))
10212
          return false;
10213
        if (!this.success.equals(that.success))
10214
          return false;
10215
      }
10216
 
10217
      boolean this_present_gasex = true && this.isSetGasex();
10218
      boolean that_present_gasex = true && that.isSetGasex();
10219
      if (this_present_gasex || that_present_gasex) {
10220
        if (!(this_present_gasex && that_present_gasex))
10221
          return false;
10222
        if (!this.gasex.equals(that.gasex))
10223
          return false;
10224
      }
10225
 
10226
      return true;
10227
    }
10228
 
10229
    @Override
10230
    public int hashCode() {
10231
      return 0;
10232
    }
10233
 
10234
    public int compareTo(getAdwordsAdGroupByAdGroupId_result other) {
10235
      if (!getClass().equals(other.getClass())) {
10236
        return getClass().getName().compareTo(other.getClass().getName());
10237
      }
10238
 
10239
      int lastComparison = 0;
10240
      getAdwordsAdGroupByAdGroupId_result typedOther = (getAdwordsAdGroupByAdGroupId_result)other;
10241
 
10242
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10243
      if (lastComparison != 0) {
10244
        return lastComparison;
10245
      }
10246
      if (isSetSuccess()) {
10247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10248
        if (lastComparison != 0) {
10249
          return lastComparison;
10250
        }
10251
      }
10252
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
10253
      if (lastComparison != 0) {
10254
        return lastComparison;
10255
      }
10256
      if (isSetGasex()) {
10257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
10258
        if (lastComparison != 0) {
10259
          return lastComparison;
10260
        }
10261
      }
10262
      return 0;
10263
    }
10264
 
10265
    public _Fields fieldForId(int fieldId) {
10266
      return _Fields.findByThriftId(fieldId);
10267
    }
10268
 
10269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10270
      org.apache.thrift.protocol.TField field;
10271
      iprot.readStructBegin();
10272
      while (true)
10273
      {
10274
        field = iprot.readFieldBegin();
10275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10276
          break;
10277
        }
10278
        switch (field.id) {
10279
          case 0: // SUCCESS
10280
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10281
              this.success = new AdwordsAdGroup();
10282
              this.success.read(iprot);
10283
            } else { 
10284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10285
            }
10286
            break;
10287
          case 1: // GASEX
10288
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10289
              this.gasex = new GoogleAdwordsServiceException();
10290
              this.gasex.read(iprot);
10291
            } else { 
10292
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10293
            }
10294
            break;
10295
          default:
10296
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10297
        }
10298
        iprot.readFieldEnd();
10299
      }
10300
      iprot.readStructEnd();
10301
      validate();
10302
    }
10303
 
10304
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10305
      oprot.writeStructBegin(STRUCT_DESC);
10306
 
10307
      if (this.isSetSuccess()) {
10308
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10309
        this.success.write(oprot);
10310
        oprot.writeFieldEnd();
10311
      } else if (this.isSetGasex()) {
10312
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
10313
        this.gasex.write(oprot);
10314
        oprot.writeFieldEnd();
10315
      }
10316
      oprot.writeFieldStop();
10317
      oprot.writeStructEnd();
10318
    }
10319
 
10320
    @Override
10321
    public String toString() {
10322
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupByAdGroupId_result(");
10323
      boolean first = true;
10324
 
10325
      sb.append("success:");
10326
      if (this.success == null) {
10327
        sb.append("null");
10328
      } else {
10329
        sb.append(this.success);
10330
      }
10331
      first = false;
10332
      if (!first) sb.append(", ");
10333
      sb.append("gasex:");
10334
      if (this.gasex == null) {
10335
        sb.append("null");
10336
      } else {
10337
        sb.append(this.gasex);
10338
      }
10339
      first = false;
10340
      sb.append(")");
10341
      return sb.toString();
10342
    }
10343
 
10344
    public void validate() throws org.apache.thrift.TException {
10345
      // check for required fields
10346
    }
10347
 
10348
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10349
      try {
10350
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10351
      } catch (org.apache.thrift.TException te) {
10352
        throw new java.io.IOException(te);
10353
      }
10354
    }
10355
 
10356
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10357
      try {
10358
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10359
      } catch (org.apache.thrift.TException te) {
10360
        throw new java.io.IOException(te);
10361
      }
10362
    }
10363
 
10364
  }
10365
 
10366
  public static class getAdwordsAdgroupAdByAdId_args implements org.apache.thrift.TBase<getAdwordsAdgroupAdByAdId_args, getAdwordsAdgroupAdByAdId_args._Fields>, java.io.Serializable, Cloneable   {
10367
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdgroupAdByAdId_args");
10368
 
10369
    private static final org.apache.thrift.protocol.TField ADGROUPAD_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupadId", org.apache.thrift.protocol.TType.I64, (short)1);
10370
 
10371
    private long adgroupadId; // required
10372
 
10373
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10374
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10375
      ADGROUPAD_ID((short)1, "adgroupadId");
10376
 
10377
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10378
 
10379
      static {
10380
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10381
          byName.put(field.getFieldName(), field);
10382
        }
10383
      }
10384
 
10385
      /**
10386
       * Find the _Fields constant that matches fieldId, or null if its not found.
10387
       */
10388
      public static _Fields findByThriftId(int fieldId) {
10389
        switch(fieldId) {
10390
          case 1: // ADGROUPAD_ID
10391
            return ADGROUPAD_ID;
10392
          default:
10393
            return null;
10394
        }
10395
      }
10396
 
10397
      /**
10398
       * Find the _Fields constant that matches fieldId, throwing an exception
10399
       * if it is not found.
10400
       */
10401
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10402
        _Fields fields = findByThriftId(fieldId);
10403
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10404
        return fields;
10405
      }
10406
 
10407
      /**
10408
       * Find the _Fields constant that matches name, or null if its not found.
10409
       */
10410
      public static _Fields findByName(String name) {
10411
        return byName.get(name);
10412
      }
10413
 
10414
      private final short _thriftId;
10415
      private final String _fieldName;
10416
 
10417
      _Fields(short thriftId, String fieldName) {
10418
        _thriftId = thriftId;
10419
        _fieldName = fieldName;
10420
      }
10421
 
10422
      public short getThriftFieldId() {
10423
        return _thriftId;
10424
      }
10425
 
10426
      public String getFieldName() {
10427
        return _fieldName;
10428
      }
10429
    }
10430
 
10431
    // isset id assignments
10432
    private static final int __ADGROUPADID_ISSET_ID = 0;
10433
    private BitSet __isset_bit_vector = new BitSet(1);
10434
 
10435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10436
    static {
10437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10438
      tmpMap.put(_Fields.ADGROUPAD_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupadId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10439
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10440
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10441
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdgroupAdByAdId_args.class, metaDataMap);
10442
    }
10443
 
10444
    public getAdwordsAdgroupAdByAdId_args() {
10445
    }
10446
 
10447
    public getAdwordsAdgroupAdByAdId_args(
10448
      long adgroupadId)
10449
    {
10450
      this();
10451
      this.adgroupadId = adgroupadId;
10452
      setAdgroupadIdIsSet(true);
10453
    }
10454
 
10455
    /**
10456
     * Performs a deep copy on <i>other</i>.
10457
     */
10458
    public getAdwordsAdgroupAdByAdId_args(getAdwordsAdgroupAdByAdId_args other) {
10459
      __isset_bit_vector.clear();
10460
      __isset_bit_vector.or(other.__isset_bit_vector);
10461
      this.adgroupadId = other.adgroupadId;
10462
    }
10463
 
10464
    public getAdwordsAdgroupAdByAdId_args deepCopy() {
10465
      return new getAdwordsAdgroupAdByAdId_args(this);
10466
    }
10467
 
10468
    @Override
10469
    public void clear() {
10470
      setAdgroupadIdIsSet(false);
10471
      this.adgroupadId = 0;
10472
    }
10473
 
10474
    public long getAdgroupadId() {
10475
      return this.adgroupadId;
10476
    }
10477
 
10478
    public void setAdgroupadId(long adgroupadId) {
10479
      this.adgroupadId = adgroupadId;
10480
      setAdgroupadIdIsSet(true);
10481
    }
10482
 
10483
    public void unsetAdgroupadId() {
10484
      __isset_bit_vector.clear(__ADGROUPADID_ISSET_ID);
10485
    }
10486
 
10487
    /** Returns true if field adgroupadId is set (has been assigned a value) and false otherwise */
10488
    public boolean isSetAdgroupadId() {
10489
      return __isset_bit_vector.get(__ADGROUPADID_ISSET_ID);
10490
    }
10491
 
10492
    public void setAdgroupadIdIsSet(boolean value) {
10493
      __isset_bit_vector.set(__ADGROUPADID_ISSET_ID, value);
10494
    }
10495
 
10496
    public void setFieldValue(_Fields field, Object value) {
10497
      switch (field) {
10498
      case ADGROUPAD_ID:
10499
        if (value == null) {
10500
          unsetAdgroupadId();
10501
        } else {
10502
          setAdgroupadId((Long)value);
10503
        }
10504
        break;
10505
 
10506
      }
10507
    }
10508
 
10509
    public Object getFieldValue(_Fields field) {
10510
      switch (field) {
10511
      case ADGROUPAD_ID:
10512
        return Long.valueOf(getAdgroupadId());
10513
 
10514
      }
10515
      throw new IllegalStateException();
10516
    }
10517
 
10518
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10519
    public boolean isSet(_Fields field) {
10520
      if (field == null) {
10521
        throw new IllegalArgumentException();
10522
      }
10523
 
10524
      switch (field) {
10525
      case ADGROUPAD_ID:
10526
        return isSetAdgroupadId();
10527
      }
10528
      throw new IllegalStateException();
10529
    }
10530
 
10531
    @Override
10532
    public boolean equals(Object that) {
10533
      if (that == null)
10534
        return false;
10535
      if (that instanceof getAdwordsAdgroupAdByAdId_args)
10536
        return this.equals((getAdwordsAdgroupAdByAdId_args)that);
10537
      return false;
10538
    }
10539
 
10540
    public boolean equals(getAdwordsAdgroupAdByAdId_args that) {
10541
      if (that == null)
10542
        return false;
10543
 
10544
      boolean this_present_adgroupadId = true;
10545
      boolean that_present_adgroupadId = true;
10546
      if (this_present_adgroupadId || that_present_adgroupadId) {
10547
        if (!(this_present_adgroupadId && that_present_adgroupadId))
10548
          return false;
10549
        if (this.adgroupadId != that.adgroupadId)
10550
          return false;
10551
      }
10552
 
10553
      return true;
10554
    }
10555
 
10556
    @Override
10557
    public int hashCode() {
10558
      return 0;
10559
    }
10560
 
10561
    public int compareTo(getAdwordsAdgroupAdByAdId_args other) {
10562
      if (!getClass().equals(other.getClass())) {
10563
        return getClass().getName().compareTo(other.getClass().getName());
10564
      }
10565
 
10566
      int lastComparison = 0;
10567
      getAdwordsAdgroupAdByAdId_args typedOther = (getAdwordsAdgroupAdByAdId_args)other;
10568
 
10569
      lastComparison = Boolean.valueOf(isSetAdgroupadId()).compareTo(typedOther.isSetAdgroupadId());
10570
      if (lastComparison != 0) {
10571
        return lastComparison;
10572
      }
10573
      if (isSetAdgroupadId()) {
10574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupadId, typedOther.adgroupadId);
10575
        if (lastComparison != 0) {
10576
          return lastComparison;
10577
        }
10578
      }
10579
      return 0;
10580
    }
10581
 
10582
    public _Fields fieldForId(int fieldId) {
10583
      return _Fields.findByThriftId(fieldId);
10584
    }
10585
 
10586
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10587
      org.apache.thrift.protocol.TField field;
10588
      iprot.readStructBegin();
10589
      while (true)
10590
      {
10591
        field = iprot.readFieldBegin();
10592
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10593
          break;
10594
        }
10595
        switch (field.id) {
10596
          case 1: // ADGROUPAD_ID
10597
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10598
              this.adgroupadId = iprot.readI64();
10599
              setAdgroupadIdIsSet(true);
10600
            } else { 
10601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10602
            }
10603
            break;
10604
          default:
10605
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10606
        }
10607
        iprot.readFieldEnd();
10608
      }
10609
      iprot.readStructEnd();
10610
      validate();
10611
    }
10612
 
10613
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10614
      validate();
10615
 
10616
      oprot.writeStructBegin(STRUCT_DESC);
10617
      oprot.writeFieldBegin(ADGROUPAD_ID_FIELD_DESC);
10618
      oprot.writeI64(this.adgroupadId);
10619
      oprot.writeFieldEnd();
10620
      oprot.writeFieldStop();
10621
      oprot.writeStructEnd();
10622
    }
10623
 
10624
    @Override
10625
    public String toString() {
10626
      StringBuilder sb = new StringBuilder("getAdwordsAdgroupAdByAdId_args(");
10627
      boolean first = true;
10628
 
10629
      sb.append("adgroupadId:");
10630
      sb.append(this.adgroupadId);
10631
      first = false;
10632
      sb.append(")");
10633
      return sb.toString();
10634
    }
10635
 
10636
    public void validate() throws org.apache.thrift.TException {
10637
      // check for required fields
10638
    }
10639
 
10640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10641
      try {
10642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10643
      } catch (org.apache.thrift.TException te) {
10644
        throw new java.io.IOException(te);
10645
      }
10646
    }
10647
 
10648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10649
      try {
10650
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10651
        __isset_bit_vector = new BitSet(1);
10652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10653
      } catch (org.apache.thrift.TException te) {
10654
        throw new java.io.IOException(te);
10655
      }
10656
    }
10657
 
10658
  }
10659
 
10660
  public static class getAdwordsAdgroupAdByAdId_result implements org.apache.thrift.TBase<getAdwordsAdgroupAdByAdId_result, getAdwordsAdgroupAdByAdId_result._Fields>, java.io.Serializable, Cloneable   {
10661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdgroupAdByAdId_result");
10662
 
10663
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
10664
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10665
 
10666
    private AdwordsAdGroupAd success; // required
10667
    private GoogleAdwordsServiceException gasex; // required
10668
 
10669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10671
      SUCCESS((short)0, "success"),
10672
      GASEX((short)1, "gasex");
10673
 
10674
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10675
 
10676
      static {
10677
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10678
          byName.put(field.getFieldName(), field);
10679
        }
10680
      }
10681
 
10682
      /**
10683
       * Find the _Fields constant that matches fieldId, or null if its not found.
10684
       */
10685
      public static _Fields findByThriftId(int fieldId) {
10686
        switch(fieldId) {
10687
          case 0: // SUCCESS
10688
            return SUCCESS;
10689
          case 1: // GASEX
10690
            return GASEX;
10691
          default:
10692
            return null;
10693
        }
10694
      }
10695
 
10696
      /**
10697
       * Find the _Fields constant that matches fieldId, throwing an exception
10698
       * if it is not found.
10699
       */
10700
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10701
        _Fields fields = findByThriftId(fieldId);
10702
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10703
        return fields;
10704
      }
10705
 
10706
      /**
10707
       * Find the _Fields constant that matches name, or null if its not found.
10708
       */
10709
      public static _Fields findByName(String name) {
10710
        return byName.get(name);
10711
      }
10712
 
10713
      private final short _thriftId;
10714
      private final String _fieldName;
10715
 
10716
      _Fields(short thriftId, String fieldName) {
10717
        _thriftId = thriftId;
10718
        _fieldName = fieldName;
10719
      }
10720
 
10721
      public short getThriftFieldId() {
10722
        return _thriftId;
10723
      }
10724
 
10725
      public String getFieldName() {
10726
        return _fieldName;
10727
      }
10728
    }
10729
 
10730
    // isset id assignments
10731
 
10732
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10733
    static {
10734
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10735
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10736
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class)));
10737
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdgroupAdByAdId_result.class, metaDataMap);
10741
    }
10742
 
10743
    public getAdwordsAdgroupAdByAdId_result() {
10744
    }
10745
 
10746
    public getAdwordsAdgroupAdByAdId_result(
10747
      AdwordsAdGroupAd success,
10748
      GoogleAdwordsServiceException gasex)
10749
    {
10750
      this();
10751
      this.success = success;
10752
      this.gasex = gasex;
10753
    }
10754
 
10755
    /**
10756
     * Performs a deep copy on <i>other</i>.
10757
     */
10758
    public getAdwordsAdgroupAdByAdId_result(getAdwordsAdgroupAdByAdId_result other) {
10759
      if (other.isSetSuccess()) {
10760
        this.success = new AdwordsAdGroupAd(other.success);
10761
      }
10762
      if (other.isSetGasex()) {
10763
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
10764
      }
10765
    }
10766
 
10767
    public getAdwordsAdgroupAdByAdId_result deepCopy() {
10768
      return new getAdwordsAdgroupAdByAdId_result(this);
10769
    }
10770
 
10771
    @Override
10772
    public void clear() {
10773
      this.success = null;
10774
      this.gasex = null;
10775
    }
10776
 
10777
    public AdwordsAdGroupAd getSuccess() {
10778
      return this.success;
10779
    }
10780
 
10781
    public void setSuccess(AdwordsAdGroupAd success) {
10782
      this.success = success;
10783
    }
10784
 
10785
    public void unsetSuccess() {
10786
      this.success = null;
10787
    }
10788
 
10789
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10790
    public boolean isSetSuccess() {
10791
      return this.success != null;
10792
    }
10793
 
10794
    public void setSuccessIsSet(boolean value) {
10795
      if (!value) {
10796
        this.success = null;
10797
      }
10798
    }
10799
 
10800
    public GoogleAdwordsServiceException getGasex() {
10801
      return this.gasex;
10802
    }
10803
 
10804
    public void setGasex(GoogleAdwordsServiceException gasex) {
10805
      this.gasex = gasex;
10806
    }
10807
 
10808
    public void unsetGasex() {
10809
      this.gasex = null;
10810
    }
10811
 
10812
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
10813
    public boolean isSetGasex() {
10814
      return this.gasex != null;
10815
    }
10816
 
10817
    public void setGasexIsSet(boolean value) {
10818
      if (!value) {
10819
        this.gasex = null;
10820
      }
10821
    }
10822
 
10823
    public void setFieldValue(_Fields field, Object value) {
10824
      switch (field) {
10825
      case SUCCESS:
10826
        if (value == null) {
10827
          unsetSuccess();
10828
        } else {
10829
          setSuccess((AdwordsAdGroupAd)value);
10830
        }
10831
        break;
10832
 
10833
      case GASEX:
10834
        if (value == null) {
10835
          unsetGasex();
10836
        } else {
10837
          setGasex((GoogleAdwordsServiceException)value);
10838
        }
10839
        break;
10840
 
10841
      }
10842
    }
10843
 
10844
    public Object getFieldValue(_Fields field) {
10845
      switch (field) {
10846
      case SUCCESS:
10847
        return getSuccess();
10848
 
10849
      case GASEX:
10850
        return getGasex();
10851
 
10852
      }
10853
      throw new IllegalStateException();
10854
    }
10855
 
10856
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10857
    public boolean isSet(_Fields field) {
10858
      if (field == null) {
10859
        throw new IllegalArgumentException();
10860
      }
10861
 
10862
      switch (field) {
10863
      case SUCCESS:
10864
        return isSetSuccess();
10865
      case GASEX:
10866
        return isSetGasex();
10867
      }
10868
      throw new IllegalStateException();
10869
    }
10870
 
10871
    @Override
10872
    public boolean equals(Object that) {
10873
      if (that == null)
10874
        return false;
10875
      if (that instanceof getAdwordsAdgroupAdByAdId_result)
10876
        return this.equals((getAdwordsAdgroupAdByAdId_result)that);
10877
      return false;
10878
    }
10879
 
10880
    public boolean equals(getAdwordsAdgroupAdByAdId_result that) {
10881
      if (that == null)
10882
        return false;
10883
 
10884
      boolean this_present_success = true && this.isSetSuccess();
10885
      boolean that_present_success = true && that.isSetSuccess();
10886
      if (this_present_success || that_present_success) {
10887
        if (!(this_present_success && that_present_success))
10888
          return false;
10889
        if (!this.success.equals(that.success))
10890
          return false;
10891
      }
10892
 
10893
      boolean this_present_gasex = true && this.isSetGasex();
10894
      boolean that_present_gasex = true && that.isSetGasex();
10895
      if (this_present_gasex || that_present_gasex) {
10896
        if (!(this_present_gasex && that_present_gasex))
10897
          return false;
10898
        if (!this.gasex.equals(that.gasex))
10899
          return false;
10900
      }
10901
 
10902
      return true;
10903
    }
10904
 
10905
    @Override
10906
    public int hashCode() {
10907
      return 0;
10908
    }
10909
 
10910
    public int compareTo(getAdwordsAdgroupAdByAdId_result other) {
10911
      if (!getClass().equals(other.getClass())) {
10912
        return getClass().getName().compareTo(other.getClass().getName());
10913
      }
10914
 
10915
      int lastComparison = 0;
10916
      getAdwordsAdgroupAdByAdId_result typedOther = (getAdwordsAdgroupAdByAdId_result)other;
10917
 
10918
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10919
      if (lastComparison != 0) {
10920
        return lastComparison;
10921
      }
10922
      if (isSetSuccess()) {
10923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10924
        if (lastComparison != 0) {
10925
          return lastComparison;
10926
        }
10927
      }
10928
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
10929
      if (lastComparison != 0) {
10930
        return lastComparison;
10931
      }
10932
      if (isSetGasex()) {
10933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
10934
        if (lastComparison != 0) {
10935
          return lastComparison;
10936
        }
10937
      }
10938
      return 0;
10939
    }
10940
 
10941
    public _Fields fieldForId(int fieldId) {
10942
      return _Fields.findByThriftId(fieldId);
10943
    }
10944
 
10945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10946
      org.apache.thrift.protocol.TField field;
10947
      iprot.readStructBegin();
10948
      while (true)
10949
      {
10950
        field = iprot.readFieldBegin();
10951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10952
          break;
10953
        }
10954
        switch (field.id) {
10955
          case 0: // SUCCESS
10956
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10957
              this.success = new AdwordsAdGroupAd();
10958
              this.success.read(iprot);
10959
            } else { 
10960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10961
            }
10962
            break;
10963
          case 1: // GASEX
10964
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10965
              this.gasex = new GoogleAdwordsServiceException();
10966
              this.gasex.read(iprot);
10967
            } else { 
10968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10969
            }
10970
            break;
10971
          default:
10972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10973
        }
10974
        iprot.readFieldEnd();
10975
      }
10976
      iprot.readStructEnd();
10977
      validate();
10978
    }
10979
 
10980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10981
      oprot.writeStructBegin(STRUCT_DESC);
10982
 
10983
      if (this.isSetSuccess()) {
10984
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10985
        this.success.write(oprot);
10986
        oprot.writeFieldEnd();
10987
      } else if (this.isSetGasex()) {
10988
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
10989
        this.gasex.write(oprot);
10990
        oprot.writeFieldEnd();
10991
      }
10992
      oprot.writeFieldStop();
10993
      oprot.writeStructEnd();
10994
    }
10995
 
10996
    @Override
10997
    public String toString() {
10998
      StringBuilder sb = new StringBuilder("getAdwordsAdgroupAdByAdId_result(");
10999
      boolean first = true;
11000
 
11001
      sb.append("success:");
11002
      if (this.success == null) {
11003
        sb.append("null");
11004
      } else {
11005
        sb.append(this.success);
11006
      }
11007
      first = false;
11008
      if (!first) sb.append(", ");
11009
      sb.append("gasex:");
11010
      if (this.gasex == null) {
11011
        sb.append("null");
11012
      } else {
11013
        sb.append(this.gasex);
11014
      }
11015
      first = false;
11016
      sb.append(")");
11017
      return sb.toString();
11018
    }
11019
 
11020
    public void validate() throws org.apache.thrift.TException {
11021
      // check for required fields
11022
    }
11023
 
11024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11025
      try {
11026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11027
      } catch (org.apache.thrift.TException te) {
11028
        throw new java.io.IOException(te);
11029
      }
11030
    }
11031
 
11032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11033
      try {
11034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11035
      } catch (org.apache.thrift.TException te) {
11036
        throw new java.io.IOException(te);
11037
      }
11038
    }
11039
 
11040
  }
11041
 
9233 manish.sha 11042
  public static class getAdwordsAdKeywordByCriterionIdAndAdGroupId_args implements org.apache.thrift.TBase<getAdwordsAdKeywordByCriterionIdAndAdGroupId_args, getAdwordsAdKeywordByCriterionIdAndAdGroupId_args._Fields>, java.io.Serializable, Cloneable   {
11043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordByCriterionIdAndAdGroupId_args");
9048 manish.sha 11044
 
11045
    private static final org.apache.thrift.protocol.TField CRITERION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("criterionId", org.apache.thrift.protocol.TType.I64, (short)1);
9233 manish.sha 11046
    private static final org.apache.thrift.protocol.TField ADGROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupId", org.apache.thrift.protocol.TType.I64, (short)2);
9048 manish.sha 11047
 
11048
    private long criterionId; // required
9233 manish.sha 11049
    private long adgroupId; // required
9048 manish.sha 11050
 
11051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9233 manish.sha 11053
      CRITERION_ID((short)1, "criterionId"),
11054
      ADGROUP_ID((short)2, "adgroupId");
9048 manish.sha 11055
 
11056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11057
 
11058
      static {
11059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11060
          byName.put(field.getFieldName(), field);
11061
        }
11062
      }
11063
 
11064
      /**
11065
       * Find the _Fields constant that matches fieldId, or null if its not found.
11066
       */
11067
      public static _Fields findByThriftId(int fieldId) {
11068
        switch(fieldId) {
11069
          case 1: // CRITERION_ID
11070
            return CRITERION_ID;
9233 manish.sha 11071
          case 2: // ADGROUP_ID
11072
            return ADGROUP_ID;
9048 manish.sha 11073
          default:
11074
            return null;
11075
        }
11076
      }
11077
 
11078
      /**
11079
       * Find the _Fields constant that matches fieldId, throwing an exception
11080
       * if it is not found.
11081
       */
11082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11083
        _Fields fields = findByThriftId(fieldId);
11084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11085
        return fields;
11086
      }
11087
 
11088
      /**
11089
       * Find the _Fields constant that matches name, or null if its not found.
11090
       */
11091
      public static _Fields findByName(String name) {
11092
        return byName.get(name);
11093
      }
11094
 
11095
      private final short _thriftId;
11096
      private final String _fieldName;
11097
 
11098
      _Fields(short thriftId, String fieldName) {
11099
        _thriftId = thriftId;
11100
        _fieldName = fieldName;
11101
      }
11102
 
11103
      public short getThriftFieldId() {
11104
        return _thriftId;
11105
      }
11106
 
11107
      public String getFieldName() {
11108
        return _fieldName;
11109
      }
11110
    }
11111
 
11112
    // isset id assignments
11113
    private static final int __CRITERIONID_ISSET_ID = 0;
9233 manish.sha 11114
    private static final int __ADGROUPID_ISSET_ID = 1;
11115
    private BitSet __isset_bit_vector = new BitSet(2);
9048 manish.sha 11116
 
11117
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11118
    static {
11119
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11120
      tmpMap.put(_Fields.CRITERION_ID, new org.apache.thrift.meta_data.FieldMetaData("criterionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11121
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9233 manish.sha 11122
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11123
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9048 manish.sha 11124
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9233 manish.sha 11125
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordByCriterionIdAndAdGroupId_args.class, metaDataMap);
9048 manish.sha 11126
    }
11127
 
9233 manish.sha 11128
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_args() {
9048 manish.sha 11129
    }
11130
 
9233 manish.sha 11131
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_args(
11132
      long criterionId,
11133
      long adgroupId)
9048 manish.sha 11134
    {
11135
      this();
11136
      this.criterionId = criterionId;
11137
      setCriterionIdIsSet(true);
9233 manish.sha 11138
      this.adgroupId = adgroupId;
11139
      setAdgroupIdIsSet(true);
9048 manish.sha 11140
    }
11141
 
11142
    /**
11143
     * Performs a deep copy on <i>other</i>.
11144
     */
9233 manish.sha 11145
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_args(getAdwordsAdKeywordByCriterionIdAndAdGroupId_args other) {
9048 manish.sha 11146
      __isset_bit_vector.clear();
11147
      __isset_bit_vector.or(other.__isset_bit_vector);
11148
      this.criterionId = other.criterionId;
9233 manish.sha 11149
      this.adgroupId = other.adgroupId;
9048 manish.sha 11150
    }
11151
 
9233 manish.sha 11152
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_args deepCopy() {
11153
      return new getAdwordsAdKeywordByCriterionIdAndAdGroupId_args(this);
9048 manish.sha 11154
    }
11155
 
11156
    @Override
11157
    public void clear() {
11158
      setCriterionIdIsSet(false);
11159
      this.criterionId = 0;
9233 manish.sha 11160
      setAdgroupIdIsSet(false);
11161
      this.adgroupId = 0;
9048 manish.sha 11162
    }
11163
 
11164
    public long getCriterionId() {
11165
      return this.criterionId;
11166
    }
11167
 
11168
    public void setCriterionId(long criterionId) {
11169
      this.criterionId = criterionId;
11170
      setCriterionIdIsSet(true);
11171
    }
11172
 
11173
    public void unsetCriterionId() {
11174
      __isset_bit_vector.clear(__CRITERIONID_ISSET_ID);
11175
    }
11176
 
11177
    /** Returns true if field criterionId is set (has been assigned a value) and false otherwise */
11178
    public boolean isSetCriterionId() {
11179
      return __isset_bit_vector.get(__CRITERIONID_ISSET_ID);
11180
    }
11181
 
11182
    public void setCriterionIdIsSet(boolean value) {
11183
      __isset_bit_vector.set(__CRITERIONID_ISSET_ID, value);
11184
    }
11185
 
9233 manish.sha 11186
    public long getAdgroupId() {
11187
      return this.adgroupId;
11188
    }
11189
 
11190
    public void setAdgroupId(long adgroupId) {
11191
      this.adgroupId = adgroupId;
11192
      setAdgroupIdIsSet(true);
11193
    }
11194
 
11195
    public void unsetAdgroupId() {
11196
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
11197
    }
11198
 
11199
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
11200
    public boolean isSetAdgroupId() {
11201
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
11202
    }
11203
 
11204
    public void setAdgroupIdIsSet(boolean value) {
11205
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
11206
    }
11207
 
9048 manish.sha 11208
    public void setFieldValue(_Fields field, Object value) {
11209
      switch (field) {
11210
      case CRITERION_ID:
11211
        if (value == null) {
11212
          unsetCriterionId();
11213
        } else {
11214
          setCriterionId((Long)value);
11215
        }
11216
        break;
11217
 
9233 manish.sha 11218
      case ADGROUP_ID:
11219
        if (value == null) {
11220
          unsetAdgroupId();
11221
        } else {
11222
          setAdgroupId((Long)value);
11223
        }
11224
        break;
11225
 
9048 manish.sha 11226
      }
11227
    }
11228
 
11229
    public Object getFieldValue(_Fields field) {
11230
      switch (field) {
11231
      case CRITERION_ID:
11232
        return Long.valueOf(getCriterionId());
11233
 
9233 manish.sha 11234
      case ADGROUP_ID:
11235
        return Long.valueOf(getAdgroupId());
11236
 
9048 manish.sha 11237
      }
11238
      throw new IllegalStateException();
11239
    }
11240
 
11241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11242
    public boolean isSet(_Fields field) {
11243
      if (field == null) {
11244
        throw new IllegalArgumentException();
11245
      }
11246
 
11247
      switch (field) {
11248
      case CRITERION_ID:
11249
        return isSetCriterionId();
9233 manish.sha 11250
      case ADGROUP_ID:
11251
        return isSetAdgroupId();
9048 manish.sha 11252
      }
11253
      throw new IllegalStateException();
11254
    }
11255
 
11256
    @Override
11257
    public boolean equals(Object that) {
11258
      if (that == null)
11259
        return false;
9233 manish.sha 11260
      if (that instanceof getAdwordsAdKeywordByCriterionIdAndAdGroupId_args)
11261
        return this.equals((getAdwordsAdKeywordByCriterionIdAndAdGroupId_args)that);
9048 manish.sha 11262
      return false;
11263
    }
11264
 
9233 manish.sha 11265
    public boolean equals(getAdwordsAdKeywordByCriterionIdAndAdGroupId_args that) {
9048 manish.sha 11266
      if (that == null)
11267
        return false;
11268
 
11269
      boolean this_present_criterionId = true;
11270
      boolean that_present_criterionId = true;
11271
      if (this_present_criterionId || that_present_criterionId) {
11272
        if (!(this_present_criterionId && that_present_criterionId))
11273
          return false;
11274
        if (this.criterionId != that.criterionId)
11275
          return false;
11276
      }
11277
 
9233 manish.sha 11278
      boolean this_present_adgroupId = true;
11279
      boolean that_present_adgroupId = true;
11280
      if (this_present_adgroupId || that_present_adgroupId) {
11281
        if (!(this_present_adgroupId && that_present_adgroupId))
11282
          return false;
11283
        if (this.adgroupId != that.adgroupId)
11284
          return false;
11285
      }
11286
 
9048 manish.sha 11287
      return true;
11288
    }
11289
 
11290
    @Override
11291
    public int hashCode() {
11292
      return 0;
11293
    }
11294
 
9233 manish.sha 11295
    public int compareTo(getAdwordsAdKeywordByCriterionIdAndAdGroupId_args other) {
9048 manish.sha 11296
      if (!getClass().equals(other.getClass())) {
11297
        return getClass().getName().compareTo(other.getClass().getName());
11298
      }
11299
 
11300
      int lastComparison = 0;
9233 manish.sha 11301
      getAdwordsAdKeywordByCriterionIdAndAdGroupId_args typedOther = (getAdwordsAdKeywordByCriterionIdAndAdGroupId_args)other;
9048 manish.sha 11302
 
11303
      lastComparison = Boolean.valueOf(isSetCriterionId()).compareTo(typedOther.isSetCriterionId());
11304
      if (lastComparison != 0) {
11305
        return lastComparison;
11306
      }
11307
      if (isSetCriterionId()) {
11308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criterionId, typedOther.criterionId);
11309
        if (lastComparison != 0) {
11310
          return lastComparison;
11311
        }
11312
      }
9233 manish.sha 11313
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
11314
      if (lastComparison != 0) {
11315
        return lastComparison;
11316
      }
11317
      if (isSetAdgroupId()) {
11318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
11319
        if (lastComparison != 0) {
11320
          return lastComparison;
11321
        }
11322
      }
9048 manish.sha 11323
      return 0;
11324
    }
11325
 
11326
    public _Fields fieldForId(int fieldId) {
11327
      return _Fields.findByThriftId(fieldId);
11328
    }
11329
 
11330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11331
      org.apache.thrift.protocol.TField field;
11332
      iprot.readStructBegin();
11333
      while (true)
11334
      {
11335
        field = iprot.readFieldBegin();
11336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11337
          break;
11338
        }
11339
        switch (field.id) {
11340
          case 1: // CRITERION_ID
11341
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11342
              this.criterionId = iprot.readI64();
11343
              setCriterionIdIsSet(true);
11344
            } else { 
11345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11346
            }
11347
            break;
9233 manish.sha 11348
          case 2: // ADGROUP_ID
11349
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11350
              this.adgroupId = iprot.readI64();
11351
              setAdgroupIdIsSet(true);
11352
            } else { 
11353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11354
            }
11355
            break;
9048 manish.sha 11356
          default:
11357
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11358
        }
11359
        iprot.readFieldEnd();
11360
      }
11361
      iprot.readStructEnd();
11362
      validate();
11363
    }
11364
 
11365
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11366
      validate();
11367
 
11368
      oprot.writeStructBegin(STRUCT_DESC);
11369
      oprot.writeFieldBegin(CRITERION_ID_FIELD_DESC);
11370
      oprot.writeI64(this.criterionId);
11371
      oprot.writeFieldEnd();
9233 manish.sha 11372
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
11373
      oprot.writeI64(this.adgroupId);
11374
      oprot.writeFieldEnd();
9048 manish.sha 11375
      oprot.writeFieldStop();
11376
      oprot.writeStructEnd();
11377
    }
11378
 
11379
    @Override
11380
    public String toString() {
9233 manish.sha 11381
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordByCriterionIdAndAdGroupId_args(");
9048 manish.sha 11382
      boolean first = true;
11383
 
11384
      sb.append("criterionId:");
11385
      sb.append(this.criterionId);
11386
      first = false;
9233 manish.sha 11387
      if (!first) sb.append(", ");
11388
      sb.append("adgroupId:");
11389
      sb.append(this.adgroupId);
11390
      first = false;
9048 manish.sha 11391
      sb.append(")");
11392
      return sb.toString();
11393
    }
11394
 
11395
    public void validate() throws org.apache.thrift.TException {
11396
      // check for required fields
11397
    }
11398
 
11399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11400
      try {
11401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11402
      } catch (org.apache.thrift.TException te) {
11403
        throw new java.io.IOException(te);
11404
      }
11405
    }
11406
 
11407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11408
      try {
11409
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11410
        __isset_bit_vector = new BitSet(1);
11411
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11412
      } catch (org.apache.thrift.TException te) {
11413
        throw new java.io.IOException(te);
11414
      }
11415
    }
11416
 
11417
  }
11418
 
9233 manish.sha 11419
  public static class getAdwordsAdKeywordByCriterionIdAndAdGroupId_result implements org.apache.thrift.TBase<getAdwordsAdKeywordByCriterionIdAndAdGroupId_result, getAdwordsAdKeywordByCriterionIdAndAdGroupId_result._Fields>, java.io.Serializable, Cloneable   {
11420
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordByCriterionIdAndAdGroupId_result");
9048 manish.sha 11421
 
11422
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
11423
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11424
 
11425
    private AdwordsAdKeyword success; // required
11426
    private GoogleAdwordsServiceException gasex; // required
11427
 
11428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11430
      SUCCESS((short)0, "success"),
11431
      GASEX((short)1, "gasex");
11432
 
11433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11434
 
11435
      static {
11436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11437
          byName.put(field.getFieldName(), field);
11438
        }
11439
      }
11440
 
11441
      /**
11442
       * Find the _Fields constant that matches fieldId, or null if its not found.
11443
       */
11444
      public static _Fields findByThriftId(int fieldId) {
11445
        switch(fieldId) {
11446
          case 0: // SUCCESS
11447
            return SUCCESS;
11448
          case 1: // GASEX
11449
            return GASEX;
11450
          default:
11451
            return null;
11452
        }
11453
      }
11454
 
11455
      /**
11456
       * Find the _Fields constant that matches fieldId, throwing an exception
11457
       * if it is not found.
11458
       */
11459
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11460
        _Fields fields = findByThriftId(fieldId);
11461
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11462
        return fields;
11463
      }
11464
 
11465
      /**
11466
       * Find the _Fields constant that matches name, or null if its not found.
11467
       */
11468
      public static _Fields findByName(String name) {
11469
        return byName.get(name);
11470
      }
11471
 
11472
      private final short _thriftId;
11473
      private final String _fieldName;
11474
 
11475
      _Fields(short thriftId, String fieldName) {
11476
        _thriftId = thriftId;
11477
        _fieldName = fieldName;
11478
      }
11479
 
11480
      public short getThriftFieldId() {
11481
        return _thriftId;
11482
      }
11483
 
11484
      public String getFieldName() {
11485
        return _fieldName;
11486
      }
11487
    }
11488
 
11489
    // isset id assignments
11490
 
11491
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11492
    static {
11493
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11494
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11495
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class)));
11496
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11497
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11498
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9233 manish.sha 11499
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordByCriterionIdAndAdGroupId_result.class, metaDataMap);
9048 manish.sha 11500
    }
11501
 
9233 manish.sha 11502
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_result() {
9048 manish.sha 11503
    }
11504
 
9233 manish.sha 11505
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_result(
9048 manish.sha 11506
      AdwordsAdKeyword success,
11507
      GoogleAdwordsServiceException gasex)
11508
    {
11509
      this();
11510
      this.success = success;
11511
      this.gasex = gasex;
11512
    }
11513
 
11514
    /**
11515
     * Performs a deep copy on <i>other</i>.
11516
     */
9233 manish.sha 11517
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_result(getAdwordsAdKeywordByCriterionIdAndAdGroupId_result other) {
9048 manish.sha 11518
      if (other.isSetSuccess()) {
11519
        this.success = new AdwordsAdKeyword(other.success);
11520
      }
11521
      if (other.isSetGasex()) {
11522
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
11523
      }
11524
    }
11525
 
9233 manish.sha 11526
    public getAdwordsAdKeywordByCriterionIdAndAdGroupId_result deepCopy() {
11527
      return new getAdwordsAdKeywordByCriterionIdAndAdGroupId_result(this);
9048 manish.sha 11528
    }
11529
 
11530
    @Override
11531
    public void clear() {
11532
      this.success = null;
11533
      this.gasex = null;
11534
    }
11535
 
11536
    public AdwordsAdKeyword getSuccess() {
11537
      return this.success;
11538
    }
11539
 
11540
    public void setSuccess(AdwordsAdKeyword success) {
11541
      this.success = success;
11542
    }
11543
 
11544
    public void unsetSuccess() {
11545
      this.success = null;
11546
    }
11547
 
11548
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11549
    public boolean isSetSuccess() {
11550
      return this.success != null;
11551
    }
11552
 
11553
    public void setSuccessIsSet(boolean value) {
11554
      if (!value) {
11555
        this.success = null;
11556
      }
11557
    }
11558
 
11559
    public GoogleAdwordsServiceException getGasex() {
11560
      return this.gasex;
11561
    }
11562
 
11563
    public void setGasex(GoogleAdwordsServiceException gasex) {
11564
      this.gasex = gasex;
11565
    }
11566
 
11567
    public void unsetGasex() {
11568
      this.gasex = null;
11569
    }
11570
 
11571
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
11572
    public boolean isSetGasex() {
11573
      return this.gasex != null;
11574
    }
11575
 
11576
    public void setGasexIsSet(boolean value) {
11577
      if (!value) {
11578
        this.gasex = null;
11579
      }
11580
    }
11581
 
11582
    public void setFieldValue(_Fields field, Object value) {
11583
      switch (field) {
11584
      case SUCCESS:
11585
        if (value == null) {
11586
          unsetSuccess();
11587
        } else {
11588
          setSuccess((AdwordsAdKeyword)value);
11589
        }
11590
        break;
11591
 
11592
      case GASEX:
11593
        if (value == null) {
11594
          unsetGasex();
11595
        } else {
11596
          setGasex((GoogleAdwordsServiceException)value);
11597
        }
11598
        break;
11599
 
11600
      }
11601
    }
11602
 
11603
    public Object getFieldValue(_Fields field) {
11604
      switch (field) {
11605
      case SUCCESS:
11606
        return getSuccess();
11607
 
11608
      case GASEX:
11609
        return getGasex();
11610
 
11611
      }
11612
      throw new IllegalStateException();
11613
    }
11614
 
11615
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11616
    public boolean isSet(_Fields field) {
11617
      if (field == null) {
11618
        throw new IllegalArgumentException();
11619
      }
11620
 
11621
      switch (field) {
11622
      case SUCCESS:
11623
        return isSetSuccess();
11624
      case GASEX:
11625
        return isSetGasex();
11626
      }
11627
      throw new IllegalStateException();
11628
    }
11629
 
11630
    @Override
11631
    public boolean equals(Object that) {
11632
      if (that == null)
11633
        return false;
9233 manish.sha 11634
      if (that instanceof getAdwordsAdKeywordByCriterionIdAndAdGroupId_result)
11635
        return this.equals((getAdwordsAdKeywordByCriterionIdAndAdGroupId_result)that);
9048 manish.sha 11636
      return false;
11637
    }
11638
 
9233 manish.sha 11639
    public boolean equals(getAdwordsAdKeywordByCriterionIdAndAdGroupId_result that) {
9048 manish.sha 11640
      if (that == null)
11641
        return false;
11642
 
11643
      boolean this_present_success = true && this.isSetSuccess();
11644
      boolean that_present_success = true && that.isSetSuccess();
11645
      if (this_present_success || that_present_success) {
11646
        if (!(this_present_success && that_present_success))
11647
          return false;
11648
        if (!this.success.equals(that.success))
11649
          return false;
11650
      }
11651
 
11652
      boolean this_present_gasex = true && this.isSetGasex();
11653
      boolean that_present_gasex = true && that.isSetGasex();
11654
      if (this_present_gasex || that_present_gasex) {
11655
        if (!(this_present_gasex && that_present_gasex))
11656
          return false;
11657
        if (!this.gasex.equals(that.gasex))
11658
          return false;
11659
      }
11660
 
11661
      return true;
11662
    }
11663
 
11664
    @Override
11665
    public int hashCode() {
11666
      return 0;
11667
    }
11668
 
9233 manish.sha 11669
    public int compareTo(getAdwordsAdKeywordByCriterionIdAndAdGroupId_result other) {
9048 manish.sha 11670
      if (!getClass().equals(other.getClass())) {
11671
        return getClass().getName().compareTo(other.getClass().getName());
11672
      }
11673
 
11674
      int lastComparison = 0;
9233 manish.sha 11675
      getAdwordsAdKeywordByCriterionIdAndAdGroupId_result typedOther = (getAdwordsAdKeywordByCriterionIdAndAdGroupId_result)other;
9048 manish.sha 11676
 
11677
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11678
      if (lastComparison != 0) {
11679
        return lastComparison;
11680
      }
11681
      if (isSetSuccess()) {
11682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11683
        if (lastComparison != 0) {
11684
          return lastComparison;
11685
        }
11686
      }
11687
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
11688
      if (lastComparison != 0) {
11689
        return lastComparison;
11690
      }
11691
      if (isSetGasex()) {
11692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
11693
        if (lastComparison != 0) {
11694
          return lastComparison;
11695
        }
11696
      }
11697
      return 0;
11698
    }
11699
 
11700
    public _Fields fieldForId(int fieldId) {
11701
      return _Fields.findByThriftId(fieldId);
11702
    }
11703
 
11704
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11705
      org.apache.thrift.protocol.TField field;
11706
      iprot.readStructBegin();
11707
      while (true)
11708
      {
11709
        field = iprot.readFieldBegin();
11710
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11711
          break;
11712
        }
11713
        switch (field.id) {
11714
          case 0: // SUCCESS
11715
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11716
              this.success = new AdwordsAdKeyword();
11717
              this.success.read(iprot);
11718
            } else { 
11719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11720
            }
11721
            break;
11722
          case 1: // GASEX
11723
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11724
              this.gasex = new GoogleAdwordsServiceException();
11725
              this.gasex.read(iprot);
11726
            } else { 
11727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11728
            }
11729
            break;
11730
          default:
11731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11732
        }
11733
        iprot.readFieldEnd();
11734
      }
11735
      iprot.readStructEnd();
11736
      validate();
11737
    }
11738
 
11739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11740
      oprot.writeStructBegin(STRUCT_DESC);
11741
 
11742
      if (this.isSetSuccess()) {
11743
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11744
        this.success.write(oprot);
11745
        oprot.writeFieldEnd();
11746
      } else if (this.isSetGasex()) {
11747
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
11748
        this.gasex.write(oprot);
11749
        oprot.writeFieldEnd();
11750
      }
11751
      oprot.writeFieldStop();
11752
      oprot.writeStructEnd();
11753
    }
11754
 
11755
    @Override
11756
    public String toString() {
9233 manish.sha 11757
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordByCriterionIdAndAdGroupId_result(");
9048 manish.sha 11758
      boolean first = true;
11759
 
11760
      sb.append("success:");
11761
      if (this.success == null) {
11762
        sb.append("null");
11763
      } else {
11764
        sb.append(this.success);
11765
      }
11766
      first = false;
11767
      if (!first) sb.append(", ");
11768
      sb.append("gasex:");
11769
      if (this.gasex == null) {
11770
        sb.append("null");
11771
      } else {
11772
        sb.append(this.gasex);
11773
      }
11774
      first = false;
11775
      sb.append(")");
11776
      return sb.toString();
11777
    }
11778
 
11779
    public void validate() throws org.apache.thrift.TException {
11780
      // check for required fields
11781
    }
11782
 
11783
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11784
      try {
11785
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11786
      } catch (org.apache.thrift.TException te) {
11787
        throw new java.io.IOException(te);
11788
      }
11789
    }
11790
 
11791
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11792
      try {
11793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11794
      } catch (org.apache.thrift.TException te) {
11795
        throw new java.io.IOException(te);
11796
      }
11797
    }
11798
 
11799
  }
11800
 
11801
  public static class getAdwordsAdKeywordsByAdgroupId_args implements org.apache.thrift.TBase<getAdwordsAdKeywordsByAdgroupId_args, getAdwordsAdKeywordsByAdgroupId_args._Fields>, java.io.Serializable, Cloneable   {
11802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordsByAdgroupId_args");
11803
 
11804
    private static final org.apache.thrift.protocol.TField ADGROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupId", org.apache.thrift.protocol.TType.I64, (short)1);
11805
 
11806
    private long adgroupId; // required
11807
 
11808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11810
      ADGROUP_ID((short)1, "adgroupId");
11811
 
11812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11813
 
11814
      static {
11815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11816
          byName.put(field.getFieldName(), field);
11817
        }
11818
      }
11819
 
11820
      /**
11821
       * Find the _Fields constant that matches fieldId, or null if its not found.
11822
       */
11823
      public static _Fields findByThriftId(int fieldId) {
11824
        switch(fieldId) {
11825
          case 1: // ADGROUP_ID
11826
            return ADGROUP_ID;
11827
          default:
11828
            return null;
11829
        }
11830
      }
11831
 
11832
      /**
11833
       * Find the _Fields constant that matches fieldId, throwing an exception
11834
       * if it is not found.
11835
       */
11836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11837
        _Fields fields = findByThriftId(fieldId);
11838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11839
        return fields;
11840
      }
11841
 
11842
      /**
11843
       * Find the _Fields constant that matches name, or null if its not found.
11844
       */
11845
      public static _Fields findByName(String name) {
11846
        return byName.get(name);
11847
      }
11848
 
11849
      private final short _thriftId;
11850
      private final String _fieldName;
11851
 
11852
      _Fields(short thriftId, String fieldName) {
11853
        _thriftId = thriftId;
11854
        _fieldName = fieldName;
11855
      }
11856
 
11857
      public short getThriftFieldId() {
11858
        return _thriftId;
11859
      }
11860
 
11861
      public String getFieldName() {
11862
        return _fieldName;
11863
      }
11864
    }
11865
 
11866
    // isset id assignments
11867
    private static final int __ADGROUPID_ISSET_ID = 0;
11868
    private BitSet __isset_bit_vector = new BitSet(1);
11869
 
11870
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11871
    static {
11872
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11873
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11874
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11875
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11876
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordsByAdgroupId_args.class, metaDataMap);
11877
    }
11878
 
11879
    public getAdwordsAdKeywordsByAdgroupId_args() {
11880
    }
11881
 
11882
    public getAdwordsAdKeywordsByAdgroupId_args(
11883
      long adgroupId)
11884
    {
11885
      this();
11886
      this.adgroupId = adgroupId;
11887
      setAdgroupIdIsSet(true);
11888
    }
11889
 
11890
    /**
11891
     * Performs a deep copy on <i>other</i>.
11892
     */
11893
    public getAdwordsAdKeywordsByAdgroupId_args(getAdwordsAdKeywordsByAdgroupId_args other) {
11894
      __isset_bit_vector.clear();
11895
      __isset_bit_vector.or(other.__isset_bit_vector);
11896
      this.adgroupId = other.adgroupId;
11897
    }
11898
 
11899
    public getAdwordsAdKeywordsByAdgroupId_args deepCopy() {
11900
      return new getAdwordsAdKeywordsByAdgroupId_args(this);
11901
    }
11902
 
11903
    @Override
11904
    public void clear() {
11905
      setAdgroupIdIsSet(false);
11906
      this.adgroupId = 0;
11907
    }
11908
 
11909
    public long getAdgroupId() {
11910
      return this.adgroupId;
11911
    }
11912
 
11913
    public void setAdgroupId(long adgroupId) {
11914
      this.adgroupId = adgroupId;
11915
      setAdgroupIdIsSet(true);
11916
    }
11917
 
11918
    public void unsetAdgroupId() {
11919
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
11920
    }
11921
 
11922
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
11923
    public boolean isSetAdgroupId() {
11924
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
11925
    }
11926
 
11927
    public void setAdgroupIdIsSet(boolean value) {
11928
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
11929
    }
11930
 
11931
    public void setFieldValue(_Fields field, Object value) {
11932
      switch (field) {
11933
      case ADGROUP_ID:
11934
        if (value == null) {
11935
          unsetAdgroupId();
11936
        } else {
11937
          setAdgroupId((Long)value);
11938
        }
11939
        break;
11940
 
11941
      }
11942
    }
11943
 
11944
    public Object getFieldValue(_Fields field) {
11945
      switch (field) {
11946
      case ADGROUP_ID:
11947
        return Long.valueOf(getAdgroupId());
11948
 
11949
      }
11950
      throw new IllegalStateException();
11951
    }
11952
 
11953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11954
    public boolean isSet(_Fields field) {
11955
      if (field == null) {
11956
        throw new IllegalArgumentException();
11957
      }
11958
 
11959
      switch (field) {
11960
      case ADGROUP_ID:
11961
        return isSetAdgroupId();
11962
      }
11963
      throw new IllegalStateException();
11964
    }
11965
 
11966
    @Override
11967
    public boolean equals(Object that) {
11968
      if (that == null)
11969
        return false;
11970
      if (that instanceof getAdwordsAdKeywordsByAdgroupId_args)
11971
        return this.equals((getAdwordsAdKeywordsByAdgroupId_args)that);
11972
      return false;
11973
    }
11974
 
11975
    public boolean equals(getAdwordsAdKeywordsByAdgroupId_args that) {
11976
      if (that == null)
11977
        return false;
11978
 
11979
      boolean this_present_adgroupId = true;
11980
      boolean that_present_adgroupId = true;
11981
      if (this_present_adgroupId || that_present_adgroupId) {
11982
        if (!(this_present_adgroupId && that_present_adgroupId))
11983
          return false;
11984
        if (this.adgroupId != that.adgroupId)
11985
          return false;
11986
      }
11987
 
11988
      return true;
11989
    }
11990
 
11991
    @Override
11992
    public int hashCode() {
11993
      return 0;
11994
    }
11995
 
11996
    public int compareTo(getAdwordsAdKeywordsByAdgroupId_args other) {
11997
      if (!getClass().equals(other.getClass())) {
11998
        return getClass().getName().compareTo(other.getClass().getName());
11999
      }
12000
 
12001
      int lastComparison = 0;
12002
      getAdwordsAdKeywordsByAdgroupId_args typedOther = (getAdwordsAdKeywordsByAdgroupId_args)other;
12003
 
12004
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
12005
      if (lastComparison != 0) {
12006
        return lastComparison;
12007
      }
12008
      if (isSetAdgroupId()) {
12009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
12010
        if (lastComparison != 0) {
12011
          return lastComparison;
12012
        }
12013
      }
12014
      return 0;
12015
    }
12016
 
12017
    public _Fields fieldForId(int fieldId) {
12018
      return _Fields.findByThriftId(fieldId);
12019
    }
12020
 
12021
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12022
      org.apache.thrift.protocol.TField field;
12023
      iprot.readStructBegin();
12024
      while (true)
12025
      {
12026
        field = iprot.readFieldBegin();
12027
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12028
          break;
12029
        }
12030
        switch (field.id) {
12031
          case 1: // ADGROUP_ID
12032
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12033
              this.adgroupId = iprot.readI64();
12034
              setAdgroupIdIsSet(true);
12035
            } else { 
12036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12037
            }
12038
            break;
12039
          default:
12040
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12041
        }
12042
        iprot.readFieldEnd();
12043
      }
12044
      iprot.readStructEnd();
12045
      validate();
12046
    }
12047
 
12048
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12049
      validate();
12050
 
12051
      oprot.writeStructBegin(STRUCT_DESC);
12052
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
12053
      oprot.writeI64(this.adgroupId);
12054
      oprot.writeFieldEnd();
12055
      oprot.writeFieldStop();
12056
      oprot.writeStructEnd();
12057
    }
12058
 
12059
    @Override
12060
    public String toString() {
12061
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordsByAdgroupId_args(");
12062
      boolean first = true;
12063
 
12064
      sb.append("adgroupId:");
12065
      sb.append(this.adgroupId);
12066
      first = false;
12067
      sb.append(")");
12068
      return sb.toString();
12069
    }
12070
 
12071
    public void validate() throws org.apache.thrift.TException {
12072
      // check for required fields
12073
    }
12074
 
12075
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12076
      try {
12077
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12078
      } catch (org.apache.thrift.TException te) {
12079
        throw new java.io.IOException(te);
12080
      }
12081
    }
12082
 
12083
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12084
      try {
12085
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12086
        __isset_bit_vector = new BitSet(1);
12087
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12088
      } catch (org.apache.thrift.TException te) {
12089
        throw new java.io.IOException(te);
12090
      }
12091
    }
12092
 
12093
  }
12094
 
12095
  public static class getAdwordsAdKeywordsByAdgroupId_result implements org.apache.thrift.TBase<getAdwordsAdKeywordsByAdgroupId_result, getAdwordsAdKeywordsByAdgroupId_result._Fields>, java.io.Serializable, Cloneable   {
12096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordsByAdgroupId_result");
12097
 
12098
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
12099
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12100
 
12101
    private List<AdwordsAdKeyword> success; // required
12102
    private GoogleAdwordsServiceException gasex; // required
12103
 
12104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12106
      SUCCESS((short)0, "success"),
12107
      GASEX((short)1, "gasex");
12108
 
12109
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12110
 
12111
      static {
12112
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12113
          byName.put(field.getFieldName(), field);
12114
        }
12115
      }
12116
 
12117
      /**
12118
       * Find the _Fields constant that matches fieldId, or null if its not found.
12119
       */
12120
      public static _Fields findByThriftId(int fieldId) {
12121
        switch(fieldId) {
12122
          case 0: // SUCCESS
12123
            return SUCCESS;
12124
          case 1: // GASEX
12125
            return GASEX;
12126
          default:
12127
            return null;
12128
        }
12129
      }
12130
 
12131
      /**
12132
       * Find the _Fields constant that matches fieldId, throwing an exception
12133
       * if it is not found.
12134
       */
12135
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12136
        _Fields fields = findByThriftId(fieldId);
12137
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12138
        return fields;
12139
      }
12140
 
12141
      /**
12142
       * Find the _Fields constant that matches name, or null if its not found.
12143
       */
12144
      public static _Fields findByName(String name) {
12145
        return byName.get(name);
12146
      }
12147
 
12148
      private final short _thriftId;
12149
      private final String _fieldName;
12150
 
12151
      _Fields(short thriftId, String fieldName) {
12152
        _thriftId = thriftId;
12153
        _fieldName = fieldName;
12154
      }
12155
 
12156
      public short getThriftFieldId() {
12157
        return _thriftId;
12158
      }
12159
 
12160
      public String getFieldName() {
12161
        return _fieldName;
12162
      }
12163
    }
12164
 
12165
    // isset id assignments
12166
 
12167
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12168
    static {
12169
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12170
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12171
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12172
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class))));
12173
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordsByAdgroupId_result.class, metaDataMap);
12177
    }
12178
 
12179
    public getAdwordsAdKeywordsByAdgroupId_result() {
12180
    }
12181
 
12182
    public getAdwordsAdKeywordsByAdgroupId_result(
12183
      List<AdwordsAdKeyword> success,
12184
      GoogleAdwordsServiceException gasex)
12185
    {
12186
      this();
12187
      this.success = success;
12188
      this.gasex = gasex;
12189
    }
12190
 
12191
    /**
12192
     * Performs a deep copy on <i>other</i>.
12193
     */
12194
    public getAdwordsAdKeywordsByAdgroupId_result(getAdwordsAdKeywordsByAdgroupId_result other) {
12195
      if (other.isSetSuccess()) {
12196
        List<AdwordsAdKeyword> __this__success = new ArrayList<AdwordsAdKeyword>();
12197
        for (AdwordsAdKeyword other_element : other.success) {
12198
          __this__success.add(new AdwordsAdKeyword(other_element));
12199
        }
12200
        this.success = __this__success;
12201
      }
12202
      if (other.isSetGasex()) {
12203
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
12204
      }
12205
    }
12206
 
12207
    public getAdwordsAdKeywordsByAdgroupId_result deepCopy() {
12208
      return new getAdwordsAdKeywordsByAdgroupId_result(this);
12209
    }
12210
 
12211
    @Override
12212
    public void clear() {
12213
      this.success = null;
12214
      this.gasex = null;
12215
    }
12216
 
12217
    public int getSuccessSize() {
12218
      return (this.success == null) ? 0 : this.success.size();
12219
    }
12220
 
12221
    public java.util.Iterator<AdwordsAdKeyword> getSuccessIterator() {
12222
      return (this.success == null) ? null : this.success.iterator();
12223
    }
12224
 
12225
    public void addToSuccess(AdwordsAdKeyword elem) {
12226
      if (this.success == null) {
12227
        this.success = new ArrayList<AdwordsAdKeyword>();
12228
      }
12229
      this.success.add(elem);
12230
    }
12231
 
12232
    public List<AdwordsAdKeyword> getSuccess() {
12233
      return this.success;
12234
    }
12235
 
12236
    public void setSuccess(List<AdwordsAdKeyword> success) {
12237
      this.success = success;
12238
    }
12239
 
12240
    public void unsetSuccess() {
12241
      this.success = null;
12242
    }
12243
 
12244
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12245
    public boolean isSetSuccess() {
12246
      return this.success != null;
12247
    }
12248
 
12249
    public void setSuccessIsSet(boolean value) {
12250
      if (!value) {
12251
        this.success = null;
12252
      }
12253
    }
12254
 
12255
    public GoogleAdwordsServiceException getGasex() {
12256
      return this.gasex;
12257
    }
12258
 
12259
    public void setGasex(GoogleAdwordsServiceException gasex) {
12260
      this.gasex = gasex;
12261
    }
12262
 
12263
    public void unsetGasex() {
12264
      this.gasex = null;
12265
    }
12266
 
12267
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
12268
    public boolean isSetGasex() {
12269
      return this.gasex != null;
12270
    }
12271
 
12272
    public void setGasexIsSet(boolean value) {
12273
      if (!value) {
12274
        this.gasex = null;
12275
      }
12276
    }
12277
 
12278
    public void setFieldValue(_Fields field, Object value) {
12279
      switch (field) {
12280
      case SUCCESS:
12281
        if (value == null) {
12282
          unsetSuccess();
12283
        } else {
12284
          setSuccess((List<AdwordsAdKeyword>)value);
12285
        }
12286
        break;
12287
 
12288
      case GASEX:
12289
        if (value == null) {
12290
          unsetGasex();
12291
        } else {
12292
          setGasex((GoogleAdwordsServiceException)value);
12293
        }
12294
        break;
12295
 
12296
      }
12297
    }
12298
 
12299
    public Object getFieldValue(_Fields field) {
12300
      switch (field) {
12301
      case SUCCESS:
12302
        return getSuccess();
12303
 
12304
      case GASEX:
12305
        return getGasex();
12306
 
12307
      }
12308
      throw new IllegalStateException();
12309
    }
12310
 
12311
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12312
    public boolean isSet(_Fields field) {
12313
      if (field == null) {
12314
        throw new IllegalArgumentException();
12315
      }
12316
 
12317
      switch (field) {
12318
      case SUCCESS:
12319
        return isSetSuccess();
12320
      case GASEX:
12321
        return isSetGasex();
12322
      }
12323
      throw new IllegalStateException();
12324
    }
12325
 
12326
    @Override
12327
    public boolean equals(Object that) {
12328
      if (that == null)
12329
        return false;
12330
      if (that instanceof getAdwordsAdKeywordsByAdgroupId_result)
12331
        return this.equals((getAdwordsAdKeywordsByAdgroupId_result)that);
12332
      return false;
12333
    }
12334
 
12335
    public boolean equals(getAdwordsAdKeywordsByAdgroupId_result that) {
12336
      if (that == null)
12337
        return false;
12338
 
12339
      boolean this_present_success = true && this.isSetSuccess();
12340
      boolean that_present_success = true && that.isSetSuccess();
12341
      if (this_present_success || that_present_success) {
12342
        if (!(this_present_success && that_present_success))
12343
          return false;
12344
        if (!this.success.equals(that.success))
12345
          return false;
12346
      }
12347
 
12348
      boolean this_present_gasex = true && this.isSetGasex();
12349
      boolean that_present_gasex = true && that.isSetGasex();
12350
      if (this_present_gasex || that_present_gasex) {
12351
        if (!(this_present_gasex && that_present_gasex))
12352
          return false;
12353
        if (!this.gasex.equals(that.gasex))
12354
          return false;
12355
      }
12356
 
12357
      return true;
12358
    }
12359
 
12360
    @Override
12361
    public int hashCode() {
12362
      return 0;
12363
    }
12364
 
12365
    public int compareTo(getAdwordsAdKeywordsByAdgroupId_result other) {
12366
      if (!getClass().equals(other.getClass())) {
12367
        return getClass().getName().compareTo(other.getClass().getName());
12368
      }
12369
 
12370
      int lastComparison = 0;
12371
      getAdwordsAdKeywordsByAdgroupId_result typedOther = (getAdwordsAdKeywordsByAdgroupId_result)other;
12372
 
12373
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12374
      if (lastComparison != 0) {
12375
        return lastComparison;
12376
      }
12377
      if (isSetSuccess()) {
12378
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12379
        if (lastComparison != 0) {
12380
          return lastComparison;
12381
        }
12382
      }
12383
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
12384
      if (lastComparison != 0) {
12385
        return lastComparison;
12386
      }
12387
      if (isSetGasex()) {
12388
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
12389
        if (lastComparison != 0) {
12390
          return lastComparison;
12391
        }
12392
      }
12393
      return 0;
12394
    }
12395
 
12396
    public _Fields fieldForId(int fieldId) {
12397
      return _Fields.findByThriftId(fieldId);
12398
    }
12399
 
12400
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12401
      org.apache.thrift.protocol.TField field;
12402
      iprot.readStructBegin();
12403
      while (true)
12404
      {
12405
        field = iprot.readFieldBegin();
12406
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12407
          break;
12408
        }
12409
        switch (field.id) {
12410
          case 0: // SUCCESS
12411
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12412
              {
12413
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
12414
                this.success = new ArrayList<AdwordsAdKeyword>(_list0.size);
12415
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
12416
                {
12417
                  AdwordsAdKeyword _elem2; // required
12418
                  _elem2 = new AdwordsAdKeyword();
12419
                  _elem2.read(iprot);
12420
                  this.success.add(_elem2);
12421
                }
12422
                iprot.readListEnd();
12423
              }
12424
            } else { 
12425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12426
            }
12427
            break;
12428
          case 1: // GASEX
12429
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12430
              this.gasex = new GoogleAdwordsServiceException();
12431
              this.gasex.read(iprot);
12432
            } else { 
12433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12434
            }
12435
            break;
12436
          default:
12437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12438
        }
12439
        iprot.readFieldEnd();
12440
      }
12441
      iprot.readStructEnd();
12442
      validate();
12443
    }
12444
 
12445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12446
      oprot.writeStructBegin(STRUCT_DESC);
12447
 
12448
      if (this.isSetSuccess()) {
12449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12450
        {
12451
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12452
          for (AdwordsAdKeyword _iter3 : this.success)
12453
          {
12454
            _iter3.write(oprot);
12455
          }
12456
          oprot.writeListEnd();
12457
        }
12458
        oprot.writeFieldEnd();
12459
      } else if (this.isSetGasex()) {
12460
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
12461
        this.gasex.write(oprot);
12462
        oprot.writeFieldEnd();
12463
      }
12464
      oprot.writeFieldStop();
12465
      oprot.writeStructEnd();
12466
    }
12467
 
12468
    @Override
12469
    public String toString() {
12470
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordsByAdgroupId_result(");
12471
      boolean first = true;
12472
 
12473
      sb.append("success:");
12474
      if (this.success == null) {
12475
        sb.append("null");
12476
      } else {
12477
        sb.append(this.success);
12478
      }
12479
      first = false;
12480
      if (!first) sb.append(", ");
12481
      sb.append("gasex:");
12482
      if (this.gasex == null) {
12483
        sb.append("null");
12484
      } else {
12485
        sb.append(this.gasex);
12486
      }
12487
      first = false;
12488
      sb.append(")");
12489
      return sb.toString();
12490
    }
12491
 
12492
    public void validate() throws org.apache.thrift.TException {
12493
      // check for required fields
12494
    }
12495
 
12496
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12497
      try {
12498
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12499
      } catch (org.apache.thrift.TException te) {
12500
        throw new java.io.IOException(te);
12501
      }
12502
    }
12503
 
12504
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12505
      try {
12506
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12507
      } catch (org.apache.thrift.TException te) {
12508
        throw new java.io.IOException(te);
12509
      }
12510
    }
12511
 
12512
  }
12513
 
12514
  public static class getAdwordsAdGroupAdsByAdgroupId_args implements org.apache.thrift.TBase<getAdwordsAdGroupAdsByAdgroupId_args, getAdwordsAdGroupAdsByAdgroupId_args._Fields>, java.io.Serializable, Cloneable   {
12515
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupAdsByAdgroupId_args");
12516
 
12517
    private static final org.apache.thrift.protocol.TField ADGROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("adgroupId", org.apache.thrift.protocol.TType.I64, (short)1);
12518
 
12519
    private long adgroupId; // required
12520
 
12521
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12522
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12523
      ADGROUP_ID((short)1, "adgroupId");
12524
 
12525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12526
 
12527
      static {
12528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12529
          byName.put(field.getFieldName(), field);
12530
        }
12531
      }
12532
 
12533
      /**
12534
       * Find the _Fields constant that matches fieldId, or null if its not found.
12535
       */
12536
      public static _Fields findByThriftId(int fieldId) {
12537
        switch(fieldId) {
12538
          case 1: // ADGROUP_ID
12539
            return ADGROUP_ID;
12540
          default:
12541
            return null;
12542
        }
12543
      }
12544
 
12545
      /**
12546
       * Find the _Fields constant that matches fieldId, throwing an exception
12547
       * if it is not found.
12548
       */
12549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12550
        _Fields fields = findByThriftId(fieldId);
12551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12552
        return fields;
12553
      }
12554
 
12555
      /**
12556
       * Find the _Fields constant that matches name, or null if its not found.
12557
       */
12558
      public static _Fields findByName(String name) {
12559
        return byName.get(name);
12560
      }
12561
 
12562
      private final short _thriftId;
12563
      private final String _fieldName;
12564
 
12565
      _Fields(short thriftId, String fieldName) {
12566
        _thriftId = thriftId;
12567
        _fieldName = fieldName;
12568
      }
12569
 
12570
      public short getThriftFieldId() {
12571
        return _thriftId;
12572
      }
12573
 
12574
      public String getFieldName() {
12575
        return _fieldName;
12576
      }
12577
    }
12578
 
12579
    // isset id assignments
12580
    private static final int __ADGROUPID_ISSET_ID = 0;
12581
    private BitSet __isset_bit_vector = new BitSet(1);
12582
 
12583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12584
    static {
12585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12586
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupAdsByAdgroupId_args.class, metaDataMap);
12590
    }
12591
 
12592
    public getAdwordsAdGroupAdsByAdgroupId_args() {
12593
    }
12594
 
12595
    public getAdwordsAdGroupAdsByAdgroupId_args(
12596
      long adgroupId)
12597
    {
12598
      this();
12599
      this.adgroupId = adgroupId;
12600
      setAdgroupIdIsSet(true);
12601
    }
12602
 
12603
    /**
12604
     * Performs a deep copy on <i>other</i>.
12605
     */
12606
    public getAdwordsAdGroupAdsByAdgroupId_args(getAdwordsAdGroupAdsByAdgroupId_args other) {
12607
      __isset_bit_vector.clear();
12608
      __isset_bit_vector.or(other.__isset_bit_vector);
12609
      this.adgroupId = other.adgroupId;
12610
    }
12611
 
12612
    public getAdwordsAdGroupAdsByAdgroupId_args deepCopy() {
12613
      return new getAdwordsAdGroupAdsByAdgroupId_args(this);
12614
    }
12615
 
12616
    @Override
12617
    public void clear() {
12618
      setAdgroupIdIsSet(false);
12619
      this.adgroupId = 0;
12620
    }
12621
 
12622
    public long getAdgroupId() {
12623
      return this.adgroupId;
12624
    }
12625
 
12626
    public void setAdgroupId(long adgroupId) {
12627
      this.adgroupId = adgroupId;
12628
      setAdgroupIdIsSet(true);
12629
    }
12630
 
12631
    public void unsetAdgroupId() {
12632
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
12633
    }
12634
 
12635
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
12636
    public boolean isSetAdgroupId() {
12637
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
12638
    }
12639
 
12640
    public void setAdgroupIdIsSet(boolean value) {
12641
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
12642
    }
12643
 
12644
    public void setFieldValue(_Fields field, Object value) {
12645
      switch (field) {
12646
      case ADGROUP_ID:
12647
        if (value == null) {
12648
          unsetAdgroupId();
12649
        } else {
12650
          setAdgroupId((Long)value);
12651
        }
12652
        break;
12653
 
12654
      }
12655
    }
12656
 
12657
    public Object getFieldValue(_Fields field) {
12658
      switch (field) {
12659
      case ADGROUP_ID:
12660
        return Long.valueOf(getAdgroupId());
12661
 
12662
      }
12663
      throw new IllegalStateException();
12664
    }
12665
 
12666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12667
    public boolean isSet(_Fields field) {
12668
      if (field == null) {
12669
        throw new IllegalArgumentException();
12670
      }
12671
 
12672
      switch (field) {
12673
      case ADGROUP_ID:
12674
        return isSetAdgroupId();
12675
      }
12676
      throw new IllegalStateException();
12677
    }
12678
 
12679
    @Override
12680
    public boolean equals(Object that) {
12681
      if (that == null)
12682
        return false;
12683
      if (that instanceof getAdwordsAdGroupAdsByAdgroupId_args)
12684
        return this.equals((getAdwordsAdGroupAdsByAdgroupId_args)that);
12685
      return false;
12686
    }
12687
 
12688
    public boolean equals(getAdwordsAdGroupAdsByAdgroupId_args that) {
12689
      if (that == null)
12690
        return false;
12691
 
12692
      boolean this_present_adgroupId = true;
12693
      boolean that_present_adgroupId = true;
12694
      if (this_present_adgroupId || that_present_adgroupId) {
12695
        if (!(this_present_adgroupId && that_present_adgroupId))
12696
          return false;
12697
        if (this.adgroupId != that.adgroupId)
12698
          return false;
12699
      }
12700
 
12701
      return true;
12702
    }
12703
 
12704
    @Override
12705
    public int hashCode() {
12706
      return 0;
12707
    }
12708
 
12709
    public int compareTo(getAdwordsAdGroupAdsByAdgroupId_args other) {
12710
      if (!getClass().equals(other.getClass())) {
12711
        return getClass().getName().compareTo(other.getClass().getName());
12712
      }
12713
 
12714
      int lastComparison = 0;
12715
      getAdwordsAdGroupAdsByAdgroupId_args typedOther = (getAdwordsAdGroupAdsByAdgroupId_args)other;
12716
 
12717
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
12718
      if (lastComparison != 0) {
12719
        return lastComparison;
12720
      }
12721
      if (isSetAdgroupId()) {
12722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
12723
        if (lastComparison != 0) {
12724
          return lastComparison;
12725
        }
12726
      }
12727
      return 0;
12728
    }
12729
 
12730
    public _Fields fieldForId(int fieldId) {
12731
      return _Fields.findByThriftId(fieldId);
12732
    }
12733
 
12734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12735
      org.apache.thrift.protocol.TField field;
12736
      iprot.readStructBegin();
12737
      while (true)
12738
      {
12739
        field = iprot.readFieldBegin();
12740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12741
          break;
12742
        }
12743
        switch (field.id) {
12744
          case 1: // ADGROUP_ID
12745
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12746
              this.adgroupId = iprot.readI64();
12747
              setAdgroupIdIsSet(true);
12748
            } else { 
12749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12750
            }
12751
            break;
12752
          default:
12753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12754
        }
12755
        iprot.readFieldEnd();
12756
      }
12757
      iprot.readStructEnd();
12758
      validate();
12759
    }
12760
 
12761
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12762
      validate();
12763
 
12764
      oprot.writeStructBegin(STRUCT_DESC);
12765
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
12766
      oprot.writeI64(this.adgroupId);
12767
      oprot.writeFieldEnd();
12768
      oprot.writeFieldStop();
12769
      oprot.writeStructEnd();
12770
    }
12771
 
12772
    @Override
12773
    public String toString() {
12774
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupAdsByAdgroupId_args(");
12775
      boolean first = true;
12776
 
12777
      sb.append("adgroupId:");
12778
      sb.append(this.adgroupId);
12779
      first = false;
12780
      sb.append(")");
12781
      return sb.toString();
12782
    }
12783
 
12784
    public void validate() throws org.apache.thrift.TException {
12785
      // check for required fields
12786
    }
12787
 
12788
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12789
      try {
12790
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12791
      } catch (org.apache.thrift.TException te) {
12792
        throw new java.io.IOException(te);
12793
      }
12794
    }
12795
 
12796
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12797
      try {
12798
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12799
        __isset_bit_vector = new BitSet(1);
12800
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12801
      } catch (org.apache.thrift.TException te) {
12802
        throw new java.io.IOException(te);
12803
      }
12804
    }
12805
 
12806
  }
12807
 
12808
  public static class getAdwordsAdGroupAdsByAdgroupId_result implements org.apache.thrift.TBase<getAdwordsAdGroupAdsByAdgroupId_result, getAdwordsAdGroupAdsByAdgroupId_result._Fields>, java.io.Serializable, Cloneable   {
12809
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupAdsByAdgroupId_result");
12810
 
12811
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
12812
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12813
 
12814
    private List<AdwordsAdGroupAd> success; // required
12815
    private GoogleAdwordsServiceException gasex; // required
12816
 
12817
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12818
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12819
      SUCCESS((short)0, "success"),
12820
      GASEX((short)1, "gasex");
12821
 
12822
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12823
 
12824
      static {
12825
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12826
          byName.put(field.getFieldName(), field);
12827
        }
12828
      }
12829
 
12830
      /**
12831
       * Find the _Fields constant that matches fieldId, or null if its not found.
12832
       */
12833
      public static _Fields findByThriftId(int fieldId) {
12834
        switch(fieldId) {
12835
          case 0: // SUCCESS
12836
            return SUCCESS;
12837
          case 1: // GASEX
12838
            return GASEX;
12839
          default:
12840
            return null;
12841
        }
12842
      }
12843
 
12844
      /**
12845
       * Find the _Fields constant that matches fieldId, throwing an exception
12846
       * if it is not found.
12847
       */
12848
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12849
        _Fields fields = findByThriftId(fieldId);
12850
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12851
        return fields;
12852
      }
12853
 
12854
      /**
12855
       * Find the _Fields constant that matches name, or null if its not found.
12856
       */
12857
      public static _Fields findByName(String name) {
12858
        return byName.get(name);
12859
      }
12860
 
12861
      private final short _thriftId;
12862
      private final String _fieldName;
12863
 
12864
      _Fields(short thriftId, String fieldName) {
12865
        _thriftId = thriftId;
12866
        _fieldName = fieldName;
12867
      }
12868
 
12869
      public short getThriftFieldId() {
12870
        return _thriftId;
12871
      }
12872
 
12873
      public String getFieldName() {
12874
        return _fieldName;
12875
      }
12876
    }
12877
 
12878
    // isset id assignments
12879
 
12880
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12881
    static {
12882
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12883
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12884
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12885
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class))));
12886
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12887
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupAdsByAdgroupId_result.class, metaDataMap);
12890
    }
12891
 
12892
    public getAdwordsAdGroupAdsByAdgroupId_result() {
12893
    }
12894
 
12895
    public getAdwordsAdGroupAdsByAdgroupId_result(
12896
      List<AdwordsAdGroupAd> success,
12897
      GoogleAdwordsServiceException gasex)
12898
    {
12899
      this();
12900
      this.success = success;
12901
      this.gasex = gasex;
12902
    }
12903
 
12904
    /**
12905
     * Performs a deep copy on <i>other</i>.
12906
     */
12907
    public getAdwordsAdGroupAdsByAdgroupId_result(getAdwordsAdGroupAdsByAdgroupId_result other) {
12908
      if (other.isSetSuccess()) {
12909
        List<AdwordsAdGroupAd> __this__success = new ArrayList<AdwordsAdGroupAd>();
12910
        for (AdwordsAdGroupAd other_element : other.success) {
12911
          __this__success.add(new AdwordsAdGroupAd(other_element));
12912
        }
12913
        this.success = __this__success;
12914
      }
12915
      if (other.isSetGasex()) {
12916
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
12917
      }
12918
    }
12919
 
12920
    public getAdwordsAdGroupAdsByAdgroupId_result deepCopy() {
12921
      return new getAdwordsAdGroupAdsByAdgroupId_result(this);
12922
    }
12923
 
12924
    @Override
12925
    public void clear() {
12926
      this.success = null;
12927
      this.gasex = null;
12928
    }
12929
 
12930
    public int getSuccessSize() {
12931
      return (this.success == null) ? 0 : this.success.size();
12932
    }
12933
 
12934
    public java.util.Iterator<AdwordsAdGroupAd> getSuccessIterator() {
12935
      return (this.success == null) ? null : this.success.iterator();
12936
    }
12937
 
12938
    public void addToSuccess(AdwordsAdGroupAd elem) {
12939
      if (this.success == null) {
12940
        this.success = new ArrayList<AdwordsAdGroupAd>();
12941
      }
12942
      this.success.add(elem);
12943
    }
12944
 
12945
    public List<AdwordsAdGroupAd> getSuccess() {
12946
      return this.success;
12947
    }
12948
 
12949
    public void setSuccess(List<AdwordsAdGroupAd> success) {
12950
      this.success = success;
12951
    }
12952
 
12953
    public void unsetSuccess() {
12954
      this.success = null;
12955
    }
12956
 
12957
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12958
    public boolean isSetSuccess() {
12959
      return this.success != null;
12960
    }
12961
 
12962
    public void setSuccessIsSet(boolean value) {
12963
      if (!value) {
12964
        this.success = null;
12965
      }
12966
    }
12967
 
12968
    public GoogleAdwordsServiceException getGasex() {
12969
      return this.gasex;
12970
    }
12971
 
12972
    public void setGasex(GoogleAdwordsServiceException gasex) {
12973
      this.gasex = gasex;
12974
    }
12975
 
12976
    public void unsetGasex() {
12977
      this.gasex = null;
12978
    }
12979
 
12980
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
12981
    public boolean isSetGasex() {
12982
      return this.gasex != null;
12983
    }
12984
 
12985
    public void setGasexIsSet(boolean value) {
12986
      if (!value) {
12987
        this.gasex = null;
12988
      }
12989
    }
12990
 
12991
    public void setFieldValue(_Fields field, Object value) {
12992
      switch (field) {
12993
      case SUCCESS:
12994
        if (value == null) {
12995
          unsetSuccess();
12996
        } else {
12997
          setSuccess((List<AdwordsAdGroupAd>)value);
12998
        }
12999
        break;
13000
 
13001
      case GASEX:
13002
        if (value == null) {
13003
          unsetGasex();
13004
        } else {
13005
          setGasex((GoogleAdwordsServiceException)value);
13006
        }
13007
        break;
13008
 
13009
      }
13010
    }
13011
 
13012
    public Object getFieldValue(_Fields field) {
13013
      switch (field) {
13014
      case SUCCESS:
13015
        return getSuccess();
13016
 
13017
      case GASEX:
13018
        return getGasex();
13019
 
13020
      }
13021
      throw new IllegalStateException();
13022
    }
13023
 
13024
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13025
    public boolean isSet(_Fields field) {
13026
      if (field == null) {
13027
        throw new IllegalArgumentException();
13028
      }
13029
 
13030
      switch (field) {
13031
      case SUCCESS:
13032
        return isSetSuccess();
13033
      case GASEX:
13034
        return isSetGasex();
13035
      }
13036
      throw new IllegalStateException();
13037
    }
13038
 
13039
    @Override
13040
    public boolean equals(Object that) {
13041
      if (that == null)
13042
        return false;
13043
      if (that instanceof getAdwordsAdGroupAdsByAdgroupId_result)
13044
        return this.equals((getAdwordsAdGroupAdsByAdgroupId_result)that);
13045
      return false;
13046
    }
13047
 
13048
    public boolean equals(getAdwordsAdGroupAdsByAdgroupId_result that) {
13049
      if (that == null)
13050
        return false;
13051
 
13052
      boolean this_present_success = true && this.isSetSuccess();
13053
      boolean that_present_success = true && that.isSetSuccess();
13054
      if (this_present_success || that_present_success) {
13055
        if (!(this_present_success && that_present_success))
13056
          return false;
13057
        if (!this.success.equals(that.success))
13058
          return false;
13059
      }
13060
 
13061
      boolean this_present_gasex = true && this.isSetGasex();
13062
      boolean that_present_gasex = true && that.isSetGasex();
13063
      if (this_present_gasex || that_present_gasex) {
13064
        if (!(this_present_gasex && that_present_gasex))
13065
          return false;
13066
        if (!this.gasex.equals(that.gasex))
13067
          return false;
13068
      }
13069
 
13070
      return true;
13071
    }
13072
 
13073
    @Override
13074
    public int hashCode() {
13075
      return 0;
13076
    }
13077
 
13078
    public int compareTo(getAdwordsAdGroupAdsByAdgroupId_result other) {
13079
      if (!getClass().equals(other.getClass())) {
13080
        return getClass().getName().compareTo(other.getClass().getName());
13081
      }
13082
 
13083
      int lastComparison = 0;
13084
      getAdwordsAdGroupAdsByAdgroupId_result typedOther = (getAdwordsAdGroupAdsByAdgroupId_result)other;
13085
 
13086
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13087
      if (lastComparison != 0) {
13088
        return lastComparison;
13089
      }
13090
      if (isSetSuccess()) {
13091
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13092
        if (lastComparison != 0) {
13093
          return lastComparison;
13094
        }
13095
      }
13096
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
13097
      if (lastComparison != 0) {
13098
        return lastComparison;
13099
      }
13100
      if (isSetGasex()) {
13101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
13102
        if (lastComparison != 0) {
13103
          return lastComparison;
13104
        }
13105
      }
13106
      return 0;
13107
    }
13108
 
13109
    public _Fields fieldForId(int fieldId) {
13110
      return _Fields.findByThriftId(fieldId);
13111
    }
13112
 
13113
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13114
      org.apache.thrift.protocol.TField field;
13115
      iprot.readStructBegin();
13116
      while (true)
13117
      {
13118
        field = iprot.readFieldBegin();
13119
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13120
          break;
13121
        }
13122
        switch (field.id) {
13123
          case 0: // SUCCESS
13124
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13125
              {
13126
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
13127
                this.success = new ArrayList<AdwordsAdGroupAd>(_list4.size);
13128
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
13129
                {
13130
                  AdwordsAdGroupAd _elem6; // required
13131
                  _elem6 = new AdwordsAdGroupAd();
13132
                  _elem6.read(iprot);
13133
                  this.success.add(_elem6);
13134
                }
13135
                iprot.readListEnd();
13136
              }
13137
            } else { 
13138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13139
            }
13140
            break;
13141
          case 1: // GASEX
13142
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13143
              this.gasex = new GoogleAdwordsServiceException();
13144
              this.gasex.read(iprot);
13145
            } else { 
13146
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13147
            }
13148
            break;
13149
          default:
13150
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13151
        }
13152
        iprot.readFieldEnd();
13153
      }
13154
      iprot.readStructEnd();
13155
      validate();
13156
    }
13157
 
13158
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13159
      oprot.writeStructBegin(STRUCT_DESC);
13160
 
13161
      if (this.isSetSuccess()) {
13162
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13163
        {
13164
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13165
          for (AdwordsAdGroupAd _iter7 : this.success)
13166
          {
13167
            _iter7.write(oprot);
13168
          }
13169
          oprot.writeListEnd();
13170
        }
13171
        oprot.writeFieldEnd();
13172
      } else if (this.isSetGasex()) {
13173
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
13174
        this.gasex.write(oprot);
13175
        oprot.writeFieldEnd();
13176
      }
13177
      oprot.writeFieldStop();
13178
      oprot.writeStructEnd();
13179
    }
13180
 
13181
    @Override
13182
    public String toString() {
13183
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupAdsByAdgroupId_result(");
13184
      boolean first = true;
13185
 
13186
      sb.append("success:");
13187
      if (this.success == null) {
13188
        sb.append("null");
13189
      } else {
13190
        sb.append(this.success);
13191
      }
13192
      first = false;
13193
      if (!first) sb.append(", ");
13194
      sb.append("gasex:");
13195
      if (this.gasex == null) {
13196
        sb.append("null");
13197
      } else {
13198
        sb.append(this.gasex);
13199
      }
13200
      first = false;
13201
      sb.append(")");
13202
      return sb.toString();
13203
    }
13204
 
13205
    public void validate() throws org.apache.thrift.TException {
13206
      // check for required fields
13207
    }
13208
 
13209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13210
      try {
13211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13212
      } catch (org.apache.thrift.TException te) {
13213
        throw new java.io.IOException(te);
13214
      }
13215
    }
13216
 
13217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13218
      try {
13219
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13220
      } catch (org.apache.thrift.TException te) {
13221
        throw new java.io.IOException(te);
13222
      }
13223
    }
13224
 
13225
  }
13226
 
13227
  public static class getAdwordsAdGroupsByCampaignId_args implements org.apache.thrift.TBase<getAdwordsAdGroupsByCampaignId_args, getAdwordsAdGroupsByCampaignId_args._Fields>, java.io.Serializable, Cloneable   {
13228
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupsByCampaignId_args");
13229
 
13230
    private static final org.apache.thrift.protocol.TField CAMPAIGN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("campaignId", org.apache.thrift.protocol.TType.I64, (short)1);
13231
 
13232
    private long campaignId; // required
13233
 
13234
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13235
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13236
      CAMPAIGN_ID((short)1, "campaignId");
13237
 
13238
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13239
 
13240
      static {
13241
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13242
          byName.put(field.getFieldName(), field);
13243
        }
13244
      }
13245
 
13246
      /**
13247
       * Find the _Fields constant that matches fieldId, or null if its not found.
13248
       */
13249
      public static _Fields findByThriftId(int fieldId) {
13250
        switch(fieldId) {
13251
          case 1: // CAMPAIGN_ID
13252
            return CAMPAIGN_ID;
13253
          default:
13254
            return null;
13255
        }
13256
      }
13257
 
13258
      /**
13259
       * Find the _Fields constant that matches fieldId, throwing an exception
13260
       * if it is not found.
13261
       */
13262
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13263
        _Fields fields = findByThriftId(fieldId);
13264
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13265
        return fields;
13266
      }
13267
 
13268
      /**
13269
       * Find the _Fields constant that matches name, or null if its not found.
13270
       */
13271
      public static _Fields findByName(String name) {
13272
        return byName.get(name);
13273
      }
13274
 
13275
      private final short _thriftId;
13276
      private final String _fieldName;
13277
 
13278
      _Fields(short thriftId, String fieldName) {
13279
        _thriftId = thriftId;
13280
        _fieldName = fieldName;
13281
      }
13282
 
13283
      public short getThriftFieldId() {
13284
        return _thriftId;
13285
      }
13286
 
13287
      public String getFieldName() {
13288
        return _fieldName;
13289
      }
13290
    }
13291
 
13292
    // isset id assignments
13293
    private static final int __CAMPAIGNID_ISSET_ID = 0;
13294
    private BitSet __isset_bit_vector = new BitSet(1);
13295
 
13296
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13297
    static {
13298
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13299
      tmpMap.put(_Fields.CAMPAIGN_ID, new org.apache.thrift.meta_data.FieldMetaData("campaignId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13300
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13301
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13302
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupsByCampaignId_args.class, metaDataMap);
13303
    }
13304
 
13305
    public getAdwordsAdGroupsByCampaignId_args() {
13306
    }
13307
 
13308
    public getAdwordsAdGroupsByCampaignId_args(
13309
      long campaignId)
13310
    {
13311
      this();
13312
      this.campaignId = campaignId;
13313
      setCampaignIdIsSet(true);
13314
    }
13315
 
13316
    /**
13317
     * Performs a deep copy on <i>other</i>.
13318
     */
13319
    public getAdwordsAdGroupsByCampaignId_args(getAdwordsAdGroupsByCampaignId_args other) {
13320
      __isset_bit_vector.clear();
13321
      __isset_bit_vector.or(other.__isset_bit_vector);
13322
      this.campaignId = other.campaignId;
13323
    }
13324
 
13325
    public getAdwordsAdGroupsByCampaignId_args deepCopy() {
13326
      return new getAdwordsAdGroupsByCampaignId_args(this);
13327
    }
13328
 
13329
    @Override
13330
    public void clear() {
13331
      setCampaignIdIsSet(false);
13332
      this.campaignId = 0;
13333
    }
13334
 
13335
    public long getCampaignId() {
13336
      return this.campaignId;
13337
    }
13338
 
13339
    public void setCampaignId(long campaignId) {
13340
      this.campaignId = campaignId;
13341
      setCampaignIdIsSet(true);
13342
    }
13343
 
13344
    public void unsetCampaignId() {
13345
      __isset_bit_vector.clear(__CAMPAIGNID_ISSET_ID);
13346
    }
13347
 
13348
    /** Returns true if field campaignId is set (has been assigned a value) and false otherwise */
13349
    public boolean isSetCampaignId() {
13350
      return __isset_bit_vector.get(__CAMPAIGNID_ISSET_ID);
13351
    }
13352
 
13353
    public void setCampaignIdIsSet(boolean value) {
13354
      __isset_bit_vector.set(__CAMPAIGNID_ISSET_ID, value);
13355
    }
13356
 
13357
    public void setFieldValue(_Fields field, Object value) {
13358
      switch (field) {
13359
      case CAMPAIGN_ID:
13360
        if (value == null) {
13361
          unsetCampaignId();
13362
        } else {
13363
          setCampaignId((Long)value);
13364
        }
13365
        break;
13366
 
13367
      }
13368
    }
13369
 
13370
    public Object getFieldValue(_Fields field) {
13371
      switch (field) {
13372
      case CAMPAIGN_ID:
13373
        return Long.valueOf(getCampaignId());
13374
 
13375
      }
13376
      throw new IllegalStateException();
13377
    }
13378
 
13379
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13380
    public boolean isSet(_Fields field) {
13381
      if (field == null) {
13382
        throw new IllegalArgumentException();
13383
      }
13384
 
13385
      switch (field) {
13386
      case CAMPAIGN_ID:
13387
        return isSetCampaignId();
13388
      }
13389
      throw new IllegalStateException();
13390
    }
13391
 
13392
    @Override
13393
    public boolean equals(Object that) {
13394
      if (that == null)
13395
        return false;
13396
      if (that instanceof getAdwordsAdGroupsByCampaignId_args)
13397
        return this.equals((getAdwordsAdGroupsByCampaignId_args)that);
13398
      return false;
13399
    }
13400
 
13401
    public boolean equals(getAdwordsAdGroupsByCampaignId_args that) {
13402
      if (that == null)
13403
        return false;
13404
 
13405
      boolean this_present_campaignId = true;
13406
      boolean that_present_campaignId = true;
13407
      if (this_present_campaignId || that_present_campaignId) {
13408
        if (!(this_present_campaignId && that_present_campaignId))
13409
          return false;
13410
        if (this.campaignId != that.campaignId)
13411
          return false;
13412
      }
13413
 
13414
      return true;
13415
    }
13416
 
13417
    @Override
13418
    public int hashCode() {
13419
      return 0;
13420
    }
13421
 
13422
    public int compareTo(getAdwordsAdGroupsByCampaignId_args other) {
13423
      if (!getClass().equals(other.getClass())) {
13424
        return getClass().getName().compareTo(other.getClass().getName());
13425
      }
13426
 
13427
      int lastComparison = 0;
13428
      getAdwordsAdGroupsByCampaignId_args typedOther = (getAdwordsAdGroupsByCampaignId_args)other;
13429
 
13430
      lastComparison = Boolean.valueOf(isSetCampaignId()).compareTo(typedOther.isSetCampaignId());
13431
      if (lastComparison != 0) {
13432
        return lastComparison;
13433
      }
13434
      if (isSetCampaignId()) {
13435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignId, typedOther.campaignId);
13436
        if (lastComparison != 0) {
13437
          return lastComparison;
13438
        }
13439
      }
13440
      return 0;
13441
    }
13442
 
13443
    public _Fields fieldForId(int fieldId) {
13444
      return _Fields.findByThriftId(fieldId);
13445
    }
13446
 
13447
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13448
      org.apache.thrift.protocol.TField field;
13449
      iprot.readStructBegin();
13450
      while (true)
13451
      {
13452
        field = iprot.readFieldBegin();
13453
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13454
          break;
13455
        }
13456
        switch (field.id) {
13457
          case 1: // CAMPAIGN_ID
13458
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13459
              this.campaignId = iprot.readI64();
13460
              setCampaignIdIsSet(true);
13461
            } else { 
13462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13463
            }
13464
            break;
13465
          default:
13466
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13467
        }
13468
        iprot.readFieldEnd();
13469
      }
13470
      iprot.readStructEnd();
13471
      validate();
13472
    }
13473
 
13474
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13475
      validate();
13476
 
13477
      oprot.writeStructBegin(STRUCT_DESC);
13478
      oprot.writeFieldBegin(CAMPAIGN_ID_FIELD_DESC);
13479
      oprot.writeI64(this.campaignId);
13480
      oprot.writeFieldEnd();
13481
      oprot.writeFieldStop();
13482
      oprot.writeStructEnd();
13483
    }
13484
 
13485
    @Override
13486
    public String toString() {
13487
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupsByCampaignId_args(");
13488
      boolean first = true;
13489
 
13490
      sb.append("campaignId:");
13491
      sb.append(this.campaignId);
13492
      first = false;
13493
      sb.append(")");
13494
      return sb.toString();
13495
    }
13496
 
13497
    public void validate() throws org.apache.thrift.TException {
13498
      // check for required fields
13499
    }
13500
 
13501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13502
      try {
13503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13504
      } catch (org.apache.thrift.TException te) {
13505
        throw new java.io.IOException(te);
13506
      }
13507
    }
13508
 
13509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13510
      try {
13511
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13512
        __isset_bit_vector = new BitSet(1);
13513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13514
      } catch (org.apache.thrift.TException te) {
13515
        throw new java.io.IOException(te);
13516
      }
13517
    }
13518
 
13519
  }
13520
 
13521
  public static class getAdwordsAdGroupsByCampaignId_result implements org.apache.thrift.TBase<getAdwordsAdGroupsByCampaignId_result, getAdwordsAdGroupsByCampaignId_result._Fields>, java.io.Serializable, Cloneable   {
13522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupsByCampaignId_result");
13523
 
13524
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
13525
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
13526
 
13527
    private List<AdwordsAdGroup> success; // required
13528
    private GoogleAdwordsServiceException gasex; // required
13529
 
13530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13532
      SUCCESS((short)0, "success"),
13533
      GASEX((short)1, "gasex");
13534
 
13535
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13536
 
13537
      static {
13538
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13539
          byName.put(field.getFieldName(), field);
13540
        }
13541
      }
13542
 
13543
      /**
13544
       * Find the _Fields constant that matches fieldId, or null if its not found.
13545
       */
13546
      public static _Fields findByThriftId(int fieldId) {
13547
        switch(fieldId) {
13548
          case 0: // SUCCESS
13549
            return SUCCESS;
13550
          case 1: // GASEX
13551
            return GASEX;
13552
          default:
13553
            return null;
13554
        }
13555
      }
13556
 
13557
      /**
13558
       * Find the _Fields constant that matches fieldId, throwing an exception
13559
       * if it is not found.
13560
       */
13561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13562
        _Fields fields = findByThriftId(fieldId);
13563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13564
        return fields;
13565
      }
13566
 
13567
      /**
13568
       * Find the _Fields constant that matches name, or null if its not found.
13569
       */
13570
      public static _Fields findByName(String name) {
13571
        return byName.get(name);
13572
      }
13573
 
13574
      private final short _thriftId;
13575
      private final String _fieldName;
13576
 
13577
      _Fields(short thriftId, String fieldName) {
13578
        _thriftId = thriftId;
13579
        _fieldName = fieldName;
13580
      }
13581
 
13582
      public short getThriftFieldId() {
13583
        return _thriftId;
13584
      }
13585
 
13586
      public String getFieldName() {
13587
        return _fieldName;
13588
      }
13589
    }
13590
 
13591
    // isset id assignments
13592
 
13593
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13594
    static {
13595
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13596
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13597
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13598
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class))));
13599
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13600
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13601
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13602
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupsByCampaignId_result.class, metaDataMap);
13603
    }
13604
 
13605
    public getAdwordsAdGroupsByCampaignId_result() {
13606
    }
13607
 
13608
    public getAdwordsAdGroupsByCampaignId_result(
13609
      List<AdwordsAdGroup> success,
13610
      GoogleAdwordsServiceException gasex)
13611
    {
13612
      this();
13613
      this.success = success;
13614
      this.gasex = gasex;
13615
    }
13616
 
13617
    /**
13618
     * Performs a deep copy on <i>other</i>.
13619
     */
13620
    public getAdwordsAdGroupsByCampaignId_result(getAdwordsAdGroupsByCampaignId_result other) {
13621
      if (other.isSetSuccess()) {
13622
        List<AdwordsAdGroup> __this__success = new ArrayList<AdwordsAdGroup>();
13623
        for (AdwordsAdGroup other_element : other.success) {
13624
          __this__success.add(new AdwordsAdGroup(other_element));
13625
        }
13626
        this.success = __this__success;
13627
      }
13628
      if (other.isSetGasex()) {
13629
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
13630
      }
13631
    }
13632
 
13633
    public getAdwordsAdGroupsByCampaignId_result deepCopy() {
13634
      return new getAdwordsAdGroupsByCampaignId_result(this);
13635
    }
13636
 
13637
    @Override
13638
    public void clear() {
13639
      this.success = null;
13640
      this.gasex = null;
13641
    }
13642
 
13643
    public int getSuccessSize() {
13644
      return (this.success == null) ? 0 : this.success.size();
13645
    }
13646
 
13647
    public java.util.Iterator<AdwordsAdGroup> getSuccessIterator() {
13648
      return (this.success == null) ? null : this.success.iterator();
13649
    }
13650
 
13651
    public void addToSuccess(AdwordsAdGroup elem) {
13652
      if (this.success == null) {
13653
        this.success = new ArrayList<AdwordsAdGroup>();
13654
      }
13655
      this.success.add(elem);
13656
    }
13657
 
13658
    public List<AdwordsAdGroup> getSuccess() {
13659
      return this.success;
13660
    }
13661
 
13662
    public void setSuccess(List<AdwordsAdGroup> success) {
13663
      this.success = success;
13664
    }
13665
 
13666
    public void unsetSuccess() {
13667
      this.success = null;
13668
    }
13669
 
13670
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13671
    public boolean isSetSuccess() {
13672
      return this.success != null;
13673
    }
13674
 
13675
    public void setSuccessIsSet(boolean value) {
13676
      if (!value) {
13677
        this.success = null;
13678
      }
13679
    }
13680
 
13681
    public GoogleAdwordsServiceException getGasex() {
13682
      return this.gasex;
13683
    }
13684
 
13685
    public void setGasex(GoogleAdwordsServiceException gasex) {
13686
      this.gasex = gasex;
13687
    }
13688
 
13689
    public void unsetGasex() {
13690
      this.gasex = null;
13691
    }
13692
 
13693
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
13694
    public boolean isSetGasex() {
13695
      return this.gasex != null;
13696
    }
13697
 
13698
    public void setGasexIsSet(boolean value) {
13699
      if (!value) {
13700
        this.gasex = null;
13701
      }
13702
    }
13703
 
13704
    public void setFieldValue(_Fields field, Object value) {
13705
      switch (field) {
13706
      case SUCCESS:
13707
        if (value == null) {
13708
          unsetSuccess();
13709
        } else {
13710
          setSuccess((List<AdwordsAdGroup>)value);
13711
        }
13712
        break;
13713
 
13714
      case GASEX:
13715
        if (value == null) {
13716
          unsetGasex();
13717
        } else {
13718
          setGasex((GoogleAdwordsServiceException)value);
13719
        }
13720
        break;
13721
 
13722
      }
13723
    }
13724
 
13725
    public Object getFieldValue(_Fields field) {
13726
      switch (field) {
13727
      case SUCCESS:
13728
        return getSuccess();
13729
 
13730
      case GASEX:
13731
        return getGasex();
13732
 
13733
      }
13734
      throw new IllegalStateException();
13735
    }
13736
 
13737
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13738
    public boolean isSet(_Fields field) {
13739
      if (field == null) {
13740
        throw new IllegalArgumentException();
13741
      }
13742
 
13743
      switch (field) {
13744
      case SUCCESS:
13745
        return isSetSuccess();
13746
      case GASEX:
13747
        return isSetGasex();
13748
      }
13749
      throw new IllegalStateException();
13750
    }
13751
 
13752
    @Override
13753
    public boolean equals(Object that) {
13754
      if (that == null)
13755
        return false;
13756
      if (that instanceof getAdwordsAdGroupsByCampaignId_result)
13757
        return this.equals((getAdwordsAdGroupsByCampaignId_result)that);
13758
      return false;
13759
    }
13760
 
13761
    public boolean equals(getAdwordsAdGroupsByCampaignId_result that) {
13762
      if (that == null)
13763
        return false;
13764
 
13765
      boolean this_present_success = true && this.isSetSuccess();
13766
      boolean that_present_success = true && that.isSetSuccess();
13767
      if (this_present_success || that_present_success) {
13768
        if (!(this_present_success && that_present_success))
13769
          return false;
13770
        if (!this.success.equals(that.success))
13771
          return false;
13772
      }
13773
 
13774
      boolean this_present_gasex = true && this.isSetGasex();
13775
      boolean that_present_gasex = true && that.isSetGasex();
13776
      if (this_present_gasex || that_present_gasex) {
13777
        if (!(this_present_gasex && that_present_gasex))
13778
          return false;
13779
        if (!this.gasex.equals(that.gasex))
13780
          return false;
13781
      }
13782
 
13783
      return true;
13784
    }
13785
 
13786
    @Override
13787
    public int hashCode() {
13788
      return 0;
13789
    }
13790
 
13791
    public int compareTo(getAdwordsAdGroupsByCampaignId_result other) {
13792
      if (!getClass().equals(other.getClass())) {
13793
        return getClass().getName().compareTo(other.getClass().getName());
13794
      }
13795
 
13796
      int lastComparison = 0;
13797
      getAdwordsAdGroupsByCampaignId_result typedOther = (getAdwordsAdGroupsByCampaignId_result)other;
13798
 
13799
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13800
      if (lastComparison != 0) {
13801
        return lastComparison;
13802
      }
13803
      if (isSetSuccess()) {
13804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13805
        if (lastComparison != 0) {
13806
          return lastComparison;
13807
        }
13808
      }
13809
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
13810
      if (lastComparison != 0) {
13811
        return lastComparison;
13812
      }
13813
      if (isSetGasex()) {
13814
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
13815
        if (lastComparison != 0) {
13816
          return lastComparison;
13817
        }
13818
      }
13819
      return 0;
13820
    }
13821
 
13822
    public _Fields fieldForId(int fieldId) {
13823
      return _Fields.findByThriftId(fieldId);
13824
    }
13825
 
13826
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13827
      org.apache.thrift.protocol.TField field;
13828
      iprot.readStructBegin();
13829
      while (true)
13830
      {
13831
        field = iprot.readFieldBegin();
13832
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13833
          break;
13834
        }
13835
        switch (field.id) {
13836
          case 0: // SUCCESS
13837
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13838
              {
13839
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
13840
                this.success = new ArrayList<AdwordsAdGroup>(_list8.size);
13841
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
13842
                {
13843
                  AdwordsAdGroup _elem10; // required
13844
                  _elem10 = new AdwordsAdGroup();
13845
                  _elem10.read(iprot);
13846
                  this.success.add(_elem10);
13847
                }
13848
                iprot.readListEnd();
13849
              }
13850
            } else { 
13851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13852
            }
13853
            break;
13854
          case 1: // GASEX
13855
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13856
              this.gasex = new GoogleAdwordsServiceException();
13857
              this.gasex.read(iprot);
13858
            } else { 
13859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13860
            }
13861
            break;
13862
          default:
13863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13864
        }
13865
        iprot.readFieldEnd();
13866
      }
13867
      iprot.readStructEnd();
13868
      validate();
13869
    }
13870
 
13871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13872
      oprot.writeStructBegin(STRUCT_DESC);
13873
 
13874
      if (this.isSetSuccess()) {
13875
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13876
        {
13877
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13878
          for (AdwordsAdGroup _iter11 : this.success)
13879
          {
13880
            _iter11.write(oprot);
13881
          }
13882
          oprot.writeListEnd();
13883
        }
13884
        oprot.writeFieldEnd();
13885
      } else if (this.isSetGasex()) {
13886
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
13887
        this.gasex.write(oprot);
13888
        oprot.writeFieldEnd();
13889
      }
13890
      oprot.writeFieldStop();
13891
      oprot.writeStructEnd();
13892
    }
13893
 
13894
    @Override
13895
    public String toString() {
13896
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupsByCampaignId_result(");
13897
      boolean first = true;
13898
 
13899
      sb.append("success:");
13900
      if (this.success == null) {
13901
        sb.append("null");
13902
      } else {
13903
        sb.append(this.success);
13904
      }
13905
      first = false;
13906
      if (!first) sb.append(", ");
13907
      sb.append("gasex:");
13908
      if (this.gasex == null) {
13909
        sb.append("null");
13910
      } else {
13911
        sb.append(this.gasex);
13912
      }
13913
      first = false;
13914
      sb.append(")");
13915
      return sb.toString();
13916
    }
13917
 
13918
    public void validate() throws org.apache.thrift.TException {
13919
      // check for required fields
13920
    }
13921
 
13922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13923
      try {
13924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13925
      } catch (org.apache.thrift.TException te) {
13926
        throw new java.io.IOException(te);
13927
      }
13928
    }
13929
 
13930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13931
      try {
13932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13933
      } catch (org.apache.thrift.TException te) {
13934
        throw new java.io.IOException(te);
13935
      }
13936
    }
13937
 
13938
  }
13939
 
13940
  public static class getAllAdwordsCampaigns_args implements org.apache.thrift.TBase<getAllAdwordsCampaigns_args, getAllAdwordsCampaigns_args._Fields>, java.io.Serializable, Cloneable   {
13941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsCampaigns_args");
13942
 
13943
 
13944
 
13945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13947
;
13948
 
13949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13950
 
13951
      static {
13952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13953
          byName.put(field.getFieldName(), field);
13954
        }
13955
      }
13956
 
13957
      /**
13958
       * Find the _Fields constant that matches fieldId, or null if its not found.
13959
       */
13960
      public static _Fields findByThriftId(int fieldId) {
13961
        switch(fieldId) {
13962
          default:
13963
            return null;
13964
        }
13965
      }
13966
 
13967
      /**
13968
       * Find the _Fields constant that matches fieldId, throwing an exception
13969
       * if it is not found.
13970
       */
13971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13972
        _Fields fields = findByThriftId(fieldId);
13973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13974
        return fields;
13975
      }
13976
 
13977
      /**
13978
       * Find the _Fields constant that matches name, or null if its not found.
13979
       */
13980
      public static _Fields findByName(String name) {
13981
        return byName.get(name);
13982
      }
13983
 
13984
      private final short _thriftId;
13985
      private final String _fieldName;
13986
 
13987
      _Fields(short thriftId, String fieldName) {
13988
        _thriftId = thriftId;
13989
        _fieldName = fieldName;
13990
      }
13991
 
13992
      public short getThriftFieldId() {
13993
        return _thriftId;
13994
      }
13995
 
13996
      public String getFieldName() {
13997
        return _fieldName;
13998
      }
13999
    }
14000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14001
    static {
14002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsCampaigns_args.class, metaDataMap);
14005
    }
14006
 
14007
    public getAllAdwordsCampaigns_args() {
14008
    }
14009
 
14010
    /**
14011
     * Performs a deep copy on <i>other</i>.
14012
     */
14013
    public getAllAdwordsCampaigns_args(getAllAdwordsCampaigns_args other) {
14014
    }
14015
 
14016
    public getAllAdwordsCampaigns_args deepCopy() {
14017
      return new getAllAdwordsCampaigns_args(this);
14018
    }
14019
 
14020
    @Override
14021
    public void clear() {
14022
    }
14023
 
14024
    public void setFieldValue(_Fields field, Object value) {
14025
      switch (field) {
14026
      }
14027
    }
14028
 
14029
    public Object getFieldValue(_Fields field) {
14030
      switch (field) {
14031
      }
14032
      throw new IllegalStateException();
14033
    }
14034
 
14035
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14036
    public boolean isSet(_Fields field) {
14037
      if (field == null) {
14038
        throw new IllegalArgumentException();
14039
      }
14040
 
14041
      switch (field) {
14042
      }
14043
      throw new IllegalStateException();
14044
    }
14045
 
14046
    @Override
14047
    public boolean equals(Object that) {
14048
      if (that == null)
14049
        return false;
14050
      if (that instanceof getAllAdwordsCampaigns_args)
14051
        return this.equals((getAllAdwordsCampaigns_args)that);
14052
      return false;
14053
    }
14054
 
14055
    public boolean equals(getAllAdwordsCampaigns_args that) {
14056
      if (that == null)
14057
        return false;
14058
 
14059
      return true;
14060
    }
14061
 
14062
    @Override
14063
    public int hashCode() {
14064
      return 0;
14065
    }
14066
 
14067
    public int compareTo(getAllAdwordsCampaigns_args other) {
14068
      if (!getClass().equals(other.getClass())) {
14069
        return getClass().getName().compareTo(other.getClass().getName());
14070
      }
14071
 
14072
      int lastComparison = 0;
14073
      getAllAdwordsCampaigns_args typedOther = (getAllAdwordsCampaigns_args)other;
14074
 
14075
      return 0;
14076
    }
14077
 
14078
    public _Fields fieldForId(int fieldId) {
14079
      return _Fields.findByThriftId(fieldId);
14080
    }
14081
 
14082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14083
      org.apache.thrift.protocol.TField field;
14084
      iprot.readStructBegin();
14085
      while (true)
14086
      {
14087
        field = iprot.readFieldBegin();
14088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14089
          break;
14090
        }
14091
        switch (field.id) {
14092
          default:
14093
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14094
        }
14095
        iprot.readFieldEnd();
14096
      }
14097
      iprot.readStructEnd();
14098
      validate();
14099
    }
14100
 
14101
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14102
      validate();
14103
 
14104
      oprot.writeStructBegin(STRUCT_DESC);
14105
      oprot.writeFieldStop();
14106
      oprot.writeStructEnd();
14107
    }
14108
 
14109
    @Override
14110
    public String toString() {
14111
      StringBuilder sb = new StringBuilder("getAllAdwordsCampaigns_args(");
14112
      boolean first = true;
14113
 
14114
      sb.append(")");
14115
      return sb.toString();
14116
    }
14117
 
14118
    public void validate() throws org.apache.thrift.TException {
14119
      // check for required fields
14120
    }
14121
 
14122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14123
      try {
14124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14125
      } catch (org.apache.thrift.TException te) {
14126
        throw new java.io.IOException(te);
14127
      }
14128
    }
14129
 
14130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14131
      try {
14132
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14133
      } catch (org.apache.thrift.TException te) {
14134
        throw new java.io.IOException(te);
14135
      }
14136
    }
14137
 
14138
  }
14139
 
14140
  public static class getAllAdwordsCampaigns_result implements org.apache.thrift.TBase<getAllAdwordsCampaigns_result, getAllAdwordsCampaigns_result._Fields>, java.io.Serializable, Cloneable   {
14141
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsCampaigns_result");
14142
 
14143
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
14144
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
14145
 
14146
    private List<AdwordsCampaign> success; // required
14147
    private GoogleAdwordsServiceException gasex; // required
14148
 
14149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14151
      SUCCESS((short)0, "success"),
14152
      GASEX((short)1, "gasex");
14153
 
14154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14155
 
14156
      static {
14157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14158
          byName.put(field.getFieldName(), field);
14159
        }
14160
      }
14161
 
14162
      /**
14163
       * Find the _Fields constant that matches fieldId, or null if its not found.
14164
       */
14165
      public static _Fields findByThriftId(int fieldId) {
14166
        switch(fieldId) {
14167
          case 0: // SUCCESS
14168
            return SUCCESS;
14169
          case 1: // GASEX
14170
            return GASEX;
14171
          default:
14172
            return null;
14173
        }
14174
      }
14175
 
14176
      /**
14177
       * Find the _Fields constant that matches fieldId, throwing an exception
14178
       * if it is not found.
14179
       */
14180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14181
        _Fields fields = findByThriftId(fieldId);
14182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14183
        return fields;
14184
      }
14185
 
14186
      /**
14187
       * Find the _Fields constant that matches name, or null if its not found.
14188
       */
14189
      public static _Fields findByName(String name) {
14190
        return byName.get(name);
14191
      }
14192
 
14193
      private final short _thriftId;
14194
      private final String _fieldName;
14195
 
14196
      _Fields(short thriftId, String fieldName) {
14197
        _thriftId = thriftId;
14198
        _fieldName = fieldName;
14199
      }
14200
 
14201
      public short getThriftFieldId() {
14202
        return _thriftId;
14203
      }
14204
 
14205
      public String getFieldName() {
14206
        return _fieldName;
14207
      }
14208
    }
14209
 
14210
    // isset id assignments
14211
 
14212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14213
    static {
14214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14215
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14216
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14217
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class))));
14218
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14220
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14221
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsCampaigns_result.class, metaDataMap);
14222
    }
14223
 
14224
    public getAllAdwordsCampaigns_result() {
14225
    }
14226
 
14227
    public getAllAdwordsCampaigns_result(
14228
      List<AdwordsCampaign> success,
14229
      GoogleAdwordsServiceException gasex)
14230
    {
14231
      this();
14232
      this.success = success;
14233
      this.gasex = gasex;
14234
    }
14235
 
14236
    /**
14237
     * Performs a deep copy on <i>other</i>.
14238
     */
14239
    public getAllAdwordsCampaigns_result(getAllAdwordsCampaigns_result other) {
14240
      if (other.isSetSuccess()) {
14241
        List<AdwordsCampaign> __this__success = new ArrayList<AdwordsCampaign>();
14242
        for (AdwordsCampaign other_element : other.success) {
14243
          __this__success.add(new AdwordsCampaign(other_element));
14244
        }
14245
        this.success = __this__success;
14246
      }
14247
      if (other.isSetGasex()) {
14248
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
14249
      }
14250
    }
14251
 
14252
    public getAllAdwordsCampaigns_result deepCopy() {
14253
      return new getAllAdwordsCampaigns_result(this);
14254
    }
14255
 
14256
    @Override
14257
    public void clear() {
14258
      this.success = null;
14259
      this.gasex = null;
14260
    }
14261
 
14262
    public int getSuccessSize() {
14263
      return (this.success == null) ? 0 : this.success.size();
14264
    }
14265
 
14266
    public java.util.Iterator<AdwordsCampaign> getSuccessIterator() {
14267
      return (this.success == null) ? null : this.success.iterator();
14268
    }
14269
 
14270
    public void addToSuccess(AdwordsCampaign elem) {
14271
      if (this.success == null) {
14272
        this.success = new ArrayList<AdwordsCampaign>();
14273
      }
14274
      this.success.add(elem);
14275
    }
14276
 
14277
    public List<AdwordsCampaign> getSuccess() {
14278
      return this.success;
14279
    }
14280
 
14281
    public void setSuccess(List<AdwordsCampaign> success) {
14282
      this.success = success;
14283
    }
14284
 
14285
    public void unsetSuccess() {
14286
      this.success = null;
14287
    }
14288
 
14289
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14290
    public boolean isSetSuccess() {
14291
      return this.success != null;
14292
    }
14293
 
14294
    public void setSuccessIsSet(boolean value) {
14295
      if (!value) {
14296
        this.success = null;
14297
      }
14298
    }
14299
 
14300
    public GoogleAdwordsServiceException getGasex() {
14301
      return this.gasex;
14302
    }
14303
 
14304
    public void setGasex(GoogleAdwordsServiceException gasex) {
14305
      this.gasex = gasex;
14306
    }
14307
 
14308
    public void unsetGasex() {
14309
      this.gasex = null;
14310
    }
14311
 
14312
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
14313
    public boolean isSetGasex() {
14314
      return this.gasex != null;
14315
    }
14316
 
14317
    public void setGasexIsSet(boolean value) {
14318
      if (!value) {
14319
        this.gasex = null;
14320
      }
14321
    }
14322
 
14323
    public void setFieldValue(_Fields field, Object value) {
14324
      switch (field) {
14325
      case SUCCESS:
14326
        if (value == null) {
14327
          unsetSuccess();
14328
        } else {
14329
          setSuccess((List<AdwordsCampaign>)value);
14330
        }
14331
        break;
14332
 
14333
      case GASEX:
14334
        if (value == null) {
14335
          unsetGasex();
14336
        } else {
14337
          setGasex((GoogleAdwordsServiceException)value);
14338
        }
14339
        break;
14340
 
14341
      }
14342
    }
14343
 
14344
    public Object getFieldValue(_Fields field) {
14345
      switch (field) {
14346
      case SUCCESS:
14347
        return getSuccess();
14348
 
14349
      case GASEX:
14350
        return getGasex();
14351
 
14352
      }
14353
      throw new IllegalStateException();
14354
    }
14355
 
14356
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14357
    public boolean isSet(_Fields field) {
14358
      if (field == null) {
14359
        throw new IllegalArgumentException();
14360
      }
14361
 
14362
      switch (field) {
14363
      case SUCCESS:
14364
        return isSetSuccess();
14365
      case GASEX:
14366
        return isSetGasex();
14367
      }
14368
      throw new IllegalStateException();
14369
    }
14370
 
14371
    @Override
14372
    public boolean equals(Object that) {
14373
      if (that == null)
14374
        return false;
14375
      if (that instanceof getAllAdwordsCampaigns_result)
14376
        return this.equals((getAllAdwordsCampaigns_result)that);
14377
      return false;
14378
    }
14379
 
14380
    public boolean equals(getAllAdwordsCampaigns_result that) {
14381
      if (that == null)
14382
        return false;
14383
 
14384
      boolean this_present_success = true && this.isSetSuccess();
14385
      boolean that_present_success = true && that.isSetSuccess();
14386
      if (this_present_success || that_present_success) {
14387
        if (!(this_present_success && that_present_success))
14388
          return false;
14389
        if (!this.success.equals(that.success))
14390
          return false;
14391
      }
14392
 
14393
      boolean this_present_gasex = true && this.isSetGasex();
14394
      boolean that_present_gasex = true && that.isSetGasex();
14395
      if (this_present_gasex || that_present_gasex) {
14396
        if (!(this_present_gasex && that_present_gasex))
14397
          return false;
14398
        if (!this.gasex.equals(that.gasex))
14399
          return false;
14400
      }
14401
 
14402
      return true;
14403
    }
14404
 
14405
    @Override
14406
    public int hashCode() {
14407
      return 0;
14408
    }
14409
 
14410
    public int compareTo(getAllAdwordsCampaigns_result other) {
14411
      if (!getClass().equals(other.getClass())) {
14412
        return getClass().getName().compareTo(other.getClass().getName());
14413
      }
14414
 
14415
      int lastComparison = 0;
14416
      getAllAdwordsCampaigns_result typedOther = (getAllAdwordsCampaigns_result)other;
14417
 
14418
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14419
      if (lastComparison != 0) {
14420
        return lastComparison;
14421
      }
14422
      if (isSetSuccess()) {
14423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14424
        if (lastComparison != 0) {
14425
          return lastComparison;
14426
        }
14427
      }
14428
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
14429
      if (lastComparison != 0) {
14430
        return lastComparison;
14431
      }
14432
      if (isSetGasex()) {
14433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
14434
        if (lastComparison != 0) {
14435
          return lastComparison;
14436
        }
14437
      }
14438
      return 0;
14439
    }
14440
 
14441
    public _Fields fieldForId(int fieldId) {
14442
      return _Fields.findByThriftId(fieldId);
14443
    }
14444
 
14445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14446
      org.apache.thrift.protocol.TField field;
14447
      iprot.readStructBegin();
14448
      while (true)
14449
      {
14450
        field = iprot.readFieldBegin();
14451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14452
          break;
14453
        }
14454
        switch (field.id) {
14455
          case 0: // SUCCESS
14456
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14457
              {
14458
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
14459
                this.success = new ArrayList<AdwordsCampaign>(_list12.size);
14460
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
14461
                {
14462
                  AdwordsCampaign _elem14; // required
14463
                  _elem14 = new AdwordsCampaign();
14464
                  _elem14.read(iprot);
14465
                  this.success.add(_elem14);
14466
                }
14467
                iprot.readListEnd();
14468
              }
14469
            } else { 
14470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14471
            }
14472
            break;
14473
          case 1: // GASEX
14474
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14475
              this.gasex = new GoogleAdwordsServiceException();
14476
              this.gasex.read(iprot);
14477
            } else { 
14478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14479
            }
14480
            break;
14481
          default:
14482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14483
        }
14484
        iprot.readFieldEnd();
14485
      }
14486
      iprot.readStructEnd();
14487
      validate();
14488
    }
14489
 
14490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14491
      oprot.writeStructBegin(STRUCT_DESC);
14492
 
14493
      if (this.isSetSuccess()) {
14494
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14495
        {
14496
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14497
          for (AdwordsCampaign _iter15 : this.success)
14498
          {
14499
            _iter15.write(oprot);
14500
          }
14501
          oprot.writeListEnd();
14502
        }
14503
        oprot.writeFieldEnd();
14504
      } else if (this.isSetGasex()) {
14505
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
14506
        this.gasex.write(oprot);
14507
        oprot.writeFieldEnd();
14508
      }
14509
      oprot.writeFieldStop();
14510
      oprot.writeStructEnd();
14511
    }
14512
 
14513
    @Override
14514
    public String toString() {
14515
      StringBuilder sb = new StringBuilder("getAllAdwordsCampaigns_result(");
14516
      boolean first = true;
14517
 
14518
      sb.append("success:");
14519
      if (this.success == null) {
14520
        sb.append("null");
14521
      } else {
14522
        sb.append(this.success);
14523
      }
14524
      first = false;
14525
      if (!first) sb.append(", ");
14526
      sb.append("gasex:");
14527
      if (this.gasex == null) {
14528
        sb.append("null");
14529
      } else {
14530
        sb.append(this.gasex);
14531
      }
14532
      first = false;
14533
      sb.append(")");
14534
      return sb.toString();
14535
    }
14536
 
14537
    public void validate() throws org.apache.thrift.TException {
14538
      // check for required fields
14539
    }
14540
 
14541
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14542
      try {
14543
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14544
      } catch (org.apache.thrift.TException te) {
14545
        throw new java.io.IOException(te);
14546
      }
14547
    }
14548
 
14549
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14550
      try {
14551
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14552
      } catch (org.apache.thrift.TException te) {
14553
        throw new java.io.IOException(te);
14554
      }
14555
    }
14556
 
14557
  }
14558
 
14559
  public static class getAllAdwordsAdGroups_args implements org.apache.thrift.TBase<getAllAdwordsAdGroups_args, getAllAdwordsAdGroups_args._Fields>, java.io.Serializable, Cloneable   {
14560
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroups_args");
14561
 
14562
 
14563
 
14564
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14565
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14566
;
14567
 
14568
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14569
 
14570
      static {
14571
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14572
          byName.put(field.getFieldName(), field);
14573
        }
14574
      }
14575
 
14576
      /**
14577
       * Find the _Fields constant that matches fieldId, or null if its not found.
14578
       */
14579
      public static _Fields findByThriftId(int fieldId) {
14580
        switch(fieldId) {
14581
          default:
14582
            return null;
14583
        }
14584
      }
14585
 
14586
      /**
14587
       * Find the _Fields constant that matches fieldId, throwing an exception
14588
       * if it is not found.
14589
       */
14590
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14591
        _Fields fields = findByThriftId(fieldId);
14592
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14593
        return fields;
14594
      }
14595
 
14596
      /**
14597
       * Find the _Fields constant that matches name, or null if its not found.
14598
       */
14599
      public static _Fields findByName(String name) {
14600
        return byName.get(name);
14601
      }
14602
 
14603
      private final short _thriftId;
14604
      private final String _fieldName;
14605
 
14606
      _Fields(short thriftId, String fieldName) {
14607
        _thriftId = thriftId;
14608
        _fieldName = fieldName;
14609
      }
14610
 
14611
      public short getThriftFieldId() {
14612
        return _thriftId;
14613
      }
14614
 
14615
      public String getFieldName() {
14616
        return _fieldName;
14617
      }
14618
    }
14619
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14620
    static {
14621
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14622
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14623
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroups_args.class, metaDataMap);
14624
    }
14625
 
14626
    public getAllAdwordsAdGroups_args() {
14627
    }
14628
 
14629
    /**
14630
     * Performs a deep copy on <i>other</i>.
14631
     */
14632
    public getAllAdwordsAdGroups_args(getAllAdwordsAdGroups_args other) {
14633
    }
14634
 
14635
    public getAllAdwordsAdGroups_args deepCopy() {
14636
      return new getAllAdwordsAdGroups_args(this);
14637
    }
14638
 
14639
    @Override
14640
    public void clear() {
14641
    }
14642
 
14643
    public void setFieldValue(_Fields field, Object value) {
14644
      switch (field) {
14645
      }
14646
    }
14647
 
14648
    public Object getFieldValue(_Fields field) {
14649
      switch (field) {
14650
      }
14651
      throw new IllegalStateException();
14652
    }
14653
 
14654
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14655
    public boolean isSet(_Fields field) {
14656
      if (field == null) {
14657
        throw new IllegalArgumentException();
14658
      }
14659
 
14660
      switch (field) {
14661
      }
14662
      throw new IllegalStateException();
14663
    }
14664
 
14665
    @Override
14666
    public boolean equals(Object that) {
14667
      if (that == null)
14668
        return false;
14669
      if (that instanceof getAllAdwordsAdGroups_args)
14670
        return this.equals((getAllAdwordsAdGroups_args)that);
14671
      return false;
14672
    }
14673
 
14674
    public boolean equals(getAllAdwordsAdGroups_args that) {
14675
      if (that == null)
14676
        return false;
14677
 
14678
      return true;
14679
    }
14680
 
14681
    @Override
14682
    public int hashCode() {
14683
      return 0;
14684
    }
14685
 
14686
    public int compareTo(getAllAdwordsAdGroups_args other) {
14687
      if (!getClass().equals(other.getClass())) {
14688
        return getClass().getName().compareTo(other.getClass().getName());
14689
      }
14690
 
14691
      int lastComparison = 0;
14692
      getAllAdwordsAdGroups_args typedOther = (getAllAdwordsAdGroups_args)other;
14693
 
14694
      return 0;
14695
    }
14696
 
14697
    public _Fields fieldForId(int fieldId) {
14698
      return _Fields.findByThriftId(fieldId);
14699
    }
14700
 
14701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14702
      org.apache.thrift.protocol.TField field;
14703
      iprot.readStructBegin();
14704
      while (true)
14705
      {
14706
        field = iprot.readFieldBegin();
14707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14708
          break;
14709
        }
14710
        switch (field.id) {
14711
          default:
14712
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14713
        }
14714
        iprot.readFieldEnd();
14715
      }
14716
      iprot.readStructEnd();
14717
      validate();
14718
    }
14719
 
14720
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14721
      validate();
14722
 
14723
      oprot.writeStructBegin(STRUCT_DESC);
14724
      oprot.writeFieldStop();
14725
      oprot.writeStructEnd();
14726
    }
14727
 
14728
    @Override
14729
    public String toString() {
14730
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroups_args(");
14731
      boolean first = true;
14732
 
14733
      sb.append(")");
14734
      return sb.toString();
14735
    }
14736
 
14737
    public void validate() throws org.apache.thrift.TException {
14738
      // check for required fields
14739
    }
14740
 
14741
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14742
      try {
14743
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14744
      } catch (org.apache.thrift.TException te) {
14745
        throw new java.io.IOException(te);
14746
      }
14747
    }
14748
 
14749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14750
      try {
14751
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14752
      } catch (org.apache.thrift.TException te) {
14753
        throw new java.io.IOException(te);
14754
      }
14755
    }
14756
 
14757
  }
14758
 
14759
  public static class getAllAdwordsAdGroups_result implements org.apache.thrift.TBase<getAllAdwordsAdGroups_result, getAllAdwordsAdGroups_result._Fields>, java.io.Serializable, Cloneable   {
14760
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroups_result");
14761
 
14762
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
14763
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
14764
 
14765
    private List<AdwordsAdGroup> success; // required
14766
    private GoogleAdwordsServiceException gasex; // required
14767
 
14768
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14769
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14770
      SUCCESS((short)0, "success"),
14771
      GASEX((short)1, "gasex");
14772
 
14773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14774
 
14775
      static {
14776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14777
          byName.put(field.getFieldName(), field);
14778
        }
14779
      }
14780
 
14781
      /**
14782
       * Find the _Fields constant that matches fieldId, or null if its not found.
14783
       */
14784
      public static _Fields findByThriftId(int fieldId) {
14785
        switch(fieldId) {
14786
          case 0: // SUCCESS
14787
            return SUCCESS;
14788
          case 1: // GASEX
14789
            return GASEX;
14790
          default:
14791
            return null;
14792
        }
14793
      }
14794
 
14795
      /**
14796
       * Find the _Fields constant that matches fieldId, throwing an exception
14797
       * if it is not found.
14798
       */
14799
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14800
        _Fields fields = findByThriftId(fieldId);
14801
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14802
        return fields;
14803
      }
14804
 
14805
      /**
14806
       * Find the _Fields constant that matches name, or null if its not found.
14807
       */
14808
      public static _Fields findByName(String name) {
14809
        return byName.get(name);
14810
      }
14811
 
14812
      private final short _thriftId;
14813
      private final String _fieldName;
14814
 
14815
      _Fields(short thriftId, String fieldName) {
14816
        _thriftId = thriftId;
14817
        _fieldName = fieldName;
14818
      }
14819
 
14820
      public short getThriftFieldId() {
14821
        return _thriftId;
14822
      }
14823
 
14824
      public String getFieldName() {
14825
        return _fieldName;
14826
      }
14827
    }
14828
 
14829
    // isset id assignments
14830
 
14831
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14832
    static {
14833
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14834
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14835
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14836
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class))));
14837
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14839
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14840
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroups_result.class, metaDataMap);
14841
    }
14842
 
14843
    public getAllAdwordsAdGroups_result() {
14844
    }
14845
 
14846
    public getAllAdwordsAdGroups_result(
14847
      List<AdwordsAdGroup> success,
14848
      GoogleAdwordsServiceException gasex)
14849
    {
14850
      this();
14851
      this.success = success;
14852
      this.gasex = gasex;
14853
    }
14854
 
14855
    /**
14856
     * Performs a deep copy on <i>other</i>.
14857
     */
14858
    public getAllAdwordsAdGroups_result(getAllAdwordsAdGroups_result other) {
14859
      if (other.isSetSuccess()) {
14860
        List<AdwordsAdGroup> __this__success = new ArrayList<AdwordsAdGroup>();
14861
        for (AdwordsAdGroup other_element : other.success) {
14862
          __this__success.add(new AdwordsAdGroup(other_element));
14863
        }
14864
        this.success = __this__success;
14865
      }
14866
      if (other.isSetGasex()) {
14867
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
14868
      }
14869
    }
14870
 
14871
    public getAllAdwordsAdGroups_result deepCopy() {
14872
      return new getAllAdwordsAdGroups_result(this);
14873
    }
14874
 
14875
    @Override
14876
    public void clear() {
14877
      this.success = null;
14878
      this.gasex = null;
14879
    }
14880
 
14881
    public int getSuccessSize() {
14882
      return (this.success == null) ? 0 : this.success.size();
14883
    }
14884
 
14885
    public java.util.Iterator<AdwordsAdGroup> getSuccessIterator() {
14886
      return (this.success == null) ? null : this.success.iterator();
14887
    }
14888
 
14889
    public void addToSuccess(AdwordsAdGroup elem) {
14890
      if (this.success == null) {
14891
        this.success = new ArrayList<AdwordsAdGroup>();
14892
      }
14893
      this.success.add(elem);
14894
    }
14895
 
14896
    public List<AdwordsAdGroup> getSuccess() {
14897
      return this.success;
14898
    }
14899
 
14900
    public void setSuccess(List<AdwordsAdGroup> success) {
14901
      this.success = success;
14902
    }
14903
 
14904
    public void unsetSuccess() {
14905
      this.success = null;
14906
    }
14907
 
14908
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14909
    public boolean isSetSuccess() {
14910
      return this.success != null;
14911
    }
14912
 
14913
    public void setSuccessIsSet(boolean value) {
14914
      if (!value) {
14915
        this.success = null;
14916
      }
14917
    }
14918
 
14919
    public GoogleAdwordsServiceException getGasex() {
14920
      return this.gasex;
14921
    }
14922
 
14923
    public void setGasex(GoogleAdwordsServiceException gasex) {
14924
      this.gasex = gasex;
14925
    }
14926
 
14927
    public void unsetGasex() {
14928
      this.gasex = null;
14929
    }
14930
 
14931
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
14932
    public boolean isSetGasex() {
14933
      return this.gasex != null;
14934
    }
14935
 
14936
    public void setGasexIsSet(boolean value) {
14937
      if (!value) {
14938
        this.gasex = null;
14939
      }
14940
    }
14941
 
14942
    public void setFieldValue(_Fields field, Object value) {
14943
      switch (field) {
14944
      case SUCCESS:
14945
        if (value == null) {
14946
          unsetSuccess();
14947
        } else {
14948
          setSuccess((List<AdwordsAdGroup>)value);
14949
        }
14950
        break;
14951
 
14952
      case GASEX:
14953
        if (value == null) {
14954
          unsetGasex();
14955
        } else {
14956
          setGasex((GoogleAdwordsServiceException)value);
14957
        }
14958
        break;
14959
 
14960
      }
14961
    }
14962
 
14963
    public Object getFieldValue(_Fields field) {
14964
      switch (field) {
14965
      case SUCCESS:
14966
        return getSuccess();
14967
 
14968
      case GASEX:
14969
        return getGasex();
14970
 
14971
      }
14972
      throw new IllegalStateException();
14973
    }
14974
 
14975
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14976
    public boolean isSet(_Fields field) {
14977
      if (field == null) {
14978
        throw new IllegalArgumentException();
14979
      }
14980
 
14981
      switch (field) {
14982
      case SUCCESS:
14983
        return isSetSuccess();
14984
      case GASEX:
14985
        return isSetGasex();
14986
      }
14987
      throw new IllegalStateException();
14988
    }
14989
 
14990
    @Override
14991
    public boolean equals(Object that) {
14992
      if (that == null)
14993
        return false;
14994
      if (that instanceof getAllAdwordsAdGroups_result)
14995
        return this.equals((getAllAdwordsAdGroups_result)that);
14996
      return false;
14997
    }
14998
 
14999
    public boolean equals(getAllAdwordsAdGroups_result that) {
15000
      if (that == null)
15001
        return false;
15002
 
15003
      boolean this_present_success = true && this.isSetSuccess();
15004
      boolean that_present_success = true && that.isSetSuccess();
15005
      if (this_present_success || that_present_success) {
15006
        if (!(this_present_success && that_present_success))
15007
          return false;
15008
        if (!this.success.equals(that.success))
15009
          return false;
15010
      }
15011
 
15012
      boolean this_present_gasex = true && this.isSetGasex();
15013
      boolean that_present_gasex = true && that.isSetGasex();
15014
      if (this_present_gasex || that_present_gasex) {
15015
        if (!(this_present_gasex && that_present_gasex))
15016
          return false;
15017
        if (!this.gasex.equals(that.gasex))
15018
          return false;
15019
      }
15020
 
15021
      return true;
15022
    }
15023
 
15024
    @Override
15025
    public int hashCode() {
15026
      return 0;
15027
    }
15028
 
15029
    public int compareTo(getAllAdwordsAdGroups_result other) {
15030
      if (!getClass().equals(other.getClass())) {
15031
        return getClass().getName().compareTo(other.getClass().getName());
15032
      }
15033
 
15034
      int lastComparison = 0;
15035
      getAllAdwordsAdGroups_result typedOther = (getAllAdwordsAdGroups_result)other;
15036
 
15037
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15038
      if (lastComparison != 0) {
15039
        return lastComparison;
15040
      }
15041
      if (isSetSuccess()) {
15042
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15043
        if (lastComparison != 0) {
15044
          return lastComparison;
15045
        }
15046
      }
15047
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
15048
      if (lastComparison != 0) {
15049
        return lastComparison;
15050
      }
15051
      if (isSetGasex()) {
15052
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
15053
        if (lastComparison != 0) {
15054
          return lastComparison;
15055
        }
15056
      }
15057
      return 0;
15058
    }
15059
 
15060
    public _Fields fieldForId(int fieldId) {
15061
      return _Fields.findByThriftId(fieldId);
15062
    }
15063
 
15064
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15065
      org.apache.thrift.protocol.TField field;
15066
      iprot.readStructBegin();
15067
      while (true)
15068
      {
15069
        field = iprot.readFieldBegin();
15070
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15071
          break;
15072
        }
15073
        switch (field.id) {
15074
          case 0: // SUCCESS
15075
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15076
              {
15077
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
15078
                this.success = new ArrayList<AdwordsAdGroup>(_list16.size);
15079
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
15080
                {
15081
                  AdwordsAdGroup _elem18; // required
15082
                  _elem18 = new AdwordsAdGroup();
15083
                  _elem18.read(iprot);
15084
                  this.success.add(_elem18);
15085
                }
15086
                iprot.readListEnd();
15087
              }
15088
            } else { 
15089
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15090
            }
15091
            break;
15092
          case 1: // GASEX
15093
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15094
              this.gasex = new GoogleAdwordsServiceException();
15095
              this.gasex.read(iprot);
15096
            } else { 
15097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15098
            }
15099
            break;
15100
          default:
15101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15102
        }
15103
        iprot.readFieldEnd();
15104
      }
15105
      iprot.readStructEnd();
15106
      validate();
15107
    }
15108
 
15109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15110
      oprot.writeStructBegin(STRUCT_DESC);
15111
 
15112
      if (this.isSetSuccess()) {
15113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15114
        {
15115
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15116
          for (AdwordsAdGroup _iter19 : this.success)
15117
          {
15118
            _iter19.write(oprot);
15119
          }
15120
          oprot.writeListEnd();
15121
        }
15122
        oprot.writeFieldEnd();
15123
      } else if (this.isSetGasex()) {
15124
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
15125
        this.gasex.write(oprot);
15126
        oprot.writeFieldEnd();
15127
      }
15128
      oprot.writeFieldStop();
15129
      oprot.writeStructEnd();
15130
    }
15131
 
15132
    @Override
15133
    public String toString() {
15134
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroups_result(");
15135
      boolean first = true;
15136
 
15137
      sb.append("success:");
15138
      if (this.success == null) {
15139
        sb.append("null");
15140
      } else {
15141
        sb.append(this.success);
15142
      }
15143
      first = false;
15144
      if (!first) sb.append(", ");
15145
      sb.append("gasex:");
15146
      if (this.gasex == null) {
15147
        sb.append("null");
15148
      } else {
15149
        sb.append(this.gasex);
15150
      }
15151
      first = false;
15152
      sb.append(")");
15153
      return sb.toString();
15154
    }
15155
 
15156
    public void validate() throws org.apache.thrift.TException {
15157
      // check for required fields
15158
    }
15159
 
15160
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15161
      try {
15162
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15163
      } catch (org.apache.thrift.TException te) {
15164
        throw new java.io.IOException(te);
15165
      }
15166
    }
15167
 
15168
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15169
      try {
15170
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15171
      } catch (org.apache.thrift.TException te) {
15172
        throw new java.io.IOException(te);
15173
      }
15174
    }
15175
 
15176
  }
15177
 
15178
  public static class getAllAdwordsAdGroupAds_args implements org.apache.thrift.TBase<getAllAdwordsAdGroupAds_args, getAllAdwordsAdGroupAds_args._Fields>, java.io.Serializable, Cloneable   {
15179
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroupAds_args");
15180
 
15181
 
15182
 
15183
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15184
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15185
;
15186
 
15187
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15188
 
15189
      static {
15190
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15191
          byName.put(field.getFieldName(), field);
15192
        }
15193
      }
15194
 
15195
      /**
15196
       * Find the _Fields constant that matches fieldId, or null if its not found.
15197
       */
15198
      public static _Fields findByThriftId(int fieldId) {
15199
        switch(fieldId) {
15200
          default:
15201
            return null;
15202
        }
15203
      }
15204
 
15205
      /**
15206
       * Find the _Fields constant that matches fieldId, throwing an exception
15207
       * if it is not found.
15208
       */
15209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15210
        _Fields fields = findByThriftId(fieldId);
15211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15212
        return fields;
15213
      }
15214
 
15215
      /**
15216
       * Find the _Fields constant that matches name, or null if its not found.
15217
       */
15218
      public static _Fields findByName(String name) {
15219
        return byName.get(name);
15220
      }
15221
 
15222
      private final short _thriftId;
15223
      private final String _fieldName;
15224
 
15225
      _Fields(short thriftId, String fieldName) {
15226
        _thriftId = thriftId;
15227
        _fieldName = fieldName;
15228
      }
15229
 
15230
      public short getThriftFieldId() {
15231
        return _thriftId;
15232
      }
15233
 
15234
      public String getFieldName() {
15235
        return _fieldName;
15236
      }
15237
    }
15238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15239
    static {
15240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15241
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15242
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroupAds_args.class, metaDataMap);
15243
    }
15244
 
15245
    public getAllAdwordsAdGroupAds_args() {
15246
    }
15247
 
15248
    /**
15249
     * Performs a deep copy on <i>other</i>.
15250
     */
15251
    public getAllAdwordsAdGroupAds_args(getAllAdwordsAdGroupAds_args other) {
15252
    }
15253
 
15254
    public getAllAdwordsAdGroupAds_args deepCopy() {
15255
      return new getAllAdwordsAdGroupAds_args(this);
15256
    }
15257
 
15258
    @Override
15259
    public void clear() {
15260
    }
15261
 
15262
    public void setFieldValue(_Fields field, Object value) {
15263
      switch (field) {
15264
      }
15265
    }
15266
 
15267
    public Object getFieldValue(_Fields field) {
15268
      switch (field) {
15269
      }
15270
      throw new IllegalStateException();
15271
    }
15272
 
15273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15274
    public boolean isSet(_Fields field) {
15275
      if (field == null) {
15276
        throw new IllegalArgumentException();
15277
      }
15278
 
15279
      switch (field) {
15280
      }
15281
      throw new IllegalStateException();
15282
    }
15283
 
15284
    @Override
15285
    public boolean equals(Object that) {
15286
      if (that == null)
15287
        return false;
15288
      if (that instanceof getAllAdwordsAdGroupAds_args)
15289
        return this.equals((getAllAdwordsAdGroupAds_args)that);
15290
      return false;
15291
    }
15292
 
15293
    public boolean equals(getAllAdwordsAdGroupAds_args that) {
15294
      if (that == null)
15295
        return false;
15296
 
15297
      return true;
15298
    }
15299
 
15300
    @Override
15301
    public int hashCode() {
15302
      return 0;
15303
    }
15304
 
15305
    public int compareTo(getAllAdwordsAdGroupAds_args other) {
15306
      if (!getClass().equals(other.getClass())) {
15307
        return getClass().getName().compareTo(other.getClass().getName());
15308
      }
15309
 
15310
      int lastComparison = 0;
15311
      getAllAdwordsAdGroupAds_args typedOther = (getAllAdwordsAdGroupAds_args)other;
15312
 
15313
      return 0;
15314
    }
15315
 
15316
    public _Fields fieldForId(int fieldId) {
15317
      return _Fields.findByThriftId(fieldId);
15318
    }
15319
 
15320
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15321
      org.apache.thrift.protocol.TField field;
15322
      iprot.readStructBegin();
15323
      while (true)
15324
      {
15325
        field = iprot.readFieldBegin();
15326
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15327
          break;
15328
        }
15329
        switch (field.id) {
15330
          default:
15331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15332
        }
15333
        iprot.readFieldEnd();
15334
      }
15335
      iprot.readStructEnd();
15336
      validate();
15337
    }
15338
 
15339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15340
      validate();
15341
 
15342
      oprot.writeStructBegin(STRUCT_DESC);
15343
      oprot.writeFieldStop();
15344
      oprot.writeStructEnd();
15345
    }
15346
 
15347
    @Override
15348
    public String toString() {
15349
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroupAds_args(");
15350
      boolean first = true;
15351
 
15352
      sb.append(")");
15353
      return sb.toString();
15354
    }
15355
 
15356
    public void validate() throws org.apache.thrift.TException {
15357
      // check for required fields
15358
    }
15359
 
15360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15361
      try {
15362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15363
      } catch (org.apache.thrift.TException te) {
15364
        throw new java.io.IOException(te);
15365
      }
15366
    }
15367
 
15368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15369
      try {
15370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15371
      } catch (org.apache.thrift.TException te) {
15372
        throw new java.io.IOException(te);
15373
      }
15374
    }
15375
 
15376
  }
15377
 
15378
  public static class getAllAdwordsAdGroupAds_result implements org.apache.thrift.TBase<getAllAdwordsAdGroupAds_result, getAllAdwordsAdGroupAds_result._Fields>, java.io.Serializable, Cloneable   {
15379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroupAds_result");
15380
 
15381
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
15382
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
15383
 
15384
    private List<AdwordsAdGroupAd> success; // required
15385
    private GoogleAdwordsServiceException gasex; // required
15386
 
15387
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15388
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15389
      SUCCESS((short)0, "success"),
15390
      GASEX((short)1, "gasex");
15391
 
15392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15393
 
15394
      static {
15395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15396
          byName.put(field.getFieldName(), field);
15397
        }
15398
      }
15399
 
15400
      /**
15401
       * Find the _Fields constant that matches fieldId, or null if its not found.
15402
       */
15403
      public static _Fields findByThriftId(int fieldId) {
15404
        switch(fieldId) {
15405
          case 0: // SUCCESS
15406
            return SUCCESS;
15407
          case 1: // GASEX
15408
            return GASEX;
15409
          default:
15410
            return null;
15411
        }
15412
      }
15413
 
15414
      /**
15415
       * Find the _Fields constant that matches fieldId, throwing an exception
15416
       * if it is not found.
15417
       */
15418
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15419
        _Fields fields = findByThriftId(fieldId);
15420
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15421
        return fields;
15422
      }
15423
 
15424
      /**
15425
       * Find the _Fields constant that matches name, or null if its not found.
15426
       */
15427
      public static _Fields findByName(String name) {
15428
        return byName.get(name);
15429
      }
15430
 
15431
      private final short _thriftId;
15432
      private final String _fieldName;
15433
 
15434
      _Fields(short thriftId, String fieldName) {
15435
        _thriftId = thriftId;
15436
        _fieldName = fieldName;
15437
      }
15438
 
15439
      public short getThriftFieldId() {
15440
        return _thriftId;
15441
      }
15442
 
15443
      public String getFieldName() {
15444
        return _fieldName;
15445
      }
15446
    }
15447
 
15448
    // isset id assignments
15449
 
15450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15451
    static {
15452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15453
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15454
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15455
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class))));
15456
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15457
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15458
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15459
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroupAds_result.class, metaDataMap);
15460
    }
15461
 
15462
    public getAllAdwordsAdGroupAds_result() {
15463
    }
15464
 
15465
    public getAllAdwordsAdGroupAds_result(
15466
      List<AdwordsAdGroupAd> success,
15467
      GoogleAdwordsServiceException gasex)
15468
    {
15469
      this();
15470
      this.success = success;
15471
      this.gasex = gasex;
15472
    }
15473
 
15474
    /**
15475
     * Performs a deep copy on <i>other</i>.
15476
     */
15477
    public getAllAdwordsAdGroupAds_result(getAllAdwordsAdGroupAds_result other) {
15478
      if (other.isSetSuccess()) {
15479
        List<AdwordsAdGroupAd> __this__success = new ArrayList<AdwordsAdGroupAd>();
15480
        for (AdwordsAdGroupAd other_element : other.success) {
15481
          __this__success.add(new AdwordsAdGroupAd(other_element));
15482
        }
15483
        this.success = __this__success;
15484
      }
15485
      if (other.isSetGasex()) {
15486
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
15487
      }
15488
    }
15489
 
15490
    public getAllAdwordsAdGroupAds_result deepCopy() {
15491
      return new getAllAdwordsAdGroupAds_result(this);
15492
    }
15493
 
15494
    @Override
15495
    public void clear() {
15496
      this.success = null;
15497
      this.gasex = null;
15498
    }
15499
 
15500
    public int getSuccessSize() {
15501
      return (this.success == null) ? 0 : this.success.size();
15502
    }
15503
 
15504
    public java.util.Iterator<AdwordsAdGroupAd> getSuccessIterator() {
15505
      return (this.success == null) ? null : this.success.iterator();
15506
    }
15507
 
15508
    public void addToSuccess(AdwordsAdGroupAd elem) {
15509
      if (this.success == null) {
15510
        this.success = new ArrayList<AdwordsAdGroupAd>();
15511
      }
15512
      this.success.add(elem);
15513
    }
15514
 
15515
    public List<AdwordsAdGroupAd> getSuccess() {
15516
      return this.success;
15517
    }
15518
 
15519
    public void setSuccess(List<AdwordsAdGroupAd> success) {
15520
      this.success = success;
15521
    }
15522
 
15523
    public void unsetSuccess() {
15524
      this.success = null;
15525
    }
15526
 
15527
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15528
    public boolean isSetSuccess() {
15529
      return this.success != null;
15530
    }
15531
 
15532
    public void setSuccessIsSet(boolean value) {
15533
      if (!value) {
15534
        this.success = null;
15535
      }
15536
    }
15537
 
15538
    public GoogleAdwordsServiceException getGasex() {
15539
      return this.gasex;
15540
    }
15541
 
15542
    public void setGasex(GoogleAdwordsServiceException gasex) {
15543
      this.gasex = gasex;
15544
    }
15545
 
15546
    public void unsetGasex() {
15547
      this.gasex = null;
15548
    }
15549
 
15550
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
15551
    public boolean isSetGasex() {
15552
      return this.gasex != null;
15553
    }
15554
 
15555
    public void setGasexIsSet(boolean value) {
15556
      if (!value) {
15557
        this.gasex = null;
15558
      }
15559
    }
15560
 
15561
    public void setFieldValue(_Fields field, Object value) {
15562
      switch (field) {
15563
      case SUCCESS:
15564
        if (value == null) {
15565
          unsetSuccess();
15566
        } else {
15567
          setSuccess((List<AdwordsAdGroupAd>)value);
15568
        }
15569
        break;
15570
 
15571
      case GASEX:
15572
        if (value == null) {
15573
          unsetGasex();
15574
        } else {
15575
          setGasex((GoogleAdwordsServiceException)value);
15576
        }
15577
        break;
15578
 
15579
      }
15580
    }
15581
 
15582
    public Object getFieldValue(_Fields field) {
15583
      switch (field) {
15584
      case SUCCESS:
15585
        return getSuccess();
15586
 
15587
      case GASEX:
15588
        return getGasex();
15589
 
15590
      }
15591
      throw new IllegalStateException();
15592
    }
15593
 
15594
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15595
    public boolean isSet(_Fields field) {
15596
      if (field == null) {
15597
        throw new IllegalArgumentException();
15598
      }
15599
 
15600
      switch (field) {
15601
      case SUCCESS:
15602
        return isSetSuccess();
15603
      case GASEX:
15604
        return isSetGasex();
15605
      }
15606
      throw new IllegalStateException();
15607
    }
15608
 
15609
    @Override
15610
    public boolean equals(Object that) {
15611
      if (that == null)
15612
        return false;
15613
      if (that instanceof getAllAdwordsAdGroupAds_result)
15614
        return this.equals((getAllAdwordsAdGroupAds_result)that);
15615
      return false;
15616
    }
15617
 
15618
    public boolean equals(getAllAdwordsAdGroupAds_result that) {
15619
      if (that == null)
15620
        return false;
15621
 
15622
      boolean this_present_success = true && this.isSetSuccess();
15623
      boolean that_present_success = true && that.isSetSuccess();
15624
      if (this_present_success || that_present_success) {
15625
        if (!(this_present_success && that_present_success))
15626
          return false;
15627
        if (!this.success.equals(that.success))
15628
          return false;
15629
      }
15630
 
15631
      boolean this_present_gasex = true && this.isSetGasex();
15632
      boolean that_present_gasex = true && that.isSetGasex();
15633
      if (this_present_gasex || that_present_gasex) {
15634
        if (!(this_present_gasex && that_present_gasex))
15635
          return false;
15636
        if (!this.gasex.equals(that.gasex))
15637
          return false;
15638
      }
15639
 
15640
      return true;
15641
    }
15642
 
15643
    @Override
15644
    public int hashCode() {
15645
      return 0;
15646
    }
15647
 
15648
    public int compareTo(getAllAdwordsAdGroupAds_result other) {
15649
      if (!getClass().equals(other.getClass())) {
15650
        return getClass().getName().compareTo(other.getClass().getName());
15651
      }
15652
 
15653
      int lastComparison = 0;
15654
      getAllAdwordsAdGroupAds_result typedOther = (getAllAdwordsAdGroupAds_result)other;
15655
 
15656
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15657
      if (lastComparison != 0) {
15658
        return lastComparison;
15659
      }
15660
      if (isSetSuccess()) {
15661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15662
        if (lastComparison != 0) {
15663
          return lastComparison;
15664
        }
15665
      }
15666
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
15667
      if (lastComparison != 0) {
15668
        return lastComparison;
15669
      }
15670
      if (isSetGasex()) {
15671
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
15672
        if (lastComparison != 0) {
15673
          return lastComparison;
15674
        }
15675
      }
15676
      return 0;
15677
    }
15678
 
15679
    public _Fields fieldForId(int fieldId) {
15680
      return _Fields.findByThriftId(fieldId);
15681
    }
15682
 
15683
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15684
      org.apache.thrift.protocol.TField field;
15685
      iprot.readStructBegin();
15686
      while (true)
15687
      {
15688
        field = iprot.readFieldBegin();
15689
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15690
          break;
15691
        }
15692
        switch (field.id) {
15693
          case 0: // SUCCESS
15694
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15695
              {
15696
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
15697
                this.success = new ArrayList<AdwordsAdGroupAd>(_list20.size);
15698
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
15699
                {
15700
                  AdwordsAdGroupAd _elem22; // required
15701
                  _elem22 = new AdwordsAdGroupAd();
15702
                  _elem22.read(iprot);
15703
                  this.success.add(_elem22);
15704
                }
15705
                iprot.readListEnd();
15706
              }
15707
            } else { 
15708
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15709
            }
15710
            break;
15711
          case 1: // GASEX
15712
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15713
              this.gasex = new GoogleAdwordsServiceException();
15714
              this.gasex.read(iprot);
15715
            } else { 
15716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15717
            }
15718
            break;
15719
          default:
15720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15721
        }
15722
        iprot.readFieldEnd();
15723
      }
15724
      iprot.readStructEnd();
15725
      validate();
15726
    }
15727
 
15728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15729
      oprot.writeStructBegin(STRUCT_DESC);
15730
 
15731
      if (this.isSetSuccess()) {
15732
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15733
        {
15734
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15735
          for (AdwordsAdGroupAd _iter23 : this.success)
15736
          {
15737
            _iter23.write(oprot);
15738
          }
15739
          oprot.writeListEnd();
15740
        }
15741
        oprot.writeFieldEnd();
15742
      } else if (this.isSetGasex()) {
15743
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
15744
        this.gasex.write(oprot);
15745
        oprot.writeFieldEnd();
15746
      }
15747
      oprot.writeFieldStop();
15748
      oprot.writeStructEnd();
15749
    }
15750
 
15751
    @Override
15752
    public String toString() {
15753
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroupAds_result(");
15754
      boolean first = true;
15755
 
15756
      sb.append("success:");
15757
      if (this.success == null) {
15758
        sb.append("null");
15759
      } else {
15760
        sb.append(this.success);
15761
      }
15762
      first = false;
15763
      if (!first) sb.append(", ");
15764
      sb.append("gasex:");
15765
      if (this.gasex == null) {
15766
        sb.append("null");
15767
      } else {
15768
        sb.append(this.gasex);
15769
      }
15770
      first = false;
15771
      sb.append(")");
15772
      return sb.toString();
15773
    }
15774
 
15775
    public void validate() throws org.apache.thrift.TException {
15776
      // check for required fields
15777
    }
15778
 
15779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15780
      try {
15781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15782
      } catch (org.apache.thrift.TException te) {
15783
        throw new java.io.IOException(te);
15784
      }
15785
    }
15786
 
15787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15788
      try {
15789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15790
      } catch (org.apache.thrift.TException te) {
15791
        throw new java.io.IOException(te);
15792
      }
15793
    }
15794
 
15795
  }
15796
 
15797
  public static class getAllAdwordsAdKeywords_args implements org.apache.thrift.TBase<getAllAdwordsAdKeywords_args, getAllAdwordsAdKeywords_args._Fields>, java.io.Serializable, Cloneable   {
15798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdKeywords_args");
15799
 
15800
 
15801
 
15802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15803
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15804
;
15805
 
15806
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15807
 
15808
      static {
15809
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15810
          byName.put(field.getFieldName(), field);
15811
        }
15812
      }
15813
 
15814
      /**
15815
       * Find the _Fields constant that matches fieldId, or null if its not found.
15816
       */
15817
      public static _Fields findByThriftId(int fieldId) {
15818
        switch(fieldId) {
15819
          default:
15820
            return null;
15821
        }
15822
      }
15823
 
15824
      /**
15825
       * Find the _Fields constant that matches fieldId, throwing an exception
15826
       * if it is not found.
15827
       */
15828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15829
        _Fields fields = findByThriftId(fieldId);
15830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15831
        return fields;
15832
      }
15833
 
15834
      /**
15835
       * Find the _Fields constant that matches name, or null if its not found.
15836
       */
15837
      public static _Fields findByName(String name) {
15838
        return byName.get(name);
15839
      }
15840
 
15841
      private final short _thriftId;
15842
      private final String _fieldName;
15843
 
15844
      _Fields(short thriftId, String fieldName) {
15845
        _thriftId = thriftId;
15846
        _fieldName = fieldName;
15847
      }
15848
 
15849
      public short getThriftFieldId() {
15850
        return _thriftId;
15851
      }
15852
 
15853
      public String getFieldName() {
15854
        return _fieldName;
15855
      }
15856
    }
15857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15858
    static {
15859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdKeywords_args.class, metaDataMap);
15862
    }
15863
 
15864
    public getAllAdwordsAdKeywords_args() {
15865
    }
15866
 
15867
    /**
15868
     * Performs a deep copy on <i>other</i>.
15869
     */
15870
    public getAllAdwordsAdKeywords_args(getAllAdwordsAdKeywords_args other) {
15871
    }
15872
 
15873
    public getAllAdwordsAdKeywords_args deepCopy() {
15874
      return new getAllAdwordsAdKeywords_args(this);
15875
    }
15876
 
15877
    @Override
15878
    public void clear() {
15879
    }
15880
 
15881
    public void setFieldValue(_Fields field, Object value) {
15882
      switch (field) {
15883
      }
15884
    }
15885
 
15886
    public Object getFieldValue(_Fields field) {
15887
      switch (field) {
15888
      }
15889
      throw new IllegalStateException();
15890
    }
15891
 
15892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15893
    public boolean isSet(_Fields field) {
15894
      if (field == null) {
15895
        throw new IllegalArgumentException();
15896
      }
15897
 
15898
      switch (field) {
15899
      }
15900
      throw new IllegalStateException();
15901
    }
15902
 
15903
    @Override
15904
    public boolean equals(Object that) {
15905
      if (that == null)
15906
        return false;
15907
      if (that instanceof getAllAdwordsAdKeywords_args)
15908
        return this.equals((getAllAdwordsAdKeywords_args)that);
15909
      return false;
15910
    }
15911
 
15912
    public boolean equals(getAllAdwordsAdKeywords_args that) {
15913
      if (that == null)
15914
        return false;
15915
 
15916
      return true;
15917
    }
15918
 
15919
    @Override
15920
    public int hashCode() {
15921
      return 0;
15922
    }
15923
 
15924
    public int compareTo(getAllAdwordsAdKeywords_args other) {
15925
      if (!getClass().equals(other.getClass())) {
15926
        return getClass().getName().compareTo(other.getClass().getName());
15927
      }
15928
 
15929
      int lastComparison = 0;
15930
      getAllAdwordsAdKeywords_args typedOther = (getAllAdwordsAdKeywords_args)other;
15931
 
15932
      return 0;
15933
    }
15934
 
15935
    public _Fields fieldForId(int fieldId) {
15936
      return _Fields.findByThriftId(fieldId);
15937
    }
15938
 
15939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15940
      org.apache.thrift.protocol.TField field;
15941
      iprot.readStructBegin();
15942
      while (true)
15943
      {
15944
        field = iprot.readFieldBegin();
15945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15946
          break;
15947
        }
15948
        switch (field.id) {
15949
          default:
15950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15951
        }
15952
        iprot.readFieldEnd();
15953
      }
15954
      iprot.readStructEnd();
15955
      validate();
15956
    }
15957
 
15958
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15959
      validate();
15960
 
15961
      oprot.writeStructBegin(STRUCT_DESC);
15962
      oprot.writeFieldStop();
15963
      oprot.writeStructEnd();
15964
    }
15965
 
15966
    @Override
15967
    public String toString() {
15968
      StringBuilder sb = new StringBuilder("getAllAdwordsAdKeywords_args(");
15969
      boolean first = true;
15970
 
15971
      sb.append(")");
15972
      return sb.toString();
15973
    }
15974
 
15975
    public void validate() throws org.apache.thrift.TException {
15976
      // check for required fields
15977
    }
15978
 
15979
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15980
      try {
15981
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15982
      } catch (org.apache.thrift.TException te) {
15983
        throw new java.io.IOException(te);
15984
      }
15985
    }
15986
 
15987
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15988
      try {
15989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15990
      } catch (org.apache.thrift.TException te) {
15991
        throw new java.io.IOException(te);
15992
      }
15993
    }
15994
 
15995
  }
15996
 
15997
  public static class getAllAdwordsAdKeywords_result implements org.apache.thrift.TBase<getAllAdwordsAdKeywords_result, getAllAdwordsAdKeywords_result._Fields>, java.io.Serializable, Cloneable   {
15998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdKeywords_result");
15999
 
16000
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
16001
    private static final org.apache.thrift.protocol.TField GASEX_FIELD_DESC = new org.apache.thrift.protocol.TField("gasex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
16002
 
16003
    private List<AdwordsAdKeyword> success; // required
16004
    private GoogleAdwordsServiceException gasex; // required
16005
 
16006
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16007
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16008
      SUCCESS((short)0, "success"),
16009
      GASEX((short)1, "gasex");
16010
 
16011
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16012
 
16013
      static {
16014
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16015
          byName.put(field.getFieldName(), field);
16016
        }
16017
      }
16018
 
16019
      /**
16020
       * Find the _Fields constant that matches fieldId, or null if its not found.
16021
       */
16022
      public static _Fields findByThriftId(int fieldId) {
16023
        switch(fieldId) {
16024
          case 0: // SUCCESS
16025
            return SUCCESS;
16026
          case 1: // GASEX
16027
            return GASEX;
16028
          default:
16029
            return null;
16030
        }
16031
      }
16032
 
16033
      /**
16034
       * Find the _Fields constant that matches fieldId, throwing an exception
16035
       * if it is not found.
16036
       */
16037
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16038
        _Fields fields = findByThriftId(fieldId);
16039
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16040
        return fields;
16041
      }
16042
 
16043
      /**
16044
       * Find the _Fields constant that matches name, or null if its not found.
16045
       */
16046
      public static _Fields findByName(String name) {
16047
        return byName.get(name);
16048
      }
16049
 
16050
      private final short _thriftId;
16051
      private final String _fieldName;
16052
 
16053
      _Fields(short thriftId, String fieldName) {
16054
        _thriftId = thriftId;
16055
        _fieldName = fieldName;
16056
      }
16057
 
16058
      public short getThriftFieldId() {
16059
        return _thriftId;
16060
      }
16061
 
16062
      public String getFieldName() {
16063
        return _fieldName;
16064
      }
16065
    }
16066
 
16067
    // isset id assignments
16068
 
16069
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16070
    static {
16071
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16072
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16073
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16074
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class))));
16075
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16076
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16077
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16078
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdKeywords_result.class, metaDataMap);
16079
    }
16080
 
16081
    public getAllAdwordsAdKeywords_result() {
16082
    }
16083
 
16084
    public getAllAdwordsAdKeywords_result(
16085
      List<AdwordsAdKeyword> success,
16086
      GoogleAdwordsServiceException gasex)
16087
    {
16088
      this();
16089
      this.success = success;
16090
      this.gasex = gasex;
16091
    }
16092
 
16093
    /**
16094
     * Performs a deep copy on <i>other</i>.
16095
     */
16096
    public getAllAdwordsAdKeywords_result(getAllAdwordsAdKeywords_result other) {
16097
      if (other.isSetSuccess()) {
16098
        List<AdwordsAdKeyword> __this__success = new ArrayList<AdwordsAdKeyword>();
16099
        for (AdwordsAdKeyword other_element : other.success) {
16100
          __this__success.add(new AdwordsAdKeyword(other_element));
16101
        }
16102
        this.success = __this__success;
16103
      }
16104
      if (other.isSetGasex()) {
16105
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
16106
      }
16107
    }
16108
 
16109
    public getAllAdwordsAdKeywords_result deepCopy() {
16110
      return new getAllAdwordsAdKeywords_result(this);
16111
    }
16112
 
16113
    @Override
16114
    public void clear() {
16115
      this.success = null;
16116
      this.gasex = null;
16117
    }
16118
 
16119
    public int getSuccessSize() {
16120
      return (this.success == null) ? 0 : this.success.size();
16121
    }
16122
 
16123
    public java.util.Iterator<AdwordsAdKeyword> getSuccessIterator() {
16124
      return (this.success == null) ? null : this.success.iterator();
16125
    }
16126
 
16127
    public void addToSuccess(AdwordsAdKeyword elem) {
16128
      if (this.success == null) {
16129
        this.success = new ArrayList<AdwordsAdKeyword>();
16130
      }
16131
      this.success.add(elem);
16132
    }
16133
 
16134
    public List<AdwordsAdKeyword> getSuccess() {
16135
      return this.success;
16136
    }
16137
 
16138
    public void setSuccess(List<AdwordsAdKeyword> success) {
16139
      this.success = success;
16140
    }
16141
 
16142
    public void unsetSuccess() {
16143
      this.success = null;
16144
    }
16145
 
16146
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16147
    public boolean isSetSuccess() {
16148
      return this.success != null;
16149
    }
16150
 
16151
    public void setSuccessIsSet(boolean value) {
16152
      if (!value) {
16153
        this.success = null;
16154
      }
16155
    }
16156
 
16157
    public GoogleAdwordsServiceException getGasex() {
16158
      return this.gasex;
16159
    }
16160
 
16161
    public void setGasex(GoogleAdwordsServiceException gasex) {
16162
      this.gasex = gasex;
16163
    }
16164
 
16165
    public void unsetGasex() {
16166
      this.gasex = null;
16167
    }
16168
 
16169
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
16170
    public boolean isSetGasex() {
16171
      return this.gasex != null;
16172
    }
16173
 
16174
    public void setGasexIsSet(boolean value) {
16175
      if (!value) {
16176
        this.gasex = null;
16177
      }
16178
    }
16179
 
16180
    public void setFieldValue(_Fields field, Object value) {
16181
      switch (field) {
16182
      case SUCCESS:
16183
        if (value == null) {
16184
          unsetSuccess();
16185
        } else {
16186
          setSuccess((List<AdwordsAdKeyword>)value);
16187
        }
16188
        break;
16189
 
16190
      case GASEX:
16191
        if (value == null) {
16192
          unsetGasex();
16193
        } else {
16194
          setGasex((GoogleAdwordsServiceException)value);
16195
        }
16196
        break;
16197
 
16198
      }
16199
    }
16200
 
16201
    public Object getFieldValue(_Fields field) {
16202
      switch (field) {
16203
      case SUCCESS:
16204
        return getSuccess();
16205
 
16206
      case GASEX:
16207
        return getGasex();
16208
 
16209
      }
16210
      throw new IllegalStateException();
16211
    }
16212
 
16213
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16214
    public boolean isSet(_Fields field) {
16215
      if (field == null) {
16216
        throw new IllegalArgumentException();
16217
      }
16218
 
16219
      switch (field) {
16220
      case SUCCESS:
16221
        return isSetSuccess();
16222
      case GASEX:
16223
        return isSetGasex();
16224
      }
16225
      throw new IllegalStateException();
16226
    }
16227
 
16228
    @Override
16229
    public boolean equals(Object that) {
16230
      if (that == null)
16231
        return false;
16232
      if (that instanceof getAllAdwordsAdKeywords_result)
16233
        return this.equals((getAllAdwordsAdKeywords_result)that);
16234
      return false;
16235
    }
16236
 
16237
    public boolean equals(getAllAdwordsAdKeywords_result that) {
16238
      if (that == null)
16239
        return false;
16240
 
16241
      boolean this_present_success = true && this.isSetSuccess();
16242
      boolean that_present_success = true && that.isSetSuccess();
16243
      if (this_present_success || that_present_success) {
16244
        if (!(this_present_success && that_present_success))
16245
          return false;
16246
        if (!this.success.equals(that.success))
16247
          return false;
16248
      }
16249
 
16250
      boolean this_present_gasex = true && this.isSetGasex();
16251
      boolean that_present_gasex = true && that.isSetGasex();
16252
      if (this_present_gasex || that_present_gasex) {
16253
        if (!(this_present_gasex && that_present_gasex))
16254
          return false;
16255
        if (!this.gasex.equals(that.gasex))
16256
          return false;
16257
      }
16258
 
16259
      return true;
16260
    }
16261
 
16262
    @Override
16263
    public int hashCode() {
16264
      return 0;
16265
    }
16266
 
16267
    public int compareTo(getAllAdwordsAdKeywords_result other) {
16268
      if (!getClass().equals(other.getClass())) {
16269
        return getClass().getName().compareTo(other.getClass().getName());
16270
      }
16271
 
16272
      int lastComparison = 0;
16273
      getAllAdwordsAdKeywords_result typedOther = (getAllAdwordsAdKeywords_result)other;
16274
 
16275
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16276
      if (lastComparison != 0) {
16277
        return lastComparison;
16278
      }
16279
      if (isSetSuccess()) {
16280
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16281
        if (lastComparison != 0) {
16282
          return lastComparison;
16283
        }
16284
      }
16285
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
16286
      if (lastComparison != 0) {
16287
        return lastComparison;
16288
      }
16289
      if (isSetGasex()) {
16290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
16291
        if (lastComparison != 0) {
16292
          return lastComparison;
16293
        }
16294
      }
16295
      return 0;
16296
    }
16297
 
16298
    public _Fields fieldForId(int fieldId) {
16299
      return _Fields.findByThriftId(fieldId);
16300
    }
16301
 
16302
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16303
      org.apache.thrift.protocol.TField field;
16304
      iprot.readStructBegin();
16305
      while (true)
16306
      {
16307
        field = iprot.readFieldBegin();
16308
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16309
          break;
16310
        }
16311
        switch (field.id) {
16312
          case 0: // SUCCESS
16313
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16314
              {
16315
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16316
                this.success = new ArrayList<AdwordsAdKeyword>(_list24.size);
16317
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
16318
                {
16319
                  AdwordsAdKeyword _elem26; // required
16320
                  _elem26 = new AdwordsAdKeyword();
16321
                  _elem26.read(iprot);
16322
                  this.success.add(_elem26);
16323
                }
16324
                iprot.readListEnd();
16325
              }
16326
            } else { 
16327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16328
            }
16329
            break;
16330
          case 1: // GASEX
16331
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16332
              this.gasex = new GoogleAdwordsServiceException();
16333
              this.gasex.read(iprot);
16334
            } else { 
16335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16336
            }
16337
            break;
16338
          default:
16339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16340
        }
16341
        iprot.readFieldEnd();
16342
      }
16343
      iprot.readStructEnd();
16344
      validate();
16345
    }
16346
 
16347
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16348
      oprot.writeStructBegin(STRUCT_DESC);
16349
 
16350
      if (this.isSetSuccess()) {
16351
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16352
        {
16353
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16354
          for (AdwordsAdKeyword _iter27 : this.success)
16355
          {
16356
            _iter27.write(oprot);
16357
          }
16358
          oprot.writeListEnd();
16359
        }
16360
        oprot.writeFieldEnd();
16361
      } else if (this.isSetGasex()) {
16362
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
16363
        this.gasex.write(oprot);
16364
        oprot.writeFieldEnd();
16365
      }
16366
      oprot.writeFieldStop();
16367
      oprot.writeStructEnd();
16368
    }
16369
 
16370
    @Override
16371
    public String toString() {
16372
      StringBuilder sb = new StringBuilder("getAllAdwordsAdKeywords_result(");
16373
      boolean first = true;
16374
 
16375
      sb.append("success:");
16376
      if (this.success == null) {
16377
        sb.append("null");
16378
      } else {
16379
        sb.append(this.success);
16380
      }
16381
      first = false;
16382
      if (!first) sb.append(", ");
16383
      sb.append("gasex:");
16384
      if (this.gasex == null) {
16385
        sb.append("null");
16386
      } else {
16387
        sb.append(this.gasex);
16388
      }
16389
      first = false;
16390
      sb.append(")");
16391
      return sb.toString();
16392
    }
16393
 
16394
    public void validate() throws org.apache.thrift.TException {
16395
      // check for required fields
16396
    }
16397
 
16398
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16399
      try {
16400
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16401
      } catch (org.apache.thrift.TException te) {
16402
        throw new java.io.IOException(te);
16403
      }
16404
    }
16405
 
16406
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16407
      try {
16408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16409
      } catch (org.apache.thrift.TException te) {
16410
        throw new java.io.IOException(te);
16411
      }
16412
    }
16413
 
16414
  }
16415
 
16416
}