Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
 
41
    public void deleteAdwordsCampaign(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
42
 
43
    public void deleteAdwordsAdGroup(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
44
 
45
    public void deleteAdwordsAdGroupAd(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
46
 
47
    public void deleteAdwordsAdKeyword(long criterionId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
48
 
49
    public AdwordsCampaign getAdwordsCampaignByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
50
 
51
    public AdwordsAdGroup getAdwordsAdGroupByAdGroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
52
 
53
    public AdwordsAdGroupAd getAdwordsAdgroupAdByAdId(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
54
 
55
    public AdwordsAdKeyword getAdwordsAdKeywordByCriterionId(long criterionId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
56
 
57
    public List<AdwordsAdKeyword> getAdwordsAdKeywordsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
58
 
59
    public List<AdwordsAdGroupAd> getAdwordsAdGroupAdsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
60
 
61
    public List<AdwordsAdGroup> getAdwordsAdGroupsByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException;
62
 
63
    public List<AdwordsCampaign> getAllAdwordsCampaigns() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
64
 
65
    public List<AdwordsAdGroup> getAllAdwordsAdGroups() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
66
 
67
    public List<AdwordsAdGroupAd> getAllAdwordsAdGroupAds() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
68
 
69
    public List<AdwordsAdKeyword> getAllAdwordsAdKeywords() throws GoogleAdwordsServiceException, org.apache.thrift.TException;
70
 
71
  }
72
 
73
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
74
 
75
    public void addAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException;
76
 
77
    public void addAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException;
78
 
79
    public void addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException;
80
 
81
    public void addAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException;
82
 
83
    public void updateAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException;
84
 
85
    public void updateAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException;
86
 
87
    public void updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException;
88
 
89
    public void deleteAdwordsCampaign(long campaignId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException;
90
 
91
    public void deleteAdwordsAdGroup(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException;
92
 
93
    public void deleteAdwordsAdGroupAd(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException;
94
 
95
    public void deleteAdwordsAdKeyword(long criterionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException;
96
 
97
    public void getAdwordsCampaignByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsCampaignByCampaignId_call> resultHandler) throws org.apache.thrift.TException;
98
 
99
    public void getAdwordsAdGroupByAdGroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdGroupByAdGroupId_call> resultHandler) throws org.apache.thrift.TException;
100
 
101
    public void getAdwordsAdgroupAdByAdId(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdgroupAdByAdId_call> resultHandler) throws org.apache.thrift.TException;
102
 
103
    public void getAdwordsAdKeywordByCriterionId(long criterionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdKeywordByCriterionId_call> resultHandler) throws org.apache.thrift.TException;
104
 
105
    public void getAdwordsAdKeywordsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdKeywordsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException;
106
 
107
    public void getAdwordsAdGroupAdsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdGroupAdsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException;
108
 
109
    public void getAdwordsAdGroupsByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAdwordsAdGroupsByCampaignId_call> resultHandler) throws org.apache.thrift.TException;
110
 
111
    public void getAllAdwordsCampaigns(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsCampaigns_call> resultHandler) throws org.apache.thrift.TException;
112
 
113
    public void getAllAdwordsAdGroups(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsAdGroups_call> resultHandler) throws org.apache.thrift.TException;
114
 
115
    public void getAllAdwordsAdGroupAds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsAdGroupAds_call> resultHandler) throws org.apache.thrift.TException;
116
 
117
    public void getAllAdwordsAdKeywords(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAdwordsAdKeywords_call> resultHandler) throws org.apache.thrift.TException;
118
 
119
  }
120
 
121
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
122
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
123
      public Factory() {}
124
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
125
        return new Client(prot);
126
      }
127
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
128
        return new Client(iprot, oprot);
129
      }
130
    }
131
 
132
    public Client(org.apache.thrift.protocol.TProtocol prot)
133
    {
134
      super(prot, prot);
135
    }
136
 
137
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
138
      super(iprot, oprot);
139
    }
140
 
141
    public void addAdwordsCampaign(AdwordsCampaign campaign) throws GoogleAdwordsServiceException, org.apache.thrift.TException
142
    {
143
      send_addAdwordsCampaign(campaign);
144
      recv_addAdwordsCampaign();
145
    }
146
 
147
    public void send_addAdwordsCampaign(AdwordsCampaign campaign) throws org.apache.thrift.TException
148
    {
149
      addAdwordsCampaign_args args = new addAdwordsCampaign_args();
150
      args.setCampaign(campaign);
151
      sendBase("addAdwordsCampaign", args);
152
    }
153
 
154
    public void recv_addAdwordsCampaign() throws GoogleAdwordsServiceException, org.apache.thrift.TException
155
    {
156
      addAdwordsCampaign_result result = new addAdwordsCampaign_result();
157
      receiveBase(result, "addAdwordsCampaign");
158
      if (result.gasex != null) {
159
        throw result.gasex;
160
      }
161
      return;
162
    }
163
 
164
    public void addAdwordsAdGroup(AdwordsAdGroup adgroup) throws GoogleAdwordsServiceException, org.apache.thrift.TException
165
    {
166
      send_addAdwordsAdGroup(adgroup);
167
      recv_addAdwordsAdGroup();
168
    }
169
 
170
    public void send_addAdwordsAdGroup(AdwordsAdGroup adgroup) throws org.apache.thrift.TException
171
    {
172
      addAdwordsAdGroup_args args = new addAdwordsAdGroup_args();
173
      args.setAdgroup(adgroup);
174
      sendBase("addAdwordsAdGroup", args);
175
    }
176
 
177
    public void recv_addAdwordsAdGroup() throws GoogleAdwordsServiceException, org.apache.thrift.TException
178
    {
179
      addAdwordsAdGroup_result result = new addAdwordsAdGroup_result();
180
      receiveBase(result, "addAdwordsAdGroup");
181
      if (result.gasex != null) {
182
        throw result.gasex;
183
      }
184
      return;
185
    }
186
 
187
    public void addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws GoogleAdwordsServiceException, org.apache.thrift.TException
188
    {
189
      send_addAdwordsAdGroupAd(adgroupad);
190
      recv_addAdwordsAdGroupAd();
191
    }
192
 
193
    public void send_addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad) throws org.apache.thrift.TException
194
    {
195
      addAdwordsAdGroupAd_args args = new addAdwordsAdGroupAd_args();
196
      args.setAdgroupad(adgroupad);
197
      sendBase("addAdwordsAdGroupAd", args);
198
    }
199
 
200
    public void recv_addAdwordsAdGroupAd() throws GoogleAdwordsServiceException, org.apache.thrift.TException
201
    {
202
      addAdwordsAdGroupAd_result result = new addAdwordsAdGroupAd_result();
203
      receiveBase(result, "addAdwordsAdGroupAd");
204
      if (result.gasex != null) {
205
        throw result.gasex;
206
      }
207
      return;
208
    }
209
 
210
    public void addAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws GoogleAdwordsServiceException, org.apache.thrift.TException
211
    {
212
      send_addAdwordsAdKeyword(adkeyword);
213
      recv_addAdwordsAdKeyword();
214
    }
215
 
216
    public void send_addAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws org.apache.thrift.TException
217
    {
218
      addAdwordsAdKeyword_args args = new addAdwordsAdKeyword_args();
219
      args.setAdkeyword(adkeyword);
220
      sendBase("addAdwordsAdKeyword", args);
221
    }
222
 
223
    public void recv_addAdwordsAdKeyword() throws GoogleAdwordsServiceException, org.apache.thrift.TException
224
    {
225
      addAdwordsAdKeyword_result result = new addAdwordsAdKeyword_result();
226
      receiveBase(result, "addAdwordsAdKeyword");
227
      if (result.gasex != null) {
228
        throw result.gasex;
229
      }
230
      return;
231
    }
232
 
233
    public void updateAdwordsCampaign(AdwordsCampaign campaign) throws GoogleAdwordsServiceException, org.apache.thrift.TException
234
    {
235
      send_updateAdwordsCampaign(campaign);
236
      recv_updateAdwordsCampaign();
237
    }
238
 
239
    public void send_updateAdwordsCampaign(AdwordsCampaign campaign) throws org.apache.thrift.TException
240
    {
241
      updateAdwordsCampaign_args args = new updateAdwordsCampaign_args();
242
      args.setCampaign(campaign);
243
      sendBase("updateAdwordsCampaign", args);
244
    }
245
 
246
    public void recv_updateAdwordsCampaign() throws GoogleAdwordsServiceException, org.apache.thrift.TException
247
    {
248
      updateAdwordsCampaign_result result = new updateAdwordsCampaign_result();
249
      receiveBase(result, "updateAdwordsCampaign");
250
      if (result.gasex != null) {
251
        throw result.gasex;
252
      }
253
      return;
254
    }
255
 
256
    public void updateAdwordsAdGroup(AdwordsAdGroup adgroup) throws GoogleAdwordsServiceException, org.apache.thrift.TException
257
    {
258
      send_updateAdwordsAdGroup(adgroup);
259
      recv_updateAdwordsAdGroup();
260
    }
261
 
262
    public void send_updateAdwordsAdGroup(AdwordsAdGroup adgroup) throws org.apache.thrift.TException
263
    {
264
      updateAdwordsAdGroup_args args = new updateAdwordsAdGroup_args();
265
      args.setAdgroup(adgroup);
266
      sendBase("updateAdwordsAdGroup", args);
267
    }
268
 
269
    public void recv_updateAdwordsAdGroup() throws GoogleAdwordsServiceException, org.apache.thrift.TException
270
    {
271
      updateAdwordsAdGroup_result result = new updateAdwordsAdGroup_result();
272
      receiveBase(result, "updateAdwordsAdGroup");
273
      if (result.gasex != null) {
274
        throw result.gasex;
275
      }
276
      return;
277
    }
278
 
279
    public void updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws GoogleAdwordsServiceException, org.apache.thrift.TException
280
    {
281
      send_updateAdwordsAdKeyword(adkeyword);
282
      recv_updateAdwordsAdKeyword();
283
    }
284
 
285
    public void send_updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword) throws org.apache.thrift.TException
286
    {
287
      updateAdwordsAdKeyword_args args = new updateAdwordsAdKeyword_args();
288
      args.setAdkeyword(adkeyword);
289
      sendBase("updateAdwordsAdKeyword", args);
290
    }
291
 
292
    public void recv_updateAdwordsAdKeyword() throws GoogleAdwordsServiceException, org.apache.thrift.TException
293
    {
294
      updateAdwordsAdKeyword_result result = new updateAdwordsAdKeyword_result();
295
      receiveBase(result, "updateAdwordsAdKeyword");
296
      if (result.gasex != null) {
297
        throw result.gasex;
298
      }
299
      return;
300
    }
301
 
302
    public void deleteAdwordsCampaign(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
303
    {
304
      send_deleteAdwordsCampaign(campaignId);
305
      recv_deleteAdwordsCampaign();
306
    }
307
 
308
    public void send_deleteAdwordsCampaign(long campaignId) throws org.apache.thrift.TException
309
    {
310
      deleteAdwordsCampaign_args args = new deleteAdwordsCampaign_args();
311
      args.setCampaignId(campaignId);
312
      sendBase("deleteAdwordsCampaign", args);
313
    }
314
 
315
    public void recv_deleteAdwordsCampaign() throws GoogleAdwordsServiceException, org.apache.thrift.TException
316
    {
317
      deleteAdwordsCampaign_result result = new deleteAdwordsCampaign_result();
318
      receiveBase(result, "deleteAdwordsCampaign");
319
      if (result.gasex != null) {
320
        throw result.gasex;
321
      }
322
      return;
323
    }
324
 
325
    public void deleteAdwordsAdGroup(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
326
    {
327
      send_deleteAdwordsAdGroup(adgroupId);
328
      recv_deleteAdwordsAdGroup();
329
    }
330
 
331
    public void send_deleteAdwordsAdGroup(long adgroupId) throws org.apache.thrift.TException
332
    {
333
      deleteAdwordsAdGroup_args args = new deleteAdwordsAdGroup_args();
334
      args.setAdgroupId(adgroupId);
335
      sendBase("deleteAdwordsAdGroup", args);
336
    }
337
 
338
    public void recv_deleteAdwordsAdGroup() throws GoogleAdwordsServiceException, org.apache.thrift.TException
339
    {
340
      deleteAdwordsAdGroup_result result = new deleteAdwordsAdGroup_result();
341
      receiveBase(result, "deleteAdwordsAdGroup");
342
      if (result.gasex != null) {
343
        throw result.gasex;
344
      }
345
      return;
346
    }
347
 
348
    public void deleteAdwordsAdGroupAd(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
349
    {
350
      send_deleteAdwordsAdGroupAd(adgroupadId);
351
      recv_deleteAdwordsAdGroupAd();
352
    }
353
 
354
    public void send_deleteAdwordsAdGroupAd(long adgroupadId) throws org.apache.thrift.TException
355
    {
356
      deleteAdwordsAdGroupAd_args args = new deleteAdwordsAdGroupAd_args();
357
      args.setAdgroupadId(adgroupadId);
358
      sendBase("deleteAdwordsAdGroupAd", args);
359
    }
360
 
361
    public void recv_deleteAdwordsAdGroupAd() throws GoogleAdwordsServiceException, org.apache.thrift.TException
362
    {
363
      deleteAdwordsAdGroupAd_result result = new deleteAdwordsAdGroupAd_result();
364
      receiveBase(result, "deleteAdwordsAdGroupAd");
365
      if (result.gasex != null) {
366
        throw result.gasex;
367
      }
368
      return;
369
    }
370
 
371
    public void deleteAdwordsAdKeyword(long criterionId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
372
    {
373
      send_deleteAdwordsAdKeyword(criterionId);
374
      recv_deleteAdwordsAdKeyword();
375
    }
376
 
377
    public void send_deleteAdwordsAdKeyword(long criterionId) throws org.apache.thrift.TException
378
    {
379
      deleteAdwordsAdKeyword_args args = new deleteAdwordsAdKeyword_args();
380
      args.setCriterionId(criterionId);
381
      sendBase("deleteAdwordsAdKeyword", args);
382
    }
383
 
384
    public void recv_deleteAdwordsAdKeyword() throws GoogleAdwordsServiceException, org.apache.thrift.TException
385
    {
386
      deleteAdwordsAdKeyword_result result = new deleteAdwordsAdKeyword_result();
387
      receiveBase(result, "deleteAdwordsAdKeyword");
388
      if (result.gasex != null) {
389
        throw result.gasex;
390
      }
391
      return;
392
    }
393
 
394
    public AdwordsCampaign getAdwordsCampaignByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
395
    {
396
      send_getAdwordsCampaignByCampaignId(campaignId);
397
      return recv_getAdwordsCampaignByCampaignId();
398
    }
399
 
400
    public void send_getAdwordsCampaignByCampaignId(long campaignId) throws org.apache.thrift.TException
401
    {
402
      getAdwordsCampaignByCampaignId_args args = new getAdwordsCampaignByCampaignId_args();
403
      args.setCampaignId(campaignId);
404
      sendBase("getAdwordsCampaignByCampaignId", args);
405
    }
406
 
407
    public AdwordsCampaign recv_getAdwordsCampaignByCampaignId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
408
    {
409
      getAdwordsCampaignByCampaignId_result result = new getAdwordsCampaignByCampaignId_result();
410
      receiveBase(result, "getAdwordsCampaignByCampaignId");
411
      if (result.isSetSuccess()) {
412
        return result.success;
413
      }
414
      if (result.gasex != null) {
415
        throw result.gasex;
416
      }
417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsCampaignByCampaignId failed: unknown result");
418
    }
419
 
420
    public AdwordsAdGroup getAdwordsAdGroupByAdGroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
421
    {
422
      send_getAdwordsAdGroupByAdGroupId(adgroupId);
423
      return recv_getAdwordsAdGroupByAdGroupId();
424
    }
425
 
426
    public void send_getAdwordsAdGroupByAdGroupId(long adgroupId) throws org.apache.thrift.TException
427
    {
428
      getAdwordsAdGroupByAdGroupId_args args = new getAdwordsAdGroupByAdGroupId_args();
429
      args.setAdgroupId(adgroupId);
430
      sendBase("getAdwordsAdGroupByAdGroupId", args);
431
    }
432
 
433
    public AdwordsAdGroup recv_getAdwordsAdGroupByAdGroupId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
434
    {
435
      getAdwordsAdGroupByAdGroupId_result result = new getAdwordsAdGroupByAdGroupId_result();
436
      receiveBase(result, "getAdwordsAdGroupByAdGroupId");
437
      if (result.isSetSuccess()) {
438
        return result.success;
439
      }
440
      if (result.gasex != null) {
441
        throw result.gasex;
442
      }
443
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdGroupByAdGroupId failed: unknown result");
444
    }
445
 
446
    public AdwordsAdGroupAd getAdwordsAdgroupAdByAdId(long adgroupadId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
447
    {
448
      send_getAdwordsAdgroupAdByAdId(adgroupadId);
449
      return recv_getAdwordsAdgroupAdByAdId();
450
    }
451
 
452
    public void send_getAdwordsAdgroupAdByAdId(long adgroupadId) throws org.apache.thrift.TException
453
    {
454
      getAdwordsAdgroupAdByAdId_args args = new getAdwordsAdgroupAdByAdId_args();
455
      args.setAdgroupadId(adgroupadId);
456
      sendBase("getAdwordsAdgroupAdByAdId", args);
457
    }
458
 
459
    public AdwordsAdGroupAd recv_getAdwordsAdgroupAdByAdId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
460
    {
461
      getAdwordsAdgroupAdByAdId_result result = new getAdwordsAdgroupAdByAdId_result();
462
      receiveBase(result, "getAdwordsAdgroupAdByAdId");
463
      if (result.isSetSuccess()) {
464
        return result.success;
465
      }
466
      if (result.gasex != null) {
467
        throw result.gasex;
468
      }
469
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdgroupAdByAdId failed: unknown result");
470
    }
471
 
472
    public AdwordsAdKeyword getAdwordsAdKeywordByCriterionId(long criterionId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
473
    {
474
      send_getAdwordsAdKeywordByCriterionId(criterionId);
475
      return recv_getAdwordsAdKeywordByCriterionId();
476
    }
477
 
478
    public void send_getAdwordsAdKeywordByCriterionId(long criterionId) throws org.apache.thrift.TException
479
    {
480
      getAdwordsAdKeywordByCriterionId_args args = new getAdwordsAdKeywordByCriterionId_args();
481
      args.setCriterionId(criterionId);
482
      sendBase("getAdwordsAdKeywordByCriterionId", args);
483
    }
484
 
485
    public AdwordsAdKeyword recv_getAdwordsAdKeywordByCriterionId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
486
    {
487
      getAdwordsAdKeywordByCriterionId_result result = new getAdwordsAdKeywordByCriterionId_result();
488
      receiveBase(result, "getAdwordsAdKeywordByCriterionId");
489
      if (result.isSetSuccess()) {
490
        return result.success;
491
      }
492
      if (result.gasex != null) {
493
        throw result.gasex;
494
      }
495
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordByCriterionId failed: unknown result");
496
    }
497
 
498
    public List<AdwordsAdKeyword> getAdwordsAdKeywordsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
499
    {
500
      send_getAdwordsAdKeywordsByAdgroupId(adgroupId);
501
      return recv_getAdwordsAdKeywordsByAdgroupId();
502
    }
503
 
504
    public void send_getAdwordsAdKeywordsByAdgroupId(long adgroupId) throws org.apache.thrift.TException
505
    {
506
      getAdwordsAdKeywordsByAdgroupId_args args = new getAdwordsAdKeywordsByAdgroupId_args();
507
      args.setAdgroupId(adgroupId);
508
      sendBase("getAdwordsAdKeywordsByAdgroupId", args);
509
    }
510
 
511
    public List<AdwordsAdKeyword> recv_getAdwordsAdKeywordsByAdgroupId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
512
    {
513
      getAdwordsAdKeywordsByAdgroupId_result result = new getAdwordsAdKeywordsByAdgroupId_result();
514
      receiveBase(result, "getAdwordsAdKeywordsByAdgroupId");
515
      if (result.isSetSuccess()) {
516
        return result.success;
517
      }
518
      if (result.gasex != null) {
519
        throw result.gasex;
520
      }
521
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordsByAdgroupId failed: unknown result");
522
    }
523
 
524
    public List<AdwordsAdGroupAd> getAdwordsAdGroupAdsByAdgroupId(long adgroupId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
525
    {
526
      send_getAdwordsAdGroupAdsByAdgroupId(adgroupId);
527
      return recv_getAdwordsAdGroupAdsByAdgroupId();
528
    }
529
 
530
    public void send_getAdwordsAdGroupAdsByAdgroupId(long adgroupId) throws org.apache.thrift.TException
531
    {
532
      getAdwordsAdGroupAdsByAdgroupId_args args = new getAdwordsAdGroupAdsByAdgroupId_args();
533
      args.setAdgroupId(adgroupId);
534
      sendBase("getAdwordsAdGroupAdsByAdgroupId", args);
535
    }
536
 
537
    public List<AdwordsAdGroupAd> recv_getAdwordsAdGroupAdsByAdgroupId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
538
    {
539
      getAdwordsAdGroupAdsByAdgroupId_result result = new getAdwordsAdGroupAdsByAdgroupId_result();
540
      receiveBase(result, "getAdwordsAdGroupAdsByAdgroupId");
541
      if (result.isSetSuccess()) {
542
        return result.success;
543
      }
544
      if (result.gasex != null) {
545
        throw result.gasex;
546
      }
547
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdGroupAdsByAdgroupId failed: unknown result");
548
    }
549
 
550
    public List<AdwordsAdGroup> getAdwordsAdGroupsByCampaignId(long campaignId) throws GoogleAdwordsServiceException, org.apache.thrift.TException
551
    {
552
      send_getAdwordsAdGroupsByCampaignId(campaignId);
553
      return recv_getAdwordsAdGroupsByCampaignId();
554
    }
555
 
556
    public void send_getAdwordsAdGroupsByCampaignId(long campaignId) throws org.apache.thrift.TException
557
    {
558
      getAdwordsAdGroupsByCampaignId_args args = new getAdwordsAdGroupsByCampaignId_args();
559
      args.setCampaignId(campaignId);
560
      sendBase("getAdwordsAdGroupsByCampaignId", args);
561
    }
562
 
563
    public List<AdwordsAdGroup> recv_getAdwordsAdGroupsByCampaignId() throws GoogleAdwordsServiceException, org.apache.thrift.TException
564
    {
565
      getAdwordsAdGroupsByCampaignId_result result = new getAdwordsAdGroupsByCampaignId_result();
566
      receiveBase(result, "getAdwordsAdGroupsByCampaignId");
567
      if (result.isSetSuccess()) {
568
        return result.success;
569
      }
570
      if (result.gasex != null) {
571
        throw result.gasex;
572
      }
573
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdwordsAdGroupsByCampaignId failed: unknown result");
574
    }
575
 
576
    public List<AdwordsCampaign> getAllAdwordsCampaigns() throws GoogleAdwordsServiceException, org.apache.thrift.TException
577
    {
578
      send_getAllAdwordsCampaigns();
579
      return recv_getAllAdwordsCampaigns();
580
    }
581
 
582
    public void send_getAllAdwordsCampaigns() throws org.apache.thrift.TException
583
    {
584
      getAllAdwordsCampaigns_args args = new getAllAdwordsCampaigns_args();
585
      sendBase("getAllAdwordsCampaigns", args);
586
    }
587
 
588
    public List<AdwordsCampaign> recv_getAllAdwordsCampaigns() throws GoogleAdwordsServiceException, org.apache.thrift.TException
589
    {
590
      getAllAdwordsCampaigns_result result = new getAllAdwordsCampaigns_result();
591
      receiveBase(result, "getAllAdwordsCampaigns");
592
      if (result.isSetSuccess()) {
593
        return result.success;
594
      }
595
      if (result.gasex != null) {
596
        throw result.gasex;
597
      }
598
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsCampaigns failed: unknown result");
599
    }
600
 
601
    public List<AdwordsAdGroup> getAllAdwordsAdGroups() throws GoogleAdwordsServiceException, org.apache.thrift.TException
602
    {
603
      send_getAllAdwordsAdGroups();
604
      return recv_getAllAdwordsAdGroups();
605
    }
606
 
607
    public void send_getAllAdwordsAdGroups() throws org.apache.thrift.TException
608
    {
609
      getAllAdwordsAdGroups_args args = new getAllAdwordsAdGroups_args();
610
      sendBase("getAllAdwordsAdGroups", args);
611
    }
612
 
613
    public List<AdwordsAdGroup> recv_getAllAdwordsAdGroups() throws GoogleAdwordsServiceException, org.apache.thrift.TException
614
    {
615
      getAllAdwordsAdGroups_result result = new getAllAdwordsAdGroups_result();
616
      receiveBase(result, "getAllAdwordsAdGroups");
617
      if (result.isSetSuccess()) {
618
        return result.success;
619
      }
620
      if (result.gasex != null) {
621
        throw result.gasex;
622
      }
623
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsAdGroups failed: unknown result");
624
    }
625
 
626
    public List<AdwordsAdGroupAd> getAllAdwordsAdGroupAds() throws GoogleAdwordsServiceException, org.apache.thrift.TException
627
    {
628
      send_getAllAdwordsAdGroupAds();
629
      return recv_getAllAdwordsAdGroupAds();
630
    }
631
 
632
    public void send_getAllAdwordsAdGroupAds() throws org.apache.thrift.TException
633
    {
634
      getAllAdwordsAdGroupAds_args args = new getAllAdwordsAdGroupAds_args();
635
      sendBase("getAllAdwordsAdGroupAds", args);
636
    }
637
 
638
    public List<AdwordsAdGroupAd> recv_getAllAdwordsAdGroupAds() throws GoogleAdwordsServiceException, org.apache.thrift.TException
639
    {
640
      getAllAdwordsAdGroupAds_result result = new getAllAdwordsAdGroupAds_result();
641
      receiveBase(result, "getAllAdwordsAdGroupAds");
642
      if (result.isSetSuccess()) {
643
        return result.success;
644
      }
645
      if (result.gasex != null) {
646
        throw result.gasex;
647
      }
648
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsAdGroupAds failed: unknown result");
649
    }
650
 
651
    public List<AdwordsAdKeyword> getAllAdwordsAdKeywords() throws GoogleAdwordsServiceException, org.apache.thrift.TException
652
    {
653
      send_getAllAdwordsAdKeywords();
654
      return recv_getAllAdwordsAdKeywords();
655
    }
656
 
657
    public void send_getAllAdwordsAdKeywords() throws org.apache.thrift.TException
658
    {
659
      getAllAdwordsAdKeywords_args args = new getAllAdwordsAdKeywords_args();
660
      sendBase("getAllAdwordsAdKeywords", args);
661
    }
662
 
663
    public List<AdwordsAdKeyword> recv_getAllAdwordsAdKeywords() throws GoogleAdwordsServiceException, org.apache.thrift.TException
664
    {
665
      getAllAdwordsAdKeywords_result result = new getAllAdwordsAdKeywords_result();
666
      receiveBase(result, "getAllAdwordsAdKeywords");
667
      if (result.isSetSuccess()) {
668
        return result.success;
669
      }
670
      if (result.gasex != null) {
671
        throw result.gasex;
672
      }
673
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAdwordsAdKeywords failed: unknown result");
674
    }
675
 
676
  }
677
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
678
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
679
      private org.apache.thrift.async.TAsyncClientManager clientManager;
680
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
681
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
682
        this.clientManager = clientManager;
683
        this.protocolFactory = protocolFactory;
684
      }
685
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
686
        return new AsyncClient(protocolFactory, clientManager, transport);
687
      }
688
    }
689
 
690
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
691
      super(protocolFactory, clientManager, transport);
692
    }
693
 
694
    public void addAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<addAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException {
695
      checkReady();
696
      addAdwordsCampaign_call method_call = new addAdwordsCampaign_call(campaign, resultHandler, this, ___protocolFactory, ___transport);
697
      this.___currentMethod = method_call;
698
      ___manager.call(method_call);
699
    }
700
 
701
    public static class addAdwordsCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {
702
      private AdwordsCampaign campaign;
703
      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 {
704
        super(client, protocolFactory, transport, resultHandler, false);
705
        this.campaign = campaign;
706
      }
707
 
708
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
709
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));
710
        addAdwordsCampaign_args args = new addAdwordsCampaign_args();
711
        args.setCampaign(campaign);
712
        args.write(prot);
713
        prot.writeMessageEnd();
714
      }
715
 
716
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
717
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
718
          throw new IllegalStateException("Method call not finished!");
719
        }
720
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
721
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
722
        (new Client(prot)).recv_addAdwordsCampaign();
723
      }
724
    }
725
 
726
    public void addAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException {
727
      checkReady();
728
      addAdwordsAdGroup_call method_call = new addAdwordsAdGroup_call(adgroup, resultHandler, this, ___protocolFactory, ___transport);
729
      this.___currentMethod = method_call;
730
      ___manager.call(method_call);
731
    }
732
 
733
    public static class addAdwordsAdGroup_call extends org.apache.thrift.async.TAsyncMethodCall {
734
      private AdwordsAdGroup adgroup;
735
      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 {
736
        super(client, protocolFactory, transport, resultHandler, false);
737
        this.adgroup = adgroup;
738
      }
739
 
740
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
741
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsAdGroup", org.apache.thrift.protocol.TMessageType.CALL, 0));
742
        addAdwordsAdGroup_args args = new addAdwordsAdGroup_args();
743
        args.setAdgroup(adgroup);
744
        args.write(prot);
745
        prot.writeMessageEnd();
746
      }
747
 
748
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
749
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
750
          throw new IllegalStateException("Method call not finished!");
751
        }
752
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
753
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
754
        (new Client(prot)).recv_addAdwordsAdGroup();
755
      }
756
    }
757
 
758
    public void addAdwordsAdGroupAd(AdwordsAdGroupAd adgroupad, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException {
759
      checkReady();
760
      addAdwordsAdGroupAd_call method_call = new addAdwordsAdGroupAd_call(adgroupad, resultHandler, this, ___protocolFactory, ___transport);
761
      this.___currentMethod = method_call;
762
      ___manager.call(method_call);
763
    }
764
 
765
    public static class addAdwordsAdGroupAd_call extends org.apache.thrift.async.TAsyncMethodCall {
766
      private AdwordsAdGroupAd adgroupad;
767
      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 {
768
        super(client, protocolFactory, transport, resultHandler, false);
769
        this.adgroupad = adgroupad;
770
      }
771
 
772
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
773
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsAdGroupAd", org.apache.thrift.protocol.TMessageType.CALL, 0));
774
        addAdwordsAdGroupAd_args args = new addAdwordsAdGroupAd_args();
775
        args.setAdgroupad(adgroupad);
776
        args.write(prot);
777
        prot.writeMessageEnd();
778
      }
779
 
780
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
781
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
782
          throw new IllegalStateException("Method call not finished!");
783
        }
784
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
785
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
786
        (new Client(prot)).recv_addAdwordsAdGroupAd();
787
      }
788
    }
789
 
790
    public void addAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<addAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException {
791
      checkReady();
792
      addAdwordsAdKeyword_call method_call = new addAdwordsAdKeyword_call(adkeyword, resultHandler, this, ___protocolFactory, ___transport);
793
      this.___currentMethod = method_call;
794
      ___manager.call(method_call);
795
    }
796
 
797
    public static class addAdwordsAdKeyword_call extends org.apache.thrift.async.TAsyncMethodCall {
798
      private AdwordsAdKeyword adkeyword;
799
      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 {
800
        super(client, protocolFactory, transport, resultHandler, false);
801
        this.adkeyword = adkeyword;
802
      }
803
 
804
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
805
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAdwordsAdKeyword", org.apache.thrift.protocol.TMessageType.CALL, 0));
806
        addAdwordsAdKeyword_args args = new addAdwordsAdKeyword_args();
807
        args.setAdkeyword(adkeyword);
808
        args.write(prot);
809
        prot.writeMessageEnd();
810
      }
811
 
812
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
813
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
814
          throw new IllegalStateException("Method call not finished!");
815
        }
816
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
817
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
818
        (new Client(prot)).recv_addAdwordsAdKeyword();
819
      }
820
    }
821
 
822
    public void updateAdwordsCampaign(AdwordsCampaign campaign, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException {
823
      checkReady();
824
      updateAdwordsCampaign_call method_call = new updateAdwordsCampaign_call(campaign, resultHandler, this, ___protocolFactory, ___transport);
825
      this.___currentMethod = method_call;
826
      ___manager.call(method_call);
827
    }
828
 
829
    public static class updateAdwordsCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {
830
      private AdwordsCampaign campaign;
831
      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 {
832
        super(client, protocolFactory, transport, resultHandler, false);
833
        this.campaign = campaign;
834
      }
835
 
836
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
837
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAdwordsCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));
838
        updateAdwordsCampaign_args args = new updateAdwordsCampaign_args();
839
        args.setCampaign(campaign);
840
        args.write(prot);
841
        prot.writeMessageEnd();
842
      }
843
 
844
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
845
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
846
          throw new IllegalStateException("Method call not finished!");
847
        }
848
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
850
        (new Client(prot)).recv_updateAdwordsCampaign();
851
      }
852
    }
853
 
854
    public void updateAdwordsAdGroup(AdwordsAdGroup adgroup, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException {
855
      checkReady();
856
      updateAdwordsAdGroup_call method_call = new updateAdwordsAdGroup_call(adgroup, resultHandler, this, ___protocolFactory, ___transport);
857
      this.___currentMethod = method_call;
858
      ___manager.call(method_call);
859
    }
860
 
861
    public static class updateAdwordsAdGroup_call extends org.apache.thrift.async.TAsyncMethodCall {
862
      private AdwordsAdGroup adgroup;
863
      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 {
864
        super(client, protocolFactory, transport, resultHandler, false);
865
        this.adgroup = adgroup;
866
      }
867
 
868
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
869
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAdwordsAdGroup", org.apache.thrift.protocol.TMessageType.CALL, 0));
870
        updateAdwordsAdGroup_args args = new updateAdwordsAdGroup_args();
871
        args.setAdgroup(adgroup);
872
        args.write(prot);
873
        prot.writeMessageEnd();
874
      }
875
 
876
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
877
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
878
          throw new IllegalStateException("Method call not finished!");
879
        }
880
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
881
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
882
        (new Client(prot)).recv_updateAdwordsAdGroup();
883
      }
884
    }
885
 
886
    public void updateAdwordsAdKeyword(AdwordsAdKeyword adkeyword, org.apache.thrift.async.AsyncMethodCallback<updateAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException {
887
      checkReady();
888
      updateAdwordsAdKeyword_call method_call = new updateAdwordsAdKeyword_call(adkeyword, resultHandler, this, ___protocolFactory, ___transport);
889
      this.___currentMethod = method_call;
890
      ___manager.call(method_call);
891
    }
892
 
893
    public static class updateAdwordsAdKeyword_call extends org.apache.thrift.async.TAsyncMethodCall {
894
      private AdwordsAdKeyword adkeyword;
895
      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 {
896
        super(client, protocolFactory, transport, resultHandler, false);
897
        this.adkeyword = adkeyword;
898
      }
899
 
900
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
901
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAdwordsAdKeyword", org.apache.thrift.protocol.TMessageType.CALL, 0));
902
        updateAdwordsAdKeyword_args args = new updateAdwordsAdKeyword_args();
903
        args.setAdkeyword(adkeyword);
904
        args.write(prot);
905
        prot.writeMessageEnd();
906
      }
907
 
908
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
909
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
910
          throw new IllegalStateException("Method call not finished!");
911
        }
912
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
913
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
914
        (new Client(prot)).recv_updateAdwordsAdKeyword();
915
      }
916
    }
917
 
918
    public void deleteAdwordsCampaign(long campaignId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsCampaign_call> resultHandler) throws org.apache.thrift.TException {
919
      checkReady();
920
      deleteAdwordsCampaign_call method_call = new deleteAdwordsCampaign_call(campaignId, resultHandler, this, ___protocolFactory, ___transport);
921
      this.___currentMethod = method_call;
922
      ___manager.call(method_call);
923
    }
924
 
925
    public static class deleteAdwordsCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {
926
      private long campaignId;
927
      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 {
928
        super(client, protocolFactory, transport, resultHandler, false);
929
        this.campaignId = campaignId;
930
      }
931
 
932
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
933
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));
934
        deleteAdwordsCampaign_args args = new deleteAdwordsCampaign_args();
935
        args.setCampaignId(campaignId);
936
        args.write(prot);
937
        prot.writeMessageEnd();
938
      }
939
 
940
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
941
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
942
          throw new IllegalStateException("Method call not finished!");
943
        }
944
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
945
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
946
        (new Client(prot)).recv_deleteAdwordsCampaign();
947
      }
948
    }
949
 
950
    public void deleteAdwordsAdGroup(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdGroup_call> resultHandler) throws org.apache.thrift.TException {
951
      checkReady();
952
      deleteAdwordsAdGroup_call method_call = new deleteAdwordsAdGroup_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
953
      this.___currentMethod = method_call;
954
      ___manager.call(method_call);
955
    }
956
 
957
    public static class deleteAdwordsAdGroup_call extends org.apache.thrift.async.TAsyncMethodCall {
958
      private long adgroupId;
959
      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 {
960
        super(client, protocolFactory, transport, resultHandler, false);
961
        this.adgroupId = adgroupId;
962
      }
963
 
964
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
965
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsAdGroup", org.apache.thrift.protocol.TMessageType.CALL, 0));
966
        deleteAdwordsAdGroup_args args = new deleteAdwordsAdGroup_args();
967
        args.setAdgroupId(adgroupId);
968
        args.write(prot);
969
        prot.writeMessageEnd();
970
      }
971
 
972
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
973
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
974
          throw new IllegalStateException("Method call not finished!");
975
        }
976
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
977
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
978
        (new Client(prot)).recv_deleteAdwordsAdGroup();
979
      }
980
    }
981
 
982
    public void deleteAdwordsAdGroupAd(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdGroupAd_call> resultHandler) throws org.apache.thrift.TException {
983
      checkReady();
984
      deleteAdwordsAdGroupAd_call method_call = new deleteAdwordsAdGroupAd_call(adgroupadId, resultHandler, this, ___protocolFactory, ___transport);
985
      this.___currentMethod = method_call;
986
      ___manager.call(method_call);
987
    }
988
 
989
    public static class deleteAdwordsAdGroupAd_call extends org.apache.thrift.async.TAsyncMethodCall {
990
      private long adgroupadId;
991
      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 {
992
        super(client, protocolFactory, transport, resultHandler, false);
993
        this.adgroupadId = adgroupadId;
994
      }
995
 
996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsAdGroupAd", org.apache.thrift.protocol.TMessageType.CALL, 0));
998
        deleteAdwordsAdGroupAd_args args = new deleteAdwordsAdGroupAd_args();
999
        args.setAdgroupadId(adgroupadId);
1000
        args.write(prot);
1001
        prot.writeMessageEnd();
1002
      }
1003
 
1004
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1005
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1006
          throw new IllegalStateException("Method call not finished!");
1007
        }
1008
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1009
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1010
        (new Client(prot)).recv_deleteAdwordsAdGroupAd();
1011
      }
1012
    }
1013
 
1014
    public void deleteAdwordsAdKeyword(long criterionId, org.apache.thrift.async.AsyncMethodCallback<deleteAdwordsAdKeyword_call> resultHandler) throws org.apache.thrift.TException {
1015
      checkReady();
1016
      deleteAdwordsAdKeyword_call method_call = new deleteAdwordsAdKeyword_call(criterionId, resultHandler, this, ___protocolFactory, ___transport);
1017
      this.___currentMethod = method_call;
1018
      ___manager.call(method_call);
1019
    }
1020
 
1021
    public static class deleteAdwordsAdKeyword_call extends org.apache.thrift.async.TAsyncMethodCall {
1022
      private long criterionId;
1023
      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 {
1024
        super(client, protocolFactory, transport, resultHandler, false);
1025
        this.criterionId = criterionId;
1026
      }
1027
 
1028
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1029
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAdwordsAdKeyword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1030
        deleteAdwordsAdKeyword_args args = new deleteAdwordsAdKeyword_args();
1031
        args.setCriterionId(criterionId);
1032
        args.write(prot);
1033
        prot.writeMessageEnd();
1034
      }
1035
 
1036
      public void getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1037
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1038
          throw new IllegalStateException("Method call not finished!");
1039
        }
1040
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1041
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1042
        (new Client(prot)).recv_deleteAdwordsAdKeyword();
1043
      }
1044
    }
1045
 
1046
    public void getAdwordsCampaignByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsCampaignByCampaignId_call> resultHandler) throws org.apache.thrift.TException {
1047
      checkReady();
1048
      getAdwordsCampaignByCampaignId_call method_call = new getAdwordsCampaignByCampaignId_call(campaignId, resultHandler, this, ___protocolFactory, ___transport);
1049
      this.___currentMethod = method_call;
1050
      ___manager.call(method_call);
1051
    }
1052
 
1053
    public static class getAdwordsCampaignByCampaignId_call extends org.apache.thrift.async.TAsyncMethodCall {
1054
      private long campaignId;
1055
      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 {
1056
        super(client, protocolFactory, transport, resultHandler, false);
1057
        this.campaignId = campaignId;
1058
      }
1059
 
1060
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1061
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsCampaignByCampaignId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1062
        getAdwordsCampaignByCampaignId_args args = new getAdwordsCampaignByCampaignId_args();
1063
        args.setCampaignId(campaignId);
1064
        args.write(prot);
1065
        prot.writeMessageEnd();
1066
      }
1067
 
1068
      public AdwordsCampaign getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1069
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1070
          throw new IllegalStateException("Method call not finished!");
1071
        }
1072
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1073
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1074
        return (new Client(prot)).recv_getAdwordsCampaignByCampaignId();
1075
      }
1076
    }
1077
 
1078
    public void getAdwordsAdGroupByAdGroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupByAdGroupId_call> resultHandler) throws org.apache.thrift.TException {
1079
      checkReady();
1080
      getAdwordsAdGroupByAdGroupId_call method_call = new getAdwordsAdGroupByAdGroupId_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
1081
      this.___currentMethod = method_call;
1082
      ___manager.call(method_call);
1083
    }
1084
 
1085
    public static class getAdwordsAdGroupByAdGroupId_call extends org.apache.thrift.async.TAsyncMethodCall {
1086
      private long adgroupId;
1087
      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 {
1088
        super(client, protocolFactory, transport, resultHandler, false);
1089
        this.adgroupId = adgroupId;
1090
      }
1091
 
1092
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1093
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdGroupByAdGroupId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1094
        getAdwordsAdGroupByAdGroupId_args args = new getAdwordsAdGroupByAdGroupId_args();
1095
        args.setAdgroupId(adgroupId);
1096
        args.write(prot);
1097
        prot.writeMessageEnd();
1098
      }
1099
 
1100
      public AdwordsAdGroup getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1101
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1102
          throw new IllegalStateException("Method call not finished!");
1103
        }
1104
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1105
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1106
        return (new Client(prot)).recv_getAdwordsAdGroupByAdGroupId();
1107
      }
1108
    }
1109
 
1110
    public void getAdwordsAdgroupAdByAdId(long adgroupadId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdgroupAdByAdId_call> resultHandler) throws org.apache.thrift.TException {
1111
      checkReady();
1112
      getAdwordsAdgroupAdByAdId_call method_call = new getAdwordsAdgroupAdByAdId_call(adgroupadId, resultHandler, this, ___protocolFactory, ___transport);
1113
      this.___currentMethod = method_call;
1114
      ___manager.call(method_call);
1115
    }
1116
 
1117
    public static class getAdwordsAdgroupAdByAdId_call extends org.apache.thrift.async.TAsyncMethodCall {
1118
      private long adgroupadId;
1119
      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 {
1120
        super(client, protocolFactory, transport, resultHandler, false);
1121
        this.adgroupadId = adgroupadId;
1122
      }
1123
 
1124
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1125
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdgroupAdByAdId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1126
        getAdwordsAdgroupAdByAdId_args args = new getAdwordsAdgroupAdByAdId_args();
1127
        args.setAdgroupadId(adgroupadId);
1128
        args.write(prot);
1129
        prot.writeMessageEnd();
1130
      }
1131
 
1132
      public AdwordsAdGroupAd getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1133
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1134
          throw new IllegalStateException("Method call not finished!");
1135
        }
1136
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1137
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1138
        return (new Client(prot)).recv_getAdwordsAdgroupAdByAdId();
1139
      }
1140
    }
1141
 
1142
    public void getAdwordsAdKeywordByCriterionId(long criterionId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdKeywordByCriterionId_call> resultHandler) throws org.apache.thrift.TException {
1143
      checkReady();
1144
      getAdwordsAdKeywordByCriterionId_call method_call = new getAdwordsAdKeywordByCriterionId_call(criterionId, resultHandler, this, ___protocolFactory, ___transport);
1145
      this.___currentMethod = method_call;
1146
      ___manager.call(method_call);
1147
    }
1148
 
1149
    public static class getAdwordsAdKeywordByCriterionId_call extends org.apache.thrift.async.TAsyncMethodCall {
1150
      private long criterionId;
1151
      public getAdwordsAdKeywordByCriterionId_call(long criterionId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdKeywordByCriterionId_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 {
1152
        super(client, protocolFactory, transport, resultHandler, false);
1153
        this.criterionId = criterionId;
1154
      }
1155
 
1156
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1157
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdKeywordByCriterionId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1158
        getAdwordsAdKeywordByCriterionId_args args = new getAdwordsAdKeywordByCriterionId_args();
1159
        args.setCriterionId(criterionId);
1160
        args.write(prot);
1161
        prot.writeMessageEnd();
1162
      }
1163
 
1164
      public AdwordsAdKeyword getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1165
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1166
          throw new IllegalStateException("Method call not finished!");
1167
        }
1168
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1169
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1170
        return (new Client(prot)).recv_getAdwordsAdKeywordByCriterionId();
1171
      }
1172
    }
1173
 
1174
    public void getAdwordsAdKeywordsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdKeywordsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException {
1175
      checkReady();
1176
      getAdwordsAdKeywordsByAdgroupId_call method_call = new getAdwordsAdKeywordsByAdgroupId_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
1177
      this.___currentMethod = method_call;
1178
      ___manager.call(method_call);
1179
    }
1180
 
1181
    public static class getAdwordsAdKeywordsByAdgroupId_call extends org.apache.thrift.async.TAsyncMethodCall {
1182
      private long adgroupId;
1183
      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 {
1184
        super(client, protocolFactory, transport, resultHandler, false);
1185
        this.adgroupId = adgroupId;
1186
      }
1187
 
1188
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1189
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdKeywordsByAdgroupId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1190
        getAdwordsAdKeywordsByAdgroupId_args args = new getAdwordsAdKeywordsByAdgroupId_args();
1191
        args.setAdgroupId(adgroupId);
1192
        args.write(prot);
1193
        prot.writeMessageEnd();
1194
      }
1195
 
1196
      public List<AdwordsAdKeyword> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1197
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1198
          throw new IllegalStateException("Method call not finished!");
1199
        }
1200
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1201
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1202
        return (new Client(prot)).recv_getAdwordsAdKeywordsByAdgroupId();
1203
      }
1204
    }
1205
 
1206
    public void getAdwordsAdGroupAdsByAdgroupId(long adgroupId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupAdsByAdgroupId_call> resultHandler) throws org.apache.thrift.TException {
1207
      checkReady();
1208
      getAdwordsAdGroupAdsByAdgroupId_call method_call = new getAdwordsAdGroupAdsByAdgroupId_call(adgroupId, resultHandler, this, ___protocolFactory, ___transport);
1209
      this.___currentMethod = method_call;
1210
      ___manager.call(method_call);
1211
    }
1212
 
1213
    public static class getAdwordsAdGroupAdsByAdgroupId_call extends org.apache.thrift.async.TAsyncMethodCall {
1214
      private long adgroupId;
1215
      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 {
1216
        super(client, protocolFactory, transport, resultHandler, false);
1217
        this.adgroupId = adgroupId;
1218
      }
1219
 
1220
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1221
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdGroupAdsByAdgroupId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1222
        getAdwordsAdGroupAdsByAdgroupId_args args = new getAdwordsAdGroupAdsByAdgroupId_args();
1223
        args.setAdgroupId(adgroupId);
1224
        args.write(prot);
1225
        prot.writeMessageEnd();
1226
      }
1227
 
1228
      public List<AdwordsAdGroupAd> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1229
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1230
          throw new IllegalStateException("Method call not finished!");
1231
        }
1232
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1233
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1234
        return (new Client(prot)).recv_getAdwordsAdGroupAdsByAdgroupId();
1235
      }
1236
    }
1237
 
1238
    public void getAdwordsAdGroupsByCampaignId(long campaignId, org.apache.thrift.async.AsyncMethodCallback<getAdwordsAdGroupsByCampaignId_call> resultHandler) throws org.apache.thrift.TException {
1239
      checkReady();
1240
      getAdwordsAdGroupsByCampaignId_call method_call = new getAdwordsAdGroupsByCampaignId_call(campaignId, resultHandler, this, ___protocolFactory, ___transport);
1241
      this.___currentMethod = method_call;
1242
      ___manager.call(method_call);
1243
    }
1244
 
1245
    public static class getAdwordsAdGroupsByCampaignId_call extends org.apache.thrift.async.TAsyncMethodCall {
1246
      private long campaignId;
1247
      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 {
1248
        super(client, protocolFactory, transport, resultHandler, false);
1249
        this.campaignId = campaignId;
1250
      }
1251
 
1252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdwordsAdGroupsByCampaignId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1254
        getAdwordsAdGroupsByCampaignId_args args = new getAdwordsAdGroupsByCampaignId_args();
1255
        args.setCampaignId(campaignId);
1256
        args.write(prot);
1257
        prot.writeMessageEnd();
1258
      }
1259
 
1260
      public List<AdwordsAdGroup> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1261
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1262
          throw new IllegalStateException("Method call not finished!");
1263
        }
1264
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1265
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1266
        return (new Client(prot)).recv_getAdwordsAdGroupsByCampaignId();
1267
      }
1268
    }
1269
 
1270
    public void getAllAdwordsCampaigns(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsCampaigns_call> resultHandler) throws org.apache.thrift.TException {
1271
      checkReady();
1272
      getAllAdwordsCampaigns_call method_call = new getAllAdwordsCampaigns_call(resultHandler, this, ___protocolFactory, ___transport);
1273
      this.___currentMethod = method_call;
1274
      ___manager.call(method_call);
1275
    }
1276
 
1277
    public static class getAllAdwordsCampaigns_call extends org.apache.thrift.async.TAsyncMethodCall {
1278
      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 {
1279
        super(client, protocolFactory, transport, resultHandler, false);
1280
      }
1281
 
1282
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1283
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsCampaigns", org.apache.thrift.protocol.TMessageType.CALL, 0));
1284
        getAllAdwordsCampaigns_args args = new getAllAdwordsCampaigns_args();
1285
        args.write(prot);
1286
        prot.writeMessageEnd();
1287
      }
1288
 
1289
      public List<AdwordsCampaign> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1290
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1291
          throw new IllegalStateException("Method call not finished!");
1292
        }
1293
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1294
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1295
        return (new Client(prot)).recv_getAllAdwordsCampaigns();
1296
      }
1297
    }
1298
 
1299
    public void getAllAdwordsAdGroups(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdGroups_call> resultHandler) throws org.apache.thrift.TException {
1300
      checkReady();
1301
      getAllAdwordsAdGroups_call method_call = new getAllAdwordsAdGroups_call(resultHandler, this, ___protocolFactory, ___transport);
1302
      this.___currentMethod = method_call;
1303
      ___manager.call(method_call);
1304
    }
1305
 
1306
    public static class getAllAdwordsAdGroups_call extends org.apache.thrift.async.TAsyncMethodCall {
1307
      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 {
1308
        super(client, protocolFactory, transport, resultHandler, false);
1309
      }
1310
 
1311
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1312
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsAdGroups", org.apache.thrift.protocol.TMessageType.CALL, 0));
1313
        getAllAdwordsAdGroups_args args = new getAllAdwordsAdGroups_args();
1314
        args.write(prot);
1315
        prot.writeMessageEnd();
1316
      }
1317
 
1318
      public List<AdwordsAdGroup> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1319
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1320
          throw new IllegalStateException("Method call not finished!");
1321
        }
1322
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1323
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1324
        return (new Client(prot)).recv_getAllAdwordsAdGroups();
1325
      }
1326
    }
1327
 
1328
    public void getAllAdwordsAdGroupAds(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdGroupAds_call> resultHandler) throws org.apache.thrift.TException {
1329
      checkReady();
1330
      getAllAdwordsAdGroupAds_call method_call = new getAllAdwordsAdGroupAds_call(resultHandler, this, ___protocolFactory, ___transport);
1331
      this.___currentMethod = method_call;
1332
      ___manager.call(method_call);
1333
    }
1334
 
1335
    public static class getAllAdwordsAdGroupAds_call extends org.apache.thrift.async.TAsyncMethodCall {
1336
      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 {
1337
        super(client, protocolFactory, transport, resultHandler, false);
1338
      }
1339
 
1340
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1341
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsAdGroupAds", org.apache.thrift.protocol.TMessageType.CALL, 0));
1342
        getAllAdwordsAdGroupAds_args args = new getAllAdwordsAdGroupAds_args();
1343
        args.write(prot);
1344
        prot.writeMessageEnd();
1345
      }
1346
 
1347
      public List<AdwordsAdGroupAd> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1348
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1349
          throw new IllegalStateException("Method call not finished!");
1350
        }
1351
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1352
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1353
        return (new Client(prot)).recv_getAllAdwordsAdGroupAds();
1354
      }
1355
    }
1356
 
1357
    public void getAllAdwordsAdKeywords(org.apache.thrift.async.AsyncMethodCallback<getAllAdwordsAdKeywords_call> resultHandler) throws org.apache.thrift.TException {
1358
      checkReady();
1359
      getAllAdwordsAdKeywords_call method_call = new getAllAdwordsAdKeywords_call(resultHandler, this, ___protocolFactory, ___transport);
1360
      this.___currentMethod = method_call;
1361
      ___manager.call(method_call);
1362
    }
1363
 
1364
    public static class getAllAdwordsAdKeywords_call extends org.apache.thrift.async.TAsyncMethodCall {
1365
      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 {
1366
        super(client, protocolFactory, transport, resultHandler, false);
1367
      }
1368
 
1369
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1370
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAdwordsAdKeywords", org.apache.thrift.protocol.TMessageType.CALL, 0));
1371
        getAllAdwordsAdKeywords_args args = new getAllAdwordsAdKeywords_args();
1372
        args.write(prot);
1373
        prot.writeMessageEnd();
1374
      }
1375
 
1376
      public List<AdwordsAdKeyword> getResult() throws GoogleAdwordsServiceException, org.apache.thrift.TException {
1377
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1378
          throw new IllegalStateException("Method call not finished!");
1379
        }
1380
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1381
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1382
        return (new Client(prot)).recv_getAllAdwordsAdKeywords();
1383
      }
1384
    }
1385
 
1386
  }
1387
 
1388
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1389
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1390
    public Processor(I iface) {
1391
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1392
    }
1393
 
1394
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1395
      super(iface, getProcessMap(processMap));
1396
    }
1397
 
1398
    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) {
1399
      processMap.put("addAdwordsCampaign", new addAdwordsCampaign());
1400
      processMap.put("addAdwordsAdGroup", new addAdwordsAdGroup());
1401
      processMap.put("addAdwordsAdGroupAd", new addAdwordsAdGroupAd());
1402
      processMap.put("addAdwordsAdKeyword", new addAdwordsAdKeyword());
1403
      processMap.put("updateAdwordsCampaign", new updateAdwordsCampaign());
1404
      processMap.put("updateAdwordsAdGroup", new updateAdwordsAdGroup());
1405
      processMap.put("updateAdwordsAdKeyword", new updateAdwordsAdKeyword());
1406
      processMap.put("deleteAdwordsCampaign", new deleteAdwordsCampaign());
1407
      processMap.put("deleteAdwordsAdGroup", new deleteAdwordsAdGroup());
1408
      processMap.put("deleteAdwordsAdGroupAd", new deleteAdwordsAdGroupAd());
1409
      processMap.put("deleteAdwordsAdKeyword", new deleteAdwordsAdKeyword());
1410
      processMap.put("getAdwordsCampaignByCampaignId", new getAdwordsCampaignByCampaignId());
1411
      processMap.put("getAdwordsAdGroupByAdGroupId", new getAdwordsAdGroupByAdGroupId());
1412
      processMap.put("getAdwordsAdgroupAdByAdId", new getAdwordsAdgroupAdByAdId());
1413
      processMap.put("getAdwordsAdKeywordByCriterionId", new getAdwordsAdKeywordByCriterionId());
1414
      processMap.put("getAdwordsAdKeywordsByAdgroupId", new getAdwordsAdKeywordsByAdgroupId());
1415
      processMap.put("getAdwordsAdGroupAdsByAdgroupId", new getAdwordsAdGroupAdsByAdgroupId());
1416
      processMap.put("getAdwordsAdGroupsByCampaignId", new getAdwordsAdGroupsByCampaignId());
1417
      processMap.put("getAllAdwordsCampaigns", new getAllAdwordsCampaigns());
1418
      processMap.put("getAllAdwordsAdGroups", new getAllAdwordsAdGroups());
1419
      processMap.put("getAllAdwordsAdGroupAds", new getAllAdwordsAdGroupAds());
1420
      processMap.put("getAllAdwordsAdKeywords", new getAllAdwordsAdKeywords());
1421
      return processMap;
1422
    }
1423
 
1424
    private static class addAdwordsCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsCampaign_args> {
1425
      public addAdwordsCampaign() {
1426
        super("addAdwordsCampaign");
1427
      }
1428
 
1429
      protected addAdwordsCampaign_args getEmptyArgsInstance() {
1430
        return new addAdwordsCampaign_args();
1431
      }
1432
 
1433
      protected addAdwordsCampaign_result getResult(I iface, addAdwordsCampaign_args args) throws org.apache.thrift.TException {
1434
        addAdwordsCampaign_result result = new addAdwordsCampaign_result();
1435
        try {
1436
          iface.addAdwordsCampaign(args.campaign);
1437
        } catch (GoogleAdwordsServiceException gasex) {
1438
          result.gasex = gasex;
1439
        }
1440
        return result;
1441
      }
1442
    }
1443
 
1444
    private static class addAdwordsAdGroup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsAdGroup_args> {
1445
      public addAdwordsAdGroup() {
1446
        super("addAdwordsAdGroup");
1447
      }
1448
 
1449
      protected addAdwordsAdGroup_args getEmptyArgsInstance() {
1450
        return new addAdwordsAdGroup_args();
1451
      }
1452
 
1453
      protected addAdwordsAdGroup_result getResult(I iface, addAdwordsAdGroup_args args) throws org.apache.thrift.TException {
1454
        addAdwordsAdGroup_result result = new addAdwordsAdGroup_result();
1455
        try {
1456
          iface.addAdwordsAdGroup(args.adgroup);
1457
        } catch (GoogleAdwordsServiceException gasex) {
1458
          result.gasex = gasex;
1459
        }
1460
        return result;
1461
      }
1462
    }
1463
 
1464
    private static class addAdwordsAdGroupAd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsAdGroupAd_args> {
1465
      public addAdwordsAdGroupAd() {
1466
        super("addAdwordsAdGroupAd");
1467
      }
1468
 
1469
      protected addAdwordsAdGroupAd_args getEmptyArgsInstance() {
1470
        return new addAdwordsAdGroupAd_args();
1471
      }
1472
 
1473
      protected addAdwordsAdGroupAd_result getResult(I iface, addAdwordsAdGroupAd_args args) throws org.apache.thrift.TException {
1474
        addAdwordsAdGroupAd_result result = new addAdwordsAdGroupAd_result();
1475
        try {
1476
          iface.addAdwordsAdGroupAd(args.adgroupad);
1477
        } catch (GoogleAdwordsServiceException gasex) {
1478
          result.gasex = gasex;
1479
        }
1480
        return result;
1481
      }
1482
    }
1483
 
1484
    private static class addAdwordsAdKeyword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAdwordsAdKeyword_args> {
1485
      public addAdwordsAdKeyword() {
1486
        super("addAdwordsAdKeyword");
1487
      }
1488
 
1489
      protected addAdwordsAdKeyword_args getEmptyArgsInstance() {
1490
        return new addAdwordsAdKeyword_args();
1491
      }
1492
 
1493
      protected addAdwordsAdKeyword_result getResult(I iface, addAdwordsAdKeyword_args args) throws org.apache.thrift.TException {
1494
        addAdwordsAdKeyword_result result = new addAdwordsAdKeyword_result();
1495
        try {
1496
          iface.addAdwordsAdKeyword(args.adkeyword);
1497
        } catch (GoogleAdwordsServiceException gasex) {
1498
          result.gasex = gasex;
1499
        }
1500
        return result;
1501
      }
1502
    }
1503
 
1504
    private static class updateAdwordsCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAdwordsCampaign_args> {
1505
      public updateAdwordsCampaign() {
1506
        super("updateAdwordsCampaign");
1507
      }
1508
 
1509
      protected updateAdwordsCampaign_args getEmptyArgsInstance() {
1510
        return new updateAdwordsCampaign_args();
1511
      }
1512
 
1513
      protected updateAdwordsCampaign_result getResult(I iface, updateAdwordsCampaign_args args) throws org.apache.thrift.TException {
1514
        updateAdwordsCampaign_result result = new updateAdwordsCampaign_result();
1515
        try {
1516
          iface.updateAdwordsCampaign(args.campaign);
1517
        } catch (GoogleAdwordsServiceException gasex) {
1518
          result.gasex = gasex;
1519
        }
1520
        return result;
1521
      }
1522
    }
1523
 
1524
    private static class updateAdwordsAdGroup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAdwordsAdGroup_args> {
1525
      public updateAdwordsAdGroup() {
1526
        super("updateAdwordsAdGroup");
1527
      }
1528
 
1529
      protected updateAdwordsAdGroup_args getEmptyArgsInstance() {
1530
        return new updateAdwordsAdGroup_args();
1531
      }
1532
 
1533
      protected updateAdwordsAdGroup_result getResult(I iface, updateAdwordsAdGroup_args args) throws org.apache.thrift.TException {
1534
        updateAdwordsAdGroup_result result = new updateAdwordsAdGroup_result();
1535
        try {
1536
          iface.updateAdwordsAdGroup(args.adgroup);
1537
        } catch (GoogleAdwordsServiceException gasex) {
1538
          result.gasex = gasex;
1539
        }
1540
        return result;
1541
      }
1542
    }
1543
 
1544
    private static class updateAdwordsAdKeyword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAdwordsAdKeyword_args> {
1545
      public updateAdwordsAdKeyword() {
1546
        super("updateAdwordsAdKeyword");
1547
      }
1548
 
1549
      protected updateAdwordsAdKeyword_args getEmptyArgsInstance() {
1550
        return new updateAdwordsAdKeyword_args();
1551
      }
1552
 
1553
      protected updateAdwordsAdKeyword_result getResult(I iface, updateAdwordsAdKeyword_args args) throws org.apache.thrift.TException {
1554
        updateAdwordsAdKeyword_result result = new updateAdwordsAdKeyword_result();
1555
        try {
1556
          iface.updateAdwordsAdKeyword(args.adkeyword);
1557
        } catch (GoogleAdwordsServiceException gasex) {
1558
          result.gasex = gasex;
1559
        }
1560
        return result;
1561
      }
1562
    }
1563
 
1564
    private static class deleteAdwordsCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsCampaign_args> {
1565
      public deleteAdwordsCampaign() {
1566
        super("deleteAdwordsCampaign");
1567
      }
1568
 
1569
      protected deleteAdwordsCampaign_args getEmptyArgsInstance() {
1570
        return new deleteAdwordsCampaign_args();
1571
      }
1572
 
1573
      protected deleteAdwordsCampaign_result getResult(I iface, deleteAdwordsCampaign_args args) throws org.apache.thrift.TException {
1574
        deleteAdwordsCampaign_result result = new deleteAdwordsCampaign_result();
1575
        try {
1576
          iface.deleteAdwordsCampaign(args.campaignId);
1577
        } catch (GoogleAdwordsServiceException gasex) {
1578
          result.gasex = gasex;
1579
        }
1580
        return result;
1581
      }
1582
    }
1583
 
1584
    private static class deleteAdwordsAdGroup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsAdGroup_args> {
1585
      public deleteAdwordsAdGroup() {
1586
        super("deleteAdwordsAdGroup");
1587
      }
1588
 
1589
      protected deleteAdwordsAdGroup_args getEmptyArgsInstance() {
1590
        return new deleteAdwordsAdGroup_args();
1591
      }
1592
 
1593
      protected deleteAdwordsAdGroup_result getResult(I iface, deleteAdwordsAdGroup_args args) throws org.apache.thrift.TException {
1594
        deleteAdwordsAdGroup_result result = new deleteAdwordsAdGroup_result();
1595
        try {
1596
          iface.deleteAdwordsAdGroup(args.adgroupId);
1597
        } catch (GoogleAdwordsServiceException gasex) {
1598
          result.gasex = gasex;
1599
        }
1600
        return result;
1601
      }
1602
    }
1603
 
1604
    private static class deleteAdwordsAdGroupAd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsAdGroupAd_args> {
1605
      public deleteAdwordsAdGroupAd() {
1606
        super("deleteAdwordsAdGroupAd");
1607
      }
1608
 
1609
      protected deleteAdwordsAdGroupAd_args getEmptyArgsInstance() {
1610
        return new deleteAdwordsAdGroupAd_args();
1611
      }
1612
 
1613
      protected deleteAdwordsAdGroupAd_result getResult(I iface, deleteAdwordsAdGroupAd_args args) throws org.apache.thrift.TException {
1614
        deleteAdwordsAdGroupAd_result result = new deleteAdwordsAdGroupAd_result();
1615
        try {
1616
          iface.deleteAdwordsAdGroupAd(args.adgroupadId);
1617
        } catch (GoogleAdwordsServiceException gasex) {
1618
          result.gasex = gasex;
1619
        }
1620
        return result;
1621
      }
1622
    }
1623
 
1624
    private static class deleteAdwordsAdKeyword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAdwordsAdKeyword_args> {
1625
      public deleteAdwordsAdKeyword() {
1626
        super("deleteAdwordsAdKeyword");
1627
      }
1628
 
1629
      protected deleteAdwordsAdKeyword_args getEmptyArgsInstance() {
1630
        return new deleteAdwordsAdKeyword_args();
1631
      }
1632
 
1633
      protected deleteAdwordsAdKeyword_result getResult(I iface, deleteAdwordsAdKeyword_args args) throws org.apache.thrift.TException {
1634
        deleteAdwordsAdKeyword_result result = new deleteAdwordsAdKeyword_result();
1635
        try {
1636
          iface.deleteAdwordsAdKeyword(args.criterionId);
1637
        } catch (GoogleAdwordsServiceException gasex) {
1638
          result.gasex = gasex;
1639
        }
1640
        return result;
1641
      }
1642
    }
1643
 
1644
    private static class getAdwordsCampaignByCampaignId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsCampaignByCampaignId_args> {
1645
      public getAdwordsCampaignByCampaignId() {
1646
        super("getAdwordsCampaignByCampaignId");
1647
      }
1648
 
1649
      protected getAdwordsCampaignByCampaignId_args getEmptyArgsInstance() {
1650
        return new getAdwordsCampaignByCampaignId_args();
1651
      }
1652
 
1653
      protected getAdwordsCampaignByCampaignId_result getResult(I iface, getAdwordsCampaignByCampaignId_args args) throws org.apache.thrift.TException {
1654
        getAdwordsCampaignByCampaignId_result result = new getAdwordsCampaignByCampaignId_result();
1655
        try {
1656
          result.success = iface.getAdwordsCampaignByCampaignId(args.campaignId);
1657
        } catch (GoogleAdwordsServiceException gasex) {
1658
          result.gasex = gasex;
1659
        }
1660
        return result;
1661
      }
1662
    }
1663
 
1664
    private static class getAdwordsAdGroupByAdGroupId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdGroupByAdGroupId_args> {
1665
      public getAdwordsAdGroupByAdGroupId() {
1666
        super("getAdwordsAdGroupByAdGroupId");
1667
      }
1668
 
1669
      protected getAdwordsAdGroupByAdGroupId_args getEmptyArgsInstance() {
1670
        return new getAdwordsAdGroupByAdGroupId_args();
1671
      }
1672
 
1673
      protected getAdwordsAdGroupByAdGroupId_result getResult(I iface, getAdwordsAdGroupByAdGroupId_args args) throws org.apache.thrift.TException {
1674
        getAdwordsAdGroupByAdGroupId_result result = new getAdwordsAdGroupByAdGroupId_result();
1675
        try {
1676
          result.success = iface.getAdwordsAdGroupByAdGroupId(args.adgroupId);
1677
        } catch (GoogleAdwordsServiceException gasex) {
1678
          result.gasex = gasex;
1679
        }
1680
        return result;
1681
      }
1682
    }
1683
 
1684
    private static class getAdwordsAdgroupAdByAdId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdgroupAdByAdId_args> {
1685
      public getAdwordsAdgroupAdByAdId() {
1686
        super("getAdwordsAdgroupAdByAdId");
1687
      }
1688
 
1689
      protected getAdwordsAdgroupAdByAdId_args getEmptyArgsInstance() {
1690
        return new getAdwordsAdgroupAdByAdId_args();
1691
      }
1692
 
1693
      protected getAdwordsAdgroupAdByAdId_result getResult(I iface, getAdwordsAdgroupAdByAdId_args args) throws org.apache.thrift.TException {
1694
        getAdwordsAdgroupAdByAdId_result result = new getAdwordsAdgroupAdByAdId_result();
1695
        try {
1696
          result.success = iface.getAdwordsAdgroupAdByAdId(args.adgroupadId);
1697
        } catch (GoogleAdwordsServiceException gasex) {
1698
          result.gasex = gasex;
1699
        }
1700
        return result;
1701
      }
1702
    }
1703
 
1704
    private static class getAdwordsAdKeywordByCriterionId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdKeywordByCriterionId_args> {
1705
      public getAdwordsAdKeywordByCriterionId() {
1706
        super("getAdwordsAdKeywordByCriterionId");
1707
      }
1708
 
1709
      protected getAdwordsAdKeywordByCriterionId_args getEmptyArgsInstance() {
1710
        return new getAdwordsAdKeywordByCriterionId_args();
1711
      }
1712
 
1713
      protected getAdwordsAdKeywordByCriterionId_result getResult(I iface, getAdwordsAdKeywordByCriterionId_args args) throws org.apache.thrift.TException {
1714
        getAdwordsAdKeywordByCriterionId_result result = new getAdwordsAdKeywordByCriterionId_result();
1715
        try {
1716
          result.success = iface.getAdwordsAdKeywordByCriterionId(args.criterionId);
1717
        } catch (GoogleAdwordsServiceException gasex) {
1718
          result.gasex = gasex;
1719
        }
1720
        return result;
1721
      }
1722
    }
1723
 
1724
    private static class getAdwordsAdKeywordsByAdgroupId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdKeywordsByAdgroupId_args> {
1725
      public getAdwordsAdKeywordsByAdgroupId() {
1726
        super("getAdwordsAdKeywordsByAdgroupId");
1727
      }
1728
 
1729
      protected getAdwordsAdKeywordsByAdgroupId_args getEmptyArgsInstance() {
1730
        return new getAdwordsAdKeywordsByAdgroupId_args();
1731
      }
1732
 
1733
      protected getAdwordsAdKeywordsByAdgroupId_result getResult(I iface, getAdwordsAdKeywordsByAdgroupId_args args) throws org.apache.thrift.TException {
1734
        getAdwordsAdKeywordsByAdgroupId_result result = new getAdwordsAdKeywordsByAdgroupId_result();
1735
        try {
1736
          result.success = iface.getAdwordsAdKeywordsByAdgroupId(args.adgroupId);
1737
        } catch (GoogleAdwordsServiceException gasex) {
1738
          result.gasex = gasex;
1739
        }
1740
        return result;
1741
      }
1742
    }
1743
 
1744
    private static class getAdwordsAdGroupAdsByAdgroupId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdGroupAdsByAdgroupId_args> {
1745
      public getAdwordsAdGroupAdsByAdgroupId() {
1746
        super("getAdwordsAdGroupAdsByAdgroupId");
1747
      }
1748
 
1749
      protected getAdwordsAdGroupAdsByAdgroupId_args getEmptyArgsInstance() {
1750
        return new getAdwordsAdGroupAdsByAdgroupId_args();
1751
      }
1752
 
1753
      protected getAdwordsAdGroupAdsByAdgroupId_result getResult(I iface, getAdwordsAdGroupAdsByAdgroupId_args args) throws org.apache.thrift.TException {
1754
        getAdwordsAdGroupAdsByAdgroupId_result result = new getAdwordsAdGroupAdsByAdgroupId_result();
1755
        try {
1756
          result.success = iface.getAdwordsAdGroupAdsByAdgroupId(args.adgroupId);
1757
        } catch (GoogleAdwordsServiceException gasex) {
1758
          result.gasex = gasex;
1759
        }
1760
        return result;
1761
      }
1762
    }
1763
 
1764
    private static class getAdwordsAdGroupsByCampaignId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdwordsAdGroupsByCampaignId_args> {
1765
      public getAdwordsAdGroupsByCampaignId() {
1766
        super("getAdwordsAdGroupsByCampaignId");
1767
      }
1768
 
1769
      protected getAdwordsAdGroupsByCampaignId_args getEmptyArgsInstance() {
1770
        return new getAdwordsAdGroupsByCampaignId_args();
1771
      }
1772
 
1773
      protected getAdwordsAdGroupsByCampaignId_result getResult(I iface, getAdwordsAdGroupsByCampaignId_args args) throws org.apache.thrift.TException {
1774
        getAdwordsAdGroupsByCampaignId_result result = new getAdwordsAdGroupsByCampaignId_result();
1775
        try {
1776
          result.success = iface.getAdwordsAdGroupsByCampaignId(args.campaignId);
1777
        } catch (GoogleAdwordsServiceException gasex) {
1778
          result.gasex = gasex;
1779
        }
1780
        return result;
1781
      }
1782
    }
1783
 
1784
    private static class getAllAdwordsCampaigns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsCampaigns_args> {
1785
      public getAllAdwordsCampaigns() {
1786
        super("getAllAdwordsCampaigns");
1787
      }
1788
 
1789
      protected getAllAdwordsCampaigns_args getEmptyArgsInstance() {
1790
        return new getAllAdwordsCampaigns_args();
1791
      }
1792
 
1793
      protected getAllAdwordsCampaigns_result getResult(I iface, getAllAdwordsCampaigns_args args) throws org.apache.thrift.TException {
1794
        getAllAdwordsCampaigns_result result = new getAllAdwordsCampaigns_result();
1795
        try {
1796
          result.success = iface.getAllAdwordsCampaigns();
1797
        } catch (GoogleAdwordsServiceException gasex) {
1798
          result.gasex = gasex;
1799
        }
1800
        return result;
1801
      }
1802
    }
1803
 
1804
    private static class getAllAdwordsAdGroups<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsAdGroups_args> {
1805
      public getAllAdwordsAdGroups() {
1806
        super("getAllAdwordsAdGroups");
1807
      }
1808
 
1809
      protected getAllAdwordsAdGroups_args getEmptyArgsInstance() {
1810
        return new getAllAdwordsAdGroups_args();
1811
      }
1812
 
1813
      protected getAllAdwordsAdGroups_result getResult(I iface, getAllAdwordsAdGroups_args args) throws org.apache.thrift.TException {
1814
        getAllAdwordsAdGroups_result result = new getAllAdwordsAdGroups_result();
1815
        try {
1816
          result.success = iface.getAllAdwordsAdGroups();
1817
        } catch (GoogleAdwordsServiceException gasex) {
1818
          result.gasex = gasex;
1819
        }
1820
        return result;
1821
      }
1822
    }
1823
 
1824
    private static class getAllAdwordsAdGroupAds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsAdGroupAds_args> {
1825
      public getAllAdwordsAdGroupAds() {
1826
        super("getAllAdwordsAdGroupAds");
1827
      }
1828
 
1829
      protected getAllAdwordsAdGroupAds_args getEmptyArgsInstance() {
1830
        return new getAllAdwordsAdGroupAds_args();
1831
      }
1832
 
1833
      protected getAllAdwordsAdGroupAds_result getResult(I iface, getAllAdwordsAdGroupAds_args args) throws org.apache.thrift.TException {
1834
        getAllAdwordsAdGroupAds_result result = new getAllAdwordsAdGroupAds_result();
1835
        try {
1836
          result.success = iface.getAllAdwordsAdGroupAds();
1837
        } catch (GoogleAdwordsServiceException gasex) {
1838
          result.gasex = gasex;
1839
        }
1840
        return result;
1841
      }
1842
    }
1843
 
1844
    private static class getAllAdwordsAdKeywords<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAdwordsAdKeywords_args> {
1845
      public getAllAdwordsAdKeywords() {
1846
        super("getAllAdwordsAdKeywords");
1847
      }
1848
 
1849
      protected getAllAdwordsAdKeywords_args getEmptyArgsInstance() {
1850
        return new getAllAdwordsAdKeywords_args();
1851
      }
1852
 
1853
      protected getAllAdwordsAdKeywords_result getResult(I iface, getAllAdwordsAdKeywords_args args) throws org.apache.thrift.TException {
1854
        getAllAdwordsAdKeywords_result result = new getAllAdwordsAdKeywords_result();
1855
        try {
1856
          result.success = iface.getAllAdwordsAdKeywords();
1857
        } catch (GoogleAdwordsServiceException gasex) {
1858
          result.gasex = gasex;
1859
        }
1860
        return result;
1861
      }
1862
    }
1863
 
1864
  }
1865
 
1866
  public static class addAdwordsCampaign_args implements org.apache.thrift.TBase<addAdwordsCampaign_args, addAdwordsCampaign_args._Fields>, java.io.Serializable, Cloneable   {
1867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsCampaign_args");
1868
 
1869
    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);
1870
 
1871
    private AdwordsCampaign campaign; // required
1872
 
1873
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1874
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1875
      CAMPAIGN((short)1, "campaign");
1876
 
1877
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1878
 
1879
      static {
1880
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1881
          byName.put(field.getFieldName(), field);
1882
        }
1883
      }
1884
 
1885
      /**
1886
       * Find the _Fields constant that matches fieldId, or null if its not found.
1887
       */
1888
      public static _Fields findByThriftId(int fieldId) {
1889
        switch(fieldId) {
1890
          case 1: // CAMPAIGN
1891
            return CAMPAIGN;
1892
          default:
1893
            return null;
1894
        }
1895
      }
1896
 
1897
      /**
1898
       * Find the _Fields constant that matches fieldId, throwing an exception
1899
       * if it is not found.
1900
       */
1901
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1902
        _Fields fields = findByThriftId(fieldId);
1903
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1904
        return fields;
1905
      }
1906
 
1907
      /**
1908
       * Find the _Fields constant that matches name, or null if its not found.
1909
       */
1910
      public static _Fields findByName(String name) {
1911
        return byName.get(name);
1912
      }
1913
 
1914
      private final short _thriftId;
1915
      private final String _fieldName;
1916
 
1917
      _Fields(short thriftId, String fieldName) {
1918
        _thriftId = thriftId;
1919
        _fieldName = fieldName;
1920
      }
1921
 
1922
      public short getThriftFieldId() {
1923
        return _thriftId;
1924
      }
1925
 
1926
      public String getFieldName() {
1927
        return _fieldName;
1928
      }
1929
    }
1930
 
1931
    // isset id assignments
1932
 
1933
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1934
    static {
1935
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1936
      tmpMap.put(_Fields.CAMPAIGN, new org.apache.thrift.meta_data.FieldMetaData("campaign", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1937
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class)));
1938
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1939
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsCampaign_args.class, metaDataMap);
1940
    }
1941
 
1942
    public addAdwordsCampaign_args() {
1943
    }
1944
 
1945
    public addAdwordsCampaign_args(
1946
      AdwordsCampaign campaign)
1947
    {
1948
      this();
1949
      this.campaign = campaign;
1950
    }
1951
 
1952
    /**
1953
     * Performs a deep copy on <i>other</i>.
1954
     */
1955
    public addAdwordsCampaign_args(addAdwordsCampaign_args other) {
1956
      if (other.isSetCampaign()) {
1957
        this.campaign = new AdwordsCampaign(other.campaign);
1958
      }
1959
    }
1960
 
1961
    public addAdwordsCampaign_args deepCopy() {
1962
      return new addAdwordsCampaign_args(this);
1963
    }
1964
 
1965
    @Override
1966
    public void clear() {
1967
      this.campaign = null;
1968
    }
1969
 
1970
    public AdwordsCampaign getCampaign() {
1971
      return this.campaign;
1972
    }
1973
 
1974
    public void setCampaign(AdwordsCampaign campaign) {
1975
      this.campaign = campaign;
1976
    }
1977
 
1978
    public void unsetCampaign() {
1979
      this.campaign = null;
1980
    }
1981
 
1982
    /** Returns true if field campaign is set (has been assigned a value) and false otherwise */
1983
    public boolean isSetCampaign() {
1984
      return this.campaign != null;
1985
    }
1986
 
1987
    public void setCampaignIsSet(boolean value) {
1988
      if (!value) {
1989
        this.campaign = null;
1990
      }
1991
    }
1992
 
1993
    public void setFieldValue(_Fields field, Object value) {
1994
      switch (field) {
1995
      case CAMPAIGN:
1996
        if (value == null) {
1997
          unsetCampaign();
1998
        } else {
1999
          setCampaign((AdwordsCampaign)value);
2000
        }
2001
        break;
2002
 
2003
      }
2004
    }
2005
 
2006
    public Object getFieldValue(_Fields field) {
2007
      switch (field) {
2008
      case CAMPAIGN:
2009
        return getCampaign();
2010
 
2011
      }
2012
      throw new IllegalStateException();
2013
    }
2014
 
2015
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2016
    public boolean isSet(_Fields field) {
2017
      if (field == null) {
2018
        throw new IllegalArgumentException();
2019
      }
2020
 
2021
      switch (field) {
2022
      case CAMPAIGN:
2023
        return isSetCampaign();
2024
      }
2025
      throw new IllegalStateException();
2026
    }
2027
 
2028
    @Override
2029
    public boolean equals(Object that) {
2030
      if (that == null)
2031
        return false;
2032
      if (that instanceof addAdwordsCampaign_args)
2033
        return this.equals((addAdwordsCampaign_args)that);
2034
      return false;
2035
    }
2036
 
2037
    public boolean equals(addAdwordsCampaign_args that) {
2038
      if (that == null)
2039
        return false;
2040
 
2041
      boolean this_present_campaign = true && this.isSetCampaign();
2042
      boolean that_present_campaign = true && that.isSetCampaign();
2043
      if (this_present_campaign || that_present_campaign) {
2044
        if (!(this_present_campaign && that_present_campaign))
2045
          return false;
2046
        if (!this.campaign.equals(that.campaign))
2047
          return false;
2048
      }
2049
 
2050
      return true;
2051
    }
2052
 
2053
    @Override
2054
    public int hashCode() {
2055
      return 0;
2056
    }
2057
 
2058
    public int compareTo(addAdwordsCampaign_args other) {
2059
      if (!getClass().equals(other.getClass())) {
2060
        return getClass().getName().compareTo(other.getClass().getName());
2061
      }
2062
 
2063
      int lastComparison = 0;
2064
      addAdwordsCampaign_args typedOther = (addAdwordsCampaign_args)other;
2065
 
2066
      lastComparison = Boolean.valueOf(isSetCampaign()).compareTo(typedOther.isSetCampaign());
2067
      if (lastComparison != 0) {
2068
        return lastComparison;
2069
      }
2070
      if (isSetCampaign()) {
2071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaign, typedOther.campaign);
2072
        if (lastComparison != 0) {
2073
          return lastComparison;
2074
        }
2075
      }
2076
      return 0;
2077
    }
2078
 
2079
    public _Fields fieldForId(int fieldId) {
2080
      return _Fields.findByThriftId(fieldId);
2081
    }
2082
 
2083
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2084
      org.apache.thrift.protocol.TField field;
2085
      iprot.readStructBegin();
2086
      while (true)
2087
      {
2088
        field = iprot.readFieldBegin();
2089
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2090
          break;
2091
        }
2092
        switch (field.id) {
2093
          case 1: // CAMPAIGN
2094
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2095
              this.campaign = new AdwordsCampaign();
2096
              this.campaign.read(iprot);
2097
            } else { 
2098
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2099
            }
2100
            break;
2101
          default:
2102
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2103
        }
2104
        iprot.readFieldEnd();
2105
      }
2106
      iprot.readStructEnd();
2107
      validate();
2108
    }
2109
 
2110
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2111
      validate();
2112
 
2113
      oprot.writeStructBegin(STRUCT_DESC);
2114
      if (this.campaign != null) {
2115
        oprot.writeFieldBegin(CAMPAIGN_FIELD_DESC);
2116
        this.campaign.write(oprot);
2117
        oprot.writeFieldEnd();
2118
      }
2119
      oprot.writeFieldStop();
2120
      oprot.writeStructEnd();
2121
    }
2122
 
2123
    @Override
2124
    public String toString() {
2125
      StringBuilder sb = new StringBuilder("addAdwordsCampaign_args(");
2126
      boolean first = true;
2127
 
2128
      sb.append("campaign:");
2129
      if (this.campaign == null) {
2130
        sb.append("null");
2131
      } else {
2132
        sb.append(this.campaign);
2133
      }
2134
      first = false;
2135
      sb.append(")");
2136
      return sb.toString();
2137
    }
2138
 
2139
    public void validate() throws org.apache.thrift.TException {
2140
      // check for required fields
2141
    }
2142
 
2143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2144
      try {
2145
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2146
      } catch (org.apache.thrift.TException te) {
2147
        throw new java.io.IOException(te);
2148
      }
2149
    }
2150
 
2151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2152
      try {
2153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2154
      } catch (org.apache.thrift.TException te) {
2155
        throw new java.io.IOException(te);
2156
      }
2157
    }
2158
 
2159
  }
2160
 
2161
  public static class addAdwordsCampaign_result implements org.apache.thrift.TBase<addAdwordsCampaign_result, addAdwordsCampaign_result._Fields>, java.io.Serializable, Cloneable   {
2162
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsCampaign_result");
2163
 
2164
    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);
2165
 
2166
    private GoogleAdwordsServiceException gasex; // required
2167
 
2168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2170
      GASEX((short)1, "gasex");
2171
 
2172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2173
 
2174
      static {
2175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2176
          byName.put(field.getFieldName(), field);
2177
        }
2178
      }
2179
 
2180
      /**
2181
       * Find the _Fields constant that matches fieldId, or null if its not found.
2182
       */
2183
      public static _Fields findByThriftId(int fieldId) {
2184
        switch(fieldId) {
2185
          case 1: // GASEX
2186
            return GASEX;
2187
          default:
2188
            return null;
2189
        }
2190
      }
2191
 
2192
      /**
2193
       * Find the _Fields constant that matches fieldId, throwing an exception
2194
       * if it is not found.
2195
       */
2196
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2197
        _Fields fields = findByThriftId(fieldId);
2198
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2199
        return fields;
2200
      }
2201
 
2202
      /**
2203
       * Find the _Fields constant that matches name, or null if its not found.
2204
       */
2205
      public static _Fields findByName(String name) {
2206
        return byName.get(name);
2207
      }
2208
 
2209
      private final short _thriftId;
2210
      private final String _fieldName;
2211
 
2212
      _Fields(short thriftId, String fieldName) {
2213
        _thriftId = thriftId;
2214
        _fieldName = fieldName;
2215
      }
2216
 
2217
      public short getThriftFieldId() {
2218
        return _thriftId;
2219
      }
2220
 
2221
      public String getFieldName() {
2222
        return _fieldName;
2223
      }
2224
    }
2225
 
2226
    // isset id assignments
2227
 
2228
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2229
    static {
2230
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2231
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsCampaign_result.class, metaDataMap);
2235
    }
2236
 
2237
    public addAdwordsCampaign_result() {
2238
    }
2239
 
2240
    public addAdwordsCampaign_result(
2241
      GoogleAdwordsServiceException gasex)
2242
    {
2243
      this();
2244
      this.gasex = gasex;
2245
    }
2246
 
2247
    /**
2248
     * Performs a deep copy on <i>other</i>.
2249
     */
2250
    public addAdwordsCampaign_result(addAdwordsCampaign_result other) {
2251
      if (other.isSetGasex()) {
2252
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
2253
      }
2254
    }
2255
 
2256
    public addAdwordsCampaign_result deepCopy() {
2257
      return new addAdwordsCampaign_result(this);
2258
    }
2259
 
2260
    @Override
2261
    public void clear() {
2262
      this.gasex = null;
2263
    }
2264
 
2265
    public GoogleAdwordsServiceException getGasex() {
2266
      return this.gasex;
2267
    }
2268
 
2269
    public void setGasex(GoogleAdwordsServiceException gasex) {
2270
      this.gasex = gasex;
2271
    }
2272
 
2273
    public void unsetGasex() {
2274
      this.gasex = null;
2275
    }
2276
 
2277
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
2278
    public boolean isSetGasex() {
2279
      return this.gasex != null;
2280
    }
2281
 
2282
    public void setGasexIsSet(boolean value) {
2283
      if (!value) {
2284
        this.gasex = null;
2285
      }
2286
    }
2287
 
2288
    public void setFieldValue(_Fields field, Object value) {
2289
      switch (field) {
2290
      case GASEX:
2291
        if (value == null) {
2292
          unsetGasex();
2293
        } else {
2294
          setGasex((GoogleAdwordsServiceException)value);
2295
        }
2296
        break;
2297
 
2298
      }
2299
    }
2300
 
2301
    public Object getFieldValue(_Fields field) {
2302
      switch (field) {
2303
      case GASEX:
2304
        return getGasex();
2305
 
2306
      }
2307
      throw new IllegalStateException();
2308
    }
2309
 
2310
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2311
    public boolean isSet(_Fields field) {
2312
      if (field == null) {
2313
        throw new IllegalArgumentException();
2314
      }
2315
 
2316
      switch (field) {
2317
      case GASEX:
2318
        return isSetGasex();
2319
      }
2320
      throw new IllegalStateException();
2321
    }
2322
 
2323
    @Override
2324
    public boolean equals(Object that) {
2325
      if (that == null)
2326
        return false;
2327
      if (that instanceof addAdwordsCampaign_result)
2328
        return this.equals((addAdwordsCampaign_result)that);
2329
      return false;
2330
    }
2331
 
2332
    public boolean equals(addAdwordsCampaign_result that) {
2333
      if (that == null)
2334
        return false;
2335
 
2336
      boolean this_present_gasex = true && this.isSetGasex();
2337
      boolean that_present_gasex = true && that.isSetGasex();
2338
      if (this_present_gasex || that_present_gasex) {
2339
        if (!(this_present_gasex && that_present_gasex))
2340
          return false;
2341
        if (!this.gasex.equals(that.gasex))
2342
          return false;
2343
      }
2344
 
2345
      return true;
2346
    }
2347
 
2348
    @Override
2349
    public int hashCode() {
2350
      return 0;
2351
    }
2352
 
2353
    public int compareTo(addAdwordsCampaign_result other) {
2354
      if (!getClass().equals(other.getClass())) {
2355
        return getClass().getName().compareTo(other.getClass().getName());
2356
      }
2357
 
2358
      int lastComparison = 0;
2359
      addAdwordsCampaign_result typedOther = (addAdwordsCampaign_result)other;
2360
 
2361
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
2362
      if (lastComparison != 0) {
2363
        return lastComparison;
2364
      }
2365
      if (isSetGasex()) {
2366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
2367
        if (lastComparison != 0) {
2368
          return lastComparison;
2369
        }
2370
      }
2371
      return 0;
2372
    }
2373
 
2374
    public _Fields fieldForId(int fieldId) {
2375
      return _Fields.findByThriftId(fieldId);
2376
    }
2377
 
2378
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2379
      org.apache.thrift.protocol.TField field;
2380
      iprot.readStructBegin();
2381
      while (true)
2382
      {
2383
        field = iprot.readFieldBegin();
2384
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2385
          break;
2386
        }
2387
        switch (field.id) {
2388
          case 1: // GASEX
2389
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2390
              this.gasex = new GoogleAdwordsServiceException();
2391
              this.gasex.read(iprot);
2392
            } else { 
2393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2394
            }
2395
            break;
2396
          default:
2397
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2398
        }
2399
        iprot.readFieldEnd();
2400
      }
2401
      iprot.readStructEnd();
2402
      validate();
2403
    }
2404
 
2405
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2406
      oprot.writeStructBegin(STRUCT_DESC);
2407
 
2408
      if (this.isSetGasex()) {
2409
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
2410
        this.gasex.write(oprot);
2411
        oprot.writeFieldEnd();
2412
      }
2413
      oprot.writeFieldStop();
2414
      oprot.writeStructEnd();
2415
    }
2416
 
2417
    @Override
2418
    public String toString() {
2419
      StringBuilder sb = new StringBuilder("addAdwordsCampaign_result(");
2420
      boolean first = true;
2421
 
2422
      sb.append("gasex:");
2423
      if (this.gasex == null) {
2424
        sb.append("null");
2425
      } else {
2426
        sb.append(this.gasex);
2427
      }
2428
      first = false;
2429
      sb.append(")");
2430
      return sb.toString();
2431
    }
2432
 
2433
    public void validate() throws org.apache.thrift.TException {
2434
      // check for required fields
2435
    }
2436
 
2437
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2438
      try {
2439
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2440
      } catch (org.apache.thrift.TException te) {
2441
        throw new java.io.IOException(te);
2442
      }
2443
    }
2444
 
2445
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2446
      try {
2447
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2448
      } catch (org.apache.thrift.TException te) {
2449
        throw new java.io.IOException(te);
2450
      }
2451
    }
2452
 
2453
  }
2454
 
2455
  public static class addAdwordsAdGroup_args implements org.apache.thrift.TBase<addAdwordsAdGroup_args, addAdwordsAdGroup_args._Fields>, java.io.Serializable, Cloneable   {
2456
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroup_args");
2457
 
2458
    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);
2459
 
2460
    private AdwordsAdGroup adgroup; // required
2461
 
2462
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2463
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2464
      ADGROUP((short)1, "adgroup");
2465
 
2466
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2467
 
2468
      static {
2469
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2470
          byName.put(field.getFieldName(), field);
2471
        }
2472
      }
2473
 
2474
      /**
2475
       * Find the _Fields constant that matches fieldId, or null if its not found.
2476
       */
2477
      public static _Fields findByThriftId(int fieldId) {
2478
        switch(fieldId) {
2479
          case 1: // ADGROUP
2480
            return ADGROUP;
2481
          default:
2482
            return null;
2483
        }
2484
      }
2485
 
2486
      /**
2487
       * Find the _Fields constant that matches fieldId, throwing an exception
2488
       * if it is not found.
2489
       */
2490
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2491
        _Fields fields = findByThriftId(fieldId);
2492
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2493
        return fields;
2494
      }
2495
 
2496
      /**
2497
       * Find the _Fields constant that matches name, or null if its not found.
2498
       */
2499
      public static _Fields findByName(String name) {
2500
        return byName.get(name);
2501
      }
2502
 
2503
      private final short _thriftId;
2504
      private final String _fieldName;
2505
 
2506
      _Fields(short thriftId, String fieldName) {
2507
        _thriftId = thriftId;
2508
        _fieldName = fieldName;
2509
      }
2510
 
2511
      public short getThriftFieldId() {
2512
        return _thriftId;
2513
      }
2514
 
2515
      public String getFieldName() {
2516
        return _fieldName;
2517
      }
2518
    }
2519
 
2520
    // isset id assignments
2521
 
2522
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2523
    static {
2524
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2525
      tmpMap.put(_Fields.ADGROUP, new org.apache.thrift.meta_data.FieldMetaData("adgroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2526
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class)));
2527
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2528
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroup_args.class, metaDataMap);
2529
    }
2530
 
2531
    public addAdwordsAdGroup_args() {
2532
    }
2533
 
2534
    public addAdwordsAdGroup_args(
2535
      AdwordsAdGroup adgroup)
2536
    {
2537
      this();
2538
      this.adgroup = adgroup;
2539
    }
2540
 
2541
    /**
2542
     * Performs a deep copy on <i>other</i>.
2543
     */
2544
    public addAdwordsAdGroup_args(addAdwordsAdGroup_args other) {
2545
      if (other.isSetAdgroup()) {
2546
        this.adgroup = new AdwordsAdGroup(other.adgroup);
2547
      }
2548
    }
2549
 
2550
    public addAdwordsAdGroup_args deepCopy() {
2551
      return new addAdwordsAdGroup_args(this);
2552
    }
2553
 
2554
    @Override
2555
    public void clear() {
2556
      this.adgroup = null;
2557
    }
2558
 
2559
    public AdwordsAdGroup getAdgroup() {
2560
      return this.adgroup;
2561
    }
2562
 
2563
    public void setAdgroup(AdwordsAdGroup adgroup) {
2564
      this.adgroup = adgroup;
2565
    }
2566
 
2567
    public void unsetAdgroup() {
2568
      this.adgroup = null;
2569
    }
2570
 
2571
    /** Returns true if field adgroup is set (has been assigned a value) and false otherwise */
2572
    public boolean isSetAdgroup() {
2573
      return this.adgroup != null;
2574
    }
2575
 
2576
    public void setAdgroupIsSet(boolean value) {
2577
      if (!value) {
2578
        this.adgroup = null;
2579
      }
2580
    }
2581
 
2582
    public void setFieldValue(_Fields field, Object value) {
2583
      switch (field) {
2584
      case ADGROUP:
2585
        if (value == null) {
2586
          unsetAdgroup();
2587
        } else {
2588
          setAdgroup((AdwordsAdGroup)value);
2589
        }
2590
        break;
2591
 
2592
      }
2593
    }
2594
 
2595
    public Object getFieldValue(_Fields field) {
2596
      switch (field) {
2597
      case ADGROUP:
2598
        return getAdgroup();
2599
 
2600
      }
2601
      throw new IllegalStateException();
2602
    }
2603
 
2604
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2605
    public boolean isSet(_Fields field) {
2606
      if (field == null) {
2607
        throw new IllegalArgumentException();
2608
      }
2609
 
2610
      switch (field) {
2611
      case ADGROUP:
2612
        return isSetAdgroup();
2613
      }
2614
      throw new IllegalStateException();
2615
    }
2616
 
2617
    @Override
2618
    public boolean equals(Object that) {
2619
      if (that == null)
2620
        return false;
2621
      if (that instanceof addAdwordsAdGroup_args)
2622
        return this.equals((addAdwordsAdGroup_args)that);
2623
      return false;
2624
    }
2625
 
2626
    public boolean equals(addAdwordsAdGroup_args that) {
2627
      if (that == null)
2628
        return false;
2629
 
2630
      boolean this_present_adgroup = true && this.isSetAdgroup();
2631
      boolean that_present_adgroup = true && that.isSetAdgroup();
2632
      if (this_present_adgroup || that_present_adgroup) {
2633
        if (!(this_present_adgroup && that_present_adgroup))
2634
          return false;
2635
        if (!this.adgroup.equals(that.adgroup))
2636
          return false;
2637
      }
2638
 
2639
      return true;
2640
    }
2641
 
2642
    @Override
2643
    public int hashCode() {
2644
      return 0;
2645
    }
2646
 
2647
    public int compareTo(addAdwordsAdGroup_args other) {
2648
      if (!getClass().equals(other.getClass())) {
2649
        return getClass().getName().compareTo(other.getClass().getName());
2650
      }
2651
 
2652
      int lastComparison = 0;
2653
      addAdwordsAdGroup_args typedOther = (addAdwordsAdGroup_args)other;
2654
 
2655
      lastComparison = Boolean.valueOf(isSetAdgroup()).compareTo(typedOther.isSetAdgroup());
2656
      if (lastComparison != 0) {
2657
        return lastComparison;
2658
      }
2659
      if (isSetAdgroup()) {
2660
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroup, typedOther.adgroup);
2661
        if (lastComparison != 0) {
2662
          return lastComparison;
2663
        }
2664
      }
2665
      return 0;
2666
    }
2667
 
2668
    public _Fields fieldForId(int fieldId) {
2669
      return _Fields.findByThriftId(fieldId);
2670
    }
2671
 
2672
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2673
      org.apache.thrift.protocol.TField field;
2674
      iprot.readStructBegin();
2675
      while (true)
2676
      {
2677
        field = iprot.readFieldBegin();
2678
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2679
          break;
2680
        }
2681
        switch (field.id) {
2682
          case 1: // ADGROUP
2683
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2684
              this.adgroup = new AdwordsAdGroup();
2685
              this.adgroup.read(iprot);
2686
            } else { 
2687
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2688
            }
2689
            break;
2690
          default:
2691
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2692
        }
2693
        iprot.readFieldEnd();
2694
      }
2695
      iprot.readStructEnd();
2696
      validate();
2697
    }
2698
 
2699
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2700
      validate();
2701
 
2702
      oprot.writeStructBegin(STRUCT_DESC);
2703
      if (this.adgroup != null) {
2704
        oprot.writeFieldBegin(ADGROUP_FIELD_DESC);
2705
        this.adgroup.write(oprot);
2706
        oprot.writeFieldEnd();
2707
      }
2708
      oprot.writeFieldStop();
2709
      oprot.writeStructEnd();
2710
    }
2711
 
2712
    @Override
2713
    public String toString() {
2714
      StringBuilder sb = new StringBuilder("addAdwordsAdGroup_args(");
2715
      boolean first = true;
2716
 
2717
      sb.append("adgroup:");
2718
      if (this.adgroup == null) {
2719
        sb.append("null");
2720
      } else {
2721
        sb.append(this.adgroup);
2722
      }
2723
      first = false;
2724
      sb.append(")");
2725
      return sb.toString();
2726
    }
2727
 
2728
    public void validate() throws org.apache.thrift.TException {
2729
      // check for required fields
2730
    }
2731
 
2732
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2733
      try {
2734
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2735
      } catch (org.apache.thrift.TException te) {
2736
        throw new java.io.IOException(te);
2737
      }
2738
    }
2739
 
2740
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2741
      try {
2742
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2743
      } catch (org.apache.thrift.TException te) {
2744
        throw new java.io.IOException(te);
2745
      }
2746
    }
2747
 
2748
  }
2749
 
2750
  public static class addAdwordsAdGroup_result implements org.apache.thrift.TBase<addAdwordsAdGroup_result, addAdwordsAdGroup_result._Fields>, java.io.Serializable, Cloneable   {
2751
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroup_result");
2752
 
2753
    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);
2754
 
2755
    private GoogleAdwordsServiceException gasex; // required
2756
 
2757
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2758
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2759
      GASEX((short)1, "gasex");
2760
 
2761
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2762
 
2763
      static {
2764
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2765
          byName.put(field.getFieldName(), field);
2766
        }
2767
      }
2768
 
2769
      /**
2770
       * Find the _Fields constant that matches fieldId, or null if its not found.
2771
       */
2772
      public static _Fields findByThriftId(int fieldId) {
2773
        switch(fieldId) {
2774
          case 1: // GASEX
2775
            return GASEX;
2776
          default:
2777
            return null;
2778
        }
2779
      }
2780
 
2781
      /**
2782
       * Find the _Fields constant that matches fieldId, throwing an exception
2783
       * if it is not found.
2784
       */
2785
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2786
        _Fields fields = findByThriftId(fieldId);
2787
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2788
        return fields;
2789
      }
2790
 
2791
      /**
2792
       * Find the _Fields constant that matches name, or null if its not found.
2793
       */
2794
      public static _Fields findByName(String name) {
2795
        return byName.get(name);
2796
      }
2797
 
2798
      private final short _thriftId;
2799
      private final String _fieldName;
2800
 
2801
      _Fields(short thriftId, String fieldName) {
2802
        _thriftId = thriftId;
2803
        _fieldName = fieldName;
2804
      }
2805
 
2806
      public short getThriftFieldId() {
2807
        return _thriftId;
2808
      }
2809
 
2810
      public String getFieldName() {
2811
        return _fieldName;
2812
      }
2813
    }
2814
 
2815
    // isset id assignments
2816
 
2817
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2818
    static {
2819
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2820
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2821
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2822
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2823
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroup_result.class, metaDataMap);
2824
    }
2825
 
2826
    public addAdwordsAdGroup_result() {
2827
    }
2828
 
2829
    public addAdwordsAdGroup_result(
2830
      GoogleAdwordsServiceException gasex)
2831
    {
2832
      this();
2833
      this.gasex = gasex;
2834
    }
2835
 
2836
    /**
2837
     * Performs a deep copy on <i>other</i>.
2838
     */
2839
    public addAdwordsAdGroup_result(addAdwordsAdGroup_result other) {
2840
      if (other.isSetGasex()) {
2841
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
2842
      }
2843
    }
2844
 
2845
    public addAdwordsAdGroup_result deepCopy() {
2846
      return new addAdwordsAdGroup_result(this);
2847
    }
2848
 
2849
    @Override
2850
    public void clear() {
2851
      this.gasex = null;
2852
    }
2853
 
2854
    public GoogleAdwordsServiceException getGasex() {
2855
      return this.gasex;
2856
    }
2857
 
2858
    public void setGasex(GoogleAdwordsServiceException gasex) {
2859
      this.gasex = gasex;
2860
    }
2861
 
2862
    public void unsetGasex() {
2863
      this.gasex = null;
2864
    }
2865
 
2866
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
2867
    public boolean isSetGasex() {
2868
      return this.gasex != null;
2869
    }
2870
 
2871
    public void setGasexIsSet(boolean value) {
2872
      if (!value) {
2873
        this.gasex = null;
2874
      }
2875
    }
2876
 
2877
    public void setFieldValue(_Fields field, Object value) {
2878
      switch (field) {
2879
      case GASEX:
2880
        if (value == null) {
2881
          unsetGasex();
2882
        } else {
2883
          setGasex((GoogleAdwordsServiceException)value);
2884
        }
2885
        break;
2886
 
2887
      }
2888
    }
2889
 
2890
    public Object getFieldValue(_Fields field) {
2891
      switch (field) {
2892
      case GASEX:
2893
        return getGasex();
2894
 
2895
      }
2896
      throw new IllegalStateException();
2897
    }
2898
 
2899
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2900
    public boolean isSet(_Fields field) {
2901
      if (field == null) {
2902
        throw new IllegalArgumentException();
2903
      }
2904
 
2905
      switch (field) {
2906
      case GASEX:
2907
        return isSetGasex();
2908
      }
2909
      throw new IllegalStateException();
2910
    }
2911
 
2912
    @Override
2913
    public boolean equals(Object that) {
2914
      if (that == null)
2915
        return false;
2916
      if (that instanceof addAdwordsAdGroup_result)
2917
        return this.equals((addAdwordsAdGroup_result)that);
2918
      return false;
2919
    }
2920
 
2921
    public boolean equals(addAdwordsAdGroup_result that) {
2922
      if (that == null)
2923
        return false;
2924
 
2925
      boolean this_present_gasex = true && this.isSetGasex();
2926
      boolean that_present_gasex = true && that.isSetGasex();
2927
      if (this_present_gasex || that_present_gasex) {
2928
        if (!(this_present_gasex && that_present_gasex))
2929
          return false;
2930
        if (!this.gasex.equals(that.gasex))
2931
          return false;
2932
      }
2933
 
2934
      return true;
2935
    }
2936
 
2937
    @Override
2938
    public int hashCode() {
2939
      return 0;
2940
    }
2941
 
2942
    public int compareTo(addAdwordsAdGroup_result other) {
2943
      if (!getClass().equals(other.getClass())) {
2944
        return getClass().getName().compareTo(other.getClass().getName());
2945
      }
2946
 
2947
      int lastComparison = 0;
2948
      addAdwordsAdGroup_result typedOther = (addAdwordsAdGroup_result)other;
2949
 
2950
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
2951
      if (lastComparison != 0) {
2952
        return lastComparison;
2953
      }
2954
      if (isSetGasex()) {
2955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
2956
        if (lastComparison != 0) {
2957
          return lastComparison;
2958
        }
2959
      }
2960
      return 0;
2961
    }
2962
 
2963
    public _Fields fieldForId(int fieldId) {
2964
      return _Fields.findByThriftId(fieldId);
2965
    }
2966
 
2967
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2968
      org.apache.thrift.protocol.TField field;
2969
      iprot.readStructBegin();
2970
      while (true)
2971
      {
2972
        field = iprot.readFieldBegin();
2973
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2974
          break;
2975
        }
2976
        switch (field.id) {
2977
          case 1: // GASEX
2978
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2979
              this.gasex = new GoogleAdwordsServiceException();
2980
              this.gasex.read(iprot);
2981
            } else { 
2982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2983
            }
2984
            break;
2985
          default:
2986
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2987
        }
2988
        iprot.readFieldEnd();
2989
      }
2990
      iprot.readStructEnd();
2991
      validate();
2992
    }
2993
 
2994
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2995
      oprot.writeStructBegin(STRUCT_DESC);
2996
 
2997
      if (this.isSetGasex()) {
2998
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
2999
        this.gasex.write(oprot);
3000
        oprot.writeFieldEnd();
3001
      }
3002
      oprot.writeFieldStop();
3003
      oprot.writeStructEnd();
3004
    }
3005
 
3006
    @Override
3007
    public String toString() {
3008
      StringBuilder sb = new StringBuilder("addAdwordsAdGroup_result(");
3009
      boolean first = true;
3010
 
3011
      sb.append("gasex:");
3012
      if (this.gasex == null) {
3013
        sb.append("null");
3014
      } else {
3015
        sb.append(this.gasex);
3016
      }
3017
      first = false;
3018
      sb.append(")");
3019
      return sb.toString();
3020
    }
3021
 
3022
    public void validate() throws org.apache.thrift.TException {
3023
      // check for required fields
3024
    }
3025
 
3026
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3027
      try {
3028
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3029
      } catch (org.apache.thrift.TException te) {
3030
        throw new java.io.IOException(te);
3031
      }
3032
    }
3033
 
3034
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3035
      try {
3036
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3037
      } catch (org.apache.thrift.TException te) {
3038
        throw new java.io.IOException(te);
3039
      }
3040
    }
3041
 
3042
  }
3043
 
3044
  public static class addAdwordsAdGroupAd_args implements org.apache.thrift.TBase<addAdwordsAdGroupAd_args, addAdwordsAdGroupAd_args._Fields>, java.io.Serializable, Cloneable   {
3045
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroupAd_args");
3046
 
3047
    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);
3048
 
3049
    private AdwordsAdGroupAd adgroupad; // required
3050
 
3051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3053
      ADGROUPAD((short)1, "adgroupad");
3054
 
3055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3056
 
3057
      static {
3058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3059
          byName.put(field.getFieldName(), field);
3060
        }
3061
      }
3062
 
3063
      /**
3064
       * Find the _Fields constant that matches fieldId, or null if its not found.
3065
       */
3066
      public static _Fields findByThriftId(int fieldId) {
3067
        switch(fieldId) {
3068
          case 1: // ADGROUPAD
3069
            return ADGROUPAD;
3070
          default:
3071
            return null;
3072
        }
3073
      }
3074
 
3075
      /**
3076
       * Find the _Fields constant that matches fieldId, throwing an exception
3077
       * if it is not found.
3078
       */
3079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3080
        _Fields fields = findByThriftId(fieldId);
3081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3082
        return fields;
3083
      }
3084
 
3085
      /**
3086
       * Find the _Fields constant that matches name, or null if its not found.
3087
       */
3088
      public static _Fields findByName(String name) {
3089
        return byName.get(name);
3090
      }
3091
 
3092
      private final short _thriftId;
3093
      private final String _fieldName;
3094
 
3095
      _Fields(short thriftId, String fieldName) {
3096
        _thriftId = thriftId;
3097
        _fieldName = fieldName;
3098
      }
3099
 
3100
      public short getThriftFieldId() {
3101
        return _thriftId;
3102
      }
3103
 
3104
      public String getFieldName() {
3105
        return _fieldName;
3106
      }
3107
    }
3108
 
3109
    // isset id assignments
3110
 
3111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3112
    static {
3113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3114
      tmpMap.put(_Fields.ADGROUPAD, new org.apache.thrift.meta_data.FieldMetaData("adgroupad", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3115
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class)));
3116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroupAd_args.class, metaDataMap);
3118
    }
3119
 
3120
    public addAdwordsAdGroupAd_args() {
3121
    }
3122
 
3123
    public addAdwordsAdGroupAd_args(
3124
      AdwordsAdGroupAd adgroupad)
3125
    {
3126
      this();
3127
      this.adgroupad = adgroupad;
3128
    }
3129
 
3130
    /**
3131
     * Performs a deep copy on <i>other</i>.
3132
     */
3133
    public addAdwordsAdGroupAd_args(addAdwordsAdGroupAd_args other) {
3134
      if (other.isSetAdgroupad()) {
3135
        this.adgroupad = new AdwordsAdGroupAd(other.adgroupad);
3136
      }
3137
    }
3138
 
3139
    public addAdwordsAdGroupAd_args deepCopy() {
3140
      return new addAdwordsAdGroupAd_args(this);
3141
    }
3142
 
3143
    @Override
3144
    public void clear() {
3145
      this.adgroupad = null;
3146
    }
3147
 
3148
    public AdwordsAdGroupAd getAdgroupad() {
3149
      return this.adgroupad;
3150
    }
3151
 
3152
    public void setAdgroupad(AdwordsAdGroupAd adgroupad) {
3153
      this.adgroupad = adgroupad;
3154
    }
3155
 
3156
    public void unsetAdgroupad() {
3157
      this.adgroupad = null;
3158
    }
3159
 
3160
    /** Returns true if field adgroupad is set (has been assigned a value) and false otherwise */
3161
    public boolean isSetAdgroupad() {
3162
      return this.adgroupad != null;
3163
    }
3164
 
3165
    public void setAdgroupadIsSet(boolean value) {
3166
      if (!value) {
3167
        this.adgroupad = null;
3168
      }
3169
    }
3170
 
3171
    public void setFieldValue(_Fields field, Object value) {
3172
      switch (field) {
3173
      case ADGROUPAD:
3174
        if (value == null) {
3175
          unsetAdgroupad();
3176
        } else {
3177
          setAdgroupad((AdwordsAdGroupAd)value);
3178
        }
3179
        break;
3180
 
3181
      }
3182
    }
3183
 
3184
    public Object getFieldValue(_Fields field) {
3185
      switch (field) {
3186
      case ADGROUPAD:
3187
        return getAdgroupad();
3188
 
3189
      }
3190
      throw new IllegalStateException();
3191
    }
3192
 
3193
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3194
    public boolean isSet(_Fields field) {
3195
      if (field == null) {
3196
        throw new IllegalArgumentException();
3197
      }
3198
 
3199
      switch (field) {
3200
      case ADGROUPAD:
3201
        return isSetAdgroupad();
3202
      }
3203
      throw new IllegalStateException();
3204
    }
3205
 
3206
    @Override
3207
    public boolean equals(Object that) {
3208
      if (that == null)
3209
        return false;
3210
      if (that instanceof addAdwordsAdGroupAd_args)
3211
        return this.equals((addAdwordsAdGroupAd_args)that);
3212
      return false;
3213
    }
3214
 
3215
    public boolean equals(addAdwordsAdGroupAd_args that) {
3216
      if (that == null)
3217
        return false;
3218
 
3219
      boolean this_present_adgroupad = true && this.isSetAdgroupad();
3220
      boolean that_present_adgroupad = true && that.isSetAdgroupad();
3221
      if (this_present_adgroupad || that_present_adgroupad) {
3222
        if (!(this_present_adgroupad && that_present_adgroupad))
3223
          return false;
3224
        if (!this.adgroupad.equals(that.adgroupad))
3225
          return false;
3226
      }
3227
 
3228
      return true;
3229
    }
3230
 
3231
    @Override
3232
    public int hashCode() {
3233
      return 0;
3234
    }
3235
 
3236
    public int compareTo(addAdwordsAdGroupAd_args other) {
3237
      if (!getClass().equals(other.getClass())) {
3238
        return getClass().getName().compareTo(other.getClass().getName());
3239
      }
3240
 
3241
      int lastComparison = 0;
3242
      addAdwordsAdGroupAd_args typedOther = (addAdwordsAdGroupAd_args)other;
3243
 
3244
      lastComparison = Boolean.valueOf(isSetAdgroupad()).compareTo(typedOther.isSetAdgroupad());
3245
      if (lastComparison != 0) {
3246
        return lastComparison;
3247
      }
3248
      if (isSetAdgroupad()) {
3249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupad, typedOther.adgroupad);
3250
        if (lastComparison != 0) {
3251
          return lastComparison;
3252
        }
3253
      }
3254
      return 0;
3255
    }
3256
 
3257
    public _Fields fieldForId(int fieldId) {
3258
      return _Fields.findByThriftId(fieldId);
3259
    }
3260
 
3261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3262
      org.apache.thrift.protocol.TField field;
3263
      iprot.readStructBegin();
3264
      while (true)
3265
      {
3266
        field = iprot.readFieldBegin();
3267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3268
          break;
3269
        }
3270
        switch (field.id) {
3271
          case 1: // ADGROUPAD
3272
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3273
              this.adgroupad = new AdwordsAdGroupAd();
3274
              this.adgroupad.read(iprot);
3275
            } else { 
3276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3277
            }
3278
            break;
3279
          default:
3280
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3281
        }
3282
        iprot.readFieldEnd();
3283
      }
3284
      iprot.readStructEnd();
3285
      validate();
3286
    }
3287
 
3288
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3289
      validate();
3290
 
3291
      oprot.writeStructBegin(STRUCT_DESC);
3292
      if (this.adgroupad != null) {
3293
        oprot.writeFieldBegin(ADGROUPAD_FIELD_DESC);
3294
        this.adgroupad.write(oprot);
3295
        oprot.writeFieldEnd();
3296
      }
3297
      oprot.writeFieldStop();
3298
      oprot.writeStructEnd();
3299
    }
3300
 
3301
    @Override
3302
    public String toString() {
3303
      StringBuilder sb = new StringBuilder("addAdwordsAdGroupAd_args(");
3304
      boolean first = true;
3305
 
3306
      sb.append("adgroupad:");
3307
      if (this.adgroupad == null) {
3308
        sb.append("null");
3309
      } else {
3310
        sb.append(this.adgroupad);
3311
      }
3312
      first = false;
3313
      sb.append(")");
3314
      return sb.toString();
3315
    }
3316
 
3317
    public void validate() throws org.apache.thrift.TException {
3318
      // check for required fields
3319
    }
3320
 
3321
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3322
      try {
3323
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3324
      } catch (org.apache.thrift.TException te) {
3325
        throw new java.io.IOException(te);
3326
      }
3327
    }
3328
 
3329
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3330
      try {
3331
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3332
      } catch (org.apache.thrift.TException te) {
3333
        throw new java.io.IOException(te);
3334
      }
3335
    }
3336
 
3337
  }
3338
 
3339
  public static class addAdwordsAdGroupAd_result implements org.apache.thrift.TBase<addAdwordsAdGroupAd_result, addAdwordsAdGroupAd_result._Fields>, java.io.Serializable, Cloneable   {
3340
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdGroupAd_result");
3341
 
3342
    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);
3343
 
3344
    private GoogleAdwordsServiceException gasex; // required
3345
 
3346
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3347
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3348
      GASEX((short)1, "gasex");
3349
 
3350
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3351
 
3352
      static {
3353
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3354
          byName.put(field.getFieldName(), field);
3355
        }
3356
      }
3357
 
3358
      /**
3359
       * Find the _Fields constant that matches fieldId, or null if its not found.
3360
       */
3361
      public static _Fields findByThriftId(int fieldId) {
3362
        switch(fieldId) {
3363
          case 1: // GASEX
3364
            return GASEX;
3365
          default:
3366
            return null;
3367
        }
3368
      }
3369
 
3370
      /**
3371
       * Find the _Fields constant that matches fieldId, throwing an exception
3372
       * if it is not found.
3373
       */
3374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3375
        _Fields fields = findByThriftId(fieldId);
3376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3377
        return fields;
3378
      }
3379
 
3380
      /**
3381
       * Find the _Fields constant that matches name, or null if its not found.
3382
       */
3383
      public static _Fields findByName(String name) {
3384
        return byName.get(name);
3385
      }
3386
 
3387
      private final short _thriftId;
3388
      private final String _fieldName;
3389
 
3390
      _Fields(short thriftId, String fieldName) {
3391
        _thriftId = thriftId;
3392
        _fieldName = fieldName;
3393
      }
3394
 
3395
      public short getThriftFieldId() {
3396
        return _thriftId;
3397
      }
3398
 
3399
      public String getFieldName() {
3400
        return _fieldName;
3401
      }
3402
    }
3403
 
3404
    // isset id assignments
3405
 
3406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3407
    static {
3408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3409
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdGroupAd_result.class, metaDataMap);
3413
    }
3414
 
3415
    public addAdwordsAdGroupAd_result() {
3416
    }
3417
 
3418
    public addAdwordsAdGroupAd_result(
3419
      GoogleAdwordsServiceException gasex)
3420
    {
3421
      this();
3422
      this.gasex = gasex;
3423
    }
3424
 
3425
    /**
3426
     * Performs a deep copy on <i>other</i>.
3427
     */
3428
    public addAdwordsAdGroupAd_result(addAdwordsAdGroupAd_result other) {
3429
      if (other.isSetGasex()) {
3430
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
3431
      }
3432
    }
3433
 
3434
    public addAdwordsAdGroupAd_result deepCopy() {
3435
      return new addAdwordsAdGroupAd_result(this);
3436
    }
3437
 
3438
    @Override
3439
    public void clear() {
3440
      this.gasex = null;
3441
    }
3442
 
3443
    public GoogleAdwordsServiceException getGasex() {
3444
      return this.gasex;
3445
    }
3446
 
3447
    public void setGasex(GoogleAdwordsServiceException gasex) {
3448
      this.gasex = gasex;
3449
    }
3450
 
3451
    public void unsetGasex() {
3452
      this.gasex = null;
3453
    }
3454
 
3455
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
3456
    public boolean isSetGasex() {
3457
      return this.gasex != null;
3458
    }
3459
 
3460
    public void setGasexIsSet(boolean value) {
3461
      if (!value) {
3462
        this.gasex = null;
3463
      }
3464
    }
3465
 
3466
    public void setFieldValue(_Fields field, Object value) {
3467
      switch (field) {
3468
      case GASEX:
3469
        if (value == null) {
3470
          unsetGasex();
3471
        } else {
3472
          setGasex((GoogleAdwordsServiceException)value);
3473
        }
3474
        break;
3475
 
3476
      }
3477
    }
3478
 
3479
    public Object getFieldValue(_Fields field) {
3480
      switch (field) {
3481
      case GASEX:
3482
        return getGasex();
3483
 
3484
      }
3485
      throw new IllegalStateException();
3486
    }
3487
 
3488
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3489
    public boolean isSet(_Fields field) {
3490
      if (field == null) {
3491
        throw new IllegalArgumentException();
3492
      }
3493
 
3494
      switch (field) {
3495
      case GASEX:
3496
        return isSetGasex();
3497
      }
3498
      throw new IllegalStateException();
3499
    }
3500
 
3501
    @Override
3502
    public boolean equals(Object that) {
3503
      if (that == null)
3504
        return false;
3505
      if (that instanceof addAdwordsAdGroupAd_result)
3506
        return this.equals((addAdwordsAdGroupAd_result)that);
3507
      return false;
3508
    }
3509
 
3510
    public boolean equals(addAdwordsAdGroupAd_result that) {
3511
      if (that == null)
3512
        return false;
3513
 
3514
      boolean this_present_gasex = true && this.isSetGasex();
3515
      boolean that_present_gasex = true && that.isSetGasex();
3516
      if (this_present_gasex || that_present_gasex) {
3517
        if (!(this_present_gasex && that_present_gasex))
3518
          return false;
3519
        if (!this.gasex.equals(that.gasex))
3520
          return false;
3521
      }
3522
 
3523
      return true;
3524
    }
3525
 
3526
    @Override
3527
    public int hashCode() {
3528
      return 0;
3529
    }
3530
 
3531
    public int compareTo(addAdwordsAdGroupAd_result other) {
3532
      if (!getClass().equals(other.getClass())) {
3533
        return getClass().getName().compareTo(other.getClass().getName());
3534
      }
3535
 
3536
      int lastComparison = 0;
3537
      addAdwordsAdGroupAd_result typedOther = (addAdwordsAdGroupAd_result)other;
3538
 
3539
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
3540
      if (lastComparison != 0) {
3541
        return lastComparison;
3542
      }
3543
      if (isSetGasex()) {
3544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
3545
        if (lastComparison != 0) {
3546
          return lastComparison;
3547
        }
3548
      }
3549
      return 0;
3550
    }
3551
 
3552
    public _Fields fieldForId(int fieldId) {
3553
      return _Fields.findByThriftId(fieldId);
3554
    }
3555
 
3556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3557
      org.apache.thrift.protocol.TField field;
3558
      iprot.readStructBegin();
3559
      while (true)
3560
      {
3561
        field = iprot.readFieldBegin();
3562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3563
          break;
3564
        }
3565
        switch (field.id) {
3566
          case 1: // GASEX
3567
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3568
              this.gasex = new GoogleAdwordsServiceException();
3569
              this.gasex.read(iprot);
3570
            } else { 
3571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3572
            }
3573
            break;
3574
          default:
3575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3576
        }
3577
        iprot.readFieldEnd();
3578
      }
3579
      iprot.readStructEnd();
3580
      validate();
3581
    }
3582
 
3583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3584
      oprot.writeStructBegin(STRUCT_DESC);
3585
 
3586
      if (this.isSetGasex()) {
3587
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
3588
        this.gasex.write(oprot);
3589
        oprot.writeFieldEnd();
3590
      }
3591
      oprot.writeFieldStop();
3592
      oprot.writeStructEnd();
3593
    }
3594
 
3595
    @Override
3596
    public String toString() {
3597
      StringBuilder sb = new StringBuilder("addAdwordsAdGroupAd_result(");
3598
      boolean first = true;
3599
 
3600
      sb.append("gasex:");
3601
      if (this.gasex == null) {
3602
        sb.append("null");
3603
      } else {
3604
        sb.append(this.gasex);
3605
      }
3606
      first = false;
3607
      sb.append(")");
3608
      return sb.toString();
3609
    }
3610
 
3611
    public void validate() throws org.apache.thrift.TException {
3612
      // check for required fields
3613
    }
3614
 
3615
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3616
      try {
3617
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3618
      } catch (org.apache.thrift.TException te) {
3619
        throw new java.io.IOException(te);
3620
      }
3621
    }
3622
 
3623
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3624
      try {
3625
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3626
      } catch (org.apache.thrift.TException te) {
3627
        throw new java.io.IOException(te);
3628
      }
3629
    }
3630
 
3631
  }
3632
 
3633
  public static class addAdwordsAdKeyword_args implements org.apache.thrift.TBase<addAdwordsAdKeyword_args, addAdwordsAdKeyword_args._Fields>, java.io.Serializable, Cloneable   {
3634
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdKeyword_args");
3635
 
3636
    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);
3637
 
3638
    private AdwordsAdKeyword adkeyword; // required
3639
 
3640
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3641
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3642
      ADKEYWORD((short)1, "adkeyword");
3643
 
3644
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3645
 
3646
      static {
3647
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3648
          byName.put(field.getFieldName(), field);
3649
        }
3650
      }
3651
 
3652
      /**
3653
       * Find the _Fields constant that matches fieldId, or null if its not found.
3654
       */
3655
      public static _Fields findByThriftId(int fieldId) {
3656
        switch(fieldId) {
3657
          case 1: // ADKEYWORD
3658
            return ADKEYWORD;
3659
          default:
3660
            return null;
3661
        }
3662
      }
3663
 
3664
      /**
3665
       * Find the _Fields constant that matches fieldId, throwing an exception
3666
       * if it is not found.
3667
       */
3668
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3669
        _Fields fields = findByThriftId(fieldId);
3670
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3671
        return fields;
3672
      }
3673
 
3674
      /**
3675
       * Find the _Fields constant that matches name, or null if its not found.
3676
       */
3677
      public static _Fields findByName(String name) {
3678
        return byName.get(name);
3679
      }
3680
 
3681
      private final short _thriftId;
3682
      private final String _fieldName;
3683
 
3684
      _Fields(short thriftId, String fieldName) {
3685
        _thriftId = thriftId;
3686
        _fieldName = fieldName;
3687
      }
3688
 
3689
      public short getThriftFieldId() {
3690
        return _thriftId;
3691
      }
3692
 
3693
      public String getFieldName() {
3694
        return _fieldName;
3695
      }
3696
    }
3697
 
3698
    // isset id assignments
3699
 
3700
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3701
    static {
3702
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3703
      tmpMap.put(_Fields.ADKEYWORD, new org.apache.thrift.meta_data.FieldMetaData("adkeyword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3704
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class)));
3705
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3706
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdKeyword_args.class, metaDataMap);
3707
    }
3708
 
3709
    public addAdwordsAdKeyword_args() {
3710
    }
3711
 
3712
    public addAdwordsAdKeyword_args(
3713
      AdwordsAdKeyword adkeyword)
3714
    {
3715
      this();
3716
      this.adkeyword = adkeyword;
3717
    }
3718
 
3719
    /**
3720
     * Performs a deep copy on <i>other</i>.
3721
     */
3722
    public addAdwordsAdKeyword_args(addAdwordsAdKeyword_args other) {
3723
      if (other.isSetAdkeyword()) {
3724
        this.adkeyword = new AdwordsAdKeyword(other.adkeyword);
3725
      }
3726
    }
3727
 
3728
    public addAdwordsAdKeyword_args deepCopy() {
3729
      return new addAdwordsAdKeyword_args(this);
3730
    }
3731
 
3732
    @Override
3733
    public void clear() {
3734
      this.adkeyword = null;
3735
    }
3736
 
3737
    public AdwordsAdKeyword getAdkeyword() {
3738
      return this.adkeyword;
3739
    }
3740
 
3741
    public void setAdkeyword(AdwordsAdKeyword adkeyword) {
3742
      this.adkeyword = adkeyword;
3743
    }
3744
 
3745
    public void unsetAdkeyword() {
3746
      this.adkeyword = null;
3747
    }
3748
 
3749
    /** Returns true if field adkeyword is set (has been assigned a value) and false otherwise */
3750
    public boolean isSetAdkeyword() {
3751
      return this.adkeyword != null;
3752
    }
3753
 
3754
    public void setAdkeywordIsSet(boolean value) {
3755
      if (!value) {
3756
        this.adkeyword = null;
3757
      }
3758
    }
3759
 
3760
    public void setFieldValue(_Fields field, Object value) {
3761
      switch (field) {
3762
      case ADKEYWORD:
3763
        if (value == null) {
3764
          unsetAdkeyword();
3765
        } else {
3766
          setAdkeyword((AdwordsAdKeyword)value);
3767
        }
3768
        break;
3769
 
3770
      }
3771
    }
3772
 
3773
    public Object getFieldValue(_Fields field) {
3774
      switch (field) {
3775
      case ADKEYWORD:
3776
        return getAdkeyword();
3777
 
3778
      }
3779
      throw new IllegalStateException();
3780
    }
3781
 
3782
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3783
    public boolean isSet(_Fields field) {
3784
      if (field == null) {
3785
        throw new IllegalArgumentException();
3786
      }
3787
 
3788
      switch (field) {
3789
      case ADKEYWORD:
3790
        return isSetAdkeyword();
3791
      }
3792
      throw new IllegalStateException();
3793
    }
3794
 
3795
    @Override
3796
    public boolean equals(Object that) {
3797
      if (that == null)
3798
        return false;
3799
      if (that instanceof addAdwordsAdKeyword_args)
3800
        return this.equals((addAdwordsAdKeyword_args)that);
3801
      return false;
3802
    }
3803
 
3804
    public boolean equals(addAdwordsAdKeyword_args that) {
3805
      if (that == null)
3806
        return false;
3807
 
3808
      boolean this_present_adkeyword = true && this.isSetAdkeyword();
3809
      boolean that_present_adkeyword = true && that.isSetAdkeyword();
3810
      if (this_present_adkeyword || that_present_adkeyword) {
3811
        if (!(this_present_adkeyword && that_present_adkeyword))
3812
          return false;
3813
        if (!this.adkeyword.equals(that.adkeyword))
3814
          return false;
3815
      }
3816
 
3817
      return true;
3818
    }
3819
 
3820
    @Override
3821
    public int hashCode() {
3822
      return 0;
3823
    }
3824
 
3825
    public int compareTo(addAdwordsAdKeyword_args other) {
3826
      if (!getClass().equals(other.getClass())) {
3827
        return getClass().getName().compareTo(other.getClass().getName());
3828
      }
3829
 
3830
      int lastComparison = 0;
3831
      addAdwordsAdKeyword_args typedOther = (addAdwordsAdKeyword_args)other;
3832
 
3833
      lastComparison = Boolean.valueOf(isSetAdkeyword()).compareTo(typedOther.isSetAdkeyword());
3834
      if (lastComparison != 0) {
3835
        return lastComparison;
3836
      }
3837
      if (isSetAdkeyword()) {
3838
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adkeyword, typedOther.adkeyword);
3839
        if (lastComparison != 0) {
3840
          return lastComparison;
3841
        }
3842
      }
3843
      return 0;
3844
    }
3845
 
3846
    public _Fields fieldForId(int fieldId) {
3847
      return _Fields.findByThriftId(fieldId);
3848
    }
3849
 
3850
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3851
      org.apache.thrift.protocol.TField field;
3852
      iprot.readStructBegin();
3853
      while (true)
3854
      {
3855
        field = iprot.readFieldBegin();
3856
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3857
          break;
3858
        }
3859
        switch (field.id) {
3860
          case 1: // ADKEYWORD
3861
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3862
              this.adkeyword = new AdwordsAdKeyword();
3863
              this.adkeyword.read(iprot);
3864
            } else { 
3865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3866
            }
3867
            break;
3868
          default:
3869
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3870
        }
3871
        iprot.readFieldEnd();
3872
      }
3873
      iprot.readStructEnd();
3874
      validate();
3875
    }
3876
 
3877
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3878
      validate();
3879
 
3880
      oprot.writeStructBegin(STRUCT_DESC);
3881
      if (this.adkeyword != null) {
3882
        oprot.writeFieldBegin(ADKEYWORD_FIELD_DESC);
3883
        this.adkeyword.write(oprot);
3884
        oprot.writeFieldEnd();
3885
      }
3886
      oprot.writeFieldStop();
3887
      oprot.writeStructEnd();
3888
    }
3889
 
3890
    @Override
3891
    public String toString() {
3892
      StringBuilder sb = new StringBuilder("addAdwordsAdKeyword_args(");
3893
      boolean first = true;
3894
 
3895
      sb.append("adkeyword:");
3896
      if (this.adkeyword == null) {
3897
        sb.append("null");
3898
      } else {
3899
        sb.append(this.adkeyword);
3900
      }
3901
      first = false;
3902
      sb.append(")");
3903
      return sb.toString();
3904
    }
3905
 
3906
    public void validate() throws org.apache.thrift.TException {
3907
      // check for required fields
3908
    }
3909
 
3910
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3911
      try {
3912
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3913
      } catch (org.apache.thrift.TException te) {
3914
        throw new java.io.IOException(te);
3915
      }
3916
    }
3917
 
3918
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3919
      try {
3920
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3921
      } catch (org.apache.thrift.TException te) {
3922
        throw new java.io.IOException(te);
3923
      }
3924
    }
3925
 
3926
  }
3927
 
3928
  public static class addAdwordsAdKeyword_result implements org.apache.thrift.TBase<addAdwordsAdKeyword_result, addAdwordsAdKeyword_result._Fields>, java.io.Serializable, Cloneable   {
3929
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAdwordsAdKeyword_result");
3930
 
3931
    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);
3932
 
3933
    private GoogleAdwordsServiceException gasex; // required
3934
 
3935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3937
      GASEX((short)1, "gasex");
3938
 
3939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3940
 
3941
      static {
3942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3943
          byName.put(field.getFieldName(), field);
3944
        }
3945
      }
3946
 
3947
      /**
3948
       * Find the _Fields constant that matches fieldId, or null if its not found.
3949
       */
3950
      public static _Fields findByThriftId(int fieldId) {
3951
        switch(fieldId) {
3952
          case 1: // GASEX
3953
            return GASEX;
3954
          default:
3955
            return null;
3956
        }
3957
      }
3958
 
3959
      /**
3960
       * Find the _Fields constant that matches fieldId, throwing an exception
3961
       * if it is not found.
3962
       */
3963
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3964
        _Fields fields = findByThriftId(fieldId);
3965
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3966
        return fields;
3967
      }
3968
 
3969
      /**
3970
       * Find the _Fields constant that matches name, or null if its not found.
3971
       */
3972
      public static _Fields findByName(String name) {
3973
        return byName.get(name);
3974
      }
3975
 
3976
      private final short _thriftId;
3977
      private final String _fieldName;
3978
 
3979
      _Fields(short thriftId, String fieldName) {
3980
        _thriftId = thriftId;
3981
        _fieldName = fieldName;
3982
      }
3983
 
3984
      public short getThriftFieldId() {
3985
        return _thriftId;
3986
      }
3987
 
3988
      public String getFieldName() {
3989
        return _fieldName;
3990
      }
3991
    }
3992
 
3993
    // isset id assignments
3994
 
3995
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3996
    static {
3997
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3998
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3999
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4000
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4001
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAdwordsAdKeyword_result.class, metaDataMap);
4002
    }
4003
 
4004
    public addAdwordsAdKeyword_result() {
4005
    }
4006
 
4007
    public addAdwordsAdKeyword_result(
4008
      GoogleAdwordsServiceException gasex)
4009
    {
4010
      this();
4011
      this.gasex = gasex;
4012
    }
4013
 
4014
    /**
4015
     * Performs a deep copy on <i>other</i>.
4016
     */
4017
    public addAdwordsAdKeyword_result(addAdwordsAdKeyword_result other) {
4018
      if (other.isSetGasex()) {
4019
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
4020
      }
4021
    }
4022
 
4023
    public addAdwordsAdKeyword_result deepCopy() {
4024
      return new addAdwordsAdKeyword_result(this);
4025
    }
4026
 
4027
    @Override
4028
    public void clear() {
4029
      this.gasex = null;
4030
    }
4031
 
4032
    public GoogleAdwordsServiceException getGasex() {
4033
      return this.gasex;
4034
    }
4035
 
4036
    public void setGasex(GoogleAdwordsServiceException gasex) {
4037
      this.gasex = gasex;
4038
    }
4039
 
4040
    public void unsetGasex() {
4041
      this.gasex = null;
4042
    }
4043
 
4044
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
4045
    public boolean isSetGasex() {
4046
      return this.gasex != null;
4047
    }
4048
 
4049
    public void setGasexIsSet(boolean value) {
4050
      if (!value) {
4051
        this.gasex = null;
4052
      }
4053
    }
4054
 
4055
    public void setFieldValue(_Fields field, Object value) {
4056
      switch (field) {
4057
      case GASEX:
4058
        if (value == null) {
4059
          unsetGasex();
4060
        } else {
4061
          setGasex((GoogleAdwordsServiceException)value);
4062
        }
4063
        break;
4064
 
4065
      }
4066
    }
4067
 
4068
    public Object getFieldValue(_Fields field) {
4069
      switch (field) {
4070
      case GASEX:
4071
        return getGasex();
4072
 
4073
      }
4074
      throw new IllegalStateException();
4075
    }
4076
 
4077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4078
    public boolean isSet(_Fields field) {
4079
      if (field == null) {
4080
        throw new IllegalArgumentException();
4081
      }
4082
 
4083
      switch (field) {
4084
      case GASEX:
4085
        return isSetGasex();
4086
      }
4087
      throw new IllegalStateException();
4088
    }
4089
 
4090
    @Override
4091
    public boolean equals(Object that) {
4092
      if (that == null)
4093
        return false;
4094
      if (that instanceof addAdwordsAdKeyword_result)
4095
        return this.equals((addAdwordsAdKeyword_result)that);
4096
      return false;
4097
    }
4098
 
4099
    public boolean equals(addAdwordsAdKeyword_result that) {
4100
      if (that == null)
4101
        return false;
4102
 
4103
      boolean this_present_gasex = true && this.isSetGasex();
4104
      boolean that_present_gasex = true && that.isSetGasex();
4105
      if (this_present_gasex || that_present_gasex) {
4106
        if (!(this_present_gasex && that_present_gasex))
4107
          return false;
4108
        if (!this.gasex.equals(that.gasex))
4109
          return false;
4110
      }
4111
 
4112
      return true;
4113
    }
4114
 
4115
    @Override
4116
    public int hashCode() {
4117
      return 0;
4118
    }
4119
 
4120
    public int compareTo(addAdwordsAdKeyword_result other) {
4121
      if (!getClass().equals(other.getClass())) {
4122
        return getClass().getName().compareTo(other.getClass().getName());
4123
      }
4124
 
4125
      int lastComparison = 0;
4126
      addAdwordsAdKeyword_result typedOther = (addAdwordsAdKeyword_result)other;
4127
 
4128
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
4129
      if (lastComparison != 0) {
4130
        return lastComparison;
4131
      }
4132
      if (isSetGasex()) {
4133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
4134
        if (lastComparison != 0) {
4135
          return lastComparison;
4136
        }
4137
      }
4138
      return 0;
4139
    }
4140
 
4141
    public _Fields fieldForId(int fieldId) {
4142
      return _Fields.findByThriftId(fieldId);
4143
    }
4144
 
4145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4146
      org.apache.thrift.protocol.TField field;
4147
      iprot.readStructBegin();
4148
      while (true)
4149
      {
4150
        field = iprot.readFieldBegin();
4151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4152
          break;
4153
        }
4154
        switch (field.id) {
4155
          case 1: // GASEX
4156
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4157
              this.gasex = new GoogleAdwordsServiceException();
4158
              this.gasex.read(iprot);
4159
            } else { 
4160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4161
            }
4162
            break;
4163
          default:
4164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4165
        }
4166
        iprot.readFieldEnd();
4167
      }
4168
      iprot.readStructEnd();
4169
      validate();
4170
    }
4171
 
4172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4173
      oprot.writeStructBegin(STRUCT_DESC);
4174
 
4175
      if (this.isSetGasex()) {
4176
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
4177
        this.gasex.write(oprot);
4178
        oprot.writeFieldEnd();
4179
      }
4180
      oprot.writeFieldStop();
4181
      oprot.writeStructEnd();
4182
    }
4183
 
4184
    @Override
4185
    public String toString() {
4186
      StringBuilder sb = new StringBuilder("addAdwordsAdKeyword_result(");
4187
      boolean first = true;
4188
 
4189
      sb.append("gasex:");
4190
      if (this.gasex == null) {
4191
        sb.append("null");
4192
      } else {
4193
        sb.append(this.gasex);
4194
      }
4195
      first = false;
4196
      sb.append(")");
4197
      return sb.toString();
4198
    }
4199
 
4200
    public void validate() throws org.apache.thrift.TException {
4201
      // check for required fields
4202
    }
4203
 
4204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4205
      try {
4206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4207
      } catch (org.apache.thrift.TException te) {
4208
        throw new java.io.IOException(te);
4209
      }
4210
    }
4211
 
4212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4213
      try {
4214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4215
      } catch (org.apache.thrift.TException te) {
4216
        throw new java.io.IOException(te);
4217
      }
4218
    }
4219
 
4220
  }
4221
 
4222
  public static class updateAdwordsCampaign_args implements org.apache.thrift.TBase<updateAdwordsCampaign_args, updateAdwordsCampaign_args._Fields>, java.io.Serializable, Cloneable   {
4223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsCampaign_args");
4224
 
4225
    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);
4226
 
4227
    private AdwordsCampaign campaign; // required
4228
 
4229
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4230
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4231
      CAMPAIGN((short)1, "campaign");
4232
 
4233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4234
 
4235
      static {
4236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4237
          byName.put(field.getFieldName(), field);
4238
        }
4239
      }
4240
 
4241
      /**
4242
       * Find the _Fields constant that matches fieldId, or null if its not found.
4243
       */
4244
      public static _Fields findByThriftId(int fieldId) {
4245
        switch(fieldId) {
4246
          case 1: // CAMPAIGN
4247
            return CAMPAIGN;
4248
          default:
4249
            return null;
4250
        }
4251
      }
4252
 
4253
      /**
4254
       * Find the _Fields constant that matches fieldId, throwing an exception
4255
       * if it is not found.
4256
       */
4257
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4258
        _Fields fields = findByThriftId(fieldId);
4259
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4260
        return fields;
4261
      }
4262
 
4263
      /**
4264
       * Find the _Fields constant that matches name, or null if its not found.
4265
       */
4266
      public static _Fields findByName(String name) {
4267
        return byName.get(name);
4268
      }
4269
 
4270
      private final short _thriftId;
4271
      private final String _fieldName;
4272
 
4273
      _Fields(short thriftId, String fieldName) {
4274
        _thriftId = thriftId;
4275
        _fieldName = fieldName;
4276
      }
4277
 
4278
      public short getThriftFieldId() {
4279
        return _thriftId;
4280
      }
4281
 
4282
      public String getFieldName() {
4283
        return _fieldName;
4284
      }
4285
    }
4286
 
4287
    // isset id assignments
4288
 
4289
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4290
    static {
4291
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4292
      tmpMap.put(_Fields.CAMPAIGN, new org.apache.thrift.meta_data.FieldMetaData("campaign", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4293
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class)));
4294
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4295
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsCampaign_args.class, metaDataMap);
4296
    }
4297
 
4298
    public updateAdwordsCampaign_args() {
4299
    }
4300
 
4301
    public updateAdwordsCampaign_args(
4302
      AdwordsCampaign campaign)
4303
    {
4304
      this();
4305
      this.campaign = campaign;
4306
    }
4307
 
4308
    /**
4309
     * Performs a deep copy on <i>other</i>.
4310
     */
4311
    public updateAdwordsCampaign_args(updateAdwordsCampaign_args other) {
4312
      if (other.isSetCampaign()) {
4313
        this.campaign = new AdwordsCampaign(other.campaign);
4314
      }
4315
    }
4316
 
4317
    public updateAdwordsCampaign_args deepCopy() {
4318
      return new updateAdwordsCampaign_args(this);
4319
    }
4320
 
4321
    @Override
4322
    public void clear() {
4323
      this.campaign = null;
4324
    }
4325
 
4326
    public AdwordsCampaign getCampaign() {
4327
      return this.campaign;
4328
    }
4329
 
4330
    public void setCampaign(AdwordsCampaign campaign) {
4331
      this.campaign = campaign;
4332
    }
4333
 
4334
    public void unsetCampaign() {
4335
      this.campaign = null;
4336
    }
4337
 
4338
    /** Returns true if field campaign is set (has been assigned a value) and false otherwise */
4339
    public boolean isSetCampaign() {
4340
      return this.campaign != null;
4341
    }
4342
 
4343
    public void setCampaignIsSet(boolean value) {
4344
      if (!value) {
4345
        this.campaign = null;
4346
      }
4347
    }
4348
 
4349
    public void setFieldValue(_Fields field, Object value) {
4350
      switch (field) {
4351
      case CAMPAIGN:
4352
        if (value == null) {
4353
          unsetCampaign();
4354
        } else {
4355
          setCampaign((AdwordsCampaign)value);
4356
        }
4357
        break;
4358
 
4359
      }
4360
    }
4361
 
4362
    public Object getFieldValue(_Fields field) {
4363
      switch (field) {
4364
      case CAMPAIGN:
4365
        return getCampaign();
4366
 
4367
      }
4368
      throw new IllegalStateException();
4369
    }
4370
 
4371
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4372
    public boolean isSet(_Fields field) {
4373
      if (field == null) {
4374
        throw new IllegalArgumentException();
4375
      }
4376
 
4377
      switch (field) {
4378
      case CAMPAIGN:
4379
        return isSetCampaign();
4380
      }
4381
      throw new IllegalStateException();
4382
    }
4383
 
4384
    @Override
4385
    public boolean equals(Object that) {
4386
      if (that == null)
4387
        return false;
4388
      if (that instanceof updateAdwordsCampaign_args)
4389
        return this.equals((updateAdwordsCampaign_args)that);
4390
      return false;
4391
    }
4392
 
4393
    public boolean equals(updateAdwordsCampaign_args that) {
4394
      if (that == null)
4395
        return false;
4396
 
4397
      boolean this_present_campaign = true && this.isSetCampaign();
4398
      boolean that_present_campaign = true && that.isSetCampaign();
4399
      if (this_present_campaign || that_present_campaign) {
4400
        if (!(this_present_campaign && that_present_campaign))
4401
          return false;
4402
        if (!this.campaign.equals(that.campaign))
4403
          return false;
4404
      }
4405
 
4406
      return true;
4407
    }
4408
 
4409
    @Override
4410
    public int hashCode() {
4411
      return 0;
4412
    }
4413
 
4414
    public int compareTo(updateAdwordsCampaign_args other) {
4415
      if (!getClass().equals(other.getClass())) {
4416
        return getClass().getName().compareTo(other.getClass().getName());
4417
      }
4418
 
4419
      int lastComparison = 0;
4420
      updateAdwordsCampaign_args typedOther = (updateAdwordsCampaign_args)other;
4421
 
4422
      lastComparison = Boolean.valueOf(isSetCampaign()).compareTo(typedOther.isSetCampaign());
4423
      if (lastComparison != 0) {
4424
        return lastComparison;
4425
      }
4426
      if (isSetCampaign()) {
4427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaign, typedOther.campaign);
4428
        if (lastComparison != 0) {
4429
          return lastComparison;
4430
        }
4431
      }
4432
      return 0;
4433
    }
4434
 
4435
    public _Fields fieldForId(int fieldId) {
4436
      return _Fields.findByThriftId(fieldId);
4437
    }
4438
 
4439
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4440
      org.apache.thrift.protocol.TField field;
4441
      iprot.readStructBegin();
4442
      while (true)
4443
      {
4444
        field = iprot.readFieldBegin();
4445
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4446
          break;
4447
        }
4448
        switch (field.id) {
4449
          case 1: // CAMPAIGN
4450
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4451
              this.campaign = new AdwordsCampaign();
4452
              this.campaign.read(iprot);
4453
            } else { 
4454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4455
            }
4456
            break;
4457
          default:
4458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4459
        }
4460
        iprot.readFieldEnd();
4461
      }
4462
      iprot.readStructEnd();
4463
      validate();
4464
    }
4465
 
4466
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4467
      validate();
4468
 
4469
      oprot.writeStructBegin(STRUCT_DESC);
4470
      if (this.campaign != null) {
4471
        oprot.writeFieldBegin(CAMPAIGN_FIELD_DESC);
4472
        this.campaign.write(oprot);
4473
        oprot.writeFieldEnd();
4474
      }
4475
      oprot.writeFieldStop();
4476
      oprot.writeStructEnd();
4477
    }
4478
 
4479
    @Override
4480
    public String toString() {
4481
      StringBuilder sb = new StringBuilder("updateAdwordsCampaign_args(");
4482
      boolean first = true;
4483
 
4484
      sb.append("campaign:");
4485
      if (this.campaign == null) {
4486
        sb.append("null");
4487
      } else {
4488
        sb.append(this.campaign);
4489
      }
4490
      first = false;
4491
      sb.append(")");
4492
      return sb.toString();
4493
    }
4494
 
4495
    public void validate() throws org.apache.thrift.TException {
4496
      // check for required fields
4497
    }
4498
 
4499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4500
      try {
4501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4502
      } catch (org.apache.thrift.TException te) {
4503
        throw new java.io.IOException(te);
4504
      }
4505
    }
4506
 
4507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4508
      try {
4509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4510
      } catch (org.apache.thrift.TException te) {
4511
        throw new java.io.IOException(te);
4512
      }
4513
    }
4514
 
4515
  }
4516
 
4517
  public static class updateAdwordsCampaign_result implements org.apache.thrift.TBase<updateAdwordsCampaign_result, updateAdwordsCampaign_result._Fields>, java.io.Serializable, Cloneable   {
4518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsCampaign_result");
4519
 
4520
    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);
4521
 
4522
    private GoogleAdwordsServiceException gasex; // required
4523
 
4524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4526
      GASEX((short)1, "gasex");
4527
 
4528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4529
 
4530
      static {
4531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4532
          byName.put(field.getFieldName(), field);
4533
        }
4534
      }
4535
 
4536
      /**
4537
       * Find the _Fields constant that matches fieldId, or null if its not found.
4538
       */
4539
      public static _Fields findByThriftId(int fieldId) {
4540
        switch(fieldId) {
4541
          case 1: // GASEX
4542
            return GASEX;
4543
          default:
4544
            return null;
4545
        }
4546
      }
4547
 
4548
      /**
4549
       * Find the _Fields constant that matches fieldId, throwing an exception
4550
       * if it is not found.
4551
       */
4552
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4553
        _Fields fields = findByThriftId(fieldId);
4554
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4555
        return fields;
4556
      }
4557
 
4558
      /**
4559
       * Find the _Fields constant that matches name, or null if its not found.
4560
       */
4561
      public static _Fields findByName(String name) {
4562
        return byName.get(name);
4563
      }
4564
 
4565
      private final short _thriftId;
4566
      private final String _fieldName;
4567
 
4568
      _Fields(short thriftId, String fieldName) {
4569
        _thriftId = thriftId;
4570
        _fieldName = fieldName;
4571
      }
4572
 
4573
      public short getThriftFieldId() {
4574
        return _thriftId;
4575
      }
4576
 
4577
      public String getFieldName() {
4578
        return _fieldName;
4579
      }
4580
    }
4581
 
4582
    // isset id assignments
4583
 
4584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4585
    static {
4586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4587
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4589
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4590
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsCampaign_result.class, metaDataMap);
4591
    }
4592
 
4593
    public updateAdwordsCampaign_result() {
4594
    }
4595
 
4596
    public updateAdwordsCampaign_result(
4597
      GoogleAdwordsServiceException gasex)
4598
    {
4599
      this();
4600
      this.gasex = gasex;
4601
    }
4602
 
4603
    /**
4604
     * Performs a deep copy on <i>other</i>.
4605
     */
4606
    public updateAdwordsCampaign_result(updateAdwordsCampaign_result other) {
4607
      if (other.isSetGasex()) {
4608
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
4609
      }
4610
    }
4611
 
4612
    public updateAdwordsCampaign_result deepCopy() {
4613
      return new updateAdwordsCampaign_result(this);
4614
    }
4615
 
4616
    @Override
4617
    public void clear() {
4618
      this.gasex = null;
4619
    }
4620
 
4621
    public GoogleAdwordsServiceException getGasex() {
4622
      return this.gasex;
4623
    }
4624
 
4625
    public void setGasex(GoogleAdwordsServiceException gasex) {
4626
      this.gasex = gasex;
4627
    }
4628
 
4629
    public void unsetGasex() {
4630
      this.gasex = null;
4631
    }
4632
 
4633
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
4634
    public boolean isSetGasex() {
4635
      return this.gasex != null;
4636
    }
4637
 
4638
    public void setGasexIsSet(boolean value) {
4639
      if (!value) {
4640
        this.gasex = null;
4641
      }
4642
    }
4643
 
4644
    public void setFieldValue(_Fields field, Object value) {
4645
      switch (field) {
4646
      case GASEX:
4647
        if (value == null) {
4648
          unsetGasex();
4649
        } else {
4650
          setGasex((GoogleAdwordsServiceException)value);
4651
        }
4652
        break;
4653
 
4654
      }
4655
    }
4656
 
4657
    public Object getFieldValue(_Fields field) {
4658
      switch (field) {
4659
      case GASEX:
4660
        return getGasex();
4661
 
4662
      }
4663
      throw new IllegalStateException();
4664
    }
4665
 
4666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4667
    public boolean isSet(_Fields field) {
4668
      if (field == null) {
4669
        throw new IllegalArgumentException();
4670
      }
4671
 
4672
      switch (field) {
4673
      case GASEX:
4674
        return isSetGasex();
4675
      }
4676
      throw new IllegalStateException();
4677
    }
4678
 
4679
    @Override
4680
    public boolean equals(Object that) {
4681
      if (that == null)
4682
        return false;
4683
      if (that instanceof updateAdwordsCampaign_result)
4684
        return this.equals((updateAdwordsCampaign_result)that);
4685
      return false;
4686
    }
4687
 
4688
    public boolean equals(updateAdwordsCampaign_result that) {
4689
      if (that == null)
4690
        return false;
4691
 
4692
      boolean this_present_gasex = true && this.isSetGasex();
4693
      boolean that_present_gasex = true && that.isSetGasex();
4694
      if (this_present_gasex || that_present_gasex) {
4695
        if (!(this_present_gasex && that_present_gasex))
4696
          return false;
4697
        if (!this.gasex.equals(that.gasex))
4698
          return false;
4699
      }
4700
 
4701
      return true;
4702
    }
4703
 
4704
    @Override
4705
    public int hashCode() {
4706
      return 0;
4707
    }
4708
 
4709
    public int compareTo(updateAdwordsCampaign_result other) {
4710
      if (!getClass().equals(other.getClass())) {
4711
        return getClass().getName().compareTo(other.getClass().getName());
4712
      }
4713
 
4714
      int lastComparison = 0;
4715
      updateAdwordsCampaign_result typedOther = (updateAdwordsCampaign_result)other;
4716
 
4717
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
4718
      if (lastComparison != 0) {
4719
        return lastComparison;
4720
      }
4721
      if (isSetGasex()) {
4722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
4723
        if (lastComparison != 0) {
4724
          return lastComparison;
4725
        }
4726
      }
4727
      return 0;
4728
    }
4729
 
4730
    public _Fields fieldForId(int fieldId) {
4731
      return _Fields.findByThriftId(fieldId);
4732
    }
4733
 
4734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4735
      org.apache.thrift.protocol.TField field;
4736
      iprot.readStructBegin();
4737
      while (true)
4738
      {
4739
        field = iprot.readFieldBegin();
4740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4741
          break;
4742
        }
4743
        switch (field.id) {
4744
          case 1: // GASEX
4745
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4746
              this.gasex = new GoogleAdwordsServiceException();
4747
              this.gasex.read(iprot);
4748
            } else { 
4749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4750
            }
4751
            break;
4752
          default:
4753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4754
        }
4755
        iprot.readFieldEnd();
4756
      }
4757
      iprot.readStructEnd();
4758
      validate();
4759
    }
4760
 
4761
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4762
      oprot.writeStructBegin(STRUCT_DESC);
4763
 
4764
      if (this.isSetGasex()) {
4765
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
4766
        this.gasex.write(oprot);
4767
        oprot.writeFieldEnd();
4768
      }
4769
      oprot.writeFieldStop();
4770
      oprot.writeStructEnd();
4771
    }
4772
 
4773
    @Override
4774
    public String toString() {
4775
      StringBuilder sb = new StringBuilder("updateAdwordsCampaign_result(");
4776
      boolean first = true;
4777
 
4778
      sb.append("gasex:");
4779
      if (this.gasex == null) {
4780
        sb.append("null");
4781
      } else {
4782
        sb.append(this.gasex);
4783
      }
4784
      first = false;
4785
      sb.append(")");
4786
      return sb.toString();
4787
    }
4788
 
4789
    public void validate() throws org.apache.thrift.TException {
4790
      // check for required fields
4791
    }
4792
 
4793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4794
      try {
4795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4796
      } catch (org.apache.thrift.TException te) {
4797
        throw new java.io.IOException(te);
4798
      }
4799
    }
4800
 
4801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4802
      try {
4803
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4804
      } catch (org.apache.thrift.TException te) {
4805
        throw new java.io.IOException(te);
4806
      }
4807
    }
4808
 
4809
  }
4810
 
4811
  public static class updateAdwordsAdGroup_args implements org.apache.thrift.TBase<updateAdwordsAdGroup_args, updateAdwordsAdGroup_args._Fields>, java.io.Serializable, Cloneable   {
4812
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdGroup_args");
4813
 
4814
    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);
4815
 
4816
    private AdwordsAdGroup adgroup; // required
4817
 
4818
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4819
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4820
      ADGROUP((short)1, "adgroup");
4821
 
4822
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4823
 
4824
      static {
4825
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4826
          byName.put(field.getFieldName(), field);
4827
        }
4828
      }
4829
 
4830
      /**
4831
       * Find the _Fields constant that matches fieldId, or null if its not found.
4832
       */
4833
      public static _Fields findByThriftId(int fieldId) {
4834
        switch(fieldId) {
4835
          case 1: // ADGROUP
4836
            return ADGROUP;
4837
          default:
4838
            return null;
4839
        }
4840
      }
4841
 
4842
      /**
4843
       * Find the _Fields constant that matches fieldId, throwing an exception
4844
       * if it is not found.
4845
       */
4846
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4847
        _Fields fields = findByThriftId(fieldId);
4848
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4849
        return fields;
4850
      }
4851
 
4852
      /**
4853
       * Find the _Fields constant that matches name, or null if its not found.
4854
       */
4855
      public static _Fields findByName(String name) {
4856
        return byName.get(name);
4857
      }
4858
 
4859
      private final short _thriftId;
4860
      private final String _fieldName;
4861
 
4862
      _Fields(short thriftId, String fieldName) {
4863
        _thriftId = thriftId;
4864
        _fieldName = fieldName;
4865
      }
4866
 
4867
      public short getThriftFieldId() {
4868
        return _thriftId;
4869
      }
4870
 
4871
      public String getFieldName() {
4872
        return _fieldName;
4873
      }
4874
    }
4875
 
4876
    // isset id assignments
4877
 
4878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4879
    static {
4880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4881
      tmpMap.put(_Fields.ADGROUP, new org.apache.thrift.meta_data.FieldMetaData("adgroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4882
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class)));
4883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdGroup_args.class, metaDataMap);
4885
    }
4886
 
4887
    public updateAdwordsAdGroup_args() {
4888
    }
4889
 
4890
    public updateAdwordsAdGroup_args(
4891
      AdwordsAdGroup adgroup)
4892
    {
4893
      this();
4894
      this.adgroup = adgroup;
4895
    }
4896
 
4897
    /**
4898
     * Performs a deep copy on <i>other</i>.
4899
     */
4900
    public updateAdwordsAdGroup_args(updateAdwordsAdGroup_args other) {
4901
      if (other.isSetAdgroup()) {
4902
        this.adgroup = new AdwordsAdGroup(other.adgroup);
4903
      }
4904
    }
4905
 
4906
    public updateAdwordsAdGroup_args deepCopy() {
4907
      return new updateAdwordsAdGroup_args(this);
4908
    }
4909
 
4910
    @Override
4911
    public void clear() {
4912
      this.adgroup = null;
4913
    }
4914
 
4915
    public AdwordsAdGroup getAdgroup() {
4916
      return this.adgroup;
4917
    }
4918
 
4919
    public void setAdgroup(AdwordsAdGroup adgroup) {
4920
      this.adgroup = adgroup;
4921
    }
4922
 
4923
    public void unsetAdgroup() {
4924
      this.adgroup = null;
4925
    }
4926
 
4927
    /** Returns true if field adgroup is set (has been assigned a value) and false otherwise */
4928
    public boolean isSetAdgroup() {
4929
      return this.adgroup != null;
4930
    }
4931
 
4932
    public void setAdgroupIsSet(boolean value) {
4933
      if (!value) {
4934
        this.adgroup = null;
4935
      }
4936
    }
4937
 
4938
    public void setFieldValue(_Fields field, Object value) {
4939
      switch (field) {
4940
      case ADGROUP:
4941
        if (value == null) {
4942
          unsetAdgroup();
4943
        } else {
4944
          setAdgroup((AdwordsAdGroup)value);
4945
        }
4946
        break;
4947
 
4948
      }
4949
    }
4950
 
4951
    public Object getFieldValue(_Fields field) {
4952
      switch (field) {
4953
      case ADGROUP:
4954
        return getAdgroup();
4955
 
4956
      }
4957
      throw new IllegalStateException();
4958
    }
4959
 
4960
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4961
    public boolean isSet(_Fields field) {
4962
      if (field == null) {
4963
        throw new IllegalArgumentException();
4964
      }
4965
 
4966
      switch (field) {
4967
      case ADGROUP:
4968
        return isSetAdgroup();
4969
      }
4970
      throw new IllegalStateException();
4971
    }
4972
 
4973
    @Override
4974
    public boolean equals(Object that) {
4975
      if (that == null)
4976
        return false;
4977
      if (that instanceof updateAdwordsAdGroup_args)
4978
        return this.equals((updateAdwordsAdGroup_args)that);
4979
      return false;
4980
    }
4981
 
4982
    public boolean equals(updateAdwordsAdGroup_args that) {
4983
      if (that == null)
4984
        return false;
4985
 
4986
      boolean this_present_adgroup = true && this.isSetAdgroup();
4987
      boolean that_present_adgroup = true && that.isSetAdgroup();
4988
      if (this_present_adgroup || that_present_adgroup) {
4989
        if (!(this_present_adgroup && that_present_adgroup))
4990
          return false;
4991
        if (!this.adgroup.equals(that.adgroup))
4992
          return false;
4993
      }
4994
 
4995
      return true;
4996
    }
4997
 
4998
    @Override
4999
    public int hashCode() {
5000
      return 0;
5001
    }
5002
 
5003
    public int compareTo(updateAdwordsAdGroup_args other) {
5004
      if (!getClass().equals(other.getClass())) {
5005
        return getClass().getName().compareTo(other.getClass().getName());
5006
      }
5007
 
5008
      int lastComparison = 0;
5009
      updateAdwordsAdGroup_args typedOther = (updateAdwordsAdGroup_args)other;
5010
 
5011
      lastComparison = Boolean.valueOf(isSetAdgroup()).compareTo(typedOther.isSetAdgroup());
5012
      if (lastComparison != 0) {
5013
        return lastComparison;
5014
      }
5015
      if (isSetAdgroup()) {
5016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroup, typedOther.adgroup);
5017
        if (lastComparison != 0) {
5018
          return lastComparison;
5019
        }
5020
      }
5021
      return 0;
5022
    }
5023
 
5024
    public _Fields fieldForId(int fieldId) {
5025
      return _Fields.findByThriftId(fieldId);
5026
    }
5027
 
5028
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5029
      org.apache.thrift.protocol.TField field;
5030
      iprot.readStructBegin();
5031
      while (true)
5032
      {
5033
        field = iprot.readFieldBegin();
5034
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5035
          break;
5036
        }
5037
        switch (field.id) {
5038
          case 1: // ADGROUP
5039
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5040
              this.adgroup = new AdwordsAdGroup();
5041
              this.adgroup.read(iprot);
5042
            } else { 
5043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5044
            }
5045
            break;
5046
          default:
5047
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5048
        }
5049
        iprot.readFieldEnd();
5050
      }
5051
      iprot.readStructEnd();
5052
      validate();
5053
    }
5054
 
5055
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5056
      validate();
5057
 
5058
      oprot.writeStructBegin(STRUCT_DESC);
5059
      if (this.adgroup != null) {
5060
        oprot.writeFieldBegin(ADGROUP_FIELD_DESC);
5061
        this.adgroup.write(oprot);
5062
        oprot.writeFieldEnd();
5063
      }
5064
      oprot.writeFieldStop();
5065
      oprot.writeStructEnd();
5066
    }
5067
 
5068
    @Override
5069
    public String toString() {
5070
      StringBuilder sb = new StringBuilder("updateAdwordsAdGroup_args(");
5071
      boolean first = true;
5072
 
5073
      sb.append("adgroup:");
5074
      if (this.adgroup == null) {
5075
        sb.append("null");
5076
      } else {
5077
        sb.append(this.adgroup);
5078
      }
5079
      first = false;
5080
      sb.append(")");
5081
      return sb.toString();
5082
    }
5083
 
5084
    public void validate() throws org.apache.thrift.TException {
5085
      // check for required fields
5086
    }
5087
 
5088
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5089
      try {
5090
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5091
      } catch (org.apache.thrift.TException te) {
5092
        throw new java.io.IOException(te);
5093
      }
5094
    }
5095
 
5096
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5097
      try {
5098
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5099
      } catch (org.apache.thrift.TException te) {
5100
        throw new java.io.IOException(te);
5101
      }
5102
    }
5103
 
5104
  }
5105
 
5106
  public static class updateAdwordsAdGroup_result implements org.apache.thrift.TBase<updateAdwordsAdGroup_result, updateAdwordsAdGroup_result._Fields>, java.io.Serializable, Cloneable   {
5107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdGroup_result");
5108
 
5109
    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);
5110
 
5111
    private GoogleAdwordsServiceException gasex; // required
5112
 
5113
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5114
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5115
      GASEX((short)1, "gasex");
5116
 
5117
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5118
 
5119
      static {
5120
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5121
          byName.put(field.getFieldName(), field);
5122
        }
5123
      }
5124
 
5125
      /**
5126
       * Find the _Fields constant that matches fieldId, or null if its not found.
5127
       */
5128
      public static _Fields findByThriftId(int fieldId) {
5129
        switch(fieldId) {
5130
          case 1: // GASEX
5131
            return GASEX;
5132
          default:
5133
            return null;
5134
        }
5135
      }
5136
 
5137
      /**
5138
       * Find the _Fields constant that matches fieldId, throwing an exception
5139
       * if it is not found.
5140
       */
5141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5142
        _Fields fields = findByThriftId(fieldId);
5143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5144
        return fields;
5145
      }
5146
 
5147
      /**
5148
       * Find the _Fields constant that matches name, or null if its not found.
5149
       */
5150
      public static _Fields findByName(String name) {
5151
        return byName.get(name);
5152
      }
5153
 
5154
      private final short _thriftId;
5155
      private final String _fieldName;
5156
 
5157
      _Fields(short thriftId, String fieldName) {
5158
        _thriftId = thriftId;
5159
        _fieldName = fieldName;
5160
      }
5161
 
5162
      public short getThriftFieldId() {
5163
        return _thriftId;
5164
      }
5165
 
5166
      public String getFieldName() {
5167
        return _fieldName;
5168
      }
5169
    }
5170
 
5171
    // isset id assignments
5172
 
5173
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5174
    static {
5175
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5176
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5177
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5178
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5179
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdGroup_result.class, metaDataMap);
5180
    }
5181
 
5182
    public updateAdwordsAdGroup_result() {
5183
    }
5184
 
5185
    public updateAdwordsAdGroup_result(
5186
      GoogleAdwordsServiceException gasex)
5187
    {
5188
      this();
5189
      this.gasex = gasex;
5190
    }
5191
 
5192
    /**
5193
     * Performs a deep copy on <i>other</i>.
5194
     */
5195
    public updateAdwordsAdGroup_result(updateAdwordsAdGroup_result other) {
5196
      if (other.isSetGasex()) {
5197
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
5198
      }
5199
    }
5200
 
5201
    public updateAdwordsAdGroup_result deepCopy() {
5202
      return new updateAdwordsAdGroup_result(this);
5203
    }
5204
 
5205
    @Override
5206
    public void clear() {
5207
      this.gasex = null;
5208
    }
5209
 
5210
    public GoogleAdwordsServiceException getGasex() {
5211
      return this.gasex;
5212
    }
5213
 
5214
    public void setGasex(GoogleAdwordsServiceException gasex) {
5215
      this.gasex = gasex;
5216
    }
5217
 
5218
    public void unsetGasex() {
5219
      this.gasex = null;
5220
    }
5221
 
5222
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
5223
    public boolean isSetGasex() {
5224
      return this.gasex != null;
5225
    }
5226
 
5227
    public void setGasexIsSet(boolean value) {
5228
      if (!value) {
5229
        this.gasex = null;
5230
      }
5231
    }
5232
 
5233
    public void setFieldValue(_Fields field, Object value) {
5234
      switch (field) {
5235
      case GASEX:
5236
        if (value == null) {
5237
          unsetGasex();
5238
        } else {
5239
          setGasex((GoogleAdwordsServiceException)value);
5240
        }
5241
        break;
5242
 
5243
      }
5244
    }
5245
 
5246
    public Object getFieldValue(_Fields field) {
5247
      switch (field) {
5248
      case GASEX:
5249
        return getGasex();
5250
 
5251
      }
5252
      throw new IllegalStateException();
5253
    }
5254
 
5255
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5256
    public boolean isSet(_Fields field) {
5257
      if (field == null) {
5258
        throw new IllegalArgumentException();
5259
      }
5260
 
5261
      switch (field) {
5262
      case GASEX:
5263
        return isSetGasex();
5264
      }
5265
      throw new IllegalStateException();
5266
    }
5267
 
5268
    @Override
5269
    public boolean equals(Object that) {
5270
      if (that == null)
5271
        return false;
5272
      if (that instanceof updateAdwordsAdGroup_result)
5273
        return this.equals((updateAdwordsAdGroup_result)that);
5274
      return false;
5275
    }
5276
 
5277
    public boolean equals(updateAdwordsAdGroup_result that) {
5278
      if (that == null)
5279
        return false;
5280
 
5281
      boolean this_present_gasex = true && this.isSetGasex();
5282
      boolean that_present_gasex = true && that.isSetGasex();
5283
      if (this_present_gasex || that_present_gasex) {
5284
        if (!(this_present_gasex && that_present_gasex))
5285
          return false;
5286
        if (!this.gasex.equals(that.gasex))
5287
          return false;
5288
      }
5289
 
5290
      return true;
5291
    }
5292
 
5293
    @Override
5294
    public int hashCode() {
5295
      return 0;
5296
    }
5297
 
5298
    public int compareTo(updateAdwordsAdGroup_result other) {
5299
      if (!getClass().equals(other.getClass())) {
5300
        return getClass().getName().compareTo(other.getClass().getName());
5301
      }
5302
 
5303
      int lastComparison = 0;
5304
      updateAdwordsAdGroup_result typedOther = (updateAdwordsAdGroup_result)other;
5305
 
5306
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
5307
      if (lastComparison != 0) {
5308
        return lastComparison;
5309
      }
5310
      if (isSetGasex()) {
5311
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
5312
        if (lastComparison != 0) {
5313
          return lastComparison;
5314
        }
5315
      }
5316
      return 0;
5317
    }
5318
 
5319
    public _Fields fieldForId(int fieldId) {
5320
      return _Fields.findByThriftId(fieldId);
5321
    }
5322
 
5323
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5324
      org.apache.thrift.protocol.TField field;
5325
      iprot.readStructBegin();
5326
      while (true)
5327
      {
5328
        field = iprot.readFieldBegin();
5329
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5330
          break;
5331
        }
5332
        switch (field.id) {
5333
          case 1: // GASEX
5334
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5335
              this.gasex = new GoogleAdwordsServiceException();
5336
              this.gasex.read(iprot);
5337
            } else { 
5338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5339
            }
5340
            break;
5341
          default:
5342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5343
        }
5344
        iprot.readFieldEnd();
5345
      }
5346
      iprot.readStructEnd();
5347
      validate();
5348
    }
5349
 
5350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5351
      oprot.writeStructBegin(STRUCT_DESC);
5352
 
5353
      if (this.isSetGasex()) {
5354
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
5355
        this.gasex.write(oprot);
5356
        oprot.writeFieldEnd();
5357
      }
5358
      oprot.writeFieldStop();
5359
      oprot.writeStructEnd();
5360
    }
5361
 
5362
    @Override
5363
    public String toString() {
5364
      StringBuilder sb = new StringBuilder("updateAdwordsAdGroup_result(");
5365
      boolean first = true;
5366
 
5367
      sb.append("gasex:");
5368
      if (this.gasex == null) {
5369
        sb.append("null");
5370
      } else {
5371
        sb.append(this.gasex);
5372
      }
5373
      first = false;
5374
      sb.append(")");
5375
      return sb.toString();
5376
    }
5377
 
5378
    public void validate() throws org.apache.thrift.TException {
5379
      // check for required fields
5380
    }
5381
 
5382
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5383
      try {
5384
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5385
      } catch (org.apache.thrift.TException te) {
5386
        throw new java.io.IOException(te);
5387
      }
5388
    }
5389
 
5390
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5391
      try {
5392
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5393
      } catch (org.apache.thrift.TException te) {
5394
        throw new java.io.IOException(te);
5395
      }
5396
    }
5397
 
5398
  }
5399
 
5400
  public static class updateAdwordsAdKeyword_args implements org.apache.thrift.TBase<updateAdwordsAdKeyword_args, updateAdwordsAdKeyword_args._Fields>, java.io.Serializable, Cloneable   {
5401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdKeyword_args");
5402
 
5403
    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);
5404
 
5405
    private AdwordsAdKeyword adkeyword; // required
5406
 
5407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5409
      ADKEYWORD((short)1, "adkeyword");
5410
 
5411
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5412
 
5413
      static {
5414
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5415
          byName.put(field.getFieldName(), field);
5416
        }
5417
      }
5418
 
5419
      /**
5420
       * Find the _Fields constant that matches fieldId, or null if its not found.
5421
       */
5422
      public static _Fields findByThriftId(int fieldId) {
5423
        switch(fieldId) {
5424
          case 1: // ADKEYWORD
5425
            return ADKEYWORD;
5426
          default:
5427
            return null;
5428
        }
5429
      }
5430
 
5431
      /**
5432
       * Find the _Fields constant that matches fieldId, throwing an exception
5433
       * if it is not found.
5434
       */
5435
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5436
        _Fields fields = findByThriftId(fieldId);
5437
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5438
        return fields;
5439
      }
5440
 
5441
      /**
5442
       * Find the _Fields constant that matches name, or null if its not found.
5443
       */
5444
      public static _Fields findByName(String name) {
5445
        return byName.get(name);
5446
      }
5447
 
5448
      private final short _thriftId;
5449
      private final String _fieldName;
5450
 
5451
      _Fields(short thriftId, String fieldName) {
5452
        _thriftId = thriftId;
5453
        _fieldName = fieldName;
5454
      }
5455
 
5456
      public short getThriftFieldId() {
5457
        return _thriftId;
5458
      }
5459
 
5460
      public String getFieldName() {
5461
        return _fieldName;
5462
      }
5463
    }
5464
 
5465
    // isset id assignments
5466
 
5467
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5468
    static {
5469
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5470
      tmpMap.put(_Fields.ADKEYWORD, new org.apache.thrift.meta_data.FieldMetaData("adkeyword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5471
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class)));
5472
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5473
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdKeyword_args.class, metaDataMap);
5474
    }
5475
 
5476
    public updateAdwordsAdKeyword_args() {
5477
    }
5478
 
5479
    public updateAdwordsAdKeyword_args(
5480
      AdwordsAdKeyword adkeyword)
5481
    {
5482
      this();
5483
      this.adkeyword = adkeyword;
5484
    }
5485
 
5486
    /**
5487
     * Performs a deep copy on <i>other</i>.
5488
     */
5489
    public updateAdwordsAdKeyword_args(updateAdwordsAdKeyword_args other) {
5490
      if (other.isSetAdkeyword()) {
5491
        this.adkeyword = new AdwordsAdKeyword(other.adkeyword);
5492
      }
5493
    }
5494
 
5495
    public updateAdwordsAdKeyword_args deepCopy() {
5496
      return new updateAdwordsAdKeyword_args(this);
5497
    }
5498
 
5499
    @Override
5500
    public void clear() {
5501
      this.adkeyword = null;
5502
    }
5503
 
5504
    public AdwordsAdKeyword getAdkeyword() {
5505
      return this.adkeyword;
5506
    }
5507
 
5508
    public void setAdkeyword(AdwordsAdKeyword adkeyword) {
5509
      this.adkeyword = adkeyword;
5510
    }
5511
 
5512
    public void unsetAdkeyword() {
5513
      this.adkeyword = null;
5514
    }
5515
 
5516
    /** Returns true if field adkeyword is set (has been assigned a value) and false otherwise */
5517
    public boolean isSetAdkeyword() {
5518
      return this.adkeyword != null;
5519
    }
5520
 
5521
    public void setAdkeywordIsSet(boolean value) {
5522
      if (!value) {
5523
        this.adkeyword = null;
5524
      }
5525
    }
5526
 
5527
    public void setFieldValue(_Fields field, Object value) {
5528
      switch (field) {
5529
      case ADKEYWORD:
5530
        if (value == null) {
5531
          unsetAdkeyword();
5532
        } else {
5533
          setAdkeyword((AdwordsAdKeyword)value);
5534
        }
5535
        break;
5536
 
5537
      }
5538
    }
5539
 
5540
    public Object getFieldValue(_Fields field) {
5541
      switch (field) {
5542
      case ADKEYWORD:
5543
        return getAdkeyword();
5544
 
5545
      }
5546
      throw new IllegalStateException();
5547
    }
5548
 
5549
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5550
    public boolean isSet(_Fields field) {
5551
      if (field == null) {
5552
        throw new IllegalArgumentException();
5553
      }
5554
 
5555
      switch (field) {
5556
      case ADKEYWORD:
5557
        return isSetAdkeyword();
5558
      }
5559
      throw new IllegalStateException();
5560
    }
5561
 
5562
    @Override
5563
    public boolean equals(Object that) {
5564
      if (that == null)
5565
        return false;
5566
      if (that instanceof updateAdwordsAdKeyword_args)
5567
        return this.equals((updateAdwordsAdKeyword_args)that);
5568
      return false;
5569
    }
5570
 
5571
    public boolean equals(updateAdwordsAdKeyword_args that) {
5572
      if (that == null)
5573
        return false;
5574
 
5575
      boolean this_present_adkeyword = true && this.isSetAdkeyword();
5576
      boolean that_present_adkeyword = true && that.isSetAdkeyword();
5577
      if (this_present_adkeyword || that_present_adkeyword) {
5578
        if (!(this_present_adkeyword && that_present_adkeyword))
5579
          return false;
5580
        if (!this.adkeyword.equals(that.adkeyword))
5581
          return false;
5582
      }
5583
 
5584
      return true;
5585
    }
5586
 
5587
    @Override
5588
    public int hashCode() {
5589
      return 0;
5590
    }
5591
 
5592
    public int compareTo(updateAdwordsAdKeyword_args other) {
5593
      if (!getClass().equals(other.getClass())) {
5594
        return getClass().getName().compareTo(other.getClass().getName());
5595
      }
5596
 
5597
      int lastComparison = 0;
5598
      updateAdwordsAdKeyword_args typedOther = (updateAdwordsAdKeyword_args)other;
5599
 
5600
      lastComparison = Boolean.valueOf(isSetAdkeyword()).compareTo(typedOther.isSetAdkeyword());
5601
      if (lastComparison != 0) {
5602
        return lastComparison;
5603
      }
5604
      if (isSetAdkeyword()) {
5605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adkeyword, typedOther.adkeyword);
5606
        if (lastComparison != 0) {
5607
          return lastComparison;
5608
        }
5609
      }
5610
      return 0;
5611
    }
5612
 
5613
    public _Fields fieldForId(int fieldId) {
5614
      return _Fields.findByThriftId(fieldId);
5615
    }
5616
 
5617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5618
      org.apache.thrift.protocol.TField field;
5619
      iprot.readStructBegin();
5620
      while (true)
5621
      {
5622
        field = iprot.readFieldBegin();
5623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5624
          break;
5625
        }
5626
        switch (field.id) {
5627
          case 1: // ADKEYWORD
5628
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5629
              this.adkeyword = new AdwordsAdKeyword();
5630
              this.adkeyword.read(iprot);
5631
            } else { 
5632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5633
            }
5634
            break;
5635
          default:
5636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5637
        }
5638
        iprot.readFieldEnd();
5639
      }
5640
      iprot.readStructEnd();
5641
      validate();
5642
    }
5643
 
5644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5645
      validate();
5646
 
5647
      oprot.writeStructBegin(STRUCT_DESC);
5648
      if (this.adkeyword != null) {
5649
        oprot.writeFieldBegin(ADKEYWORD_FIELD_DESC);
5650
        this.adkeyword.write(oprot);
5651
        oprot.writeFieldEnd();
5652
      }
5653
      oprot.writeFieldStop();
5654
      oprot.writeStructEnd();
5655
    }
5656
 
5657
    @Override
5658
    public String toString() {
5659
      StringBuilder sb = new StringBuilder("updateAdwordsAdKeyword_args(");
5660
      boolean first = true;
5661
 
5662
      sb.append("adkeyword:");
5663
      if (this.adkeyword == null) {
5664
        sb.append("null");
5665
      } else {
5666
        sb.append(this.adkeyword);
5667
      }
5668
      first = false;
5669
      sb.append(")");
5670
      return sb.toString();
5671
    }
5672
 
5673
    public void validate() throws org.apache.thrift.TException {
5674
      // check for required fields
5675
    }
5676
 
5677
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5678
      try {
5679
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5680
      } catch (org.apache.thrift.TException te) {
5681
        throw new java.io.IOException(te);
5682
      }
5683
    }
5684
 
5685
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5686
      try {
5687
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5688
      } catch (org.apache.thrift.TException te) {
5689
        throw new java.io.IOException(te);
5690
      }
5691
    }
5692
 
5693
  }
5694
 
5695
  public static class updateAdwordsAdKeyword_result implements org.apache.thrift.TBase<updateAdwordsAdKeyword_result, updateAdwordsAdKeyword_result._Fields>, java.io.Serializable, Cloneable   {
5696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAdwordsAdKeyword_result");
5697
 
5698
    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);
5699
 
5700
    private GoogleAdwordsServiceException gasex; // required
5701
 
5702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5703
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5704
      GASEX((short)1, "gasex");
5705
 
5706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5707
 
5708
      static {
5709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5710
          byName.put(field.getFieldName(), field);
5711
        }
5712
      }
5713
 
5714
      /**
5715
       * Find the _Fields constant that matches fieldId, or null if its not found.
5716
       */
5717
      public static _Fields findByThriftId(int fieldId) {
5718
        switch(fieldId) {
5719
          case 1: // GASEX
5720
            return GASEX;
5721
          default:
5722
            return null;
5723
        }
5724
      }
5725
 
5726
      /**
5727
       * Find the _Fields constant that matches fieldId, throwing an exception
5728
       * if it is not found.
5729
       */
5730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5731
        _Fields fields = findByThriftId(fieldId);
5732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5733
        return fields;
5734
      }
5735
 
5736
      /**
5737
       * Find the _Fields constant that matches name, or null if its not found.
5738
       */
5739
      public static _Fields findByName(String name) {
5740
        return byName.get(name);
5741
      }
5742
 
5743
      private final short _thriftId;
5744
      private final String _fieldName;
5745
 
5746
      _Fields(short thriftId, String fieldName) {
5747
        _thriftId = thriftId;
5748
        _fieldName = fieldName;
5749
      }
5750
 
5751
      public short getThriftFieldId() {
5752
        return _thriftId;
5753
      }
5754
 
5755
      public String getFieldName() {
5756
        return _fieldName;
5757
      }
5758
    }
5759
 
5760
    // isset id assignments
5761
 
5762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5763
    static {
5764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5765
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5766
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5767
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5768
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAdwordsAdKeyword_result.class, metaDataMap);
5769
    }
5770
 
5771
    public updateAdwordsAdKeyword_result() {
5772
    }
5773
 
5774
    public updateAdwordsAdKeyword_result(
5775
      GoogleAdwordsServiceException gasex)
5776
    {
5777
      this();
5778
      this.gasex = gasex;
5779
    }
5780
 
5781
    /**
5782
     * Performs a deep copy on <i>other</i>.
5783
     */
5784
    public updateAdwordsAdKeyword_result(updateAdwordsAdKeyword_result other) {
5785
      if (other.isSetGasex()) {
5786
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
5787
      }
5788
    }
5789
 
5790
    public updateAdwordsAdKeyword_result deepCopy() {
5791
      return new updateAdwordsAdKeyword_result(this);
5792
    }
5793
 
5794
    @Override
5795
    public void clear() {
5796
      this.gasex = null;
5797
    }
5798
 
5799
    public GoogleAdwordsServiceException getGasex() {
5800
      return this.gasex;
5801
    }
5802
 
5803
    public void setGasex(GoogleAdwordsServiceException gasex) {
5804
      this.gasex = gasex;
5805
    }
5806
 
5807
    public void unsetGasex() {
5808
      this.gasex = null;
5809
    }
5810
 
5811
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
5812
    public boolean isSetGasex() {
5813
      return this.gasex != null;
5814
    }
5815
 
5816
    public void setGasexIsSet(boolean value) {
5817
      if (!value) {
5818
        this.gasex = null;
5819
      }
5820
    }
5821
 
5822
    public void setFieldValue(_Fields field, Object value) {
5823
      switch (field) {
5824
      case GASEX:
5825
        if (value == null) {
5826
          unsetGasex();
5827
        } else {
5828
          setGasex((GoogleAdwordsServiceException)value);
5829
        }
5830
        break;
5831
 
5832
      }
5833
    }
5834
 
5835
    public Object getFieldValue(_Fields field) {
5836
      switch (field) {
5837
      case GASEX:
5838
        return getGasex();
5839
 
5840
      }
5841
      throw new IllegalStateException();
5842
    }
5843
 
5844
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5845
    public boolean isSet(_Fields field) {
5846
      if (field == null) {
5847
        throw new IllegalArgumentException();
5848
      }
5849
 
5850
      switch (field) {
5851
      case GASEX:
5852
        return isSetGasex();
5853
      }
5854
      throw new IllegalStateException();
5855
    }
5856
 
5857
    @Override
5858
    public boolean equals(Object that) {
5859
      if (that == null)
5860
        return false;
5861
      if (that instanceof updateAdwordsAdKeyword_result)
5862
        return this.equals((updateAdwordsAdKeyword_result)that);
5863
      return false;
5864
    }
5865
 
5866
    public boolean equals(updateAdwordsAdKeyword_result that) {
5867
      if (that == null)
5868
        return false;
5869
 
5870
      boolean this_present_gasex = true && this.isSetGasex();
5871
      boolean that_present_gasex = true && that.isSetGasex();
5872
      if (this_present_gasex || that_present_gasex) {
5873
        if (!(this_present_gasex && that_present_gasex))
5874
          return false;
5875
        if (!this.gasex.equals(that.gasex))
5876
          return false;
5877
      }
5878
 
5879
      return true;
5880
    }
5881
 
5882
    @Override
5883
    public int hashCode() {
5884
      return 0;
5885
    }
5886
 
5887
    public int compareTo(updateAdwordsAdKeyword_result other) {
5888
      if (!getClass().equals(other.getClass())) {
5889
        return getClass().getName().compareTo(other.getClass().getName());
5890
      }
5891
 
5892
      int lastComparison = 0;
5893
      updateAdwordsAdKeyword_result typedOther = (updateAdwordsAdKeyword_result)other;
5894
 
5895
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
5896
      if (lastComparison != 0) {
5897
        return lastComparison;
5898
      }
5899
      if (isSetGasex()) {
5900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
5901
        if (lastComparison != 0) {
5902
          return lastComparison;
5903
        }
5904
      }
5905
      return 0;
5906
    }
5907
 
5908
    public _Fields fieldForId(int fieldId) {
5909
      return _Fields.findByThriftId(fieldId);
5910
    }
5911
 
5912
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5913
      org.apache.thrift.protocol.TField field;
5914
      iprot.readStructBegin();
5915
      while (true)
5916
      {
5917
        field = iprot.readFieldBegin();
5918
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5919
          break;
5920
        }
5921
        switch (field.id) {
5922
          case 1: // GASEX
5923
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5924
              this.gasex = new GoogleAdwordsServiceException();
5925
              this.gasex.read(iprot);
5926
            } else { 
5927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5928
            }
5929
            break;
5930
          default:
5931
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5932
        }
5933
        iprot.readFieldEnd();
5934
      }
5935
      iprot.readStructEnd();
5936
      validate();
5937
    }
5938
 
5939
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5940
      oprot.writeStructBegin(STRUCT_DESC);
5941
 
5942
      if (this.isSetGasex()) {
5943
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
5944
        this.gasex.write(oprot);
5945
        oprot.writeFieldEnd();
5946
      }
5947
      oprot.writeFieldStop();
5948
      oprot.writeStructEnd();
5949
    }
5950
 
5951
    @Override
5952
    public String toString() {
5953
      StringBuilder sb = new StringBuilder("updateAdwordsAdKeyword_result(");
5954
      boolean first = true;
5955
 
5956
      sb.append("gasex:");
5957
      if (this.gasex == null) {
5958
        sb.append("null");
5959
      } else {
5960
        sb.append(this.gasex);
5961
      }
5962
      first = false;
5963
      sb.append(")");
5964
      return sb.toString();
5965
    }
5966
 
5967
    public void validate() throws org.apache.thrift.TException {
5968
      // check for required fields
5969
    }
5970
 
5971
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5972
      try {
5973
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5974
      } catch (org.apache.thrift.TException te) {
5975
        throw new java.io.IOException(te);
5976
      }
5977
    }
5978
 
5979
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5980
      try {
5981
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5982
      } catch (org.apache.thrift.TException te) {
5983
        throw new java.io.IOException(te);
5984
      }
5985
    }
5986
 
5987
  }
5988
 
5989
  public static class deleteAdwordsCampaign_args implements org.apache.thrift.TBase<deleteAdwordsCampaign_args, deleteAdwordsCampaign_args._Fields>, java.io.Serializable, Cloneable   {
5990
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsCampaign_args");
5991
 
5992
    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);
5993
 
5994
    private long campaignId; // required
5995
 
5996
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5997
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5998
      CAMPAIGN_ID((short)1, "campaignId");
5999
 
6000
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6001
 
6002
      static {
6003
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6004
          byName.put(field.getFieldName(), field);
6005
        }
6006
      }
6007
 
6008
      /**
6009
       * Find the _Fields constant that matches fieldId, or null if its not found.
6010
       */
6011
      public static _Fields findByThriftId(int fieldId) {
6012
        switch(fieldId) {
6013
          case 1: // CAMPAIGN_ID
6014
            return CAMPAIGN_ID;
6015
          default:
6016
            return null;
6017
        }
6018
      }
6019
 
6020
      /**
6021
       * Find the _Fields constant that matches fieldId, throwing an exception
6022
       * if it is not found.
6023
       */
6024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6025
        _Fields fields = findByThriftId(fieldId);
6026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6027
        return fields;
6028
      }
6029
 
6030
      /**
6031
       * Find the _Fields constant that matches name, or null if its not found.
6032
       */
6033
      public static _Fields findByName(String name) {
6034
        return byName.get(name);
6035
      }
6036
 
6037
      private final short _thriftId;
6038
      private final String _fieldName;
6039
 
6040
      _Fields(short thriftId, String fieldName) {
6041
        _thriftId = thriftId;
6042
        _fieldName = fieldName;
6043
      }
6044
 
6045
      public short getThriftFieldId() {
6046
        return _thriftId;
6047
      }
6048
 
6049
      public String getFieldName() {
6050
        return _fieldName;
6051
      }
6052
    }
6053
 
6054
    // isset id assignments
6055
    private static final int __CAMPAIGNID_ISSET_ID = 0;
6056
    private BitSet __isset_bit_vector = new BitSet(1);
6057
 
6058
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6059
    static {
6060
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6061
      tmpMap.put(_Fields.CAMPAIGN_ID, new org.apache.thrift.meta_data.FieldMetaData("campaignId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsCampaign_args.class, metaDataMap);
6065
    }
6066
 
6067
    public deleteAdwordsCampaign_args() {
6068
    }
6069
 
6070
    public deleteAdwordsCampaign_args(
6071
      long campaignId)
6072
    {
6073
      this();
6074
      this.campaignId = campaignId;
6075
      setCampaignIdIsSet(true);
6076
    }
6077
 
6078
    /**
6079
     * Performs a deep copy on <i>other</i>.
6080
     */
6081
    public deleteAdwordsCampaign_args(deleteAdwordsCampaign_args other) {
6082
      __isset_bit_vector.clear();
6083
      __isset_bit_vector.or(other.__isset_bit_vector);
6084
      this.campaignId = other.campaignId;
6085
    }
6086
 
6087
    public deleteAdwordsCampaign_args deepCopy() {
6088
      return new deleteAdwordsCampaign_args(this);
6089
    }
6090
 
6091
    @Override
6092
    public void clear() {
6093
      setCampaignIdIsSet(false);
6094
      this.campaignId = 0;
6095
    }
6096
 
6097
    public long getCampaignId() {
6098
      return this.campaignId;
6099
    }
6100
 
6101
    public void setCampaignId(long campaignId) {
6102
      this.campaignId = campaignId;
6103
      setCampaignIdIsSet(true);
6104
    }
6105
 
6106
    public void unsetCampaignId() {
6107
      __isset_bit_vector.clear(__CAMPAIGNID_ISSET_ID);
6108
    }
6109
 
6110
    /** Returns true if field campaignId is set (has been assigned a value) and false otherwise */
6111
    public boolean isSetCampaignId() {
6112
      return __isset_bit_vector.get(__CAMPAIGNID_ISSET_ID);
6113
    }
6114
 
6115
    public void setCampaignIdIsSet(boolean value) {
6116
      __isset_bit_vector.set(__CAMPAIGNID_ISSET_ID, value);
6117
    }
6118
 
6119
    public void setFieldValue(_Fields field, Object value) {
6120
      switch (field) {
6121
      case CAMPAIGN_ID:
6122
        if (value == null) {
6123
          unsetCampaignId();
6124
        } else {
6125
          setCampaignId((Long)value);
6126
        }
6127
        break;
6128
 
6129
      }
6130
    }
6131
 
6132
    public Object getFieldValue(_Fields field) {
6133
      switch (field) {
6134
      case CAMPAIGN_ID:
6135
        return Long.valueOf(getCampaignId());
6136
 
6137
      }
6138
      throw new IllegalStateException();
6139
    }
6140
 
6141
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6142
    public boolean isSet(_Fields field) {
6143
      if (field == null) {
6144
        throw new IllegalArgumentException();
6145
      }
6146
 
6147
      switch (field) {
6148
      case CAMPAIGN_ID:
6149
        return isSetCampaignId();
6150
      }
6151
      throw new IllegalStateException();
6152
    }
6153
 
6154
    @Override
6155
    public boolean equals(Object that) {
6156
      if (that == null)
6157
        return false;
6158
      if (that instanceof deleteAdwordsCampaign_args)
6159
        return this.equals((deleteAdwordsCampaign_args)that);
6160
      return false;
6161
    }
6162
 
6163
    public boolean equals(deleteAdwordsCampaign_args that) {
6164
      if (that == null)
6165
        return false;
6166
 
6167
      boolean this_present_campaignId = true;
6168
      boolean that_present_campaignId = true;
6169
      if (this_present_campaignId || that_present_campaignId) {
6170
        if (!(this_present_campaignId && that_present_campaignId))
6171
          return false;
6172
        if (this.campaignId != that.campaignId)
6173
          return false;
6174
      }
6175
 
6176
      return true;
6177
    }
6178
 
6179
    @Override
6180
    public int hashCode() {
6181
      return 0;
6182
    }
6183
 
6184
    public int compareTo(deleteAdwordsCampaign_args other) {
6185
      if (!getClass().equals(other.getClass())) {
6186
        return getClass().getName().compareTo(other.getClass().getName());
6187
      }
6188
 
6189
      int lastComparison = 0;
6190
      deleteAdwordsCampaign_args typedOther = (deleteAdwordsCampaign_args)other;
6191
 
6192
      lastComparison = Boolean.valueOf(isSetCampaignId()).compareTo(typedOther.isSetCampaignId());
6193
      if (lastComparison != 0) {
6194
        return lastComparison;
6195
      }
6196
      if (isSetCampaignId()) {
6197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignId, typedOther.campaignId);
6198
        if (lastComparison != 0) {
6199
          return lastComparison;
6200
        }
6201
      }
6202
      return 0;
6203
    }
6204
 
6205
    public _Fields fieldForId(int fieldId) {
6206
      return _Fields.findByThriftId(fieldId);
6207
    }
6208
 
6209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6210
      org.apache.thrift.protocol.TField field;
6211
      iprot.readStructBegin();
6212
      while (true)
6213
      {
6214
        field = iprot.readFieldBegin();
6215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6216
          break;
6217
        }
6218
        switch (field.id) {
6219
          case 1: // CAMPAIGN_ID
6220
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6221
              this.campaignId = iprot.readI64();
6222
              setCampaignIdIsSet(true);
6223
            } else { 
6224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6225
            }
6226
            break;
6227
          default:
6228
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6229
        }
6230
        iprot.readFieldEnd();
6231
      }
6232
      iprot.readStructEnd();
6233
      validate();
6234
    }
6235
 
6236
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6237
      validate();
6238
 
6239
      oprot.writeStructBegin(STRUCT_DESC);
6240
      oprot.writeFieldBegin(CAMPAIGN_ID_FIELD_DESC);
6241
      oprot.writeI64(this.campaignId);
6242
      oprot.writeFieldEnd();
6243
      oprot.writeFieldStop();
6244
      oprot.writeStructEnd();
6245
    }
6246
 
6247
    @Override
6248
    public String toString() {
6249
      StringBuilder sb = new StringBuilder("deleteAdwordsCampaign_args(");
6250
      boolean first = true;
6251
 
6252
      sb.append("campaignId:");
6253
      sb.append(this.campaignId);
6254
      first = false;
6255
      sb.append(")");
6256
      return sb.toString();
6257
    }
6258
 
6259
    public void validate() throws org.apache.thrift.TException {
6260
      // check for required fields
6261
    }
6262
 
6263
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6264
      try {
6265
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6266
      } catch (org.apache.thrift.TException te) {
6267
        throw new java.io.IOException(te);
6268
      }
6269
    }
6270
 
6271
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6272
      try {
6273
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6274
        __isset_bit_vector = new BitSet(1);
6275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6276
      } catch (org.apache.thrift.TException te) {
6277
        throw new java.io.IOException(te);
6278
      }
6279
    }
6280
 
6281
  }
6282
 
6283
  public static class deleteAdwordsCampaign_result implements org.apache.thrift.TBase<deleteAdwordsCampaign_result, deleteAdwordsCampaign_result._Fields>, java.io.Serializable, Cloneable   {
6284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsCampaign_result");
6285
 
6286
    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);
6287
 
6288
    private GoogleAdwordsServiceException gasex; // required
6289
 
6290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6292
      GASEX((short)1, "gasex");
6293
 
6294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6295
 
6296
      static {
6297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6298
          byName.put(field.getFieldName(), field);
6299
        }
6300
      }
6301
 
6302
      /**
6303
       * Find the _Fields constant that matches fieldId, or null if its not found.
6304
       */
6305
      public static _Fields findByThriftId(int fieldId) {
6306
        switch(fieldId) {
6307
          case 1: // GASEX
6308
            return GASEX;
6309
          default:
6310
            return null;
6311
        }
6312
      }
6313
 
6314
      /**
6315
       * Find the _Fields constant that matches fieldId, throwing an exception
6316
       * if it is not found.
6317
       */
6318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6319
        _Fields fields = findByThriftId(fieldId);
6320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6321
        return fields;
6322
      }
6323
 
6324
      /**
6325
       * Find the _Fields constant that matches name, or null if its not found.
6326
       */
6327
      public static _Fields findByName(String name) {
6328
        return byName.get(name);
6329
      }
6330
 
6331
      private final short _thriftId;
6332
      private final String _fieldName;
6333
 
6334
      _Fields(short thriftId, String fieldName) {
6335
        _thriftId = thriftId;
6336
        _fieldName = fieldName;
6337
      }
6338
 
6339
      public short getThriftFieldId() {
6340
        return _thriftId;
6341
      }
6342
 
6343
      public String getFieldName() {
6344
        return _fieldName;
6345
      }
6346
    }
6347
 
6348
    // isset id assignments
6349
 
6350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6351
    static {
6352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6353
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsCampaign_result.class, metaDataMap);
6357
    }
6358
 
6359
    public deleteAdwordsCampaign_result() {
6360
    }
6361
 
6362
    public deleteAdwordsCampaign_result(
6363
      GoogleAdwordsServiceException gasex)
6364
    {
6365
      this();
6366
      this.gasex = gasex;
6367
    }
6368
 
6369
    /**
6370
     * Performs a deep copy on <i>other</i>.
6371
     */
6372
    public deleteAdwordsCampaign_result(deleteAdwordsCampaign_result other) {
6373
      if (other.isSetGasex()) {
6374
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
6375
      }
6376
    }
6377
 
6378
    public deleteAdwordsCampaign_result deepCopy() {
6379
      return new deleteAdwordsCampaign_result(this);
6380
    }
6381
 
6382
    @Override
6383
    public void clear() {
6384
      this.gasex = null;
6385
    }
6386
 
6387
    public GoogleAdwordsServiceException getGasex() {
6388
      return this.gasex;
6389
    }
6390
 
6391
    public void setGasex(GoogleAdwordsServiceException gasex) {
6392
      this.gasex = gasex;
6393
    }
6394
 
6395
    public void unsetGasex() {
6396
      this.gasex = null;
6397
    }
6398
 
6399
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
6400
    public boolean isSetGasex() {
6401
      return this.gasex != null;
6402
    }
6403
 
6404
    public void setGasexIsSet(boolean value) {
6405
      if (!value) {
6406
        this.gasex = null;
6407
      }
6408
    }
6409
 
6410
    public void setFieldValue(_Fields field, Object value) {
6411
      switch (field) {
6412
      case GASEX:
6413
        if (value == null) {
6414
          unsetGasex();
6415
        } else {
6416
          setGasex((GoogleAdwordsServiceException)value);
6417
        }
6418
        break;
6419
 
6420
      }
6421
    }
6422
 
6423
    public Object getFieldValue(_Fields field) {
6424
      switch (field) {
6425
      case GASEX:
6426
        return getGasex();
6427
 
6428
      }
6429
      throw new IllegalStateException();
6430
    }
6431
 
6432
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6433
    public boolean isSet(_Fields field) {
6434
      if (field == null) {
6435
        throw new IllegalArgumentException();
6436
      }
6437
 
6438
      switch (field) {
6439
      case GASEX:
6440
        return isSetGasex();
6441
      }
6442
      throw new IllegalStateException();
6443
    }
6444
 
6445
    @Override
6446
    public boolean equals(Object that) {
6447
      if (that == null)
6448
        return false;
6449
      if (that instanceof deleteAdwordsCampaign_result)
6450
        return this.equals((deleteAdwordsCampaign_result)that);
6451
      return false;
6452
    }
6453
 
6454
    public boolean equals(deleteAdwordsCampaign_result that) {
6455
      if (that == null)
6456
        return false;
6457
 
6458
      boolean this_present_gasex = true && this.isSetGasex();
6459
      boolean that_present_gasex = true && that.isSetGasex();
6460
      if (this_present_gasex || that_present_gasex) {
6461
        if (!(this_present_gasex && that_present_gasex))
6462
          return false;
6463
        if (!this.gasex.equals(that.gasex))
6464
          return false;
6465
      }
6466
 
6467
      return true;
6468
    }
6469
 
6470
    @Override
6471
    public int hashCode() {
6472
      return 0;
6473
    }
6474
 
6475
    public int compareTo(deleteAdwordsCampaign_result other) {
6476
      if (!getClass().equals(other.getClass())) {
6477
        return getClass().getName().compareTo(other.getClass().getName());
6478
      }
6479
 
6480
      int lastComparison = 0;
6481
      deleteAdwordsCampaign_result typedOther = (deleteAdwordsCampaign_result)other;
6482
 
6483
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
6484
      if (lastComparison != 0) {
6485
        return lastComparison;
6486
      }
6487
      if (isSetGasex()) {
6488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
6489
        if (lastComparison != 0) {
6490
          return lastComparison;
6491
        }
6492
      }
6493
      return 0;
6494
    }
6495
 
6496
    public _Fields fieldForId(int fieldId) {
6497
      return _Fields.findByThriftId(fieldId);
6498
    }
6499
 
6500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6501
      org.apache.thrift.protocol.TField field;
6502
      iprot.readStructBegin();
6503
      while (true)
6504
      {
6505
        field = iprot.readFieldBegin();
6506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6507
          break;
6508
        }
6509
        switch (field.id) {
6510
          case 1: // GASEX
6511
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6512
              this.gasex = new GoogleAdwordsServiceException();
6513
              this.gasex.read(iprot);
6514
            } else { 
6515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6516
            }
6517
            break;
6518
          default:
6519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6520
        }
6521
        iprot.readFieldEnd();
6522
      }
6523
      iprot.readStructEnd();
6524
      validate();
6525
    }
6526
 
6527
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6528
      oprot.writeStructBegin(STRUCT_DESC);
6529
 
6530
      if (this.isSetGasex()) {
6531
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
6532
        this.gasex.write(oprot);
6533
        oprot.writeFieldEnd();
6534
      }
6535
      oprot.writeFieldStop();
6536
      oprot.writeStructEnd();
6537
    }
6538
 
6539
    @Override
6540
    public String toString() {
6541
      StringBuilder sb = new StringBuilder("deleteAdwordsCampaign_result(");
6542
      boolean first = true;
6543
 
6544
      sb.append("gasex:");
6545
      if (this.gasex == null) {
6546
        sb.append("null");
6547
      } else {
6548
        sb.append(this.gasex);
6549
      }
6550
      first = false;
6551
      sb.append(")");
6552
      return sb.toString();
6553
    }
6554
 
6555
    public void validate() throws org.apache.thrift.TException {
6556
      // check for required fields
6557
    }
6558
 
6559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6560
      try {
6561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6562
      } catch (org.apache.thrift.TException te) {
6563
        throw new java.io.IOException(te);
6564
      }
6565
    }
6566
 
6567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6568
      try {
6569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6570
      } catch (org.apache.thrift.TException te) {
6571
        throw new java.io.IOException(te);
6572
      }
6573
    }
6574
 
6575
  }
6576
 
6577
  public static class deleteAdwordsAdGroup_args implements org.apache.thrift.TBase<deleteAdwordsAdGroup_args, deleteAdwordsAdGroup_args._Fields>, java.io.Serializable, Cloneable   {
6578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroup_args");
6579
 
6580
    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);
6581
 
6582
    private long adgroupId; // required
6583
 
6584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6586
      ADGROUP_ID((short)1, "adgroupId");
6587
 
6588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6589
 
6590
      static {
6591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6592
          byName.put(field.getFieldName(), field);
6593
        }
6594
      }
6595
 
6596
      /**
6597
       * Find the _Fields constant that matches fieldId, or null if its not found.
6598
       */
6599
      public static _Fields findByThriftId(int fieldId) {
6600
        switch(fieldId) {
6601
          case 1: // ADGROUP_ID
6602
            return ADGROUP_ID;
6603
          default:
6604
            return null;
6605
        }
6606
      }
6607
 
6608
      /**
6609
       * Find the _Fields constant that matches fieldId, throwing an exception
6610
       * if it is not found.
6611
       */
6612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6613
        _Fields fields = findByThriftId(fieldId);
6614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6615
        return fields;
6616
      }
6617
 
6618
      /**
6619
       * Find the _Fields constant that matches name, or null if its not found.
6620
       */
6621
      public static _Fields findByName(String name) {
6622
        return byName.get(name);
6623
      }
6624
 
6625
      private final short _thriftId;
6626
      private final String _fieldName;
6627
 
6628
      _Fields(short thriftId, String fieldName) {
6629
        _thriftId = thriftId;
6630
        _fieldName = fieldName;
6631
      }
6632
 
6633
      public short getThriftFieldId() {
6634
        return _thriftId;
6635
      }
6636
 
6637
      public String getFieldName() {
6638
        return _fieldName;
6639
      }
6640
    }
6641
 
6642
    // isset id assignments
6643
    private static final int __ADGROUPID_ISSET_ID = 0;
6644
    private BitSet __isset_bit_vector = new BitSet(1);
6645
 
6646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6647
    static {
6648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6649
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroup_args.class, metaDataMap);
6653
    }
6654
 
6655
    public deleteAdwordsAdGroup_args() {
6656
    }
6657
 
6658
    public deleteAdwordsAdGroup_args(
6659
      long adgroupId)
6660
    {
6661
      this();
6662
      this.adgroupId = adgroupId;
6663
      setAdgroupIdIsSet(true);
6664
    }
6665
 
6666
    /**
6667
     * Performs a deep copy on <i>other</i>.
6668
     */
6669
    public deleteAdwordsAdGroup_args(deleteAdwordsAdGroup_args other) {
6670
      __isset_bit_vector.clear();
6671
      __isset_bit_vector.or(other.__isset_bit_vector);
6672
      this.adgroupId = other.adgroupId;
6673
    }
6674
 
6675
    public deleteAdwordsAdGroup_args deepCopy() {
6676
      return new deleteAdwordsAdGroup_args(this);
6677
    }
6678
 
6679
    @Override
6680
    public void clear() {
6681
      setAdgroupIdIsSet(false);
6682
      this.adgroupId = 0;
6683
    }
6684
 
6685
    public long getAdgroupId() {
6686
      return this.adgroupId;
6687
    }
6688
 
6689
    public void setAdgroupId(long adgroupId) {
6690
      this.adgroupId = adgroupId;
6691
      setAdgroupIdIsSet(true);
6692
    }
6693
 
6694
    public void unsetAdgroupId() {
6695
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
6696
    }
6697
 
6698
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
6699
    public boolean isSetAdgroupId() {
6700
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
6701
    }
6702
 
6703
    public void setAdgroupIdIsSet(boolean value) {
6704
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
6705
    }
6706
 
6707
    public void setFieldValue(_Fields field, Object value) {
6708
      switch (field) {
6709
      case ADGROUP_ID:
6710
        if (value == null) {
6711
          unsetAdgroupId();
6712
        } else {
6713
          setAdgroupId((Long)value);
6714
        }
6715
        break;
6716
 
6717
      }
6718
    }
6719
 
6720
    public Object getFieldValue(_Fields field) {
6721
      switch (field) {
6722
      case ADGROUP_ID:
6723
        return Long.valueOf(getAdgroupId());
6724
 
6725
      }
6726
      throw new IllegalStateException();
6727
    }
6728
 
6729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6730
    public boolean isSet(_Fields field) {
6731
      if (field == null) {
6732
        throw new IllegalArgumentException();
6733
      }
6734
 
6735
      switch (field) {
6736
      case ADGROUP_ID:
6737
        return isSetAdgroupId();
6738
      }
6739
      throw new IllegalStateException();
6740
    }
6741
 
6742
    @Override
6743
    public boolean equals(Object that) {
6744
      if (that == null)
6745
        return false;
6746
      if (that instanceof deleteAdwordsAdGroup_args)
6747
        return this.equals((deleteAdwordsAdGroup_args)that);
6748
      return false;
6749
    }
6750
 
6751
    public boolean equals(deleteAdwordsAdGroup_args that) {
6752
      if (that == null)
6753
        return false;
6754
 
6755
      boolean this_present_adgroupId = true;
6756
      boolean that_present_adgroupId = true;
6757
      if (this_present_adgroupId || that_present_adgroupId) {
6758
        if (!(this_present_adgroupId && that_present_adgroupId))
6759
          return false;
6760
        if (this.adgroupId != that.adgroupId)
6761
          return false;
6762
      }
6763
 
6764
      return true;
6765
    }
6766
 
6767
    @Override
6768
    public int hashCode() {
6769
      return 0;
6770
    }
6771
 
6772
    public int compareTo(deleteAdwordsAdGroup_args other) {
6773
      if (!getClass().equals(other.getClass())) {
6774
        return getClass().getName().compareTo(other.getClass().getName());
6775
      }
6776
 
6777
      int lastComparison = 0;
6778
      deleteAdwordsAdGroup_args typedOther = (deleteAdwordsAdGroup_args)other;
6779
 
6780
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
6781
      if (lastComparison != 0) {
6782
        return lastComparison;
6783
      }
6784
      if (isSetAdgroupId()) {
6785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
6786
        if (lastComparison != 0) {
6787
          return lastComparison;
6788
        }
6789
      }
6790
      return 0;
6791
    }
6792
 
6793
    public _Fields fieldForId(int fieldId) {
6794
      return _Fields.findByThriftId(fieldId);
6795
    }
6796
 
6797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6798
      org.apache.thrift.protocol.TField field;
6799
      iprot.readStructBegin();
6800
      while (true)
6801
      {
6802
        field = iprot.readFieldBegin();
6803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6804
          break;
6805
        }
6806
        switch (field.id) {
6807
          case 1: // ADGROUP_ID
6808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6809
              this.adgroupId = iprot.readI64();
6810
              setAdgroupIdIsSet(true);
6811
            } else { 
6812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6813
            }
6814
            break;
6815
          default:
6816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6817
        }
6818
        iprot.readFieldEnd();
6819
      }
6820
      iprot.readStructEnd();
6821
      validate();
6822
    }
6823
 
6824
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6825
      validate();
6826
 
6827
      oprot.writeStructBegin(STRUCT_DESC);
6828
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
6829
      oprot.writeI64(this.adgroupId);
6830
      oprot.writeFieldEnd();
6831
      oprot.writeFieldStop();
6832
      oprot.writeStructEnd();
6833
    }
6834
 
6835
    @Override
6836
    public String toString() {
6837
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroup_args(");
6838
      boolean first = true;
6839
 
6840
      sb.append("adgroupId:");
6841
      sb.append(this.adgroupId);
6842
      first = false;
6843
      sb.append(")");
6844
      return sb.toString();
6845
    }
6846
 
6847
    public void validate() throws org.apache.thrift.TException {
6848
      // check for required fields
6849
    }
6850
 
6851
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6852
      try {
6853
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6854
      } catch (org.apache.thrift.TException te) {
6855
        throw new java.io.IOException(te);
6856
      }
6857
    }
6858
 
6859
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6860
      try {
6861
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6862
        __isset_bit_vector = new BitSet(1);
6863
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6864
      } catch (org.apache.thrift.TException te) {
6865
        throw new java.io.IOException(te);
6866
      }
6867
    }
6868
 
6869
  }
6870
 
6871
  public static class deleteAdwordsAdGroup_result implements org.apache.thrift.TBase<deleteAdwordsAdGroup_result, deleteAdwordsAdGroup_result._Fields>, java.io.Serializable, Cloneable   {
6872
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroup_result");
6873
 
6874
    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);
6875
 
6876
    private GoogleAdwordsServiceException gasex; // required
6877
 
6878
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6879
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6880
      GASEX((short)1, "gasex");
6881
 
6882
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6883
 
6884
      static {
6885
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6886
          byName.put(field.getFieldName(), field);
6887
        }
6888
      }
6889
 
6890
      /**
6891
       * Find the _Fields constant that matches fieldId, or null if its not found.
6892
       */
6893
      public static _Fields findByThriftId(int fieldId) {
6894
        switch(fieldId) {
6895
          case 1: // GASEX
6896
            return GASEX;
6897
          default:
6898
            return null;
6899
        }
6900
      }
6901
 
6902
      /**
6903
       * Find the _Fields constant that matches fieldId, throwing an exception
6904
       * if it is not found.
6905
       */
6906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6907
        _Fields fields = findByThriftId(fieldId);
6908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6909
        return fields;
6910
      }
6911
 
6912
      /**
6913
       * Find the _Fields constant that matches name, or null if its not found.
6914
       */
6915
      public static _Fields findByName(String name) {
6916
        return byName.get(name);
6917
      }
6918
 
6919
      private final short _thriftId;
6920
      private final String _fieldName;
6921
 
6922
      _Fields(short thriftId, String fieldName) {
6923
        _thriftId = thriftId;
6924
        _fieldName = fieldName;
6925
      }
6926
 
6927
      public short getThriftFieldId() {
6928
        return _thriftId;
6929
      }
6930
 
6931
      public String getFieldName() {
6932
        return _fieldName;
6933
      }
6934
    }
6935
 
6936
    // isset id assignments
6937
 
6938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6939
    static {
6940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6941
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6942
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6943
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6944
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroup_result.class, metaDataMap);
6945
    }
6946
 
6947
    public deleteAdwordsAdGroup_result() {
6948
    }
6949
 
6950
    public deleteAdwordsAdGroup_result(
6951
      GoogleAdwordsServiceException gasex)
6952
    {
6953
      this();
6954
      this.gasex = gasex;
6955
    }
6956
 
6957
    /**
6958
     * Performs a deep copy on <i>other</i>.
6959
     */
6960
    public deleteAdwordsAdGroup_result(deleteAdwordsAdGroup_result other) {
6961
      if (other.isSetGasex()) {
6962
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
6963
      }
6964
    }
6965
 
6966
    public deleteAdwordsAdGroup_result deepCopy() {
6967
      return new deleteAdwordsAdGroup_result(this);
6968
    }
6969
 
6970
    @Override
6971
    public void clear() {
6972
      this.gasex = null;
6973
    }
6974
 
6975
    public GoogleAdwordsServiceException getGasex() {
6976
      return this.gasex;
6977
    }
6978
 
6979
    public void setGasex(GoogleAdwordsServiceException gasex) {
6980
      this.gasex = gasex;
6981
    }
6982
 
6983
    public void unsetGasex() {
6984
      this.gasex = null;
6985
    }
6986
 
6987
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
6988
    public boolean isSetGasex() {
6989
      return this.gasex != null;
6990
    }
6991
 
6992
    public void setGasexIsSet(boolean value) {
6993
      if (!value) {
6994
        this.gasex = null;
6995
      }
6996
    }
6997
 
6998
    public void setFieldValue(_Fields field, Object value) {
6999
      switch (field) {
7000
      case GASEX:
7001
        if (value == null) {
7002
          unsetGasex();
7003
        } else {
7004
          setGasex((GoogleAdwordsServiceException)value);
7005
        }
7006
        break;
7007
 
7008
      }
7009
    }
7010
 
7011
    public Object getFieldValue(_Fields field) {
7012
      switch (field) {
7013
      case GASEX:
7014
        return getGasex();
7015
 
7016
      }
7017
      throw new IllegalStateException();
7018
    }
7019
 
7020
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7021
    public boolean isSet(_Fields field) {
7022
      if (field == null) {
7023
        throw new IllegalArgumentException();
7024
      }
7025
 
7026
      switch (field) {
7027
      case GASEX:
7028
        return isSetGasex();
7029
      }
7030
      throw new IllegalStateException();
7031
    }
7032
 
7033
    @Override
7034
    public boolean equals(Object that) {
7035
      if (that == null)
7036
        return false;
7037
      if (that instanceof deleteAdwordsAdGroup_result)
7038
        return this.equals((deleteAdwordsAdGroup_result)that);
7039
      return false;
7040
    }
7041
 
7042
    public boolean equals(deleteAdwordsAdGroup_result that) {
7043
      if (that == null)
7044
        return false;
7045
 
7046
      boolean this_present_gasex = true && this.isSetGasex();
7047
      boolean that_present_gasex = true && that.isSetGasex();
7048
      if (this_present_gasex || that_present_gasex) {
7049
        if (!(this_present_gasex && that_present_gasex))
7050
          return false;
7051
        if (!this.gasex.equals(that.gasex))
7052
          return false;
7053
      }
7054
 
7055
      return true;
7056
    }
7057
 
7058
    @Override
7059
    public int hashCode() {
7060
      return 0;
7061
    }
7062
 
7063
    public int compareTo(deleteAdwordsAdGroup_result other) {
7064
      if (!getClass().equals(other.getClass())) {
7065
        return getClass().getName().compareTo(other.getClass().getName());
7066
      }
7067
 
7068
      int lastComparison = 0;
7069
      deleteAdwordsAdGroup_result typedOther = (deleteAdwordsAdGroup_result)other;
7070
 
7071
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
7072
      if (lastComparison != 0) {
7073
        return lastComparison;
7074
      }
7075
      if (isSetGasex()) {
7076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
7077
        if (lastComparison != 0) {
7078
          return lastComparison;
7079
        }
7080
      }
7081
      return 0;
7082
    }
7083
 
7084
    public _Fields fieldForId(int fieldId) {
7085
      return _Fields.findByThriftId(fieldId);
7086
    }
7087
 
7088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7089
      org.apache.thrift.protocol.TField field;
7090
      iprot.readStructBegin();
7091
      while (true)
7092
      {
7093
        field = iprot.readFieldBegin();
7094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7095
          break;
7096
        }
7097
        switch (field.id) {
7098
          case 1: // GASEX
7099
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7100
              this.gasex = new GoogleAdwordsServiceException();
7101
              this.gasex.read(iprot);
7102
            } else { 
7103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7104
            }
7105
            break;
7106
          default:
7107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7108
        }
7109
        iprot.readFieldEnd();
7110
      }
7111
      iprot.readStructEnd();
7112
      validate();
7113
    }
7114
 
7115
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7116
      oprot.writeStructBegin(STRUCT_DESC);
7117
 
7118
      if (this.isSetGasex()) {
7119
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
7120
        this.gasex.write(oprot);
7121
        oprot.writeFieldEnd();
7122
      }
7123
      oprot.writeFieldStop();
7124
      oprot.writeStructEnd();
7125
    }
7126
 
7127
    @Override
7128
    public String toString() {
7129
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroup_result(");
7130
      boolean first = true;
7131
 
7132
      sb.append("gasex:");
7133
      if (this.gasex == null) {
7134
        sb.append("null");
7135
      } else {
7136
        sb.append(this.gasex);
7137
      }
7138
      first = false;
7139
      sb.append(")");
7140
      return sb.toString();
7141
    }
7142
 
7143
    public void validate() throws org.apache.thrift.TException {
7144
      // check for required fields
7145
    }
7146
 
7147
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7148
      try {
7149
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7150
      } catch (org.apache.thrift.TException te) {
7151
        throw new java.io.IOException(te);
7152
      }
7153
    }
7154
 
7155
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7156
      try {
7157
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7158
      } catch (org.apache.thrift.TException te) {
7159
        throw new java.io.IOException(te);
7160
      }
7161
    }
7162
 
7163
  }
7164
 
7165
  public static class deleteAdwordsAdGroupAd_args implements org.apache.thrift.TBase<deleteAdwordsAdGroupAd_args, deleteAdwordsAdGroupAd_args._Fields>, java.io.Serializable, Cloneable   {
7166
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroupAd_args");
7167
 
7168
    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);
7169
 
7170
    private long adgroupadId; // required
7171
 
7172
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7173
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7174
      ADGROUPAD_ID((short)1, "adgroupadId");
7175
 
7176
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7177
 
7178
      static {
7179
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7180
          byName.put(field.getFieldName(), field);
7181
        }
7182
      }
7183
 
7184
      /**
7185
       * Find the _Fields constant that matches fieldId, or null if its not found.
7186
       */
7187
      public static _Fields findByThriftId(int fieldId) {
7188
        switch(fieldId) {
7189
          case 1: // ADGROUPAD_ID
7190
            return ADGROUPAD_ID;
7191
          default:
7192
            return null;
7193
        }
7194
      }
7195
 
7196
      /**
7197
       * Find the _Fields constant that matches fieldId, throwing an exception
7198
       * if it is not found.
7199
       */
7200
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7201
        _Fields fields = findByThriftId(fieldId);
7202
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7203
        return fields;
7204
      }
7205
 
7206
      /**
7207
       * Find the _Fields constant that matches name, or null if its not found.
7208
       */
7209
      public static _Fields findByName(String name) {
7210
        return byName.get(name);
7211
      }
7212
 
7213
      private final short _thriftId;
7214
      private final String _fieldName;
7215
 
7216
      _Fields(short thriftId, String fieldName) {
7217
        _thriftId = thriftId;
7218
        _fieldName = fieldName;
7219
      }
7220
 
7221
      public short getThriftFieldId() {
7222
        return _thriftId;
7223
      }
7224
 
7225
      public String getFieldName() {
7226
        return _fieldName;
7227
      }
7228
    }
7229
 
7230
    // isset id assignments
7231
    private static final int __ADGROUPADID_ISSET_ID = 0;
7232
    private BitSet __isset_bit_vector = new BitSet(1);
7233
 
7234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7235
    static {
7236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7237
      tmpMap.put(_Fields.ADGROUPAD_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupadId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7239
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7240
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroupAd_args.class, metaDataMap);
7241
    }
7242
 
7243
    public deleteAdwordsAdGroupAd_args() {
7244
    }
7245
 
7246
    public deleteAdwordsAdGroupAd_args(
7247
      long adgroupadId)
7248
    {
7249
      this();
7250
      this.adgroupadId = adgroupadId;
7251
      setAdgroupadIdIsSet(true);
7252
    }
7253
 
7254
    /**
7255
     * Performs a deep copy on <i>other</i>.
7256
     */
7257
    public deleteAdwordsAdGroupAd_args(deleteAdwordsAdGroupAd_args other) {
7258
      __isset_bit_vector.clear();
7259
      __isset_bit_vector.or(other.__isset_bit_vector);
7260
      this.adgroupadId = other.adgroupadId;
7261
    }
7262
 
7263
    public deleteAdwordsAdGroupAd_args deepCopy() {
7264
      return new deleteAdwordsAdGroupAd_args(this);
7265
    }
7266
 
7267
    @Override
7268
    public void clear() {
7269
      setAdgroupadIdIsSet(false);
7270
      this.adgroupadId = 0;
7271
    }
7272
 
7273
    public long getAdgroupadId() {
7274
      return this.adgroupadId;
7275
    }
7276
 
7277
    public void setAdgroupadId(long adgroupadId) {
7278
      this.adgroupadId = adgroupadId;
7279
      setAdgroupadIdIsSet(true);
7280
    }
7281
 
7282
    public void unsetAdgroupadId() {
7283
      __isset_bit_vector.clear(__ADGROUPADID_ISSET_ID);
7284
    }
7285
 
7286
    /** Returns true if field adgroupadId is set (has been assigned a value) and false otherwise */
7287
    public boolean isSetAdgroupadId() {
7288
      return __isset_bit_vector.get(__ADGROUPADID_ISSET_ID);
7289
    }
7290
 
7291
    public void setAdgroupadIdIsSet(boolean value) {
7292
      __isset_bit_vector.set(__ADGROUPADID_ISSET_ID, value);
7293
    }
7294
 
7295
    public void setFieldValue(_Fields field, Object value) {
7296
      switch (field) {
7297
      case ADGROUPAD_ID:
7298
        if (value == null) {
7299
          unsetAdgroupadId();
7300
        } else {
7301
          setAdgroupadId((Long)value);
7302
        }
7303
        break;
7304
 
7305
      }
7306
    }
7307
 
7308
    public Object getFieldValue(_Fields field) {
7309
      switch (field) {
7310
      case ADGROUPAD_ID:
7311
        return Long.valueOf(getAdgroupadId());
7312
 
7313
      }
7314
      throw new IllegalStateException();
7315
    }
7316
 
7317
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7318
    public boolean isSet(_Fields field) {
7319
      if (field == null) {
7320
        throw new IllegalArgumentException();
7321
      }
7322
 
7323
      switch (field) {
7324
      case ADGROUPAD_ID:
7325
        return isSetAdgroupadId();
7326
      }
7327
      throw new IllegalStateException();
7328
    }
7329
 
7330
    @Override
7331
    public boolean equals(Object that) {
7332
      if (that == null)
7333
        return false;
7334
      if (that instanceof deleteAdwordsAdGroupAd_args)
7335
        return this.equals((deleteAdwordsAdGroupAd_args)that);
7336
      return false;
7337
    }
7338
 
7339
    public boolean equals(deleteAdwordsAdGroupAd_args that) {
7340
      if (that == null)
7341
        return false;
7342
 
7343
      boolean this_present_adgroupadId = true;
7344
      boolean that_present_adgroupadId = true;
7345
      if (this_present_adgroupadId || that_present_adgroupadId) {
7346
        if (!(this_present_adgroupadId && that_present_adgroupadId))
7347
          return false;
7348
        if (this.adgroupadId != that.adgroupadId)
7349
          return false;
7350
      }
7351
 
7352
      return true;
7353
    }
7354
 
7355
    @Override
7356
    public int hashCode() {
7357
      return 0;
7358
    }
7359
 
7360
    public int compareTo(deleteAdwordsAdGroupAd_args other) {
7361
      if (!getClass().equals(other.getClass())) {
7362
        return getClass().getName().compareTo(other.getClass().getName());
7363
      }
7364
 
7365
      int lastComparison = 0;
7366
      deleteAdwordsAdGroupAd_args typedOther = (deleteAdwordsAdGroupAd_args)other;
7367
 
7368
      lastComparison = Boolean.valueOf(isSetAdgroupadId()).compareTo(typedOther.isSetAdgroupadId());
7369
      if (lastComparison != 0) {
7370
        return lastComparison;
7371
      }
7372
      if (isSetAdgroupadId()) {
7373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupadId, typedOther.adgroupadId);
7374
        if (lastComparison != 0) {
7375
          return lastComparison;
7376
        }
7377
      }
7378
      return 0;
7379
    }
7380
 
7381
    public _Fields fieldForId(int fieldId) {
7382
      return _Fields.findByThriftId(fieldId);
7383
    }
7384
 
7385
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7386
      org.apache.thrift.protocol.TField field;
7387
      iprot.readStructBegin();
7388
      while (true)
7389
      {
7390
        field = iprot.readFieldBegin();
7391
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7392
          break;
7393
        }
7394
        switch (field.id) {
7395
          case 1: // ADGROUPAD_ID
7396
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7397
              this.adgroupadId = iprot.readI64();
7398
              setAdgroupadIdIsSet(true);
7399
            } else { 
7400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7401
            }
7402
            break;
7403
          default:
7404
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7405
        }
7406
        iprot.readFieldEnd();
7407
      }
7408
      iprot.readStructEnd();
7409
      validate();
7410
    }
7411
 
7412
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7413
      validate();
7414
 
7415
      oprot.writeStructBegin(STRUCT_DESC);
7416
      oprot.writeFieldBegin(ADGROUPAD_ID_FIELD_DESC);
7417
      oprot.writeI64(this.adgroupadId);
7418
      oprot.writeFieldEnd();
7419
      oprot.writeFieldStop();
7420
      oprot.writeStructEnd();
7421
    }
7422
 
7423
    @Override
7424
    public String toString() {
7425
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroupAd_args(");
7426
      boolean first = true;
7427
 
7428
      sb.append("adgroupadId:");
7429
      sb.append(this.adgroupadId);
7430
      first = false;
7431
      sb.append(")");
7432
      return sb.toString();
7433
    }
7434
 
7435
    public void validate() throws org.apache.thrift.TException {
7436
      // check for required fields
7437
    }
7438
 
7439
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7440
      try {
7441
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7442
      } catch (org.apache.thrift.TException te) {
7443
        throw new java.io.IOException(te);
7444
      }
7445
    }
7446
 
7447
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7448
      try {
7449
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7450
        __isset_bit_vector = new BitSet(1);
7451
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7452
      } catch (org.apache.thrift.TException te) {
7453
        throw new java.io.IOException(te);
7454
      }
7455
    }
7456
 
7457
  }
7458
 
7459
  public static class deleteAdwordsAdGroupAd_result implements org.apache.thrift.TBase<deleteAdwordsAdGroupAd_result, deleteAdwordsAdGroupAd_result._Fields>, java.io.Serializable, Cloneable   {
7460
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdGroupAd_result");
7461
 
7462
    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);
7463
 
7464
    private GoogleAdwordsServiceException gasex; // required
7465
 
7466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7467
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7468
      GASEX((short)1, "gasex");
7469
 
7470
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7471
 
7472
      static {
7473
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7474
          byName.put(field.getFieldName(), field);
7475
        }
7476
      }
7477
 
7478
      /**
7479
       * Find the _Fields constant that matches fieldId, or null if its not found.
7480
       */
7481
      public static _Fields findByThriftId(int fieldId) {
7482
        switch(fieldId) {
7483
          case 1: // GASEX
7484
            return GASEX;
7485
          default:
7486
            return null;
7487
        }
7488
      }
7489
 
7490
      /**
7491
       * Find the _Fields constant that matches fieldId, throwing an exception
7492
       * if it is not found.
7493
       */
7494
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7495
        _Fields fields = findByThriftId(fieldId);
7496
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7497
        return fields;
7498
      }
7499
 
7500
      /**
7501
       * Find the _Fields constant that matches name, or null if its not found.
7502
       */
7503
      public static _Fields findByName(String name) {
7504
        return byName.get(name);
7505
      }
7506
 
7507
      private final short _thriftId;
7508
      private final String _fieldName;
7509
 
7510
      _Fields(short thriftId, String fieldName) {
7511
        _thriftId = thriftId;
7512
        _fieldName = fieldName;
7513
      }
7514
 
7515
      public short getThriftFieldId() {
7516
        return _thriftId;
7517
      }
7518
 
7519
      public String getFieldName() {
7520
        return _fieldName;
7521
      }
7522
    }
7523
 
7524
    // isset id assignments
7525
 
7526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7527
    static {
7528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7529
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7531
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7532
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdGroupAd_result.class, metaDataMap);
7533
    }
7534
 
7535
    public deleteAdwordsAdGroupAd_result() {
7536
    }
7537
 
7538
    public deleteAdwordsAdGroupAd_result(
7539
      GoogleAdwordsServiceException gasex)
7540
    {
7541
      this();
7542
      this.gasex = gasex;
7543
    }
7544
 
7545
    /**
7546
     * Performs a deep copy on <i>other</i>.
7547
     */
7548
    public deleteAdwordsAdGroupAd_result(deleteAdwordsAdGroupAd_result other) {
7549
      if (other.isSetGasex()) {
7550
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
7551
      }
7552
    }
7553
 
7554
    public deleteAdwordsAdGroupAd_result deepCopy() {
7555
      return new deleteAdwordsAdGroupAd_result(this);
7556
    }
7557
 
7558
    @Override
7559
    public void clear() {
7560
      this.gasex = null;
7561
    }
7562
 
7563
    public GoogleAdwordsServiceException getGasex() {
7564
      return this.gasex;
7565
    }
7566
 
7567
    public void setGasex(GoogleAdwordsServiceException gasex) {
7568
      this.gasex = gasex;
7569
    }
7570
 
7571
    public void unsetGasex() {
7572
      this.gasex = null;
7573
    }
7574
 
7575
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
7576
    public boolean isSetGasex() {
7577
      return this.gasex != null;
7578
    }
7579
 
7580
    public void setGasexIsSet(boolean value) {
7581
      if (!value) {
7582
        this.gasex = null;
7583
      }
7584
    }
7585
 
7586
    public void setFieldValue(_Fields field, Object value) {
7587
      switch (field) {
7588
      case GASEX:
7589
        if (value == null) {
7590
          unsetGasex();
7591
        } else {
7592
          setGasex((GoogleAdwordsServiceException)value);
7593
        }
7594
        break;
7595
 
7596
      }
7597
    }
7598
 
7599
    public Object getFieldValue(_Fields field) {
7600
      switch (field) {
7601
      case GASEX:
7602
        return getGasex();
7603
 
7604
      }
7605
      throw new IllegalStateException();
7606
    }
7607
 
7608
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7609
    public boolean isSet(_Fields field) {
7610
      if (field == null) {
7611
        throw new IllegalArgumentException();
7612
      }
7613
 
7614
      switch (field) {
7615
      case GASEX:
7616
        return isSetGasex();
7617
      }
7618
      throw new IllegalStateException();
7619
    }
7620
 
7621
    @Override
7622
    public boolean equals(Object that) {
7623
      if (that == null)
7624
        return false;
7625
      if (that instanceof deleteAdwordsAdGroupAd_result)
7626
        return this.equals((deleteAdwordsAdGroupAd_result)that);
7627
      return false;
7628
    }
7629
 
7630
    public boolean equals(deleteAdwordsAdGroupAd_result that) {
7631
      if (that == null)
7632
        return false;
7633
 
7634
      boolean this_present_gasex = true && this.isSetGasex();
7635
      boolean that_present_gasex = true && that.isSetGasex();
7636
      if (this_present_gasex || that_present_gasex) {
7637
        if (!(this_present_gasex && that_present_gasex))
7638
          return false;
7639
        if (!this.gasex.equals(that.gasex))
7640
          return false;
7641
      }
7642
 
7643
      return true;
7644
    }
7645
 
7646
    @Override
7647
    public int hashCode() {
7648
      return 0;
7649
    }
7650
 
7651
    public int compareTo(deleteAdwordsAdGroupAd_result other) {
7652
      if (!getClass().equals(other.getClass())) {
7653
        return getClass().getName().compareTo(other.getClass().getName());
7654
      }
7655
 
7656
      int lastComparison = 0;
7657
      deleteAdwordsAdGroupAd_result typedOther = (deleteAdwordsAdGroupAd_result)other;
7658
 
7659
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
7660
      if (lastComparison != 0) {
7661
        return lastComparison;
7662
      }
7663
      if (isSetGasex()) {
7664
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
7665
        if (lastComparison != 0) {
7666
          return lastComparison;
7667
        }
7668
      }
7669
      return 0;
7670
    }
7671
 
7672
    public _Fields fieldForId(int fieldId) {
7673
      return _Fields.findByThriftId(fieldId);
7674
    }
7675
 
7676
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7677
      org.apache.thrift.protocol.TField field;
7678
      iprot.readStructBegin();
7679
      while (true)
7680
      {
7681
        field = iprot.readFieldBegin();
7682
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7683
          break;
7684
        }
7685
        switch (field.id) {
7686
          case 1: // GASEX
7687
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7688
              this.gasex = new GoogleAdwordsServiceException();
7689
              this.gasex.read(iprot);
7690
            } else { 
7691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7692
            }
7693
            break;
7694
          default:
7695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7696
        }
7697
        iprot.readFieldEnd();
7698
      }
7699
      iprot.readStructEnd();
7700
      validate();
7701
    }
7702
 
7703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7704
      oprot.writeStructBegin(STRUCT_DESC);
7705
 
7706
      if (this.isSetGasex()) {
7707
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
7708
        this.gasex.write(oprot);
7709
        oprot.writeFieldEnd();
7710
      }
7711
      oprot.writeFieldStop();
7712
      oprot.writeStructEnd();
7713
    }
7714
 
7715
    @Override
7716
    public String toString() {
7717
      StringBuilder sb = new StringBuilder("deleteAdwordsAdGroupAd_result(");
7718
      boolean first = true;
7719
 
7720
      sb.append("gasex:");
7721
      if (this.gasex == null) {
7722
        sb.append("null");
7723
      } else {
7724
        sb.append(this.gasex);
7725
      }
7726
      first = false;
7727
      sb.append(")");
7728
      return sb.toString();
7729
    }
7730
 
7731
    public void validate() throws org.apache.thrift.TException {
7732
      // check for required fields
7733
    }
7734
 
7735
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7736
      try {
7737
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7738
      } catch (org.apache.thrift.TException te) {
7739
        throw new java.io.IOException(te);
7740
      }
7741
    }
7742
 
7743
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7744
      try {
7745
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7746
      } catch (org.apache.thrift.TException te) {
7747
        throw new java.io.IOException(te);
7748
      }
7749
    }
7750
 
7751
  }
7752
 
7753
  public static class deleteAdwordsAdKeyword_args implements org.apache.thrift.TBase<deleteAdwordsAdKeyword_args, deleteAdwordsAdKeyword_args._Fields>, java.io.Serializable, Cloneable   {
7754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdKeyword_args");
7755
 
7756
    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);
7757
 
7758
    private long criterionId; // required
7759
 
7760
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7761
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7762
      CRITERION_ID((short)1, "criterionId");
7763
 
7764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7765
 
7766
      static {
7767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7768
          byName.put(field.getFieldName(), field);
7769
        }
7770
      }
7771
 
7772
      /**
7773
       * Find the _Fields constant that matches fieldId, or null if its not found.
7774
       */
7775
      public static _Fields findByThriftId(int fieldId) {
7776
        switch(fieldId) {
7777
          case 1: // CRITERION_ID
7778
            return CRITERION_ID;
7779
          default:
7780
            return null;
7781
        }
7782
      }
7783
 
7784
      /**
7785
       * Find the _Fields constant that matches fieldId, throwing an exception
7786
       * if it is not found.
7787
       */
7788
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7789
        _Fields fields = findByThriftId(fieldId);
7790
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7791
        return fields;
7792
      }
7793
 
7794
      /**
7795
       * Find the _Fields constant that matches name, or null if its not found.
7796
       */
7797
      public static _Fields findByName(String name) {
7798
        return byName.get(name);
7799
      }
7800
 
7801
      private final short _thriftId;
7802
      private final String _fieldName;
7803
 
7804
      _Fields(short thriftId, String fieldName) {
7805
        _thriftId = thriftId;
7806
        _fieldName = fieldName;
7807
      }
7808
 
7809
      public short getThriftFieldId() {
7810
        return _thriftId;
7811
      }
7812
 
7813
      public String getFieldName() {
7814
        return _fieldName;
7815
      }
7816
    }
7817
 
7818
    // isset id assignments
7819
    private static final int __CRITERIONID_ISSET_ID = 0;
7820
    private BitSet __isset_bit_vector = new BitSet(1);
7821
 
7822
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7823
    static {
7824
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7825
      tmpMap.put(_Fields.CRITERION_ID, new org.apache.thrift.meta_data.FieldMetaData("criterionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7826
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7827
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7828
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdKeyword_args.class, metaDataMap);
7829
    }
7830
 
7831
    public deleteAdwordsAdKeyword_args() {
7832
    }
7833
 
7834
    public deleteAdwordsAdKeyword_args(
7835
      long criterionId)
7836
    {
7837
      this();
7838
      this.criterionId = criterionId;
7839
      setCriterionIdIsSet(true);
7840
    }
7841
 
7842
    /**
7843
     * Performs a deep copy on <i>other</i>.
7844
     */
7845
    public deleteAdwordsAdKeyword_args(deleteAdwordsAdKeyword_args other) {
7846
      __isset_bit_vector.clear();
7847
      __isset_bit_vector.or(other.__isset_bit_vector);
7848
      this.criterionId = other.criterionId;
7849
    }
7850
 
7851
    public deleteAdwordsAdKeyword_args deepCopy() {
7852
      return new deleteAdwordsAdKeyword_args(this);
7853
    }
7854
 
7855
    @Override
7856
    public void clear() {
7857
      setCriterionIdIsSet(false);
7858
      this.criterionId = 0;
7859
    }
7860
 
7861
    public long getCriterionId() {
7862
      return this.criterionId;
7863
    }
7864
 
7865
    public void setCriterionId(long criterionId) {
7866
      this.criterionId = criterionId;
7867
      setCriterionIdIsSet(true);
7868
    }
7869
 
7870
    public void unsetCriterionId() {
7871
      __isset_bit_vector.clear(__CRITERIONID_ISSET_ID);
7872
    }
7873
 
7874
    /** Returns true if field criterionId is set (has been assigned a value) and false otherwise */
7875
    public boolean isSetCriterionId() {
7876
      return __isset_bit_vector.get(__CRITERIONID_ISSET_ID);
7877
    }
7878
 
7879
    public void setCriterionIdIsSet(boolean value) {
7880
      __isset_bit_vector.set(__CRITERIONID_ISSET_ID, value);
7881
    }
7882
 
7883
    public void setFieldValue(_Fields field, Object value) {
7884
      switch (field) {
7885
      case CRITERION_ID:
7886
        if (value == null) {
7887
          unsetCriterionId();
7888
        } else {
7889
          setCriterionId((Long)value);
7890
        }
7891
        break;
7892
 
7893
      }
7894
    }
7895
 
7896
    public Object getFieldValue(_Fields field) {
7897
      switch (field) {
7898
      case CRITERION_ID:
7899
        return Long.valueOf(getCriterionId());
7900
 
7901
      }
7902
      throw new IllegalStateException();
7903
    }
7904
 
7905
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7906
    public boolean isSet(_Fields field) {
7907
      if (field == null) {
7908
        throw new IllegalArgumentException();
7909
      }
7910
 
7911
      switch (field) {
7912
      case CRITERION_ID:
7913
        return isSetCriterionId();
7914
      }
7915
      throw new IllegalStateException();
7916
    }
7917
 
7918
    @Override
7919
    public boolean equals(Object that) {
7920
      if (that == null)
7921
        return false;
7922
      if (that instanceof deleteAdwordsAdKeyword_args)
7923
        return this.equals((deleteAdwordsAdKeyword_args)that);
7924
      return false;
7925
    }
7926
 
7927
    public boolean equals(deleteAdwordsAdKeyword_args that) {
7928
      if (that == null)
7929
        return false;
7930
 
7931
      boolean this_present_criterionId = true;
7932
      boolean that_present_criterionId = true;
7933
      if (this_present_criterionId || that_present_criterionId) {
7934
        if (!(this_present_criterionId && that_present_criterionId))
7935
          return false;
7936
        if (this.criterionId != that.criterionId)
7937
          return false;
7938
      }
7939
 
7940
      return true;
7941
    }
7942
 
7943
    @Override
7944
    public int hashCode() {
7945
      return 0;
7946
    }
7947
 
7948
    public int compareTo(deleteAdwordsAdKeyword_args other) {
7949
      if (!getClass().equals(other.getClass())) {
7950
        return getClass().getName().compareTo(other.getClass().getName());
7951
      }
7952
 
7953
      int lastComparison = 0;
7954
      deleteAdwordsAdKeyword_args typedOther = (deleteAdwordsAdKeyword_args)other;
7955
 
7956
      lastComparison = Boolean.valueOf(isSetCriterionId()).compareTo(typedOther.isSetCriterionId());
7957
      if (lastComparison != 0) {
7958
        return lastComparison;
7959
      }
7960
      if (isSetCriterionId()) {
7961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criterionId, typedOther.criterionId);
7962
        if (lastComparison != 0) {
7963
          return lastComparison;
7964
        }
7965
      }
7966
      return 0;
7967
    }
7968
 
7969
    public _Fields fieldForId(int fieldId) {
7970
      return _Fields.findByThriftId(fieldId);
7971
    }
7972
 
7973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7974
      org.apache.thrift.protocol.TField field;
7975
      iprot.readStructBegin();
7976
      while (true)
7977
      {
7978
        field = iprot.readFieldBegin();
7979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7980
          break;
7981
        }
7982
        switch (field.id) {
7983
          case 1: // CRITERION_ID
7984
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7985
              this.criterionId = iprot.readI64();
7986
              setCriterionIdIsSet(true);
7987
            } else { 
7988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7989
            }
7990
            break;
7991
          default:
7992
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7993
        }
7994
        iprot.readFieldEnd();
7995
      }
7996
      iprot.readStructEnd();
7997
      validate();
7998
    }
7999
 
8000
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8001
      validate();
8002
 
8003
      oprot.writeStructBegin(STRUCT_DESC);
8004
      oprot.writeFieldBegin(CRITERION_ID_FIELD_DESC);
8005
      oprot.writeI64(this.criterionId);
8006
      oprot.writeFieldEnd();
8007
      oprot.writeFieldStop();
8008
      oprot.writeStructEnd();
8009
    }
8010
 
8011
    @Override
8012
    public String toString() {
8013
      StringBuilder sb = new StringBuilder("deleteAdwordsAdKeyword_args(");
8014
      boolean first = true;
8015
 
8016
      sb.append("criterionId:");
8017
      sb.append(this.criterionId);
8018
      first = false;
8019
      sb.append(")");
8020
      return sb.toString();
8021
    }
8022
 
8023
    public void validate() throws org.apache.thrift.TException {
8024
      // check for required fields
8025
    }
8026
 
8027
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8028
      try {
8029
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8030
      } catch (org.apache.thrift.TException te) {
8031
        throw new java.io.IOException(te);
8032
      }
8033
    }
8034
 
8035
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8036
      try {
8037
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8038
        __isset_bit_vector = new BitSet(1);
8039
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8040
      } catch (org.apache.thrift.TException te) {
8041
        throw new java.io.IOException(te);
8042
      }
8043
    }
8044
 
8045
  }
8046
 
8047
  public static class deleteAdwordsAdKeyword_result implements org.apache.thrift.TBase<deleteAdwordsAdKeyword_result, deleteAdwordsAdKeyword_result._Fields>, java.io.Serializable, Cloneable   {
8048
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAdwordsAdKeyword_result");
8049
 
8050
    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);
8051
 
8052
    private GoogleAdwordsServiceException gasex; // required
8053
 
8054
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8055
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8056
      GASEX((short)1, "gasex");
8057
 
8058
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8059
 
8060
      static {
8061
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8062
          byName.put(field.getFieldName(), field);
8063
        }
8064
      }
8065
 
8066
      /**
8067
       * Find the _Fields constant that matches fieldId, or null if its not found.
8068
       */
8069
      public static _Fields findByThriftId(int fieldId) {
8070
        switch(fieldId) {
8071
          case 1: // GASEX
8072
            return GASEX;
8073
          default:
8074
            return null;
8075
        }
8076
      }
8077
 
8078
      /**
8079
       * Find the _Fields constant that matches fieldId, throwing an exception
8080
       * if it is not found.
8081
       */
8082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8083
        _Fields fields = findByThriftId(fieldId);
8084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8085
        return fields;
8086
      }
8087
 
8088
      /**
8089
       * Find the _Fields constant that matches name, or null if its not found.
8090
       */
8091
      public static _Fields findByName(String name) {
8092
        return byName.get(name);
8093
      }
8094
 
8095
      private final short _thriftId;
8096
      private final String _fieldName;
8097
 
8098
      _Fields(short thriftId, String fieldName) {
8099
        _thriftId = thriftId;
8100
        _fieldName = fieldName;
8101
      }
8102
 
8103
      public short getThriftFieldId() {
8104
        return _thriftId;
8105
      }
8106
 
8107
      public String getFieldName() {
8108
        return _fieldName;
8109
      }
8110
    }
8111
 
8112
    // isset id assignments
8113
 
8114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8115
    static {
8116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8117
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8119
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8120
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAdwordsAdKeyword_result.class, metaDataMap);
8121
    }
8122
 
8123
    public deleteAdwordsAdKeyword_result() {
8124
    }
8125
 
8126
    public deleteAdwordsAdKeyword_result(
8127
      GoogleAdwordsServiceException gasex)
8128
    {
8129
      this();
8130
      this.gasex = gasex;
8131
    }
8132
 
8133
    /**
8134
     * Performs a deep copy on <i>other</i>.
8135
     */
8136
    public deleteAdwordsAdKeyword_result(deleteAdwordsAdKeyword_result other) {
8137
      if (other.isSetGasex()) {
8138
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
8139
      }
8140
    }
8141
 
8142
    public deleteAdwordsAdKeyword_result deepCopy() {
8143
      return new deleteAdwordsAdKeyword_result(this);
8144
    }
8145
 
8146
    @Override
8147
    public void clear() {
8148
      this.gasex = null;
8149
    }
8150
 
8151
    public GoogleAdwordsServiceException getGasex() {
8152
      return this.gasex;
8153
    }
8154
 
8155
    public void setGasex(GoogleAdwordsServiceException gasex) {
8156
      this.gasex = gasex;
8157
    }
8158
 
8159
    public void unsetGasex() {
8160
      this.gasex = null;
8161
    }
8162
 
8163
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
8164
    public boolean isSetGasex() {
8165
      return this.gasex != null;
8166
    }
8167
 
8168
    public void setGasexIsSet(boolean value) {
8169
      if (!value) {
8170
        this.gasex = null;
8171
      }
8172
    }
8173
 
8174
    public void setFieldValue(_Fields field, Object value) {
8175
      switch (field) {
8176
      case GASEX:
8177
        if (value == null) {
8178
          unsetGasex();
8179
        } else {
8180
          setGasex((GoogleAdwordsServiceException)value);
8181
        }
8182
        break;
8183
 
8184
      }
8185
    }
8186
 
8187
    public Object getFieldValue(_Fields field) {
8188
      switch (field) {
8189
      case GASEX:
8190
        return getGasex();
8191
 
8192
      }
8193
      throw new IllegalStateException();
8194
    }
8195
 
8196
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8197
    public boolean isSet(_Fields field) {
8198
      if (field == null) {
8199
        throw new IllegalArgumentException();
8200
      }
8201
 
8202
      switch (field) {
8203
      case GASEX:
8204
        return isSetGasex();
8205
      }
8206
      throw new IllegalStateException();
8207
    }
8208
 
8209
    @Override
8210
    public boolean equals(Object that) {
8211
      if (that == null)
8212
        return false;
8213
      if (that instanceof deleteAdwordsAdKeyword_result)
8214
        return this.equals((deleteAdwordsAdKeyword_result)that);
8215
      return false;
8216
    }
8217
 
8218
    public boolean equals(deleteAdwordsAdKeyword_result that) {
8219
      if (that == null)
8220
        return false;
8221
 
8222
      boolean this_present_gasex = true && this.isSetGasex();
8223
      boolean that_present_gasex = true && that.isSetGasex();
8224
      if (this_present_gasex || that_present_gasex) {
8225
        if (!(this_present_gasex && that_present_gasex))
8226
          return false;
8227
        if (!this.gasex.equals(that.gasex))
8228
          return false;
8229
      }
8230
 
8231
      return true;
8232
    }
8233
 
8234
    @Override
8235
    public int hashCode() {
8236
      return 0;
8237
    }
8238
 
8239
    public int compareTo(deleteAdwordsAdKeyword_result other) {
8240
      if (!getClass().equals(other.getClass())) {
8241
        return getClass().getName().compareTo(other.getClass().getName());
8242
      }
8243
 
8244
      int lastComparison = 0;
8245
      deleteAdwordsAdKeyword_result typedOther = (deleteAdwordsAdKeyword_result)other;
8246
 
8247
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
8248
      if (lastComparison != 0) {
8249
        return lastComparison;
8250
      }
8251
      if (isSetGasex()) {
8252
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
8253
        if (lastComparison != 0) {
8254
          return lastComparison;
8255
        }
8256
      }
8257
      return 0;
8258
    }
8259
 
8260
    public _Fields fieldForId(int fieldId) {
8261
      return _Fields.findByThriftId(fieldId);
8262
    }
8263
 
8264
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8265
      org.apache.thrift.protocol.TField field;
8266
      iprot.readStructBegin();
8267
      while (true)
8268
      {
8269
        field = iprot.readFieldBegin();
8270
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8271
          break;
8272
        }
8273
        switch (field.id) {
8274
          case 1: // GASEX
8275
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8276
              this.gasex = new GoogleAdwordsServiceException();
8277
              this.gasex.read(iprot);
8278
            } else { 
8279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8280
            }
8281
            break;
8282
          default:
8283
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8284
        }
8285
        iprot.readFieldEnd();
8286
      }
8287
      iprot.readStructEnd();
8288
      validate();
8289
    }
8290
 
8291
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8292
      oprot.writeStructBegin(STRUCT_DESC);
8293
 
8294
      if (this.isSetGasex()) {
8295
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
8296
        this.gasex.write(oprot);
8297
        oprot.writeFieldEnd();
8298
      }
8299
      oprot.writeFieldStop();
8300
      oprot.writeStructEnd();
8301
    }
8302
 
8303
    @Override
8304
    public String toString() {
8305
      StringBuilder sb = new StringBuilder("deleteAdwordsAdKeyword_result(");
8306
      boolean first = true;
8307
 
8308
      sb.append("gasex:");
8309
      if (this.gasex == null) {
8310
        sb.append("null");
8311
      } else {
8312
        sb.append(this.gasex);
8313
      }
8314
      first = false;
8315
      sb.append(")");
8316
      return sb.toString();
8317
    }
8318
 
8319
    public void validate() throws org.apache.thrift.TException {
8320
      // check for required fields
8321
    }
8322
 
8323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8324
      try {
8325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8326
      } catch (org.apache.thrift.TException te) {
8327
        throw new java.io.IOException(te);
8328
      }
8329
    }
8330
 
8331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8332
      try {
8333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8334
      } catch (org.apache.thrift.TException te) {
8335
        throw new java.io.IOException(te);
8336
      }
8337
    }
8338
 
8339
  }
8340
 
8341
  public static class getAdwordsCampaignByCampaignId_args implements org.apache.thrift.TBase<getAdwordsCampaignByCampaignId_args, getAdwordsCampaignByCampaignId_args._Fields>, java.io.Serializable, Cloneable   {
8342
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsCampaignByCampaignId_args");
8343
 
8344
    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);
8345
 
8346
    private long campaignId; // required
8347
 
8348
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8349
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8350
      CAMPAIGN_ID((short)1, "campaignId");
8351
 
8352
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8353
 
8354
      static {
8355
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8356
          byName.put(field.getFieldName(), field);
8357
        }
8358
      }
8359
 
8360
      /**
8361
       * Find the _Fields constant that matches fieldId, or null if its not found.
8362
       */
8363
      public static _Fields findByThriftId(int fieldId) {
8364
        switch(fieldId) {
8365
          case 1: // CAMPAIGN_ID
8366
            return CAMPAIGN_ID;
8367
          default:
8368
            return null;
8369
        }
8370
      }
8371
 
8372
      /**
8373
       * Find the _Fields constant that matches fieldId, throwing an exception
8374
       * if it is not found.
8375
       */
8376
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8377
        _Fields fields = findByThriftId(fieldId);
8378
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8379
        return fields;
8380
      }
8381
 
8382
      /**
8383
       * Find the _Fields constant that matches name, or null if its not found.
8384
       */
8385
      public static _Fields findByName(String name) {
8386
        return byName.get(name);
8387
      }
8388
 
8389
      private final short _thriftId;
8390
      private final String _fieldName;
8391
 
8392
      _Fields(short thriftId, String fieldName) {
8393
        _thriftId = thriftId;
8394
        _fieldName = fieldName;
8395
      }
8396
 
8397
      public short getThriftFieldId() {
8398
        return _thriftId;
8399
      }
8400
 
8401
      public String getFieldName() {
8402
        return _fieldName;
8403
      }
8404
    }
8405
 
8406
    // isset id assignments
8407
    private static final int __CAMPAIGNID_ISSET_ID = 0;
8408
    private BitSet __isset_bit_vector = new BitSet(1);
8409
 
8410
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8411
    static {
8412
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8413
      tmpMap.put(_Fields.CAMPAIGN_ID, new org.apache.thrift.meta_data.FieldMetaData("campaignId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8414
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8415
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8416
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsCampaignByCampaignId_args.class, metaDataMap);
8417
    }
8418
 
8419
    public getAdwordsCampaignByCampaignId_args() {
8420
    }
8421
 
8422
    public getAdwordsCampaignByCampaignId_args(
8423
      long campaignId)
8424
    {
8425
      this();
8426
      this.campaignId = campaignId;
8427
      setCampaignIdIsSet(true);
8428
    }
8429
 
8430
    /**
8431
     * Performs a deep copy on <i>other</i>.
8432
     */
8433
    public getAdwordsCampaignByCampaignId_args(getAdwordsCampaignByCampaignId_args other) {
8434
      __isset_bit_vector.clear();
8435
      __isset_bit_vector.or(other.__isset_bit_vector);
8436
      this.campaignId = other.campaignId;
8437
    }
8438
 
8439
    public getAdwordsCampaignByCampaignId_args deepCopy() {
8440
      return new getAdwordsCampaignByCampaignId_args(this);
8441
    }
8442
 
8443
    @Override
8444
    public void clear() {
8445
      setCampaignIdIsSet(false);
8446
      this.campaignId = 0;
8447
    }
8448
 
8449
    public long getCampaignId() {
8450
      return this.campaignId;
8451
    }
8452
 
8453
    public void setCampaignId(long campaignId) {
8454
      this.campaignId = campaignId;
8455
      setCampaignIdIsSet(true);
8456
    }
8457
 
8458
    public void unsetCampaignId() {
8459
      __isset_bit_vector.clear(__CAMPAIGNID_ISSET_ID);
8460
    }
8461
 
8462
    /** Returns true if field campaignId is set (has been assigned a value) and false otherwise */
8463
    public boolean isSetCampaignId() {
8464
      return __isset_bit_vector.get(__CAMPAIGNID_ISSET_ID);
8465
    }
8466
 
8467
    public void setCampaignIdIsSet(boolean value) {
8468
      __isset_bit_vector.set(__CAMPAIGNID_ISSET_ID, value);
8469
    }
8470
 
8471
    public void setFieldValue(_Fields field, Object value) {
8472
      switch (field) {
8473
      case CAMPAIGN_ID:
8474
        if (value == null) {
8475
          unsetCampaignId();
8476
        } else {
8477
          setCampaignId((Long)value);
8478
        }
8479
        break;
8480
 
8481
      }
8482
    }
8483
 
8484
    public Object getFieldValue(_Fields field) {
8485
      switch (field) {
8486
      case CAMPAIGN_ID:
8487
        return Long.valueOf(getCampaignId());
8488
 
8489
      }
8490
      throw new IllegalStateException();
8491
    }
8492
 
8493
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8494
    public boolean isSet(_Fields field) {
8495
      if (field == null) {
8496
        throw new IllegalArgumentException();
8497
      }
8498
 
8499
      switch (field) {
8500
      case CAMPAIGN_ID:
8501
        return isSetCampaignId();
8502
      }
8503
      throw new IllegalStateException();
8504
    }
8505
 
8506
    @Override
8507
    public boolean equals(Object that) {
8508
      if (that == null)
8509
        return false;
8510
      if (that instanceof getAdwordsCampaignByCampaignId_args)
8511
        return this.equals((getAdwordsCampaignByCampaignId_args)that);
8512
      return false;
8513
    }
8514
 
8515
    public boolean equals(getAdwordsCampaignByCampaignId_args that) {
8516
      if (that == null)
8517
        return false;
8518
 
8519
      boolean this_present_campaignId = true;
8520
      boolean that_present_campaignId = true;
8521
      if (this_present_campaignId || that_present_campaignId) {
8522
        if (!(this_present_campaignId && that_present_campaignId))
8523
          return false;
8524
        if (this.campaignId != that.campaignId)
8525
          return false;
8526
      }
8527
 
8528
      return true;
8529
    }
8530
 
8531
    @Override
8532
    public int hashCode() {
8533
      return 0;
8534
    }
8535
 
8536
    public int compareTo(getAdwordsCampaignByCampaignId_args other) {
8537
      if (!getClass().equals(other.getClass())) {
8538
        return getClass().getName().compareTo(other.getClass().getName());
8539
      }
8540
 
8541
      int lastComparison = 0;
8542
      getAdwordsCampaignByCampaignId_args typedOther = (getAdwordsCampaignByCampaignId_args)other;
8543
 
8544
      lastComparison = Boolean.valueOf(isSetCampaignId()).compareTo(typedOther.isSetCampaignId());
8545
      if (lastComparison != 0) {
8546
        return lastComparison;
8547
      }
8548
      if (isSetCampaignId()) {
8549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignId, typedOther.campaignId);
8550
        if (lastComparison != 0) {
8551
          return lastComparison;
8552
        }
8553
      }
8554
      return 0;
8555
    }
8556
 
8557
    public _Fields fieldForId(int fieldId) {
8558
      return _Fields.findByThriftId(fieldId);
8559
    }
8560
 
8561
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8562
      org.apache.thrift.protocol.TField field;
8563
      iprot.readStructBegin();
8564
      while (true)
8565
      {
8566
        field = iprot.readFieldBegin();
8567
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8568
          break;
8569
        }
8570
        switch (field.id) {
8571
          case 1: // CAMPAIGN_ID
8572
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8573
              this.campaignId = iprot.readI64();
8574
              setCampaignIdIsSet(true);
8575
            } else { 
8576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8577
            }
8578
            break;
8579
          default:
8580
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8581
        }
8582
        iprot.readFieldEnd();
8583
      }
8584
      iprot.readStructEnd();
8585
      validate();
8586
    }
8587
 
8588
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8589
      validate();
8590
 
8591
      oprot.writeStructBegin(STRUCT_DESC);
8592
      oprot.writeFieldBegin(CAMPAIGN_ID_FIELD_DESC);
8593
      oprot.writeI64(this.campaignId);
8594
      oprot.writeFieldEnd();
8595
      oprot.writeFieldStop();
8596
      oprot.writeStructEnd();
8597
    }
8598
 
8599
    @Override
8600
    public String toString() {
8601
      StringBuilder sb = new StringBuilder("getAdwordsCampaignByCampaignId_args(");
8602
      boolean first = true;
8603
 
8604
      sb.append("campaignId:");
8605
      sb.append(this.campaignId);
8606
      first = false;
8607
      sb.append(")");
8608
      return sb.toString();
8609
    }
8610
 
8611
    public void validate() throws org.apache.thrift.TException {
8612
      // check for required fields
8613
    }
8614
 
8615
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8616
      try {
8617
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8618
      } catch (org.apache.thrift.TException te) {
8619
        throw new java.io.IOException(te);
8620
      }
8621
    }
8622
 
8623
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8624
      try {
8625
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8626
        __isset_bit_vector = new BitSet(1);
8627
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8628
      } catch (org.apache.thrift.TException te) {
8629
        throw new java.io.IOException(te);
8630
      }
8631
    }
8632
 
8633
  }
8634
 
8635
  public static class getAdwordsCampaignByCampaignId_result implements org.apache.thrift.TBase<getAdwordsCampaignByCampaignId_result, getAdwordsCampaignByCampaignId_result._Fields>, java.io.Serializable, Cloneable   {
8636
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsCampaignByCampaignId_result");
8637
 
8638
    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);
8639
    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);
8640
 
8641
    private AdwordsCampaign success; // required
8642
    private GoogleAdwordsServiceException gasex; // required
8643
 
8644
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8645
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8646
      SUCCESS((short)0, "success"),
8647
      GASEX((short)1, "gasex");
8648
 
8649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8650
 
8651
      static {
8652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8653
          byName.put(field.getFieldName(), field);
8654
        }
8655
      }
8656
 
8657
      /**
8658
       * Find the _Fields constant that matches fieldId, or null if its not found.
8659
       */
8660
      public static _Fields findByThriftId(int fieldId) {
8661
        switch(fieldId) {
8662
          case 0: // SUCCESS
8663
            return SUCCESS;
8664
          case 1: // GASEX
8665
            return GASEX;
8666
          default:
8667
            return null;
8668
        }
8669
      }
8670
 
8671
      /**
8672
       * Find the _Fields constant that matches fieldId, throwing an exception
8673
       * if it is not found.
8674
       */
8675
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8676
        _Fields fields = findByThriftId(fieldId);
8677
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8678
        return fields;
8679
      }
8680
 
8681
      /**
8682
       * Find the _Fields constant that matches name, or null if its not found.
8683
       */
8684
      public static _Fields findByName(String name) {
8685
        return byName.get(name);
8686
      }
8687
 
8688
      private final short _thriftId;
8689
      private final String _fieldName;
8690
 
8691
      _Fields(short thriftId, String fieldName) {
8692
        _thriftId = thriftId;
8693
        _fieldName = fieldName;
8694
      }
8695
 
8696
      public short getThriftFieldId() {
8697
        return _thriftId;
8698
      }
8699
 
8700
      public String getFieldName() {
8701
        return _fieldName;
8702
      }
8703
    }
8704
 
8705
    // isset id assignments
8706
 
8707
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8708
    static {
8709
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8710
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8711
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class)));
8712
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8714
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8715
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsCampaignByCampaignId_result.class, metaDataMap);
8716
    }
8717
 
8718
    public getAdwordsCampaignByCampaignId_result() {
8719
    }
8720
 
8721
    public getAdwordsCampaignByCampaignId_result(
8722
      AdwordsCampaign success,
8723
      GoogleAdwordsServiceException gasex)
8724
    {
8725
      this();
8726
      this.success = success;
8727
      this.gasex = gasex;
8728
    }
8729
 
8730
    /**
8731
     * Performs a deep copy on <i>other</i>.
8732
     */
8733
    public getAdwordsCampaignByCampaignId_result(getAdwordsCampaignByCampaignId_result other) {
8734
      if (other.isSetSuccess()) {
8735
        this.success = new AdwordsCampaign(other.success);
8736
      }
8737
      if (other.isSetGasex()) {
8738
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
8739
      }
8740
    }
8741
 
8742
    public getAdwordsCampaignByCampaignId_result deepCopy() {
8743
      return new getAdwordsCampaignByCampaignId_result(this);
8744
    }
8745
 
8746
    @Override
8747
    public void clear() {
8748
      this.success = null;
8749
      this.gasex = null;
8750
    }
8751
 
8752
    public AdwordsCampaign getSuccess() {
8753
      return this.success;
8754
    }
8755
 
8756
    public void setSuccess(AdwordsCampaign success) {
8757
      this.success = success;
8758
    }
8759
 
8760
    public void unsetSuccess() {
8761
      this.success = null;
8762
    }
8763
 
8764
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8765
    public boolean isSetSuccess() {
8766
      return this.success != null;
8767
    }
8768
 
8769
    public void setSuccessIsSet(boolean value) {
8770
      if (!value) {
8771
        this.success = null;
8772
      }
8773
    }
8774
 
8775
    public GoogleAdwordsServiceException getGasex() {
8776
      return this.gasex;
8777
    }
8778
 
8779
    public void setGasex(GoogleAdwordsServiceException gasex) {
8780
      this.gasex = gasex;
8781
    }
8782
 
8783
    public void unsetGasex() {
8784
      this.gasex = null;
8785
    }
8786
 
8787
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
8788
    public boolean isSetGasex() {
8789
      return this.gasex != null;
8790
    }
8791
 
8792
    public void setGasexIsSet(boolean value) {
8793
      if (!value) {
8794
        this.gasex = null;
8795
      }
8796
    }
8797
 
8798
    public void setFieldValue(_Fields field, Object value) {
8799
      switch (field) {
8800
      case SUCCESS:
8801
        if (value == null) {
8802
          unsetSuccess();
8803
        } else {
8804
          setSuccess((AdwordsCampaign)value);
8805
        }
8806
        break;
8807
 
8808
      case GASEX:
8809
        if (value == null) {
8810
          unsetGasex();
8811
        } else {
8812
          setGasex((GoogleAdwordsServiceException)value);
8813
        }
8814
        break;
8815
 
8816
      }
8817
    }
8818
 
8819
    public Object getFieldValue(_Fields field) {
8820
      switch (field) {
8821
      case SUCCESS:
8822
        return getSuccess();
8823
 
8824
      case GASEX:
8825
        return getGasex();
8826
 
8827
      }
8828
      throw new IllegalStateException();
8829
    }
8830
 
8831
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8832
    public boolean isSet(_Fields field) {
8833
      if (field == null) {
8834
        throw new IllegalArgumentException();
8835
      }
8836
 
8837
      switch (field) {
8838
      case SUCCESS:
8839
        return isSetSuccess();
8840
      case GASEX:
8841
        return isSetGasex();
8842
      }
8843
      throw new IllegalStateException();
8844
    }
8845
 
8846
    @Override
8847
    public boolean equals(Object that) {
8848
      if (that == null)
8849
        return false;
8850
      if (that instanceof getAdwordsCampaignByCampaignId_result)
8851
        return this.equals((getAdwordsCampaignByCampaignId_result)that);
8852
      return false;
8853
    }
8854
 
8855
    public boolean equals(getAdwordsCampaignByCampaignId_result that) {
8856
      if (that == null)
8857
        return false;
8858
 
8859
      boolean this_present_success = true && this.isSetSuccess();
8860
      boolean that_present_success = true && that.isSetSuccess();
8861
      if (this_present_success || that_present_success) {
8862
        if (!(this_present_success && that_present_success))
8863
          return false;
8864
        if (!this.success.equals(that.success))
8865
          return false;
8866
      }
8867
 
8868
      boolean this_present_gasex = true && this.isSetGasex();
8869
      boolean that_present_gasex = true && that.isSetGasex();
8870
      if (this_present_gasex || that_present_gasex) {
8871
        if (!(this_present_gasex && that_present_gasex))
8872
          return false;
8873
        if (!this.gasex.equals(that.gasex))
8874
          return false;
8875
      }
8876
 
8877
      return true;
8878
    }
8879
 
8880
    @Override
8881
    public int hashCode() {
8882
      return 0;
8883
    }
8884
 
8885
    public int compareTo(getAdwordsCampaignByCampaignId_result other) {
8886
      if (!getClass().equals(other.getClass())) {
8887
        return getClass().getName().compareTo(other.getClass().getName());
8888
      }
8889
 
8890
      int lastComparison = 0;
8891
      getAdwordsCampaignByCampaignId_result typedOther = (getAdwordsCampaignByCampaignId_result)other;
8892
 
8893
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8894
      if (lastComparison != 0) {
8895
        return lastComparison;
8896
      }
8897
      if (isSetSuccess()) {
8898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8899
        if (lastComparison != 0) {
8900
          return lastComparison;
8901
        }
8902
      }
8903
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
8904
      if (lastComparison != 0) {
8905
        return lastComparison;
8906
      }
8907
      if (isSetGasex()) {
8908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
8909
        if (lastComparison != 0) {
8910
          return lastComparison;
8911
        }
8912
      }
8913
      return 0;
8914
    }
8915
 
8916
    public _Fields fieldForId(int fieldId) {
8917
      return _Fields.findByThriftId(fieldId);
8918
    }
8919
 
8920
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8921
      org.apache.thrift.protocol.TField field;
8922
      iprot.readStructBegin();
8923
      while (true)
8924
      {
8925
        field = iprot.readFieldBegin();
8926
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8927
          break;
8928
        }
8929
        switch (field.id) {
8930
          case 0: // SUCCESS
8931
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8932
              this.success = new AdwordsCampaign();
8933
              this.success.read(iprot);
8934
            } else { 
8935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8936
            }
8937
            break;
8938
          case 1: // GASEX
8939
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8940
              this.gasex = new GoogleAdwordsServiceException();
8941
              this.gasex.read(iprot);
8942
            } else { 
8943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8944
            }
8945
            break;
8946
          default:
8947
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8948
        }
8949
        iprot.readFieldEnd();
8950
      }
8951
      iprot.readStructEnd();
8952
      validate();
8953
    }
8954
 
8955
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8956
      oprot.writeStructBegin(STRUCT_DESC);
8957
 
8958
      if (this.isSetSuccess()) {
8959
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8960
        this.success.write(oprot);
8961
        oprot.writeFieldEnd();
8962
      } else if (this.isSetGasex()) {
8963
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
8964
        this.gasex.write(oprot);
8965
        oprot.writeFieldEnd();
8966
      }
8967
      oprot.writeFieldStop();
8968
      oprot.writeStructEnd();
8969
    }
8970
 
8971
    @Override
8972
    public String toString() {
8973
      StringBuilder sb = new StringBuilder("getAdwordsCampaignByCampaignId_result(");
8974
      boolean first = true;
8975
 
8976
      sb.append("success:");
8977
      if (this.success == null) {
8978
        sb.append("null");
8979
      } else {
8980
        sb.append(this.success);
8981
      }
8982
      first = false;
8983
      if (!first) sb.append(", ");
8984
      sb.append("gasex:");
8985
      if (this.gasex == null) {
8986
        sb.append("null");
8987
      } else {
8988
        sb.append(this.gasex);
8989
      }
8990
      first = false;
8991
      sb.append(")");
8992
      return sb.toString();
8993
    }
8994
 
8995
    public void validate() throws org.apache.thrift.TException {
8996
      // check for required fields
8997
    }
8998
 
8999
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9000
      try {
9001
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9002
      } catch (org.apache.thrift.TException te) {
9003
        throw new java.io.IOException(te);
9004
      }
9005
    }
9006
 
9007
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9008
      try {
9009
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9010
      } catch (org.apache.thrift.TException te) {
9011
        throw new java.io.IOException(te);
9012
      }
9013
    }
9014
 
9015
  }
9016
 
9017
  public static class getAdwordsAdGroupByAdGroupId_args implements org.apache.thrift.TBase<getAdwordsAdGroupByAdGroupId_args, getAdwordsAdGroupByAdGroupId_args._Fields>, java.io.Serializable, Cloneable   {
9018
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupByAdGroupId_args");
9019
 
9020
    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);
9021
 
9022
    private long adgroupId; // required
9023
 
9024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9026
      ADGROUP_ID((short)1, "adgroupId");
9027
 
9028
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9029
 
9030
      static {
9031
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9032
          byName.put(field.getFieldName(), field);
9033
        }
9034
      }
9035
 
9036
      /**
9037
       * Find the _Fields constant that matches fieldId, or null if its not found.
9038
       */
9039
      public static _Fields findByThriftId(int fieldId) {
9040
        switch(fieldId) {
9041
          case 1: // ADGROUP_ID
9042
            return ADGROUP_ID;
9043
          default:
9044
            return null;
9045
        }
9046
      }
9047
 
9048
      /**
9049
       * Find the _Fields constant that matches fieldId, throwing an exception
9050
       * if it is not found.
9051
       */
9052
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9053
        _Fields fields = findByThriftId(fieldId);
9054
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9055
        return fields;
9056
      }
9057
 
9058
      /**
9059
       * Find the _Fields constant that matches name, or null if its not found.
9060
       */
9061
      public static _Fields findByName(String name) {
9062
        return byName.get(name);
9063
      }
9064
 
9065
      private final short _thriftId;
9066
      private final String _fieldName;
9067
 
9068
      _Fields(short thriftId, String fieldName) {
9069
        _thriftId = thriftId;
9070
        _fieldName = fieldName;
9071
      }
9072
 
9073
      public short getThriftFieldId() {
9074
        return _thriftId;
9075
      }
9076
 
9077
      public String getFieldName() {
9078
        return _fieldName;
9079
      }
9080
    }
9081
 
9082
    // isset id assignments
9083
    private static final int __ADGROUPID_ISSET_ID = 0;
9084
    private BitSet __isset_bit_vector = new BitSet(1);
9085
 
9086
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9087
    static {
9088
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9089
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupByAdGroupId_args.class, metaDataMap);
9093
    }
9094
 
9095
    public getAdwordsAdGroupByAdGroupId_args() {
9096
    }
9097
 
9098
    public getAdwordsAdGroupByAdGroupId_args(
9099
      long adgroupId)
9100
    {
9101
      this();
9102
      this.adgroupId = adgroupId;
9103
      setAdgroupIdIsSet(true);
9104
    }
9105
 
9106
    /**
9107
     * Performs a deep copy on <i>other</i>.
9108
     */
9109
    public getAdwordsAdGroupByAdGroupId_args(getAdwordsAdGroupByAdGroupId_args other) {
9110
      __isset_bit_vector.clear();
9111
      __isset_bit_vector.or(other.__isset_bit_vector);
9112
      this.adgroupId = other.adgroupId;
9113
    }
9114
 
9115
    public getAdwordsAdGroupByAdGroupId_args deepCopy() {
9116
      return new getAdwordsAdGroupByAdGroupId_args(this);
9117
    }
9118
 
9119
    @Override
9120
    public void clear() {
9121
      setAdgroupIdIsSet(false);
9122
      this.adgroupId = 0;
9123
    }
9124
 
9125
    public long getAdgroupId() {
9126
      return this.adgroupId;
9127
    }
9128
 
9129
    public void setAdgroupId(long adgroupId) {
9130
      this.adgroupId = adgroupId;
9131
      setAdgroupIdIsSet(true);
9132
    }
9133
 
9134
    public void unsetAdgroupId() {
9135
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
9136
    }
9137
 
9138
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
9139
    public boolean isSetAdgroupId() {
9140
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
9141
    }
9142
 
9143
    public void setAdgroupIdIsSet(boolean value) {
9144
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
9145
    }
9146
 
9147
    public void setFieldValue(_Fields field, Object value) {
9148
      switch (field) {
9149
      case ADGROUP_ID:
9150
        if (value == null) {
9151
          unsetAdgroupId();
9152
        } else {
9153
          setAdgroupId((Long)value);
9154
        }
9155
        break;
9156
 
9157
      }
9158
    }
9159
 
9160
    public Object getFieldValue(_Fields field) {
9161
      switch (field) {
9162
      case ADGROUP_ID:
9163
        return Long.valueOf(getAdgroupId());
9164
 
9165
      }
9166
      throw new IllegalStateException();
9167
    }
9168
 
9169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9170
    public boolean isSet(_Fields field) {
9171
      if (field == null) {
9172
        throw new IllegalArgumentException();
9173
      }
9174
 
9175
      switch (field) {
9176
      case ADGROUP_ID:
9177
        return isSetAdgroupId();
9178
      }
9179
      throw new IllegalStateException();
9180
    }
9181
 
9182
    @Override
9183
    public boolean equals(Object that) {
9184
      if (that == null)
9185
        return false;
9186
      if (that instanceof getAdwordsAdGroupByAdGroupId_args)
9187
        return this.equals((getAdwordsAdGroupByAdGroupId_args)that);
9188
      return false;
9189
    }
9190
 
9191
    public boolean equals(getAdwordsAdGroupByAdGroupId_args that) {
9192
      if (that == null)
9193
        return false;
9194
 
9195
      boolean this_present_adgroupId = true;
9196
      boolean that_present_adgroupId = true;
9197
      if (this_present_adgroupId || that_present_adgroupId) {
9198
        if (!(this_present_adgroupId && that_present_adgroupId))
9199
          return false;
9200
        if (this.adgroupId != that.adgroupId)
9201
          return false;
9202
      }
9203
 
9204
      return true;
9205
    }
9206
 
9207
    @Override
9208
    public int hashCode() {
9209
      return 0;
9210
    }
9211
 
9212
    public int compareTo(getAdwordsAdGroupByAdGroupId_args other) {
9213
      if (!getClass().equals(other.getClass())) {
9214
        return getClass().getName().compareTo(other.getClass().getName());
9215
      }
9216
 
9217
      int lastComparison = 0;
9218
      getAdwordsAdGroupByAdGroupId_args typedOther = (getAdwordsAdGroupByAdGroupId_args)other;
9219
 
9220
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
9221
      if (lastComparison != 0) {
9222
        return lastComparison;
9223
      }
9224
      if (isSetAdgroupId()) {
9225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
9226
        if (lastComparison != 0) {
9227
          return lastComparison;
9228
        }
9229
      }
9230
      return 0;
9231
    }
9232
 
9233
    public _Fields fieldForId(int fieldId) {
9234
      return _Fields.findByThriftId(fieldId);
9235
    }
9236
 
9237
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9238
      org.apache.thrift.protocol.TField field;
9239
      iprot.readStructBegin();
9240
      while (true)
9241
      {
9242
        field = iprot.readFieldBegin();
9243
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9244
          break;
9245
        }
9246
        switch (field.id) {
9247
          case 1: // ADGROUP_ID
9248
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9249
              this.adgroupId = iprot.readI64();
9250
              setAdgroupIdIsSet(true);
9251
            } else { 
9252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9253
            }
9254
            break;
9255
          default:
9256
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9257
        }
9258
        iprot.readFieldEnd();
9259
      }
9260
      iprot.readStructEnd();
9261
      validate();
9262
    }
9263
 
9264
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9265
      validate();
9266
 
9267
      oprot.writeStructBegin(STRUCT_DESC);
9268
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
9269
      oprot.writeI64(this.adgroupId);
9270
      oprot.writeFieldEnd();
9271
      oprot.writeFieldStop();
9272
      oprot.writeStructEnd();
9273
    }
9274
 
9275
    @Override
9276
    public String toString() {
9277
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupByAdGroupId_args(");
9278
      boolean first = true;
9279
 
9280
      sb.append("adgroupId:");
9281
      sb.append(this.adgroupId);
9282
      first = false;
9283
      sb.append(")");
9284
      return sb.toString();
9285
    }
9286
 
9287
    public void validate() throws org.apache.thrift.TException {
9288
      // check for required fields
9289
    }
9290
 
9291
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9292
      try {
9293
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9294
      } catch (org.apache.thrift.TException te) {
9295
        throw new java.io.IOException(te);
9296
      }
9297
    }
9298
 
9299
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9300
      try {
9301
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9302
        __isset_bit_vector = new BitSet(1);
9303
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9304
      } catch (org.apache.thrift.TException te) {
9305
        throw new java.io.IOException(te);
9306
      }
9307
    }
9308
 
9309
  }
9310
 
9311
  public static class getAdwordsAdGroupByAdGroupId_result implements org.apache.thrift.TBase<getAdwordsAdGroupByAdGroupId_result, getAdwordsAdGroupByAdGroupId_result._Fields>, java.io.Serializable, Cloneable   {
9312
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupByAdGroupId_result");
9313
 
9314
    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);
9315
    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);
9316
 
9317
    private AdwordsAdGroup success; // required
9318
    private GoogleAdwordsServiceException gasex; // required
9319
 
9320
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9321
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9322
      SUCCESS((short)0, "success"),
9323
      GASEX((short)1, "gasex");
9324
 
9325
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9326
 
9327
      static {
9328
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9329
          byName.put(field.getFieldName(), field);
9330
        }
9331
      }
9332
 
9333
      /**
9334
       * Find the _Fields constant that matches fieldId, or null if its not found.
9335
       */
9336
      public static _Fields findByThriftId(int fieldId) {
9337
        switch(fieldId) {
9338
          case 0: // SUCCESS
9339
            return SUCCESS;
9340
          case 1: // GASEX
9341
            return GASEX;
9342
          default:
9343
            return null;
9344
        }
9345
      }
9346
 
9347
      /**
9348
       * Find the _Fields constant that matches fieldId, throwing an exception
9349
       * if it is not found.
9350
       */
9351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9352
        _Fields fields = findByThriftId(fieldId);
9353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9354
        return fields;
9355
      }
9356
 
9357
      /**
9358
       * Find the _Fields constant that matches name, or null if its not found.
9359
       */
9360
      public static _Fields findByName(String name) {
9361
        return byName.get(name);
9362
      }
9363
 
9364
      private final short _thriftId;
9365
      private final String _fieldName;
9366
 
9367
      _Fields(short thriftId, String fieldName) {
9368
        _thriftId = thriftId;
9369
        _fieldName = fieldName;
9370
      }
9371
 
9372
      public short getThriftFieldId() {
9373
        return _thriftId;
9374
      }
9375
 
9376
      public String getFieldName() {
9377
        return _fieldName;
9378
      }
9379
    }
9380
 
9381
    // isset id assignments
9382
 
9383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9384
    static {
9385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9386
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9387
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class)));
9388
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupByAdGroupId_result.class, metaDataMap);
9392
    }
9393
 
9394
    public getAdwordsAdGroupByAdGroupId_result() {
9395
    }
9396
 
9397
    public getAdwordsAdGroupByAdGroupId_result(
9398
      AdwordsAdGroup success,
9399
      GoogleAdwordsServiceException gasex)
9400
    {
9401
      this();
9402
      this.success = success;
9403
      this.gasex = gasex;
9404
    }
9405
 
9406
    /**
9407
     * Performs a deep copy on <i>other</i>.
9408
     */
9409
    public getAdwordsAdGroupByAdGroupId_result(getAdwordsAdGroupByAdGroupId_result other) {
9410
      if (other.isSetSuccess()) {
9411
        this.success = new AdwordsAdGroup(other.success);
9412
      }
9413
      if (other.isSetGasex()) {
9414
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
9415
      }
9416
    }
9417
 
9418
    public getAdwordsAdGroupByAdGroupId_result deepCopy() {
9419
      return new getAdwordsAdGroupByAdGroupId_result(this);
9420
    }
9421
 
9422
    @Override
9423
    public void clear() {
9424
      this.success = null;
9425
      this.gasex = null;
9426
    }
9427
 
9428
    public AdwordsAdGroup getSuccess() {
9429
      return this.success;
9430
    }
9431
 
9432
    public void setSuccess(AdwordsAdGroup success) {
9433
      this.success = success;
9434
    }
9435
 
9436
    public void unsetSuccess() {
9437
      this.success = null;
9438
    }
9439
 
9440
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9441
    public boolean isSetSuccess() {
9442
      return this.success != null;
9443
    }
9444
 
9445
    public void setSuccessIsSet(boolean value) {
9446
      if (!value) {
9447
        this.success = null;
9448
      }
9449
    }
9450
 
9451
    public GoogleAdwordsServiceException getGasex() {
9452
      return this.gasex;
9453
    }
9454
 
9455
    public void setGasex(GoogleAdwordsServiceException gasex) {
9456
      this.gasex = gasex;
9457
    }
9458
 
9459
    public void unsetGasex() {
9460
      this.gasex = null;
9461
    }
9462
 
9463
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
9464
    public boolean isSetGasex() {
9465
      return this.gasex != null;
9466
    }
9467
 
9468
    public void setGasexIsSet(boolean value) {
9469
      if (!value) {
9470
        this.gasex = null;
9471
      }
9472
    }
9473
 
9474
    public void setFieldValue(_Fields field, Object value) {
9475
      switch (field) {
9476
      case SUCCESS:
9477
        if (value == null) {
9478
          unsetSuccess();
9479
        } else {
9480
          setSuccess((AdwordsAdGroup)value);
9481
        }
9482
        break;
9483
 
9484
      case GASEX:
9485
        if (value == null) {
9486
          unsetGasex();
9487
        } else {
9488
          setGasex((GoogleAdwordsServiceException)value);
9489
        }
9490
        break;
9491
 
9492
      }
9493
    }
9494
 
9495
    public Object getFieldValue(_Fields field) {
9496
      switch (field) {
9497
      case SUCCESS:
9498
        return getSuccess();
9499
 
9500
      case GASEX:
9501
        return getGasex();
9502
 
9503
      }
9504
      throw new IllegalStateException();
9505
    }
9506
 
9507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9508
    public boolean isSet(_Fields field) {
9509
      if (field == null) {
9510
        throw new IllegalArgumentException();
9511
      }
9512
 
9513
      switch (field) {
9514
      case SUCCESS:
9515
        return isSetSuccess();
9516
      case GASEX:
9517
        return isSetGasex();
9518
      }
9519
      throw new IllegalStateException();
9520
    }
9521
 
9522
    @Override
9523
    public boolean equals(Object that) {
9524
      if (that == null)
9525
        return false;
9526
      if (that instanceof getAdwordsAdGroupByAdGroupId_result)
9527
        return this.equals((getAdwordsAdGroupByAdGroupId_result)that);
9528
      return false;
9529
    }
9530
 
9531
    public boolean equals(getAdwordsAdGroupByAdGroupId_result that) {
9532
      if (that == null)
9533
        return false;
9534
 
9535
      boolean this_present_success = true && this.isSetSuccess();
9536
      boolean that_present_success = true && that.isSetSuccess();
9537
      if (this_present_success || that_present_success) {
9538
        if (!(this_present_success && that_present_success))
9539
          return false;
9540
        if (!this.success.equals(that.success))
9541
          return false;
9542
      }
9543
 
9544
      boolean this_present_gasex = true && this.isSetGasex();
9545
      boolean that_present_gasex = true && that.isSetGasex();
9546
      if (this_present_gasex || that_present_gasex) {
9547
        if (!(this_present_gasex && that_present_gasex))
9548
          return false;
9549
        if (!this.gasex.equals(that.gasex))
9550
          return false;
9551
      }
9552
 
9553
      return true;
9554
    }
9555
 
9556
    @Override
9557
    public int hashCode() {
9558
      return 0;
9559
    }
9560
 
9561
    public int compareTo(getAdwordsAdGroupByAdGroupId_result other) {
9562
      if (!getClass().equals(other.getClass())) {
9563
        return getClass().getName().compareTo(other.getClass().getName());
9564
      }
9565
 
9566
      int lastComparison = 0;
9567
      getAdwordsAdGroupByAdGroupId_result typedOther = (getAdwordsAdGroupByAdGroupId_result)other;
9568
 
9569
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9570
      if (lastComparison != 0) {
9571
        return lastComparison;
9572
      }
9573
      if (isSetSuccess()) {
9574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9575
        if (lastComparison != 0) {
9576
          return lastComparison;
9577
        }
9578
      }
9579
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
9580
      if (lastComparison != 0) {
9581
        return lastComparison;
9582
      }
9583
      if (isSetGasex()) {
9584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
9585
        if (lastComparison != 0) {
9586
          return lastComparison;
9587
        }
9588
      }
9589
      return 0;
9590
    }
9591
 
9592
    public _Fields fieldForId(int fieldId) {
9593
      return _Fields.findByThriftId(fieldId);
9594
    }
9595
 
9596
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9597
      org.apache.thrift.protocol.TField field;
9598
      iprot.readStructBegin();
9599
      while (true)
9600
      {
9601
        field = iprot.readFieldBegin();
9602
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9603
          break;
9604
        }
9605
        switch (field.id) {
9606
          case 0: // SUCCESS
9607
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9608
              this.success = new AdwordsAdGroup();
9609
              this.success.read(iprot);
9610
            } else { 
9611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9612
            }
9613
            break;
9614
          case 1: // GASEX
9615
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9616
              this.gasex = new GoogleAdwordsServiceException();
9617
              this.gasex.read(iprot);
9618
            } else { 
9619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9620
            }
9621
            break;
9622
          default:
9623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9624
        }
9625
        iprot.readFieldEnd();
9626
      }
9627
      iprot.readStructEnd();
9628
      validate();
9629
    }
9630
 
9631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9632
      oprot.writeStructBegin(STRUCT_DESC);
9633
 
9634
      if (this.isSetSuccess()) {
9635
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9636
        this.success.write(oprot);
9637
        oprot.writeFieldEnd();
9638
      } else if (this.isSetGasex()) {
9639
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
9640
        this.gasex.write(oprot);
9641
        oprot.writeFieldEnd();
9642
      }
9643
      oprot.writeFieldStop();
9644
      oprot.writeStructEnd();
9645
    }
9646
 
9647
    @Override
9648
    public String toString() {
9649
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupByAdGroupId_result(");
9650
      boolean first = true;
9651
 
9652
      sb.append("success:");
9653
      if (this.success == null) {
9654
        sb.append("null");
9655
      } else {
9656
        sb.append(this.success);
9657
      }
9658
      first = false;
9659
      if (!first) sb.append(", ");
9660
      sb.append("gasex:");
9661
      if (this.gasex == null) {
9662
        sb.append("null");
9663
      } else {
9664
        sb.append(this.gasex);
9665
      }
9666
      first = false;
9667
      sb.append(")");
9668
      return sb.toString();
9669
    }
9670
 
9671
    public void validate() throws org.apache.thrift.TException {
9672
      // check for required fields
9673
    }
9674
 
9675
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9676
      try {
9677
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9678
      } catch (org.apache.thrift.TException te) {
9679
        throw new java.io.IOException(te);
9680
      }
9681
    }
9682
 
9683
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9684
      try {
9685
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9686
      } catch (org.apache.thrift.TException te) {
9687
        throw new java.io.IOException(te);
9688
      }
9689
    }
9690
 
9691
  }
9692
 
9693
  public static class getAdwordsAdgroupAdByAdId_args implements org.apache.thrift.TBase<getAdwordsAdgroupAdByAdId_args, getAdwordsAdgroupAdByAdId_args._Fields>, java.io.Serializable, Cloneable   {
9694
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdgroupAdByAdId_args");
9695
 
9696
    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);
9697
 
9698
    private long adgroupadId; // required
9699
 
9700
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9701
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9702
      ADGROUPAD_ID((short)1, "adgroupadId");
9703
 
9704
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9705
 
9706
      static {
9707
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9708
          byName.put(field.getFieldName(), field);
9709
        }
9710
      }
9711
 
9712
      /**
9713
       * Find the _Fields constant that matches fieldId, or null if its not found.
9714
       */
9715
      public static _Fields findByThriftId(int fieldId) {
9716
        switch(fieldId) {
9717
          case 1: // ADGROUPAD_ID
9718
            return ADGROUPAD_ID;
9719
          default:
9720
            return null;
9721
        }
9722
      }
9723
 
9724
      /**
9725
       * Find the _Fields constant that matches fieldId, throwing an exception
9726
       * if it is not found.
9727
       */
9728
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9729
        _Fields fields = findByThriftId(fieldId);
9730
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9731
        return fields;
9732
      }
9733
 
9734
      /**
9735
       * Find the _Fields constant that matches name, or null if its not found.
9736
       */
9737
      public static _Fields findByName(String name) {
9738
        return byName.get(name);
9739
      }
9740
 
9741
      private final short _thriftId;
9742
      private final String _fieldName;
9743
 
9744
      _Fields(short thriftId, String fieldName) {
9745
        _thriftId = thriftId;
9746
        _fieldName = fieldName;
9747
      }
9748
 
9749
      public short getThriftFieldId() {
9750
        return _thriftId;
9751
      }
9752
 
9753
      public String getFieldName() {
9754
        return _fieldName;
9755
      }
9756
    }
9757
 
9758
    // isset id assignments
9759
    private static final int __ADGROUPADID_ISSET_ID = 0;
9760
    private BitSet __isset_bit_vector = new BitSet(1);
9761
 
9762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9763
    static {
9764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9765
      tmpMap.put(_Fields.ADGROUPAD_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupadId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9766
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9767
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9768
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdgroupAdByAdId_args.class, metaDataMap);
9769
    }
9770
 
9771
    public getAdwordsAdgroupAdByAdId_args() {
9772
    }
9773
 
9774
    public getAdwordsAdgroupAdByAdId_args(
9775
      long adgroupadId)
9776
    {
9777
      this();
9778
      this.adgroupadId = adgroupadId;
9779
      setAdgroupadIdIsSet(true);
9780
    }
9781
 
9782
    /**
9783
     * Performs a deep copy on <i>other</i>.
9784
     */
9785
    public getAdwordsAdgroupAdByAdId_args(getAdwordsAdgroupAdByAdId_args other) {
9786
      __isset_bit_vector.clear();
9787
      __isset_bit_vector.or(other.__isset_bit_vector);
9788
      this.adgroupadId = other.adgroupadId;
9789
    }
9790
 
9791
    public getAdwordsAdgroupAdByAdId_args deepCopy() {
9792
      return new getAdwordsAdgroupAdByAdId_args(this);
9793
    }
9794
 
9795
    @Override
9796
    public void clear() {
9797
      setAdgroupadIdIsSet(false);
9798
      this.adgroupadId = 0;
9799
    }
9800
 
9801
    public long getAdgroupadId() {
9802
      return this.adgroupadId;
9803
    }
9804
 
9805
    public void setAdgroupadId(long adgroupadId) {
9806
      this.adgroupadId = adgroupadId;
9807
      setAdgroupadIdIsSet(true);
9808
    }
9809
 
9810
    public void unsetAdgroupadId() {
9811
      __isset_bit_vector.clear(__ADGROUPADID_ISSET_ID);
9812
    }
9813
 
9814
    /** Returns true if field adgroupadId is set (has been assigned a value) and false otherwise */
9815
    public boolean isSetAdgroupadId() {
9816
      return __isset_bit_vector.get(__ADGROUPADID_ISSET_ID);
9817
    }
9818
 
9819
    public void setAdgroupadIdIsSet(boolean value) {
9820
      __isset_bit_vector.set(__ADGROUPADID_ISSET_ID, value);
9821
    }
9822
 
9823
    public void setFieldValue(_Fields field, Object value) {
9824
      switch (field) {
9825
      case ADGROUPAD_ID:
9826
        if (value == null) {
9827
          unsetAdgroupadId();
9828
        } else {
9829
          setAdgroupadId((Long)value);
9830
        }
9831
        break;
9832
 
9833
      }
9834
    }
9835
 
9836
    public Object getFieldValue(_Fields field) {
9837
      switch (field) {
9838
      case ADGROUPAD_ID:
9839
        return Long.valueOf(getAdgroupadId());
9840
 
9841
      }
9842
      throw new IllegalStateException();
9843
    }
9844
 
9845
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9846
    public boolean isSet(_Fields field) {
9847
      if (field == null) {
9848
        throw new IllegalArgumentException();
9849
      }
9850
 
9851
      switch (field) {
9852
      case ADGROUPAD_ID:
9853
        return isSetAdgroupadId();
9854
      }
9855
      throw new IllegalStateException();
9856
    }
9857
 
9858
    @Override
9859
    public boolean equals(Object that) {
9860
      if (that == null)
9861
        return false;
9862
      if (that instanceof getAdwordsAdgroupAdByAdId_args)
9863
        return this.equals((getAdwordsAdgroupAdByAdId_args)that);
9864
      return false;
9865
    }
9866
 
9867
    public boolean equals(getAdwordsAdgroupAdByAdId_args that) {
9868
      if (that == null)
9869
        return false;
9870
 
9871
      boolean this_present_adgroupadId = true;
9872
      boolean that_present_adgroupadId = true;
9873
      if (this_present_adgroupadId || that_present_adgroupadId) {
9874
        if (!(this_present_adgroupadId && that_present_adgroupadId))
9875
          return false;
9876
        if (this.adgroupadId != that.adgroupadId)
9877
          return false;
9878
      }
9879
 
9880
      return true;
9881
    }
9882
 
9883
    @Override
9884
    public int hashCode() {
9885
      return 0;
9886
    }
9887
 
9888
    public int compareTo(getAdwordsAdgroupAdByAdId_args other) {
9889
      if (!getClass().equals(other.getClass())) {
9890
        return getClass().getName().compareTo(other.getClass().getName());
9891
      }
9892
 
9893
      int lastComparison = 0;
9894
      getAdwordsAdgroupAdByAdId_args typedOther = (getAdwordsAdgroupAdByAdId_args)other;
9895
 
9896
      lastComparison = Boolean.valueOf(isSetAdgroupadId()).compareTo(typedOther.isSetAdgroupadId());
9897
      if (lastComparison != 0) {
9898
        return lastComparison;
9899
      }
9900
      if (isSetAdgroupadId()) {
9901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupadId, typedOther.adgroupadId);
9902
        if (lastComparison != 0) {
9903
          return lastComparison;
9904
        }
9905
      }
9906
      return 0;
9907
    }
9908
 
9909
    public _Fields fieldForId(int fieldId) {
9910
      return _Fields.findByThriftId(fieldId);
9911
    }
9912
 
9913
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9914
      org.apache.thrift.protocol.TField field;
9915
      iprot.readStructBegin();
9916
      while (true)
9917
      {
9918
        field = iprot.readFieldBegin();
9919
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9920
          break;
9921
        }
9922
        switch (field.id) {
9923
          case 1: // ADGROUPAD_ID
9924
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9925
              this.adgroupadId = iprot.readI64();
9926
              setAdgroupadIdIsSet(true);
9927
            } else { 
9928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9929
            }
9930
            break;
9931
          default:
9932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9933
        }
9934
        iprot.readFieldEnd();
9935
      }
9936
      iprot.readStructEnd();
9937
      validate();
9938
    }
9939
 
9940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9941
      validate();
9942
 
9943
      oprot.writeStructBegin(STRUCT_DESC);
9944
      oprot.writeFieldBegin(ADGROUPAD_ID_FIELD_DESC);
9945
      oprot.writeI64(this.adgroupadId);
9946
      oprot.writeFieldEnd();
9947
      oprot.writeFieldStop();
9948
      oprot.writeStructEnd();
9949
    }
9950
 
9951
    @Override
9952
    public String toString() {
9953
      StringBuilder sb = new StringBuilder("getAdwordsAdgroupAdByAdId_args(");
9954
      boolean first = true;
9955
 
9956
      sb.append("adgroupadId:");
9957
      sb.append(this.adgroupadId);
9958
      first = false;
9959
      sb.append(")");
9960
      return sb.toString();
9961
    }
9962
 
9963
    public void validate() throws org.apache.thrift.TException {
9964
      // check for required fields
9965
    }
9966
 
9967
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9968
      try {
9969
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9970
      } catch (org.apache.thrift.TException te) {
9971
        throw new java.io.IOException(te);
9972
      }
9973
    }
9974
 
9975
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9976
      try {
9977
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9978
        __isset_bit_vector = new BitSet(1);
9979
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9980
      } catch (org.apache.thrift.TException te) {
9981
        throw new java.io.IOException(te);
9982
      }
9983
    }
9984
 
9985
  }
9986
 
9987
  public static class getAdwordsAdgroupAdByAdId_result implements org.apache.thrift.TBase<getAdwordsAdgroupAdByAdId_result, getAdwordsAdgroupAdByAdId_result._Fields>, java.io.Serializable, Cloneable   {
9988
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdgroupAdByAdId_result");
9989
 
9990
    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);
9991
    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);
9992
 
9993
    private AdwordsAdGroupAd success; // required
9994
    private GoogleAdwordsServiceException gasex; // required
9995
 
9996
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9997
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9998
      SUCCESS((short)0, "success"),
9999
      GASEX((short)1, "gasex");
10000
 
10001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10002
 
10003
      static {
10004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10005
          byName.put(field.getFieldName(), field);
10006
        }
10007
      }
10008
 
10009
      /**
10010
       * Find the _Fields constant that matches fieldId, or null if its not found.
10011
       */
10012
      public static _Fields findByThriftId(int fieldId) {
10013
        switch(fieldId) {
10014
          case 0: // SUCCESS
10015
            return SUCCESS;
10016
          case 1: // GASEX
10017
            return GASEX;
10018
          default:
10019
            return null;
10020
        }
10021
      }
10022
 
10023
      /**
10024
       * Find the _Fields constant that matches fieldId, throwing an exception
10025
       * if it is not found.
10026
       */
10027
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10028
        _Fields fields = findByThriftId(fieldId);
10029
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10030
        return fields;
10031
      }
10032
 
10033
      /**
10034
       * Find the _Fields constant that matches name, or null if its not found.
10035
       */
10036
      public static _Fields findByName(String name) {
10037
        return byName.get(name);
10038
      }
10039
 
10040
      private final short _thriftId;
10041
      private final String _fieldName;
10042
 
10043
      _Fields(short thriftId, String fieldName) {
10044
        _thriftId = thriftId;
10045
        _fieldName = fieldName;
10046
      }
10047
 
10048
      public short getThriftFieldId() {
10049
        return _thriftId;
10050
      }
10051
 
10052
      public String getFieldName() {
10053
        return _fieldName;
10054
      }
10055
    }
10056
 
10057
    // isset id assignments
10058
 
10059
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10060
    static {
10061
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10062
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10063
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class)));
10064
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10065
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10066
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10067
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdgroupAdByAdId_result.class, metaDataMap);
10068
    }
10069
 
10070
    public getAdwordsAdgroupAdByAdId_result() {
10071
    }
10072
 
10073
    public getAdwordsAdgroupAdByAdId_result(
10074
      AdwordsAdGroupAd success,
10075
      GoogleAdwordsServiceException gasex)
10076
    {
10077
      this();
10078
      this.success = success;
10079
      this.gasex = gasex;
10080
    }
10081
 
10082
    /**
10083
     * Performs a deep copy on <i>other</i>.
10084
     */
10085
    public getAdwordsAdgroupAdByAdId_result(getAdwordsAdgroupAdByAdId_result other) {
10086
      if (other.isSetSuccess()) {
10087
        this.success = new AdwordsAdGroupAd(other.success);
10088
      }
10089
      if (other.isSetGasex()) {
10090
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
10091
      }
10092
    }
10093
 
10094
    public getAdwordsAdgroupAdByAdId_result deepCopy() {
10095
      return new getAdwordsAdgroupAdByAdId_result(this);
10096
    }
10097
 
10098
    @Override
10099
    public void clear() {
10100
      this.success = null;
10101
      this.gasex = null;
10102
    }
10103
 
10104
    public AdwordsAdGroupAd getSuccess() {
10105
      return this.success;
10106
    }
10107
 
10108
    public void setSuccess(AdwordsAdGroupAd success) {
10109
      this.success = success;
10110
    }
10111
 
10112
    public void unsetSuccess() {
10113
      this.success = null;
10114
    }
10115
 
10116
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10117
    public boolean isSetSuccess() {
10118
      return this.success != null;
10119
    }
10120
 
10121
    public void setSuccessIsSet(boolean value) {
10122
      if (!value) {
10123
        this.success = null;
10124
      }
10125
    }
10126
 
10127
    public GoogleAdwordsServiceException getGasex() {
10128
      return this.gasex;
10129
    }
10130
 
10131
    public void setGasex(GoogleAdwordsServiceException gasex) {
10132
      this.gasex = gasex;
10133
    }
10134
 
10135
    public void unsetGasex() {
10136
      this.gasex = null;
10137
    }
10138
 
10139
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
10140
    public boolean isSetGasex() {
10141
      return this.gasex != null;
10142
    }
10143
 
10144
    public void setGasexIsSet(boolean value) {
10145
      if (!value) {
10146
        this.gasex = null;
10147
      }
10148
    }
10149
 
10150
    public void setFieldValue(_Fields field, Object value) {
10151
      switch (field) {
10152
      case SUCCESS:
10153
        if (value == null) {
10154
          unsetSuccess();
10155
        } else {
10156
          setSuccess((AdwordsAdGroupAd)value);
10157
        }
10158
        break;
10159
 
10160
      case GASEX:
10161
        if (value == null) {
10162
          unsetGasex();
10163
        } else {
10164
          setGasex((GoogleAdwordsServiceException)value);
10165
        }
10166
        break;
10167
 
10168
      }
10169
    }
10170
 
10171
    public Object getFieldValue(_Fields field) {
10172
      switch (field) {
10173
      case SUCCESS:
10174
        return getSuccess();
10175
 
10176
      case GASEX:
10177
        return getGasex();
10178
 
10179
      }
10180
      throw new IllegalStateException();
10181
    }
10182
 
10183
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10184
    public boolean isSet(_Fields field) {
10185
      if (field == null) {
10186
        throw new IllegalArgumentException();
10187
      }
10188
 
10189
      switch (field) {
10190
      case SUCCESS:
10191
        return isSetSuccess();
10192
      case GASEX:
10193
        return isSetGasex();
10194
      }
10195
      throw new IllegalStateException();
10196
    }
10197
 
10198
    @Override
10199
    public boolean equals(Object that) {
10200
      if (that == null)
10201
        return false;
10202
      if (that instanceof getAdwordsAdgroupAdByAdId_result)
10203
        return this.equals((getAdwordsAdgroupAdByAdId_result)that);
10204
      return false;
10205
    }
10206
 
10207
    public boolean equals(getAdwordsAdgroupAdByAdId_result that) {
10208
      if (that == null)
10209
        return false;
10210
 
10211
      boolean this_present_success = true && this.isSetSuccess();
10212
      boolean that_present_success = true && that.isSetSuccess();
10213
      if (this_present_success || that_present_success) {
10214
        if (!(this_present_success && that_present_success))
10215
          return false;
10216
        if (!this.success.equals(that.success))
10217
          return false;
10218
      }
10219
 
10220
      boolean this_present_gasex = true && this.isSetGasex();
10221
      boolean that_present_gasex = true && that.isSetGasex();
10222
      if (this_present_gasex || that_present_gasex) {
10223
        if (!(this_present_gasex && that_present_gasex))
10224
          return false;
10225
        if (!this.gasex.equals(that.gasex))
10226
          return false;
10227
      }
10228
 
10229
      return true;
10230
    }
10231
 
10232
    @Override
10233
    public int hashCode() {
10234
      return 0;
10235
    }
10236
 
10237
    public int compareTo(getAdwordsAdgroupAdByAdId_result other) {
10238
      if (!getClass().equals(other.getClass())) {
10239
        return getClass().getName().compareTo(other.getClass().getName());
10240
      }
10241
 
10242
      int lastComparison = 0;
10243
      getAdwordsAdgroupAdByAdId_result typedOther = (getAdwordsAdgroupAdByAdId_result)other;
10244
 
10245
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10246
      if (lastComparison != 0) {
10247
        return lastComparison;
10248
      }
10249
      if (isSetSuccess()) {
10250
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10251
        if (lastComparison != 0) {
10252
          return lastComparison;
10253
        }
10254
      }
10255
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
10256
      if (lastComparison != 0) {
10257
        return lastComparison;
10258
      }
10259
      if (isSetGasex()) {
10260
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
10261
        if (lastComparison != 0) {
10262
          return lastComparison;
10263
        }
10264
      }
10265
      return 0;
10266
    }
10267
 
10268
    public _Fields fieldForId(int fieldId) {
10269
      return _Fields.findByThriftId(fieldId);
10270
    }
10271
 
10272
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10273
      org.apache.thrift.protocol.TField field;
10274
      iprot.readStructBegin();
10275
      while (true)
10276
      {
10277
        field = iprot.readFieldBegin();
10278
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10279
          break;
10280
        }
10281
        switch (field.id) {
10282
          case 0: // SUCCESS
10283
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10284
              this.success = new AdwordsAdGroupAd();
10285
              this.success.read(iprot);
10286
            } else { 
10287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10288
            }
10289
            break;
10290
          case 1: // GASEX
10291
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10292
              this.gasex = new GoogleAdwordsServiceException();
10293
              this.gasex.read(iprot);
10294
            } else { 
10295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10296
            }
10297
            break;
10298
          default:
10299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10300
        }
10301
        iprot.readFieldEnd();
10302
      }
10303
      iprot.readStructEnd();
10304
      validate();
10305
    }
10306
 
10307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10308
      oprot.writeStructBegin(STRUCT_DESC);
10309
 
10310
      if (this.isSetSuccess()) {
10311
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10312
        this.success.write(oprot);
10313
        oprot.writeFieldEnd();
10314
      } else if (this.isSetGasex()) {
10315
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
10316
        this.gasex.write(oprot);
10317
        oprot.writeFieldEnd();
10318
      }
10319
      oprot.writeFieldStop();
10320
      oprot.writeStructEnd();
10321
    }
10322
 
10323
    @Override
10324
    public String toString() {
10325
      StringBuilder sb = new StringBuilder("getAdwordsAdgroupAdByAdId_result(");
10326
      boolean first = true;
10327
 
10328
      sb.append("success:");
10329
      if (this.success == null) {
10330
        sb.append("null");
10331
      } else {
10332
        sb.append(this.success);
10333
      }
10334
      first = false;
10335
      if (!first) sb.append(", ");
10336
      sb.append("gasex:");
10337
      if (this.gasex == null) {
10338
        sb.append("null");
10339
      } else {
10340
        sb.append(this.gasex);
10341
      }
10342
      first = false;
10343
      sb.append(")");
10344
      return sb.toString();
10345
    }
10346
 
10347
    public void validate() throws org.apache.thrift.TException {
10348
      // check for required fields
10349
    }
10350
 
10351
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10352
      try {
10353
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10354
      } catch (org.apache.thrift.TException te) {
10355
        throw new java.io.IOException(te);
10356
      }
10357
    }
10358
 
10359
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10360
      try {
10361
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10362
      } catch (org.apache.thrift.TException te) {
10363
        throw new java.io.IOException(te);
10364
      }
10365
    }
10366
 
10367
  }
10368
 
10369
  public static class getAdwordsAdKeywordByCriterionId_args implements org.apache.thrift.TBase<getAdwordsAdKeywordByCriterionId_args, getAdwordsAdKeywordByCriterionId_args._Fields>, java.io.Serializable, Cloneable   {
10370
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordByCriterionId_args");
10371
 
10372
    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);
10373
 
10374
    private long criterionId; // required
10375
 
10376
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10377
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10378
      CRITERION_ID((short)1, "criterionId");
10379
 
10380
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10381
 
10382
      static {
10383
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10384
          byName.put(field.getFieldName(), field);
10385
        }
10386
      }
10387
 
10388
      /**
10389
       * Find the _Fields constant that matches fieldId, or null if its not found.
10390
       */
10391
      public static _Fields findByThriftId(int fieldId) {
10392
        switch(fieldId) {
10393
          case 1: // CRITERION_ID
10394
            return CRITERION_ID;
10395
          default:
10396
            return null;
10397
        }
10398
      }
10399
 
10400
      /**
10401
       * Find the _Fields constant that matches fieldId, throwing an exception
10402
       * if it is not found.
10403
       */
10404
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10405
        _Fields fields = findByThriftId(fieldId);
10406
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10407
        return fields;
10408
      }
10409
 
10410
      /**
10411
       * Find the _Fields constant that matches name, or null if its not found.
10412
       */
10413
      public static _Fields findByName(String name) {
10414
        return byName.get(name);
10415
      }
10416
 
10417
      private final short _thriftId;
10418
      private final String _fieldName;
10419
 
10420
      _Fields(short thriftId, String fieldName) {
10421
        _thriftId = thriftId;
10422
        _fieldName = fieldName;
10423
      }
10424
 
10425
      public short getThriftFieldId() {
10426
        return _thriftId;
10427
      }
10428
 
10429
      public String getFieldName() {
10430
        return _fieldName;
10431
      }
10432
    }
10433
 
10434
    // isset id assignments
10435
    private static final int __CRITERIONID_ISSET_ID = 0;
10436
    private BitSet __isset_bit_vector = new BitSet(1);
10437
 
10438
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10439
    static {
10440
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10441
      tmpMap.put(_Fields.CRITERION_ID, new org.apache.thrift.meta_data.FieldMetaData("criterionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordByCriterionId_args.class, metaDataMap);
10445
    }
10446
 
10447
    public getAdwordsAdKeywordByCriterionId_args() {
10448
    }
10449
 
10450
    public getAdwordsAdKeywordByCriterionId_args(
10451
      long criterionId)
10452
    {
10453
      this();
10454
      this.criterionId = criterionId;
10455
      setCriterionIdIsSet(true);
10456
    }
10457
 
10458
    /**
10459
     * Performs a deep copy on <i>other</i>.
10460
     */
10461
    public getAdwordsAdKeywordByCriterionId_args(getAdwordsAdKeywordByCriterionId_args other) {
10462
      __isset_bit_vector.clear();
10463
      __isset_bit_vector.or(other.__isset_bit_vector);
10464
      this.criterionId = other.criterionId;
10465
    }
10466
 
10467
    public getAdwordsAdKeywordByCriterionId_args deepCopy() {
10468
      return new getAdwordsAdKeywordByCriterionId_args(this);
10469
    }
10470
 
10471
    @Override
10472
    public void clear() {
10473
      setCriterionIdIsSet(false);
10474
      this.criterionId = 0;
10475
    }
10476
 
10477
    public long getCriterionId() {
10478
      return this.criterionId;
10479
    }
10480
 
10481
    public void setCriterionId(long criterionId) {
10482
      this.criterionId = criterionId;
10483
      setCriterionIdIsSet(true);
10484
    }
10485
 
10486
    public void unsetCriterionId() {
10487
      __isset_bit_vector.clear(__CRITERIONID_ISSET_ID);
10488
    }
10489
 
10490
    /** Returns true if field criterionId is set (has been assigned a value) and false otherwise */
10491
    public boolean isSetCriterionId() {
10492
      return __isset_bit_vector.get(__CRITERIONID_ISSET_ID);
10493
    }
10494
 
10495
    public void setCriterionIdIsSet(boolean value) {
10496
      __isset_bit_vector.set(__CRITERIONID_ISSET_ID, value);
10497
    }
10498
 
10499
    public void setFieldValue(_Fields field, Object value) {
10500
      switch (field) {
10501
      case CRITERION_ID:
10502
        if (value == null) {
10503
          unsetCriterionId();
10504
        } else {
10505
          setCriterionId((Long)value);
10506
        }
10507
        break;
10508
 
10509
      }
10510
    }
10511
 
10512
    public Object getFieldValue(_Fields field) {
10513
      switch (field) {
10514
      case CRITERION_ID:
10515
        return Long.valueOf(getCriterionId());
10516
 
10517
      }
10518
      throw new IllegalStateException();
10519
    }
10520
 
10521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10522
    public boolean isSet(_Fields field) {
10523
      if (field == null) {
10524
        throw new IllegalArgumentException();
10525
      }
10526
 
10527
      switch (field) {
10528
      case CRITERION_ID:
10529
        return isSetCriterionId();
10530
      }
10531
      throw new IllegalStateException();
10532
    }
10533
 
10534
    @Override
10535
    public boolean equals(Object that) {
10536
      if (that == null)
10537
        return false;
10538
      if (that instanceof getAdwordsAdKeywordByCriterionId_args)
10539
        return this.equals((getAdwordsAdKeywordByCriterionId_args)that);
10540
      return false;
10541
    }
10542
 
10543
    public boolean equals(getAdwordsAdKeywordByCriterionId_args that) {
10544
      if (that == null)
10545
        return false;
10546
 
10547
      boolean this_present_criterionId = true;
10548
      boolean that_present_criterionId = true;
10549
      if (this_present_criterionId || that_present_criterionId) {
10550
        if (!(this_present_criterionId && that_present_criterionId))
10551
          return false;
10552
        if (this.criterionId != that.criterionId)
10553
          return false;
10554
      }
10555
 
10556
      return true;
10557
    }
10558
 
10559
    @Override
10560
    public int hashCode() {
10561
      return 0;
10562
    }
10563
 
10564
    public int compareTo(getAdwordsAdKeywordByCriterionId_args other) {
10565
      if (!getClass().equals(other.getClass())) {
10566
        return getClass().getName().compareTo(other.getClass().getName());
10567
      }
10568
 
10569
      int lastComparison = 0;
10570
      getAdwordsAdKeywordByCriterionId_args typedOther = (getAdwordsAdKeywordByCriterionId_args)other;
10571
 
10572
      lastComparison = Boolean.valueOf(isSetCriterionId()).compareTo(typedOther.isSetCriterionId());
10573
      if (lastComparison != 0) {
10574
        return lastComparison;
10575
      }
10576
      if (isSetCriterionId()) {
10577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criterionId, typedOther.criterionId);
10578
        if (lastComparison != 0) {
10579
          return lastComparison;
10580
        }
10581
      }
10582
      return 0;
10583
    }
10584
 
10585
    public _Fields fieldForId(int fieldId) {
10586
      return _Fields.findByThriftId(fieldId);
10587
    }
10588
 
10589
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10590
      org.apache.thrift.protocol.TField field;
10591
      iprot.readStructBegin();
10592
      while (true)
10593
      {
10594
        field = iprot.readFieldBegin();
10595
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10596
          break;
10597
        }
10598
        switch (field.id) {
10599
          case 1: // CRITERION_ID
10600
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10601
              this.criterionId = iprot.readI64();
10602
              setCriterionIdIsSet(true);
10603
            } else { 
10604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10605
            }
10606
            break;
10607
          default:
10608
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10609
        }
10610
        iprot.readFieldEnd();
10611
      }
10612
      iprot.readStructEnd();
10613
      validate();
10614
    }
10615
 
10616
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10617
      validate();
10618
 
10619
      oprot.writeStructBegin(STRUCT_DESC);
10620
      oprot.writeFieldBegin(CRITERION_ID_FIELD_DESC);
10621
      oprot.writeI64(this.criterionId);
10622
      oprot.writeFieldEnd();
10623
      oprot.writeFieldStop();
10624
      oprot.writeStructEnd();
10625
    }
10626
 
10627
    @Override
10628
    public String toString() {
10629
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordByCriterionId_args(");
10630
      boolean first = true;
10631
 
10632
      sb.append("criterionId:");
10633
      sb.append(this.criterionId);
10634
      first = false;
10635
      sb.append(")");
10636
      return sb.toString();
10637
    }
10638
 
10639
    public void validate() throws org.apache.thrift.TException {
10640
      // check for required fields
10641
    }
10642
 
10643
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10644
      try {
10645
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10646
      } catch (org.apache.thrift.TException te) {
10647
        throw new java.io.IOException(te);
10648
      }
10649
    }
10650
 
10651
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10652
      try {
10653
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10654
        __isset_bit_vector = new BitSet(1);
10655
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10656
      } catch (org.apache.thrift.TException te) {
10657
        throw new java.io.IOException(te);
10658
      }
10659
    }
10660
 
10661
  }
10662
 
10663
  public static class getAdwordsAdKeywordByCriterionId_result implements org.apache.thrift.TBase<getAdwordsAdKeywordByCriterionId_result, getAdwordsAdKeywordByCriterionId_result._Fields>, java.io.Serializable, Cloneable   {
10664
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordByCriterionId_result");
10665
 
10666
    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);
10667
    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);
10668
 
10669
    private AdwordsAdKeyword success; // required
10670
    private GoogleAdwordsServiceException gasex; // required
10671
 
10672
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10673
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10674
      SUCCESS((short)0, "success"),
10675
      GASEX((short)1, "gasex");
10676
 
10677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10678
 
10679
      static {
10680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10681
          byName.put(field.getFieldName(), field);
10682
        }
10683
      }
10684
 
10685
      /**
10686
       * Find the _Fields constant that matches fieldId, or null if its not found.
10687
       */
10688
      public static _Fields findByThriftId(int fieldId) {
10689
        switch(fieldId) {
10690
          case 0: // SUCCESS
10691
            return SUCCESS;
10692
          case 1: // GASEX
10693
            return GASEX;
10694
          default:
10695
            return null;
10696
        }
10697
      }
10698
 
10699
      /**
10700
       * Find the _Fields constant that matches fieldId, throwing an exception
10701
       * if it is not found.
10702
       */
10703
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10704
        _Fields fields = findByThriftId(fieldId);
10705
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10706
        return fields;
10707
      }
10708
 
10709
      /**
10710
       * Find the _Fields constant that matches name, or null if its not found.
10711
       */
10712
      public static _Fields findByName(String name) {
10713
        return byName.get(name);
10714
      }
10715
 
10716
      private final short _thriftId;
10717
      private final String _fieldName;
10718
 
10719
      _Fields(short thriftId, String fieldName) {
10720
        _thriftId = thriftId;
10721
        _fieldName = fieldName;
10722
      }
10723
 
10724
      public short getThriftFieldId() {
10725
        return _thriftId;
10726
      }
10727
 
10728
      public String getFieldName() {
10729
        return _fieldName;
10730
      }
10731
    }
10732
 
10733
    // isset id assignments
10734
 
10735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10736
    static {
10737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10738
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10739
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class)));
10740
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordByCriterionId_result.class, metaDataMap);
10744
    }
10745
 
10746
    public getAdwordsAdKeywordByCriterionId_result() {
10747
    }
10748
 
10749
    public getAdwordsAdKeywordByCriterionId_result(
10750
      AdwordsAdKeyword success,
10751
      GoogleAdwordsServiceException gasex)
10752
    {
10753
      this();
10754
      this.success = success;
10755
      this.gasex = gasex;
10756
    }
10757
 
10758
    /**
10759
     * Performs a deep copy on <i>other</i>.
10760
     */
10761
    public getAdwordsAdKeywordByCriterionId_result(getAdwordsAdKeywordByCriterionId_result other) {
10762
      if (other.isSetSuccess()) {
10763
        this.success = new AdwordsAdKeyword(other.success);
10764
      }
10765
      if (other.isSetGasex()) {
10766
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
10767
      }
10768
    }
10769
 
10770
    public getAdwordsAdKeywordByCriterionId_result deepCopy() {
10771
      return new getAdwordsAdKeywordByCriterionId_result(this);
10772
    }
10773
 
10774
    @Override
10775
    public void clear() {
10776
      this.success = null;
10777
      this.gasex = null;
10778
    }
10779
 
10780
    public AdwordsAdKeyword getSuccess() {
10781
      return this.success;
10782
    }
10783
 
10784
    public void setSuccess(AdwordsAdKeyword success) {
10785
      this.success = success;
10786
    }
10787
 
10788
    public void unsetSuccess() {
10789
      this.success = null;
10790
    }
10791
 
10792
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10793
    public boolean isSetSuccess() {
10794
      return this.success != null;
10795
    }
10796
 
10797
    public void setSuccessIsSet(boolean value) {
10798
      if (!value) {
10799
        this.success = null;
10800
      }
10801
    }
10802
 
10803
    public GoogleAdwordsServiceException getGasex() {
10804
      return this.gasex;
10805
    }
10806
 
10807
    public void setGasex(GoogleAdwordsServiceException gasex) {
10808
      this.gasex = gasex;
10809
    }
10810
 
10811
    public void unsetGasex() {
10812
      this.gasex = null;
10813
    }
10814
 
10815
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
10816
    public boolean isSetGasex() {
10817
      return this.gasex != null;
10818
    }
10819
 
10820
    public void setGasexIsSet(boolean value) {
10821
      if (!value) {
10822
        this.gasex = null;
10823
      }
10824
    }
10825
 
10826
    public void setFieldValue(_Fields field, Object value) {
10827
      switch (field) {
10828
      case SUCCESS:
10829
        if (value == null) {
10830
          unsetSuccess();
10831
        } else {
10832
          setSuccess((AdwordsAdKeyword)value);
10833
        }
10834
        break;
10835
 
10836
      case GASEX:
10837
        if (value == null) {
10838
          unsetGasex();
10839
        } else {
10840
          setGasex((GoogleAdwordsServiceException)value);
10841
        }
10842
        break;
10843
 
10844
      }
10845
    }
10846
 
10847
    public Object getFieldValue(_Fields field) {
10848
      switch (field) {
10849
      case SUCCESS:
10850
        return getSuccess();
10851
 
10852
      case GASEX:
10853
        return getGasex();
10854
 
10855
      }
10856
      throw new IllegalStateException();
10857
    }
10858
 
10859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10860
    public boolean isSet(_Fields field) {
10861
      if (field == null) {
10862
        throw new IllegalArgumentException();
10863
      }
10864
 
10865
      switch (field) {
10866
      case SUCCESS:
10867
        return isSetSuccess();
10868
      case GASEX:
10869
        return isSetGasex();
10870
      }
10871
      throw new IllegalStateException();
10872
    }
10873
 
10874
    @Override
10875
    public boolean equals(Object that) {
10876
      if (that == null)
10877
        return false;
10878
      if (that instanceof getAdwordsAdKeywordByCriterionId_result)
10879
        return this.equals((getAdwordsAdKeywordByCriterionId_result)that);
10880
      return false;
10881
    }
10882
 
10883
    public boolean equals(getAdwordsAdKeywordByCriterionId_result that) {
10884
      if (that == null)
10885
        return false;
10886
 
10887
      boolean this_present_success = true && this.isSetSuccess();
10888
      boolean that_present_success = true && that.isSetSuccess();
10889
      if (this_present_success || that_present_success) {
10890
        if (!(this_present_success && that_present_success))
10891
          return false;
10892
        if (!this.success.equals(that.success))
10893
          return false;
10894
      }
10895
 
10896
      boolean this_present_gasex = true && this.isSetGasex();
10897
      boolean that_present_gasex = true && that.isSetGasex();
10898
      if (this_present_gasex || that_present_gasex) {
10899
        if (!(this_present_gasex && that_present_gasex))
10900
          return false;
10901
        if (!this.gasex.equals(that.gasex))
10902
          return false;
10903
      }
10904
 
10905
      return true;
10906
    }
10907
 
10908
    @Override
10909
    public int hashCode() {
10910
      return 0;
10911
    }
10912
 
10913
    public int compareTo(getAdwordsAdKeywordByCriterionId_result other) {
10914
      if (!getClass().equals(other.getClass())) {
10915
        return getClass().getName().compareTo(other.getClass().getName());
10916
      }
10917
 
10918
      int lastComparison = 0;
10919
      getAdwordsAdKeywordByCriterionId_result typedOther = (getAdwordsAdKeywordByCriterionId_result)other;
10920
 
10921
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10922
      if (lastComparison != 0) {
10923
        return lastComparison;
10924
      }
10925
      if (isSetSuccess()) {
10926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10927
        if (lastComparison != 0) {
10928
          return lastComparison;
10929
        }
10930
      }
10931
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
10932
      if (lastComparison != 0) {
10933
        return lastComparison;
10934
      }
10935
      if (isSetGasex()) {
10936
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
10937
        if (lastComparison != 0) {
10938
          return lastComparison;
10939
        }
10940
      }
10941
      return 0;
10942
    }
10943
 
10944
    public _Fields fieldForId(int fieldId) {
10945
      return _Fields.findByThriftId(fieldId);
10946
    }
10947
 
10948
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10949
      org.apache.thrift.protocol.TField field;
10950
      iprot.readStructBegin();
10951
      while (true)
10952
      {
10953
        field = iprot.readFieldBegin();
10954
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10955
          break;
10956
        }
10957
        switch (field.id) {
10958
          case 0: // SUCCESS
10959
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10960
              this.success = new AdwordsAdKeyword();
10961
              this.success.read(iprot);
10962
            } else { 
10963
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10964
            }
10965
            break;
10966
          case 1: // GASEX
10967
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10968
              this.gasex = new GoogleAdwordsServiceException();
10969
              this.gasex.read(iprot);
10970
            } else { 
10971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10972
            }
10973
            break;
10974
          default:
10975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10976
        }
10977
        iprot.readFieldEnd();
10978
      }
10979
      iprot.readStructEnd();
10980
      validate();
10981
    }
10982
 
10983
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10984
      oprot.writeStructBegin(STRUCT_DESC);
10985
 
10986
      if (this.isSetSuccess()) {
10987
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10988
        this.success.write(oprot);
10989
        oprot.writeFieldEnd();
10990
      } else if (this.isSetGasex()) {
10991
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
10992
        this.gasex.write(oprot);
10993
        oprot.writeFieldEnd();
10994
      }
10995
      oprot.writeFieldStop();
10996
      oprot.writeStructEnd();
10997
    }
10998
 
10999
    @Override
11000
    public String toString() {
11001
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordByCriterionId_result(");
11002
      boolean first = true;
11003
 
11004
      sb.append("success:");
11005
      if (this.success == null) {
11006
        sb.append("null");
11007
      } else {
11008
        sb.append(this.success);
11009
      }
11010
      first = false;
11011
      if (!first) sb.append(", ");
11012
      sb.append("gasex:");
11013
      if (this.gasex == null) {
11014
        sb.append("null");
11015
      } else {
11016
        sb.append(this.gasex);
11017
      }
11018
      first = false;
11019
      sb.append(")");
11020
      return sb.toString();
11021
    }
11022
 
11023
    public void validate() throws org.apache.thrift.TException {
11024
      // check for required fields
11025
    }
11026
 
11027
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11028
      try {
11029
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11030
      } catch (org.apache.thrift.TException te) {
11031
        throw new java.io.IOException(te);
11032
      }
11033
    }
11034
 
11035
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11036
      try {
11037
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11038
      } catch (org.apache.thrift.TException te) {
11039
        throw new java.io.IOException(te);
11040
      }
11041
    }
11042
 
11043
  }
11044
 
11045
  public static class getAdwordsAdKeywordsByAdgroupId_args implements org.apache.thrift.TBase<getAdwordsAdKeywordsByAdgroupId_args, getAdwordsAdKeywordsByAdgroupId_args._Fields>, java.io.Serializable, Cloneable   {
11046
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordsByAdgroupId_args");
11047
 
11048
    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);
11049
 
11050
    private long adgroupId; // required
11051
 
11052
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11053
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11054
      ADGROUP_ID((short)1, "adgroupId");
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: // ADGROUP_ID
11070
            return ADGROUP_ID;
11071
          default:
11072
            return null;
11073
        }
11074
      }
11075
 
11076
      /**
11077
       * Find the _Fields constant that matches fieldId, throwing an exception
11078
       * if it is not found.
11079
       */
11080
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11081
        _Fields fields = findByThriftId(fieldId);
11082
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11083
        return fields;
11084
      }
11085
 
11086
      /**
11087
       * Find the _Fields constant that matches name, or null if its not found.
11088
       */
11089
      public static _Fields findByName(String name) {
11090
        return byName.get(name);
11091
      }
11092
 
11093
      private final short _thriftId;
11094
      private final String _fieldName;
11095
 
11096
      _Fields(short thriftId, String fieldName) {
11097
        _thriftId = thriftId;
11098
        _fieldName = fieldName;
11099
      }
11100
 
11101
      public short getThriftFieldId() {
11102
        return _thriftId;
11103
      }
11104
 
11105
      public String getFieldName() {
11106
        return _fieldName;
11107
      }
11108
    }
11109
 
11110
    // isset id assignments
11111
    private static final int __ADGROUPID_ISSET_ID = 0;
11112
    private BitSet __isset_bit_vector = new BitSet(1);
11113
 
11114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11115
    static {
11116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11117
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11119
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11120
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordsByAdgroupId_args.class, metaDataMap);
11121
    }
11122
 
11123
    public getAdwordsAdKeywordsByAdgroupId_args() {
11124
    }
11125
 
11126
    public getAdwordsAdKeywordsByAdgroupId_args(
11127
      long adgroupId)
11128
    {
11129
      this();
11130
      this.adgroupId = adgroupId;
11131
      setAdgroupIdIsSet(true);
11132
    }
11133
 
11134
    /**
11135
     * Performs a deep copy on <i>other</i>.
11136
     */
11137
    public getAdwordsAdKeywordsByAdgroupId_args(getAdwordsAdKeywordsByAdgroupId_args other) {
11138
      __isset_bit_vector.clear();
11139
      __isset_bit_vector.or(other.__isset_bit_vector);
11140
      this.adgroupId = other.adgroupId;
11141
    }
11142
 
11143
    public getAdwordsAdKeywordsByAdgroupId_args deepCopy() {
11144
      return new getAdwordsAdKeywordsByAdgroupId_args(this);
11145
    }
11146
 
11147
    @Override
11148
    public void clear() {
11149
      setAdgroupIdIsSet(false);
11150
      this.adgroupId = 0;
11151
    }
11152
 
11153
    public long getAdgroupId() {
11154
      return this.adgroupId;
11155
    }
11156
 
11157
    public void setAdgroupId(long adgroupId) {
11158
      this.adgroupId = adgroupId;
11159
      setAdgroupIdIsSet(true);
11160
    }
11161
 
11162
    public void unsetAdgroupId() {
11163
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
11164
    }
11165
 
11166
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
11167
    public boolean isSetAdgroupId() {
11168
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
11169
    }
11170
 
11171
    public void setAdgroupIdIsSet(boolean value) {
11172
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
11173
    }
11174
 
11175
    public void setFieldValue(_Fields field, Object value) {
11176
      switch (field) {
11177
      case ADGROUP_ID:
11178
        if (value == null) {
11179
          unsetAdgroupId();
11180
        } else {
11181
          setAdgroupId((Long)value);
11182
        }
11183
        break;
11184
 
11185
      }
11186
    }
11187
 
11188
    public Object getFieldValue(_Fields field) {
11189
      switch (field) {
11190
      case ADGROUP_ID:
11191
        return Long.valueOf(getAdgroupId());
11192
 
11193
      }
11194
      throw new IllegalStateException();
11195
    }
11196
 
11197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11198
    public boolean isSet(_Fields field) {
11199
      if (field == null) {
11200
        throw new IllegalArgumentException();
11201
      }
11202
 
11203
      switch (field) {
11204
      case ADGROUP_ID:
11205
        return isSetAdgroupId();
11206
      }
11207
      throw new IllegalStateException();
11208
    }
11209
 
11210
    @Override
11211
    public boolean equals(Object that) {
11212
      if (that == null)
11213
        return false;
11214
      if (that instanceof getAdwordsAdKeywordsByAdgroupId_args)
11215
        return this.equals((getAdwordsAdKeywordsByAdgroupId_args)that);
11216
      return false;
11217
    }
11218
 
11219
    public boolean equals(getAdwordsAdKeywordsByAdgroupId_args that) {
11220
      if (that == null)
11221
        return false;
11222
 
11223
      boolean this_present_adgroupId = true;
11224
      boolean that_present_adgroupId = true;
11225
      if (this_present_adgroupId || that_present_adgroupId) {
11226
        if (!(this_present_adgroupId && that_present_adgroupId))
11227
          return false;
11228
        if (this.adgroupId != that.adgroupId)
11229
          return false;
11230
      }
11231
 
11232
      return true;
11233
    }
11234
 
11235
    @Override
11236
    public int hashCode() {
11237
      return 0;
11238
    }
11239
 
11240
    public int compareTo(getAdwordsAdKeywordsByAdgroupId_args other) {
11241
      if (!getClass().equals(other.getClass())) {
11242
        return getClass().getName().compareTo(other.getClass().getName());
11243
      }
11244
 
11245
      int lastComparison = 0;
11246
      getAdwordsAdKeywordsByAdgroupId_args typedOther = (getAdwordsAdKeywordsByAdgroupId_args)other;
11247
 
11248
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
11249
      if (lastComparison != 0) {
11250
        return lastComparison;
11251
      }
11252
      if (isSetAdgroupId()) {
11253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
11254
        if (lastComparison != 0) {
11255
          return lastComparison;
11256
        }
11257
      }
11258
      return 0;
11259
    }
11260
 
11261
    public _Fields fieldForId(int fieldId) {
11262
      return _Fields.findByThriftId(fieldId);
11263
    }
11264
 
11265
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11266
      org.apache.thrift.protocol.TField field;
11267
      iprot.readStructBegin();
11268
      while (true)
11269
      {
11270
        field = iprot.readFieldBegin();
11271
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11272
          break;
11273
        }
11274
        switch (field.id) {
11275
          case 1: // ADGROUP_ID
11276
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11277
              this.adgroupId = iprot.readI64();
11278
              setAdgroupIdIsSet(true);
11279
            } else { 
11280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11281
            }
11282
            break;
11283
          default:
11284
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11285
        }
11286
        iprot.readFieldEnd();
11287
      }
11288
      iprot.readStructEnd();
11289
      validate();
11290
    }
11291
 
11292
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11293
      validate();
11294
 
11295
      oprot.writeStructBegin(STRUCT_DESC);
11296
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
11297
      oprot.writeI64(this.adgroupId);
11298
      oprot.writeFieldEnd();
11299
      oprot.writeFieldStop();
11300
      oprot.writeStructEnd();
11301
    }
11302
 
11303
    @Override
11304
    public String toString() {
11305
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordsByAdgroupId_args(");
11306
      boolean first = true;
11307
 
11308
      sb.append("adgroupId:");
11309
      sb.append(this.adgroupId);
11310
      first = false;
11311
      sb.append(")");
11312
      return sb.toString();
11313
    }
11314
 
11315
    public void validate() throws org.apache.thrift.TException {
11316
      // check for required fields
11317
    }
11318
 
11319
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11320
      try {
11321
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11322
      } catch (org.apache.thrift.TException te) {
11323
        throw new java.io.IOException(te);
11324
      }
11325
    }
11326
 
11327
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11328
      try {
11329
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11330
        __isset_bit_vector = new BitSet(1);
11331
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11332
      } catch (org.apache.thrift.TException te) {
11333
        throw new java.io.IOException(te);
11334
      }
11335
    }
11336
 
11337
  }
11338
 
11339
  public static class getAdwordsAdKeywordsByAdgroupId_result implements org.apache.thrift.TBase<getAdwordsAdKeywordsByAdgroupId_result, getAdwordsAdKeywordsByAdgroupId_result._Fields>, java.io.Serializable, Cloneable   {
11340
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdKeywordsByAdgroupId_result");
11341
 
11342
    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);
11343
    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);
11344
 
11345
    private List<AdwordsAdKeyword> success; // required
11346
    private GoogleAdwordsServiceException gasex; // required
11347
 
11348
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11349
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11350
      SUCCESS((short)0, "success"),
11351
      GASEX((short)1, "gasex");
11352
 
11353
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11354
 
11355
      static {
11356
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11357
          byName.put(field.getFieldName(), field);
11358
        }
11359
      }
11360
 
11361
      /**
11362
       * Find the _Fields constant that matches fieldId, or null if its not found.
11363
       */
11364
      public static _Fields findByThriftId(int fieldId) {
11365
        switch(fieldId) {
11366
          case 0: // SUCCESS
11367
            return SUCCESS;
11368
          case 1: // GASEX
11369
            return GASEX;
11370
          default:
11371
            return null;
11372
        }
11373
      }
11374
 
11375
      /**
11376
       * Find the _Fields constant that matches fieldId, throwing an exception
11377
       * if it is not found.
11378
       */
11379
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11380
        _Fields fields = findByThriftId(fieldId);
11381
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11382
        return fields;
11383
      }
11384
 
11385
      /**
11386
       * Find the _Fields constant that matches name, or null if its not found.
11387
       */
11388
      public static _Fields findByName(String name) {
11389
        return byName.get(name);
11390
      }
11391
 
11392
      private final short _thriftId;
11393
      private final String _fieldName;
11394
 
11395
      _Fields(short thriftId, String fieldName) {
11396
        _thriftId = thriftId;
11397
        _fieldName = fieldName;
11398
      }
11399
 
11400
      public short getThriftFieldId() {
11401
        return _thriftId;
11402
      }
11403
 
11404
      public String getFieldName() {
11405
        return _fieldName;
11406
      }
11407
    }
11408
 
11409
    // isset id assignments
11410
 
11411
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11412
    static {
11413
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11414
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11415
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11416
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class))));
11417
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11418
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11419
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11420
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdKeywordsByAdgroupId_result.class, metaDataMap);
11421
    }
11422
 
11423
    public getAdwordsAdKeywordsByAdgroupId_result() {
11424
    }
11425
 
11426
    public getAdwordsAdKeywordsByAdgroupId_result(
11427
      List<AdwordsAdKeyword> success,
11428
      GoogleAdwordsServiceException gasex)
11429
    {
11430
      this();
11431
      this.success = success;
11432
      this.gasex = gasex;
11433
    }
11434
 
11435
    /**
11436
     * Performs a deep copy on <i>other</i>.
11437
     */
11438
    public getAdwordsAdKeywordsByAdgroupId_result(getAdwordsAdKeywordsByAdgroupId_result other) {
11439
      if (other.isSetSuccess()) {
11440
        List<AdwordsAdKeyword> __this__success = new ArrayList<AdwordsAdKeyword>();
11441
        for (AdwordsAdKeyword other_element : other.success) {
11442
          __this__success.add(new AdwordsAdKeyword(other_element));
11443
        }
11444
        this.success = __this__success;
11445
      }
11446
      if (other.isSetGasex()) {
11447
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
11448
      }
11449
    }
11450
 
11451
    public getAdwordsAdKeywordsByAdgroupId_result deepCopy() {
11452
      return new getAdwordsAdKeywordsByAdgroupId_result(this);
11453
    }
11454
 
11455
    @Override
11456
    public void clear() {
11457
      this.success = null;
11458
      this.gasex = null;
11459
    }
11460
 
11461
    public int getSuccessSize() {
11462
      return (this.success == null) ? 0 : this.success.size();
11463
    }
11464
 
11465
    public java.util.Iterator<AdwordsAdKeyword> getSuccessIterator() {
11466
      return (this.success == null) ? null : this.success.iterator();
11467
    }
11468
 
11469
    public void addToSuccess(AdwordsAdKeyword elem) {
11470
      if (this.success == null) {
11471
        this.success = new ArrayList<AdwordsAdKeyword>();
11472
      }
11473
      this.success.add(elem);
11474
    }
11475
 
11476
    public List<AdwordsAdKeyword> getSuccess() {
11477
      return this.success;
11478
    }
11479
 
11480
    public void setSuccess(List<AdwordsAdKeyword> success) {
11481
      this.success = success;
11482
    }
11483
 
11484
    public void unsetSuccess() {
11485
      this.success = null;
11486
    }
11487
 
11488
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11489
    public boolean isSetSuccess() {
11490
      return this.success != null;
11491
    }
11492
 
11493
    public void setSuccessIsSet(boolean value) {
11494
      if (!value) {
11495
        this.success = null;
11496
      }
11497
    }
11498
 
11499
    public GoogleAdwordsServiceException getGasex() {
11500
      return this.gasex;
11501
    }
11502
 
11503
    public void setGasex(GoogleAdwordsServiceException gasex) {
11504
      this.gasex = gasex;
11505
    }
11506
 
11507
    public void unsetGasex() {
11508
      this.gasex = null;
11509
    }
11510
 
11511
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
11512
    public boolean isSetGasex() {
11513
      return this.gasex != null;
11514
    }
11515
 
11516
    public void setGasexIsSet(boolean value) {
11517
      if (!value) {
11518
        this.gasex = null;
11519
      }
11520
    }
11521
 
11522
    public void setFieldValue(_Fields field, Object value) {
11523
      switch (field) {
11524
      case SUCCESS:
11525
        if (value == null) {
11526
          unsetSuccess();
11527
        } else {
11528
          setSuccess((List<AdwordsAdKeyword>)value);
11529
        }
11530
        break;
11531
 
11532
      case GASEX:
11533
        if (value == null) {
11534
          unsetGasex();
11535
        } else {
11536
          setGasex((GoogleAdwordsServiceException)value);
11537
        }
11538
        break;
11539
 
11540
      }
11541
    }
11542
 
11543
    public Object getFieldValue(_Fields field) {
11544
      switch (field) {
11545
      case SUCCESS:
11546
        return getSuccess();
11547
 
11548
      case GASEX:
11549
        return getGasex();
11550
 
11551
      }
11552
      throw new IllegalStateException();
11553
    }
11554
 
11555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11556
    public boolean isSet(_Fields field) {
11557
      if (field == null) {
11558
        throw new IllegalArgumentException();
11559
      }
11560
 
11561
      switch (field) {
11562
      case SUCCESS:
11563
        return isSetSuccess();
11564
      case GASEX:
11565
        return isSetGasex();
11566
      }
11567
      throw new IllegalStateException();
11568
    }
11569
 
11570
    @Override
11571
    public boolean equals(Object that) {
11572
      if (that == null)
11573
        return false;
11574
      if (that instanceof getAdwordsAdKeywordsByAdgroupId_result)
11575
        return this.equals((getAdwordsAdKeywordsByAdgroupId_result)that);
11576
      return false;
11577
    }
11578
 
11579
    public boolean equals(getAdwordsAdKeywordsByAdgroupId_result that) {
11580
      if (that == null)
11581
        return false;
11582
 
11583
      boolean this_present_success = true && this.isSetSuccess();
11584
      boolean that_present_success = true && that.isSetSuccess();
11585
      if (this_present_success || that_present_success) {
11586
        if (!(this_present_success && that_present_success))
11587
          return false;
11588
        if (!this.success.equals(that.success))
11589
          return false;
11590
      }
11591
 
11592
      boolean this_present_gasex = true && this.isSetGasex();
11593
      boolean that_present_gasex = true && that.isSetGasex();
11594
      if (this_present_gasex || that_present_gasex) {
11595
        if (!(this_present_gasex && that_present_gasex))
11596
          return false;
11597
        if (!this.gasex.equals(that.gasex))
11598
          return false;
11599
      }
11600
 
11601
      return true;
11602
    }
11603
 
11604
    @Override
11605
    public int hashCode() {
11606
      return 0;
11607
    }
11608
 
11609
    public int compareTo(getAdwordsAdKeywordsByAdgroupId_result other) {
11610
      if (!getClass().equals(other.getClass())) {
11611
        return getClass().getName().compareTo(other.getClass().getName());
11612
      }
11613
 
11614
      int lastComparison = 0;
11615
      getAdwordsAdKeywordsByAdgroupId_result typedOther = (getAdwordsAdKeywordsByAdgroupId_result)other;
11616
 
11617
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11618
      if (lastComparison != 0) {
11619
        return lastComparison;
11620
      }
11621
      if (isSetSuccess()) {
11622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11623
        if (lastComparison != 0) {
11624
          return lastComparison;
11625
        }
11626
      }
11627
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
11628
      if (lastComparison != 0) {
11629
        return lastComparison;
11630
      }
11631
      if (isSetGasex()) {
11632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
11633
        if (lastComparison != 0) {
11634
          return lastComparison;
11635
        }
11636
      }
11637
      return 0;
11638
    }
11639
 
11640
    public _Fields fieldForId(int fieldId) {
11641
      return _Fields.findByThriftId(fieldId);
11642
    }
11643
 
11644
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11645
      org.apache.thrift.protocol.TField field;
11646
      iprot.readStructBegin();
11647
      while (true)
11648
      {
11649
        field = iprot.readFieldBegin();
11650
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11651
          break;
11652
        }
11653
        switch (field.id) {
11654
          case 0: // SUCCESS
11655
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11656
              {
11657
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
11658
                this.success = new ArrayList<AdwordsAdKeyword>(_list0.size);
11659
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
11660
                {
11661
                  AdwordsAdKeyword _elem2; // required
11662
                  _elem2 = new AdwordsAdKeyword();
11663
                  _elem2.read(iprot);
11664
                  this.success.add(_elem2);
11665
                }
11666
                iprot.readListEnd();
11667
              }
11668
            } else { 
11669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11670
            }
11671
            break;
11672
          case 1: // GASEX
11673
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11674
              this.gasex = new GoogleAdwordsServiceException();
11675
              this.gasex.read(iprot);
11676
            } else { 
11677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11678
            }
11679
            break;
11680
          default:
11681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11682
        }
11683
        iprot.readFieldEnd();
11684
      }
11685
      iprot.readStructEnd();
11686
      validate();
11687
    }
11688
 
11689
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11690
      oprot.writeStructBegin(STRUCT_DESC);
11691
 
11692
      if (this.isSetSuccess()) {
11693
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11694
        {
11695
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11696
          for (AdwordsAdKeyword _iter3 : this.success)
11697
          {
11698
            _iter3.write(oprot);
11699
          }
11700
          oprot.writeListEnd();
11701
        }
11702
        oprot.writeFieldEnd();
11703
      } else if (this.isSetGasex()) {
11704
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
11705
        this.gasex.write(oprot);
11706
        oprot.writeFieldEnd();
11707
      }
11708
      oprot.writeFieldStop();
11709
      oprot.writeStructEnd();
11710
    }
11711
 
11712
    @Override
11713
    public String toString() {
11714
      StringBuilder sb = new StringBuilder("getAdwordsAdKeywordsByAdgroupId_result(");
11715
      boolean first = true;
11716
 
11717
      sb.append("success:");
11718
      if (this.success == null) {
11719
        sb.append("null");
11720
      } else {
11721
        sb.append(this.success);
11722
      }
11723
      first = false;
11724
      if (!first) sb.append(", ");
11725
      sb.append("gasex:");
11726
      if (this.gasex == null) {
11727
        sb.append("null");
11728
      } else {
11729
        sb.append(this.gasex);
11730
      }
11731
      first = false;
11732
      sb.append(")");
11733
      return sb.toString();
11734
    }
11735
 
11736
    public void validate() throws org.apache.thrift.TException {
11737
      // check for required fields
11738
    }
11739
 
11740
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11741
      try {
11742
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11743
      } catch (org.apache.thrift.TException te) {
11744
        throw new java.io.IOException(te);
11745
      }
11746
    }
11747
 
11748
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11749
      try {
11750
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11751
      } catch (org.apache.thrift.TException te) {
11752
        throw new java.io.IOException(te);
11753
      }
11754
    }
11755
 
11756
  }
11757
 
11758
  public static class getAdwordsAdGroupAdsByAdgroupId_args implements org.apache.thrift.TBase<getAdwordsAdGroupAdsByAdgroupId_args, getAdwordsAdGroupAdsByAdgroupId_args._Fields>, java.io.Serializable, Cloneable   {
11759
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupAdsByAdgroupId_args");
11760
 
11761
    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);
11762
 
11763
    private long adgroupId; // required
11764
 
11765
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11766
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11767
      ADGROUP_ID((short)1, "adgroupId");
11768
 
11769
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11770
 
11771
      static {
11772
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11773
          byName.put(field.getFieldName(), field);
11774
        }
11775
      }
11776
 
11777
      /**
11778
       * Find the _Fields constant that matches fieldId, or null if its not found.
11779
       */
11780
      public static _Fields findByThriftId(int fieldId) {
11781
        switch(fieldId) {
11782
          case 1: // ADGROUP_ID
11783
            return ADGROUP_ID;
11784
          default:
11785
            return null;
11786
        }
11787
      }
11788
 
11789
      /**
11790
       * Find the _Fields constant that matches fieldId, throwing an exception
11791
       * if it is not found.
11792
       */
11793
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11794
        _Fields fields = findByThriftId(fieldId);
11795
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11796
        return fields;
11797
      }
11798
 
11799
      /**
11800
       * Find the _Fields constant that matches name, or null if its not found.
11801
       */
11802
      public static _Fields findByName(String name) {
11803
        return byName.get(name);
11804
      }
11805
 
11806
      private final short _thriftId;
11807
      private final String _fieldName;
11808
 
11809
      _Fields(short thriftId, String fieldName) {
11810
        _thriftId = thriftId;
11811
        _fieldName = fieldName;
11812
      }
11813
 
11814
      public short getThriftFieldId() {
11815
        return _thriftId;
11816
      }
11817
 
11818
      public String getFieldName() {
11819
        return _fieldName;
11820
      }
11821
    }
11822
 
11823
    // isset id assignments
11824
    private static final int __ADGROUPID_ISSET_ID = 0;
11825
    private BitSet __isset_bit_vector = new BitSet(1);
11826
 
11827
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11828
    static {
11829
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11830
      tmpMap.put(_Fields.ADGROUP_ID, new org.apache.thrift.meta_data.FieldMetaData("adgroupId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11831
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11832
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11833
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupAdsByAdgroupId_args.class, metaDataMap);
11834
    }
11835
 
11836
    public getAdwordsAdGroupAdsByAdgroupId_args() {
11837
    }
11838
 
11839
    public getAdwordsAdGroupAdsByAdgroupId_args(
11840
      long adgroupId)
11841
    {
11842
      this();
11843
      this.adgroupId = adgroupId;
11844
      setAdgroupIdIsSet(true);
11845
    }
11846
 
11847
    /**
11848
     * Performs a deep copy on <i>other</i>.
11849
     */
11850
    public getAdwordsAdGroupAdsByAdgroupId_args(getAdwordsAdGroupAdsByAdgroupId_args other) {
11851
      __isset_bit_vector.clear();
11852
      __isset_bit_vector.or(other.__isset_bit_vector);
11853
      this.adgroupId = other.adgroupId;
11854
    }
11855
 
11856
    public getAdwordsAdGroupAdsByAdgroupId_args deepCopy() {
11857
      return new getAdwordsAdGroupAdsByAdgroupId_args(this);
11858
    }
11859
 
11860
    @Override
11861
    public void clear() {
11862
      setAdgroupIdIsSet(false);
11863
      this.adgroupId = 0;
11864
    }
11865
 
11866
    public long getAdgroupId() {
11867
      return this.adgroupId;
11868
    }
11869
 
11870
    public void setAdgroupId(long adgroupId) {
11871
      this.adgroupId = adgroupId;
11872
      setAdgroupIdIsSet(true);
11873
    }
11874
 
11875
    public void unsetAdgroupId() {
11876
      __isset_bit_vector.clear(__ADGROUPID_ISSET_ID);
11877
    }
11878
 
11879
    /** Returns true if field adgroupId is set (has been assigned a value) and false otherwise */
11880
    public boolean isSetAdgroupId() {
11881
      return __isset_bit_vector.get(__ADGROUPID_ISSET_ID);
11882
    }
11883
 
11884
    public void setAdgroupIdIsSet(boolean value) {
11885
      __isset_bit_vector.set(__ADGROUPID_ISSET_ID, value);
11886
    }
11887
 
11888
    public void setFieldValue(_Fields field, Object value) {
11889
      switch (field) {
11890
      case ADGROUP_ID:
11891
        if (value == null) {
11892
          unsetAdgroupId();
11893
        } else {
11894
          setAdgroupId((Long)value);
11895
        }
11896
        break;
11897
 
11898
      }
11899
    }
11900
 
11901
    public Object getFieldValue(_Fields field) {
11902
      switch (field) {
11903
      case ADGROUP_ID:
11904
        return Long.valueOf(getAdgroupId());
11905
 
11906
      }
11907
      throw new IllegalStateException();
11908
    }
11909
 
11910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11911
    public boolean isSet(_Fields field) {
11912
      if (field == null) {
11913
        throw new IllegalArgumentException();
11914
      }
11915
 
11916
      switch (field) {
11917
      case ADGROUP_ID:
11918
        return isSetAdgroupId();
11919
      }
11920
      throw new IllegalStateException();
11921
    }
11922
 
11923
    @Override
11924
    public boolean equals(Object that) {
11925
      if (that == null)
11926
        return false;
11927
      if (that instanceof getAdwordsAdGroupAdsByAdgroupId_args)
11928
        return this.equals((getAdwordsAdGroupAdsByAdgroupId_args)that);
11929
      return false;
11930
    }
11931
 
11932
    public boolean equals(getAdwordsAdGroupAdsByAdgroupId_args that) {
11933
      if (that == null)
11934
        return false;
11935
 
11936
      boolean this_present_adgroupId = true;
11937
      boolean that_present_adgroupId = true;
11938
      if (this_present_adgroupId || that_present_adgroupId) {
11939
        if (!(this_present_adgroupId && that_present_adgroupId))
11940
          return false;
11941
        if (this.adgroupId != that.adgroupId)
11942
          return false;
11943
      }
11944
 
11945
      return true;
11946
    }
11947
 
11948
    @Override
11949
    public int hashCode() {
11950
      return 0;
11951
    }
11952
 
11953
    public int compareTo(getAdwordsAdGroupAdsByAdgroupId_args other) {
11954
      if (!getClass().equals(other.getClass())) {
11955
        return getClass().getName().compareTo(other.getClass().getName());
11956
      }
11957
 
11958
      int lastComparison = 0;
11959
      getAdwordsAdGroupAdsByAdgroupId_args typedOther = (getAdwordsAdGroupAdsByAdgroupId_args)other;
11960
 
11961
      lastComparison = Boolean.valueOf(isSetAdgroupId()).compareTo(typedOther.isSetAdgroupId());
11962
      if (lastComparison != 0) {
11963
        return lastComparison;
11964
      }
11965
      if (isSetAdgroupId()) {
11966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adgroupId, typedOther.adgroupId);
11967
        if (lastComparison != 0) {
11968
          return lastComparison;
11969
        }
11970
      }
11971
      return 0;
11972
    }
11973
 
11974
    public _Fields fieldForId(int fieldId) {
11975
      return _Fields.findByThriftId(fieldId);
11976
    }
11977
 
11978
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11979
      org.apache.thrift.protocol.TField field;
11980
      iprot.readStructBegin();
11981
      while (true)
11982
      {
11983
        field = iprot.readFieldBegin();
11984
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11985
          break;
11986
        }
11987
        switch (field.id) {
11988
          case 1: // ADGROUP_ID
11989
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11990
              this.adgroupId = iprot.readI64();
11991
              setAdgroupIdIsSet(true);
11992
            } else { 
11993
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11994
            }
11995
            break;
11996
          default:
11997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11998
        }
11999
        iprot.readFieldEnd();
12000
      }
12001
      iprot.readStructEnd();
12002
      validate();
12003
    }
12004
 
12005
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12006
      validate();
12007
 
12008
      oprot.writeStructBegin(STRUCT_DESC);
12009
      oprot.writeFieldBegin(ADGROUP_ID_FIELD_DESC);
12010
      oprot.writeI64(this.adgroupId);
12011
      oprot.writeFieldEnd();
12012
      oprot.writeFieldStop();
12013
      oprot.writeStructEnd();
12014
    }
12015
 
12016
    @Override
12017
    public String toString() {
12018
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupAdsByAdgroupId_args(");
12019
      boolean first = true;
12020
 
12021
      sb.append("adgroupId:");
12022
      sb.append(this.adgroupId);
12023
      first = false;
12024
      sb.append(")");
12025
      return sb.toString();
12026
    }
12027
 
12028
    public void validate() throws org.apache.thrift.TException {
12029
      // check for required fields
12030
    }
12031
 
12032
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12033
      try {
12034
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12035
      } catch (org.apache.thrift.TException te) {
12036
        throw new java.io.IOException(te);
12037
      }
12038
    }
12039
 
12040
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12041
      try {
12042
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12043
        __isset_bit_vector = new BitSet(1);
12044
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12045
      } catch (org.apache.thrift.TException te) {
12046
        throw new java.io.IOException(te);
12047
      }
12048
    }
12049
 
12050
  }
12051
 
12052
  public static class getAdwordsAdGroupAdsByAdgroupId_result implements org.apache.thrift.TBase<getAdwordsAdGroupAdsByAdgroupId_result, getAdwordsAdGroupAdsByAdgroupId_result._Fields>, java.io.Serializable, Cloneable   {
12053
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupAdsByAdgroupId_result");
12054
 
12055
    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);
12056
    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);
12057
 
12058
    private List<AdwordsAdGroupAd> success; // required
12059
    private GoogleAdwordsServiceException gasex; // required
12060
 
12061
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12062
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12063
      SUCCESS((short)0, "success"),
12064
      GASEX((short)1, "gasex");
12065
 
12066
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12067
 
12068
      static {
12069
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12070
          byName.put(field.getFieldName(), field);
12071
        }
12072
      }
12073
 
12074
      /**
12075
       * Find the _Fields constant that matches fieldId, or null if its not found.
12076
       */
12077
      public static _Fields findByThriftId(int fieldId) {
12078
        switch(fieldId) {
12079
          case 0: // SUCCESS
12080
            return SUCCESS;
12081
          case 1: // GASEX
12082
            return GASEX;
12083
          default:
12084
            return null;
12085
        }
12086
      }
12087
 
12088
      /**
12089
       * Find the _Fields constant that matches fieldId, throwing an exception
12090
       * if it is not found.
12091
       */
12092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12093
        _Fields fields = findByThriftId(fieldId);
12094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12095
        return fields;
12096
      }
12097
 
12098
      /**
12099
       * Find the _Fields constant that matches name, or null if its not found.
12100
       */
12101
      public static _Fields findByName(String name) {
12102
        return byName.get(name);
12103
      }
12104
 
12105
      private final short _thriftId;
12106
      private final String _fieldName;
12107
 
12108
      _Fields(short thriftId, String fieldName) {
12109
        _thriftId = thriftId;
12110
        _fieldName = fieldName;
12111
      }
12112
 
12113
      public short getThriftFieldId() {
12114
        return _thriftId;
12115
      }
12116
 
12117
      public String getFieldName() {
12118
        return _fieldName;
12119
      }
12120
    }
12121
 
12122
    // isset id assignments
12123
 
12124
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12125
    static {
12126
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12127
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12128
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12129
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class))));
12130
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12131
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12132
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12133
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupAdsByAdgroupId_result.class, metaDataMap);
12134
    }
12135
 
12136
    public getAdwordsAdGroupAdsByAdgroupId_result() {
12137
    }
12138
 
12139
    public getAdwordsAdGroupAdsByAdgroupId_result(
12140
      List<AdwordsAdGroupAd> success,
12141
      GoogleAdwordsServiceException gasex)
12142
    {
12143
      this();
12144
      this.success = success;
12145
      this.gasex = gasex;
12146
    }
12147
 
12148
    /**
12149
     * Performs a deep copy on <i>other</i>.
12150
     */
12151
    public getAdwordsAdGroupAdsByAdgroupId_result(getAdwordsAdGroupAdsByAdgroupId_result other) {
12152
      if (other.isSetSuccess()) {
12153
        List<AdwordsAdGroupAd> __this__success = new ArrayList<AdwordsAdGroupAd>();
12154
        for (AdwordsAdGroupAd other_element : other.success) {
12155
          __this__success.add(new AdwordsAdGroupAd(other_element));
12156
        }
12157
        this.success = __this__success;
12158
      }
12159
      if (other.isSetGasex()) {
12160
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
12161
      }
12162
    }
12163
 
12164
    public getAdwordsAdGroupAdsByAdgroupId_result deepCopy() {
12165
      return new getAdwordsAdGroupAdsByAdgroupId_result(this);
12166
    }
12167
 
12168
    @Override
12169
    public void clear() {
12170
      this.success = null;
12171
      this.gasex = null;
12172
    }
12173
 
12174
    public int getSuccessSize() {
12175
      return (this.success == null) ? 0 : this.success.size();
12176
    }
12177
 
12178
    public java.util.Iterator<AdwordsAdGroupAd> getSuccessIterator() {
12179
      return (this.success == null) ? null : this.success.iterator();
12180
    }
12181
 
12182
    public void addToSuccess(AdwordsAdGroupAd elem) {
12183
      if (this.success == null) {
12184
        this.success = new ArrayList<AdwordsAdGroupAd>();
12185
      }
12186
      this.success.add(elem);
12187
    }
12188
 
12189
    public List<AdwordsAdGroupAd> getSuccess() {
12190
      return this.success;
12191
    }
12192
 
12193
    public void setSuccess(List<AdwordsAdGroupAd> success) {
12194
      this.success = success;
12195
    }
12196
 
12197
    public void unsetSuccess() {
12198
      this.success = null;
12199
    }
12200
 
12201
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12202
    public boolean isSetSuccess() {
12203
      return this.success != null;
12204
    }
12205
 
12206
    public void setSuccessIsSet(boolean value) {
12207
      if (!value) {
12208
        this.success = null;
12209
      }
12210
    }
12211
 
12212
    public GoogleAdwordsServiceException getGasex() {
12213
      return this.gasex;
12214
    }
12215
 
12216
    public void setGasex(GoogleAdwordsServiceException gasex) {
12217
      this.gasex = gasex;
12218
    }
12219
 
12220
    public void unsetGasex() {
12221
      this.gasex = null;
12222
    }
12223
 
12224
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
12225
    public boolean isSetGasex() {
12226
      return this.gasex != null;
12227
    }
12228
 
12229
    public void setGasexIsSet(boolean value) {
12230
      if (!value) {
12231
        this.gasex = null;
12232
      }
12233
    }
12234
 
12235
    public void setFieldValue(_Fields field, Object value) {
12236
      switch (field) {
12237
      case SUCCESS:
12238
        if (value == null) {
12239
          unsetSuccess();
12240
        } else {
12241
          setSuccess((List<AdwordsAdGroupAd>)value);
12242
        }
12243
        break;
12244
 
12245
      case GASEX:
12246
        if (value == null) {
12247
          unsetGasex();
12248
        } else {
12249
          setGasex((GoogleAdwordsServiceException)value);
12250
        }
12251
        break;
12252
 
12253
      }
12254
    }
12255
 
12256
    public Object getFieldValue(_Fields field) {
12257
      switch (field) {
12258
      case SUCCESS:
12259
        return getSuccess();
12260
 
12261
      case GASEX:
12262
        return getGasex();
12263
 
12264
      }
12265
      throw new IllegalStateException();
12266
    }
12267
 
12268
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12269
    public boolean isSet(_Fields field) {
12270
      if (field == null) {
12271
        throw new IllegalArgumentException();
12272
      }
12273
 
12274
      switch (field) {
12275
      case SUCCESS:
12276
        return isSetSuccess();
12277
      case GASEX:
12278
        return isSetGasex();
12279
      }
12280
      throw new IllegalStateException();
12281
    }
12282
 
12283
    @Override
12284
    public boolean equals(Object that) {
12285
      if (that == null)
12286
        return false;
12287
      if (that instanceof getAdwordsAdGroupAdsByAdgroupId_result)
12288
        return this.equals((getAdwordsAdGroupAdsByAdgroupId_result)that);
12289
      return false;
12290
    }
12291
 
12292
    public boolean equals(getAdwordsAdGroupAdsByAdgroupId_result that) {
12293
      if (that == null)
12294
        return false;
12295
 
12296
      boolean this_present_success = true && this.isSetSuccess();
12297
      boolean that_present_success = true && that.isSetSuccess();
12298
      if (this_present_success || that_present_success) {
12299
        if (!(this_present_success && that_present_success))
12300
          return false;
12301
        if (!this.success.equals(that.success))
12302
          return false;
12303
      }
12304
 
12305
      boolean this_present_gasex = true && this.isSetGasex();
12306
      boolean that_present_gasex = true && that.isSetGasex();
12307
      if (this_present_gasex || that_present_gasex) {
12308
        if (!(this_present_gasex && that_present_gasex))
12309
          return false;
12310
        if (!this.gasex.equals(that.gasex))
12311
          return false;
12312
      }
12313
 
12314
      return true;
12315
    }
12316
 
12317
    @Override
12318
    public int hashCode() {
12319
      return 0;
12320
    }
12321
 
12322
    public int compareTo(getAdwordsAdGroupAdsByAdgroupId_result other) {
12323
      if (!getClass().equals(other.getClass())) {
12324
        return getClass().getName().compareTo(other.getClass().getName());
12325
      }
12326
 
12327
      int lastComparison = 0;
12328
      getAdwordsAdGroupAdsByAdgroupId_result typedOther = (getAdwordsAdGroupAdsByAdgroupId_result)other;
12329
 
12330
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12331
      if (lastComparison != 0) {
12332
        return lastComparison;
12333
      }
12334
      if (isSetSuccess()) {
12335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12336
        if (lastComparison != 0) {
12337
          return lastComparison;
12338
        }
12339
      }
12340
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
12341
      if (lastComparison != 0) {
12342
        return lastComparison;
12343
      }
12344
      if (isSetGasex()) {
12345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
12346
        if (lastComparison != 0) {
12347
          return lastComparison;
12348
        }
12349
      }
12350
      return 0;
12351
    }
12352
 
12353
    public _Fields fieldForId(int fieldId) {
12354
      return _Fields.findByThriftId(fieldId);
12355
    }
12356
 
12357
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12358
      org.apache.thrift.protocol.TField field;
12359
      iprot.readStructBegin();
12360
      while (true)
12361
      {
12362
        field = iprot.readFieldBegin();
12363
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12364
          break;
12365
        }
12366
        switch (field.id) {
12367
          case 0: // SUCCESS
12368
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12369
              {
12370
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
12371
                this.success = new ArrayList<AdwordsAdGroupAd>(_list4.size);
12372
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
12373
                {
12374
                  AdwordsAdGroupAd _elem6; // required
12375
                  _elem6 = new AdwordsAdGroupAd();
12376
                  _elem6.read(iprot);
12377
                  this.success.add(_elem6);
12378
                }
12379
                iprot.readListEnd();
12380
              }
12381
            } else { 
12382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12383
            }
12384
            break;
12385
          case 1: // GASEX
12386
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12387
              this.gasex = new GoogleAdwordsServiceException();
12388
              this.gasex.read(iprot);
12389
            } else { 
12390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12391
            }
12392
            break;
12393
          default:
12394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12395
        }
12396
        iprot.readFieldEnd();
12397
      }
12398
      iprot.readStructEnd();
12399
      validate();
12400
    }
12401
 
12402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12403
      oprot.writeStructBegin(STRUCT_DESC);
12404
 
12405
      if (this.isSetSuccess()) {
12406
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12407
        {
12408
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12409
          for (AdwordsAdGroupAd _iter7 : this.success)
12410
          {
12411
            _iter7.write(oprot);
12412
          }
12413
          oprot.writeListEnd();
12414
        }
12415
        oprot.writeFieldEnd();
12416
      } else if (this.isSetGasex()) {
12417
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
12418
        this.gasex.write(oprot);
12419
        oprot.writeFieldEnd();
12420
      }
12421
      oprot.writeFieldStop();
12422
      oprot.writeStructEnd();
12423
    }
12424
 
12425
    @Override
12426
    public String toString() {
12427
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupAdsByAdgroupId_result(");
12428
      boolean first = true;
12429
 
12430
      sb.append("success:");
12431
      if (this.success == null) {
12432
        sb.append("null");
12433
      } else {
12434
        sb.append(this.success);
12435
      }
12436
      first = false;
12437
      if (!first) sb.append(", ");
12438
      sb.append("gasex:");
12439
      if (this.gasex == null) {
12440
        sb.append("null");
12441
      } else {
12442
        sb.append(this.gasex);
12443
      }
12444
      first = false;
12445
      sb.append(")");
12446
      return sb.toString();
12447
    }
12448
 
12449
    public void validate() throws org.apache.thrift.TException {
12450
      // check for required fields
12451
    }
12452
 
12453
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12454
      try {
12455
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12456
      } catch (org.apache.thrift.TException te) {
12457
        throw new java.io.IOException(te);
12458
      }
12459
    }
12460
 
12461
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12462
      try {
12463
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12464
      } catch (org.apache.thrift.TException te) {
12465
        throw new java.io.IOException(te);
12466
      }
12467
    }
12468
 
12469
  }
12470
 
12471
  public static class getAdwordsAdGroupsByCampaignId_args implements org.apache.thrift.TBase<getAdwordsAdGroupsByCampaignId_args, getAdwordsAdGroupsByCampaignId_args._Fields>, java.io.Serializable, Cloneable   {
12472
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupsByCampaignId_args");
12473
 
12474
    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);
12475
 
12476
    private long campaignId; // required
12477
 
12478
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12479
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12480
      CAMPAIGN_ID((short)1, "campaignId");
12481
 
12482
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12483
 
12484
      static {
12485
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12486
          byName.put(field.getFieldName(), field);
12487
        }
12488
      }
12489
 
12490
      /**
12491
       * Find the _Fields constant that matches fieldId, or null if its not found.
12492
       */
12493
      public static _Fields findByThriftId(int fieldId) {
12494
        switch(fieldId) {
12495
          case 1: // CAMPAIGN_ID
12496
            return CAMPAIGN_ID;
12497
          default:
12498
            return null;
12499
        }
12500
      }
12501
 
12502
      /**
12503
       * Find the _Fields constant that matches fieldId, throwing an exception
12504
       * if it is not found.
12505
       */
12506
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12507
        _Fields fields = findByThriftId(fieldId);
12508
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12509
        return fields;
12510
      }
12511
 
12512
      /**
12513
       * Find the _Fields constant that matches name, or null if its not found.
12514
       */
12515
      public static _Fields findByName(String name) {
12516
        return byName.get(name);
12517
      }
12518
 
12519
      private final short _thriftId;
12520
      private final String _fieldName;
12521
 
12522
      _Fields(short thriftId, String fieldName) {
12523
        _thriftId = thriftId;
12524
        _fieldName = fieldName;
12525
      }
12526
 
12527
      public short getThriftFieldId() {
12528
        return _thriftId;
12529
      }
12530
 
12531
      public String getFieldName() {
12532
        return _fieldName;
12533
      }
12534
    }
12535
 
12536
    // isset id assignments
12537
    private static final int __CAMPAIGNID_ISSET_ID = 0;
12538
    private BitSet __isset_bit_vector = new BitSet(1);
12539
 
12540
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12541
    static {
12542
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12543
      tmpMap.put(_Fields.CAMPAIGN_ID, new org.apache.thrift.meta_data.FieldMetaData("campaignId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12545
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12546
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupsByCampaignId_args.class, metaDataMap);
12547
    }
12548
 
12549
    public getAdwordsAdGroupsByCampaignId_args() {
12550
    }
12551
 
12552
    public getAdwordsAdGroupsByCampaignId_args(
12553
      long campaignId)
12554
    {
12555
      this();
12556
      this.campaignId = campaignId;
12557
      setCampaignIdIsSet(true);
12558
    }
12559
 
12560
    /**
12561
     * Performs a deep copy on <i>other</i>.
12562
     */
12563
    public getAdwordsAdGroupsByCampaignId_args(getAdwordsAdGroupsByCampaignId_args other) {
12564
      __isset_bit_vector.clear();
12565
      __isset_bit_vector.or(other.__isset_bit_vector);
12566
      this.campaignId = other.campaignId;
12567
    }
12568
 
12569
    public getAdwordsAdGroupsByCampaignId_args deepCopy() {
12570
      return new getAdwordsAdGroupsByCampaignId_args(this);
12571
    }
12572
 
12573
    @Override
12574
    public void clear() {
12575
      setCampaignIdIsSet(false);
12576
      this.campaignId = 0;
12577
    }
12578
 
12579
    public long getCampaignId() {
12580
      return this.campaignId;
12581
    }
12582
 
12583
    public void setCampaignId(long campaignId) {
12584
      this.campaignId = campaignId;
12585
      setCampaignIdIsSet(true);
12586
    }
12587
 
12588
    public void unsetCampaignId() {
12589
      __isset_bit_vector.clear(__CAMPAIGNID_ISSET_ID);
12590
    }
12591
 
12592
    /** Returns true if field campaignId is set (has been assigned a value) and false otherwise */
12593
    public boolean isSetCampaignId() {
12594
      return __isset_bit_vector.get(__CAMPAIGNID_ISSET_ID);
12595
    }
12596
 
12597
    public void setCampaignIdIsSet(boolean value) {
12598
      __isset_bit_vector.set(__CAMPAIGNID_ISSET_ID, value);
12599
    }
12600
 
12601
    public void setFieldValue(_Fields field, Object value) {
12602
      switch (field) {
12603
      case CAMPAIGN_ID:
12604
        if (value == null) {
12605
          unsetCampaignId();
12606
        } else {
12607
          setCampaignId((Long)value);
12608
        }
12609
        break;
12610
 
12611
      }
12612
    }
12613
 
12614
    public Object getFieldValue(_Fields field) {
12615
      switch (field) {
12616
      case CAMPAIGN_ID:
12617
        return Long.valueOf(getCampaignId());
12618
 
12619
      }
12620
      throw new IllegalStateException();
12621
    }
12622
 
12623
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12624
    public boolean isSet(_Fields field) {
12625
      if (field == null) {
12626
        throw new IllegalArgumentException();
12627
      }
12628
 
12629
      switch (field) {
12630
      case CAMPAIGN_ID:
12631
        return isSetCampaignId();
12632
      }
12633
      throw new IllegalStateException();
12634
    }
12635
 
12636
    @Override
12637
    public boolean equals(Object that) {
12638
      if (that == null)
12639
        return false;
12640
      if (that instanceof getAdwordsAdGroupsByCampaignId_args)
12641
        return this.equals((getAdwordsAdGroupsByCampaignId_args)that);
12642
      return false;
12643
    }
12644
 
12645
    public boolean equals(getAdwordsAdGroupsByCampaignId_args that) {
12646
      if (that == null)
12647
        return false;
12648
 
12649
      boolean this_present_campaignId = true;
12650
      boolean that_present_campaignId = true;
12651
      if (this_present_campaignId || that_present_campaignId) {
12652
        if (!(this_present_campaignId && that_present_campaignId))
12653
          return false;
12654
        if (this.campaignId != that.campaignId)
12655
          return false;
12656
      }
12657
 
12658
      return true;
12659
    }
12660
 
12661
    @Override
12662
    public int hashCode() {
12663
      return 0;
12664
    }
12665
 
12666
    public int compareTo(getAdwordsAdGroupsByCampaignId_args other) {
12667
      if (!getClass().equals(other.getClass())) {
12668
        return getClass().getName().compareTo(other.getClass().getName());
12669
      }
12670
 
12671
      int lastComparison = 0;
12672
      getAdwordsAdGroupsByCampaignId_args typedOther = (getAdwordsAdGroupsByCampaignId_args)other;
12673
 
12674
      lastComparison = Boolean.valueOf(isSetCampaignId()).compareTo(typedOther.isSetCampaignId());
12675
      if (lastComparison != 0) {
12676
        return lastComparison;
12677
      }
12678
      if (isSetCampaignId()) {
12679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignId, typedOther.campaignId);
12680
        if (lastComparison != 0) {
12681
          return lastComparison;
12682
        }
12683
      }
12684
      return 0;
12685
    }
12686
 
12687
    public _Fields fieldForId(int fieldId) {
12688
      return _Fields.findByThriftId(fieldId);
12689
    }
12690
 
12691
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12692
      org.apache.thrift.protocol.TField field;
12693
      iprot.readStructBegin();
12694
      while (true)
12695
      {
12696
        field = iprot.readFieldBegin();
12697
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12698
          break;
12699
        }
12700
        switch (field.id) {
12701
          case 1: // CAMPAIGN_ID
12702
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12703
              this.campaignId = iprot.readI64();
12704
              setCampaignIdIsSet(true);
12705
            } else { 
12706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12707
            }
12708
            break;
12709
          default:
12710
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12711
        }
12712
        iprot.readFieldEnd();
12713
      }
12714
      iprot.readStructEnd();
12715
      validate();
12716
    }
12717
 
12718
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12719
      validate();
12720
 
12721
      oprot.writeStructBegin(STRUCT_DESC);
12722
      oprot.writeFieldBegin(CAMPAIGN_ID_FIELD_DESC);
12723
      oprot.writeI64(this.campaignId);
12724
      oprot.writeFieldEnd();
12725
      oprot.writeFieldStop();
12726
      oprot.writeStructEnd();
12727
    }
12728
 
12729
    @Override
12730
    public String toString() {
12731
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupsByCampaignId_args(");
12732
      boolean first = true;
12733
 
12734
      sb.append("campaignId:");
12735
      sb.append(this.campaignId);
12736
      first = false;
12737
      sb.append(")");
12738
      return sb.toString();
12739
    }
12740
 
12741
    public void validate() throws org.apache.thrift.TException {
12742
      // check for required fields
12743
    }
12744
 
12745
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12746
      try {
12747
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12748
      } catch (org.apache.thrift.TException te) {
12749
        throw new java.io.IOException(te);
12750
      }
12751
    }
12752
 
12753
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12754
      try {
12755
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12756
        __isset_bit_vector = new BitSet(1);
12757
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12758
      } catch (org.apache.thrift.TException te) {
12759
        throw new java.io.IOException(te);
12760
      }
12761
    }
12762
 
12763
  }
12764
 
12765
  public static class getAdwordsAdGroupsByCampaignId_result implements org.apache.thrift.TBase<getAdwordsAdGroupsByCampaignId_result, getAdwordsAdGroupsByCampaignId_result._Fields>, java.io.Serializable, Cloneable   {
12766
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdwordsAdGroupsByCampaignId_result");
12767
 
12768
    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);
12769
    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);
12770
 
12771
    private List<AdwordsAdGroup> success; // required
12772
    private GoogleAdwordsServiceException gasex; // required
12773
 
12774
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12775
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12776
      SUCCESS((short)0, "success"),
12777
      GASEX((short)1, "gasex");
12778
 
12779
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12780
 
12781
      static {
12782
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12783
          byName.put(field.getFieldName(), field);
12784
        }
12785
      }
12786
 
12787
      /**
12788
       * Find the _Fields constant that matches fieldId, or null if its not found.
12789
       */
12790
      public static _Fields findByThriftId(int fieldId) {
12791
        switch(fieldId) {
12792
          case 0: // SUCCESS
12793
            return SUCCESS;
12794
          case 1: // GASEX
12795
            return GASEX;
12796
          default:
12797
            return null;
12798
        }
12799
      }
12800
 
12801
      /**
12802
       * Find the _Fields constant that matches fieldId, throwing an exception
12803
       * if it is not found.
12804
       */
12805
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12806
        _Fields fields = findByThriftId(fieldId);
12807
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12808
        return fields;
12809
      }
12810
 
12811
      /**
12812
       * Find the _Fields constant that matches name, or null if its not found.
12813
       */
12814
      public static _Fields findByName(String name) {
12815
        return byName.get(name);
12816
      }
12817
 
12818
      private final short _thriftId;
12819
      private final String _fieldName;
12820
 
12821
      _Fields(short thriftId, String fieldName) {
12822
        _thriftId = thriftId;
12823
        _fieldName = fieldName;
12824
      }
12825
 
12826
      public short getThriftFieldId() {
12827
        return _thriftId;
12828
      }
12829
 
12830
      public String getFieldName() {
12831
        return _fieldName;
12832
      }
12833
    }
12834
 
12835
    // isset id assignments
12836
 
12837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12838
    static {
12839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12840
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12841
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12842
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class))));
12843
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12844
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12845
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12846
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdwordsAdGroupsByCampaignId_result.class, metaDataMap);
12847
    }
12848
 
12849
    public getAdwordsAdGroupsByCampaignId_result() {
12850
    }
12851
 
12852
    public getAdwordsAdGroupsByCampaignId_result(
12853
      List<AdwordsAdGroup> success,
12854
      GoogleAdwordsServiceException gasex)
12855
    {
12856
      this();
12857
      this.success = success;
12858
      this.gasex = gasex;
12859
    }
12860
 
12861
    /**
12862
     * Performs a deep copy on <i>other</i>.
12863
     */
12864
    public getAdwordsAdGroupsByCampaignId_result(getAdwordsAdGroupsByCampaignId_result other) {
12865
      if (other.isSetSuccess()) {
12866
        List<AdwordsAdGroup> __this__success = new ArrayList<AdwordsAdGroup>();
12867
        for (AdwordsAdGroup other_element : other.success) {
12868
          __this__success.add(new AdwordsAdGroup(other_element));
12869
        }
12870
        this.success = __this__success;
12871
      }
12872
      if (other.isSetGasex()) {
12873
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
12874
      }
12875
    }
12876
 
12877
    public getAdwordsAdGroupsByCampaignId_result deepCopy() {
12878
      return new getAdwordsAdGroupsByCampaignId_result(this);
12879
    }
12880
 
12881
    @Override
12882
    public void clear() {
12883
      this.success = null;
12884
      this.gasex = null;
12885
    }
12886
 
12887
    public int getSuccessSize() {
12888
      return (this.success == null) ? 0 : this.success.size();
12889
    }
12890
 
12891
    public java.util.Iterator<AdwordsAdGroup> getSuccessIterator() {
12892
      return (this.success == null) ? null : this.success.iterator();
12893
    }
12894
 
12895
    public void addToSuccess(AdwordsAdGroup elem) {
12896
      if (this.success == null) {
12897
        this.success = new ArrayList<AdwordsAdGroup>();
12898
      }
12899
      this.success.add(elem);
12900
    }
12901
 
12902
    public List<AdwordsAdGroup> getSuccess() {
12903
      return this.success;
12904
    }
12905
 
12906
    public void setSuccess(List<AdwordsAdGroup> success) {
12907
      this.success = success;
12908
    }
12909
 
12910
    public void unsetSuccess() {
12911
      this.success = null;
12912
    }
12913
 
12914
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12915
    public boolean isSetSuccess() {
12916
      return this.success != null;
12917
    }
12918
 
12919
    public void setSuccessIsSet(boolean value) {
12920
      if (!value) {
12921
        this.success = null;
12922
      }
12923
    }
12924
 
12925
    public GoogleAdwordsServiceException getGasex() {
12926
      return this.gasex;
12927
    }
12928
 
12929
    public void setGasex(GoogleAdwordsServiceException gasex) {
12930
      this.gasex = gasex;
12931
    }
12932
 
12933
    public void unsetGasex() {
12934
      this.gasex = null;
12935
    }
12936
 
12937
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
12938
    public boolean isSetGasex() {
12939
      return this.gasex != null;
12940
    }
12941
 
12942
    public void setGasexIsSet(boolean value) {
12943
      if (!value) {
12944
        this.gasex = null;
12945
      }
12946
    }
12947
 
12948
    public void setFieldValue(_Fields field, Object value) {
12949
      switch (field) {
12950
      case SUCCESS:
12951
        if (value == null) {
12952
          unsetSuccess();
12953
        } else {
12954
          setSuccess((List<AdwordsAdGroup>)value);
12955
        }
12956
        break;
12957
 
12958
      case GASEX:
12959
        if (value == null) {
12960
          unsetGasex();
12961
        } else {
12962
          setGasex((GoogleAdwordsServiceException)value);
12963
        }
12964
        break;
12965
 
12966
      }
12967
    }
12968
 
12969
    public Object getFieldValue(_Fields field) {
12970
      switch (field) {
12971
      case SUCCESS:
12972
        return getSuccess();
12973
 
12974
      case GASEX:
12975
        return getGasex();
12976
 
12977
      }
12978
      throw new IllegalStateException();
12979
    }
12980
 
12981
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12982
    public boolean isSet(_Fields field) {
12983
      if (field == null) {
12984
        throw new IllegalArgumentException();
12985
      }
12986
 
12987
      switch (field) {
12988
      case SUCCESS:
12989
        return isSetSuccess();
12990
      case GASEX:
12991
        return isSetGasex();
12992
      }
12993
      throw new IllegalStateException();
12994
    }
12995
 
12996
    @Override
12997
    public boolean equals(Object that) {
12998
      if (that == null)
12999
        return false;
13000
      if (that instanceof getAdwordsAdGroupsByCampaignId_result)
13001
        return this.equals((getAdwordsAdGroupsByCampaignId_result)that);
13002
      return false;
13003
    }
13004
 
13005
    public boolean equals(getAdwordsAdGroupsByCampaignId_result that) {
13006
      if (that == null)
13007
        return false;
13008
 
13009
      boolean this_present_success = true && this.isSetSuccess();
13010
      boolean that_present_success = true && that.isSetSuccess();
13011
      if (this_present_success || that_present_success) {
13012
        if (!(this_present_success && that_present_success))
13013
          return false;
13014
        if (!this.success.equals(that.success))
13015
          return false;
13016
      }
13017
 
13018
      boolean this_present_gasex = true && this.isSetGasex();
13019
      boolean that_present_gasex = true && that.isSetGasex();
13020
      if (this_present_gasex || that_present_gasex) {
13021
        if (!(this_present_gasex && that_present_gasex))
13022
          return false;
13023
        if (!this.gasex.equals(that.gasex))
13024
          return false;
13025
      }
13026
 
13027
      return true;
13028
    }
13029
 
13030
    @Override
13031
    public int hashCode() {
13032
      return 0;
13033
    }
13034
 
13035
    public int compareTo(getAdwordsAdGroupsByCampaignId_result other) {
13036
      if (!getClass().equals(other.getClass())) {
13037
        return getClass().getName().compareTo(other.getClass().getName());
13038
      }
13039
 
13040
      int lastComparison = 0;
13041
      getAdwordsAdGroupsByCampaignId_result typedOther = (getAdwordsAdGroupsByCampaignId_result)other;
13042
 
13043
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13044
      if (lastComparison != 0) {
13045
        return lastComparison;
13046
      }
13047
      if (isSetSuccess()) {
13048
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13049
        if (lastComparison != 0) {
13050
          return lastComparison;
13051
        }
13052
      }
13053
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
13054
      if (lastComparison != 0) {
13055
        return lastComparison;
13056
      }
13057
      if (isSetGasex()) {
13058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
13059
        if (lastComparison != 0) {
13060
          return lastComparison;
13061
        }
13062
      }
13063
      return 0;
13064
    }
13065
 
13066
    public _Fields fieldForId(int fieldId) {
13067
      return _Fields.findByThriftId(fieldId);
13068
    }
13069
 
13070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13071
      org.apache.thrift.protocol.TField field;
13072
      iprot.readStructBegin();
13073
      while (true)
13074
      {
13075
        field = iprot.readFieldBegin();
13076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13077
          break;
13078
        }
13079
        switch (field.id) {
13080
          case 0: // SUCCESS
13081
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13082
              {
13083
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
13084
                this.success = new ArrayList<AdwordsAdGroup>(_list8.size);
13085
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
13086
                {
13087
                  AdwordsAdGroup _elem10; // required
13088
                  _elem10 = new AdwordsAdGroup();
13089
                  _elem10.read(iprot);
13090
                  this.success.add(_elem10);
13091
                }
13092
                iprot.readListEnd();
13093
              }
13094
            } else { 
13095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13096
            }
13097
            break;
13098
          case 1: // GASEX
13099
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13100
              this.gasex = new GoogleAdwordsServiceException();
13101
              this.gasex.read(iprot);
13102
            } else { 
13103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13104
            }
13105
            break;
13106
          default:
13107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13108
        }
13109
        iprot.readFieldEnd();
13110
      }
13111
      iprot.readStructEnd();
13112
      validate();
13113
    }
13114
 
13115
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13116
      oprot.writeStructBegin(STRUCT_DESC);
13117
 
13118
      if (this.isSetSuccess()) {
13119
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13120
        {
13121
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13122
          for (AdwordsAdGroup _iter11 : this.success)
13123
          {
13124
            _iter11.write(oprot);
13125
          }
13126
          oprot.writeListEnd();
13127
        }
13128
        oprot.writeFieldEnd();
13129
      } else if (this.isSetGasex()) {
13130
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
13131
        this.gasex.write(oprot);
13132
        oprot.writeFieldEnd();
13133
      }
13134
      oprot.writeFieldStop();
13135
      oprot.writeStructEnd();
13136
    }
13137
 
13138
    @Override
13139
    public String toString() {
13140
      StringBuilder sb = new StringBuilder("getAdwordsAdGroupsByCampaignId_result(");
13141
      boolean first = true;
13142
 
13143
      sb.append("success:");
13144
      if (this.success == null) {
13145
        sb.append("null");
13146
      } else {
13147
        sb.append(this.success);
13148
      }
13149
      first = false;
13150
      if (!first) sb.append(", ");
13151
      sb.append("gasex:");
13152
      if (this.gasex == null) {
13153
        sb.append("null");
13154
      } else {
13155
        sb.append(this.gasex);
13156
      }
13157
      first = false;
13158
      sb.append(")");
13159
      return sb.toString();
13160
    }
13161
 
13162
    public void validate() throws org.apache.thrift.TException {
13163
      // check for required fields
13164
    }
13165
 
13166
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13167
      try {
13168
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13169
      } catch (org.apache.thrift.TException te) {
13170
        throw new java.io.IOException(te);
13171
      }
13172
    }
13173
 
13174
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13175
      try {
13176
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13177
      } catch (org.apache.thrift.TException te) {
13178
        throw new java.io.IOException(te);
13179
      }
13180
    }
13181
 
13182
  }
13183
 
13184
  public static class getAllAdwordsCampaigns_args implements org.apache.thrift.TBase<getAllAdwordsCampaigns_args, getAllAdwordsCampaigns_args._Fields>, java.io.Serializable, Cloneable   {
13185
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsCampaigns_args");
13186
 
13187
 
13188
 
13189
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13190
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13191
;
13192
 
13193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13194
 
13195
      static {
13196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13197
          byName.put(field.getFieldName(), field);
13198
        }
13199
      }
13200
 
13201
      /**
13202
       * Find the _Fields constant that matches fieldId, or null if its not found.
13203
       */
13204
      public static _Fields findByThriftId(int fieldId) {
13205
        switch(fieldId) {
13206
          default:
13207
            return null;
13208
        }
13209
      }
13210
 
13211
      /**
13212
       * Find the _Fields constant that matches fieldId, throwing an exception
13213
       * if it is not found.
13214
       */
13215
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13216
        _Fields fields = findByThriftId(fieldId);
13217
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13218
        return fields;
13219
      }
13220
 
13221
      /**
13222
       * Find the _Fields constant that matches name, or null if its not found.
13223
       */
13224
      public static _Fields findByName(String name) {
13225
        return byName.get(name);
13226
      }
13227
 
13228
      private final short _thriftId;
13229
      private final String _fieldName;
13230
 
13231
      _Fields(short thriftId, String fieldName) {
13232
        _thriftId = thriftId;
13233
        _fieldName = fieldName;
13234
      }
13235
 
13236
      public short getThriftFieldId() {
13237
        return _thriftId;
13238
      }
13239
 
13240
      public String getFieldName() {
13241
        return _fieldName;
13242
      }
13243
    }
13244
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13245
    static {
13246
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13247
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13248
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsCampaigns_args.class, metaDataMap);
13249
    }
13250
 
13251
    public getAllAdwordsCampaigns_args() {
13252
    }
13253
 
13254
    /**
13255
     * Performs a deep copy on <i>other</i>.
13256
     */
13257
    public getAllAdwordsCampaigns_args(getAllAdwordsCampaigns_args other) {
13258
    }
13259
 
13260
    public getAllAdwordsCampaigns_args deepCopy() {
13261
      return new getAllAdwordsCampaigns_args(this);
13262
    }
13263
 
13264
    @Override
13265
    public void clear() {
13266
    }
13267
 
13268
    public void setFieldValue(_Fields field, Object value) {
13269
      switch (field) {
13270
      }
13271
    }
13272
 
13273
    public Object getFieldValue(_Fields field) {
13274
      switch (field) {
13275
      }
13276
      throw new IllegalStateException();
13277
    }
13278
 
13279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13280
    public boolean isSet(_Fields field) {
13281
      if (field == null) {
13282
        throw new IllegalArgumentException();
13283
      }
13284
 
13285
      switch (field) {
13286
      }
13287
      throw new IllegalStateException();
13288
    }
13289
 
13290
    @Override
13291
    public boolean equals(Object that) {
13292
      if (that == null)
13293
        return false;
13294
      if (that instanceof getAllAdwordsCampaigns_args)
13295
        return this.equals((getAllAdwordsCampaigns_args)that);
13296
      return false;
13297
    }
13298
 
13299
    public boolean equals(getAllAdwordsCampaigns_args that) {
13300
      if (that == null)
13301
        return false;
13302
 
13303
      return true;
13304
    }
13305
 
13306
    @Override
13307
    public int hashCode() {
13308
      return 0;
13309
    }
13310
 
13311
    public int compareTo(getAllAdwordsCampaigns_args other) {
13312
      if (!getClass().equals(other.getClass())) {
13313
        return getClass().getName().compareTo(other.getClass().getName());
13314
      }
13315
 
13316
      int lastComparison = 0;
13317
      getAllAdwordsCampaigns_args typedOther = (getAllAdwordsCampaigns_args)other;
13318
 
13319
      return 0;
13320
    }
13321
 
13322
    public _Fields fieldForId(int fieldId) {
13323
      return _Fields.findByThriftId(fieldId);
13324
    }
13325
 
13326
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13327
      org.apache.thrift.protocol.TField field;
13328
      iprot.readStructBegin();
13329
      while (true)
13330
      {
13331
        field = iprot.readFieldBegin();
13332
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13333
          break;
13334
        }
13335
        switch (field.id) {
13336
          default:
13337
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13338
        }
13339
        iprot.readFieldEnd();
13340
      }
13341
      iprot.readStructEnd();
13342
      validate();
13343
    }
13344
 
13345
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13346
      validate();
13347
 
13348
      oprot.writeStructBegin(STRUCT_DESC);
13349
      oprot.writeFieldStop();
13350
      oprot.writeStructEnd();
13351
    }
13352
 
13353
    @Override
13354
    public String toString() {
13355
      StringBuilder sb = new StringBuilder("getAllAdwordsCampaigns_args(");
13356
      boolean first = true;
13357
 
13358
      sb.append(")");
13359
      return sb.toString();
13360
    }
13361
 
13362
    public void validate() throws org.apache.thrift.TException {
13363
      // check for required fields
13364
    }
13365
 
13366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13367
      try {
13368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13369
      } catch (org.apache.thrift.TException te) {
13370
        throw new java.io.IOException(te);
13371
      }
13372
    }
13373
 
13374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13375
      try {
13376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13377
      } catch (org.apache.thrift.TException te) {
13378
        throw new java.io.IOException(te);
13379
      }
13380
    }
13381
 
13382
  }
13383
 
13384
  public static class getAllAdwordsCampaigns_result implements org.apache.thrift.TBase<getAllAdwordsCampaigns_result, getAllAdwordsCampaigns_result._Fields>, java.io.Serializable, Cloneable   {
13385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsCampaigns_result");
13386
 
13387
    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);
13388
    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);
13389
 
13390
    private List<AdwordsCampaign> success; // required
13391
    private GoogleAdwordsServiceException gasex; // required
13392
 
13393
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13394
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13395
      SUCCESS((short)0, "success"),
13396
      GASEX((short)1, "gasex");
13397
 
13398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13399
 
13400
      static {
13401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13402
          byName.put(field.getFieldName(), field);
13403
        }
13404
      }
13405
 
13406
      /**
13407
       * Find the _Fields constant that matches fieldId, or null if its not found.
13408
       */
13409
      public static _Fields findByThriftId(int fieldId) {
13410
        switch(fieldId) {
13411
          case 0: // SUCCESS
13412
            return SUCCESS;
13413
          case 1: // GASEX
13414
            return GASEX;
13415
          default:
13416
            return null;
13417
        }
13418
      }
13419
 
13420
      /**
13421
       * Find the _Fields constant that matches fieldId, throwing an exception
13422
       * if it is not found.
13423
       */
13424
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13425
        _Fields fields = findByThriftId(fieldId);
13426
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13427
        return fields;
13428
      }
13429
 
13430
      /**
13431
       * Find the _Fields constant that matches name, or null if its not found.
13432
       */
13433
      public static _Fields findByName(String name) {
13434
        return byName.get(name);
13435
      }
13436
 
13437
      private final short _thriftId;
13438
      private final String _fieldName;
13439
 
13440
      _Fields(short thriftId, String fieldName) {
13441
        _thriftId = thriftId;
13442
        _fieldName = fieldName;
13443
      }
13444
 
13445
      public short getThriftFieldId() {
13446
        return _thriftId;
13447
      }
13448
 
13449
      public String getFieldName() {
13450
        return _fieldName;
13451
      }
13452
    }
13453
 
13454
    // isset id assignments
13455
 
13456
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13457
    static {
13458
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13459
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13460
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13461
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsCampaign.class))));
13462
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13464
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13465
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsCampaigns_result.class, metaDataMap);
13466
    }
13467
 
13468
    public getAllAdwordsCampaigns_result() {
13469
    }
13470
 
13471
    public getAllAdwordsCampaigns_result(
13472
      List<AdwordsCampaign> success,
13473
      GoogleAdwordsServiceException gasex)
13474
    {
13475
      this();
13476
      this.success = success;
13477
      this.gasex = gasex;
13478
    }
13479
 
13480
    /**
13481
     * Performs a deep copy on <i>other</i>.
13482
     */
13483
    public getAllAdwordsCampaigns_result(getAllAdwordsCampaigns_result other) {
13484
      if (other.isSetSuccess()) {
13485
        List<AdwordsCampaign> __this__success = new ArrayList<AdwordsCampaign>();
13486
        for (AdwordsCampaign other_element : other.success) {
13487
          __this__success.add(new AdwordsCampaign(other_element));
13488
        }
13489
        this.success = __this__success;
13490
      }
13491
      if (other.isSetGasex()) {
13492
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
13493
      }
13494
    }
13495
 
13496
    public getAllAdwordsCampaigns_result deepCopy() {
13497
      return new getAllAdwordsCampaigns_result(this);
13498
    }
13499
 
13500
    @Override
13501
    public void clear() {
13502
      this.success = null;
13503
      this.gasex = null;
13504
    }
13505
 
13506
    public int getSuccessSize() {
13507
      return (this.success == null) ? 0 : this.success.size();
13508
    }
13509
 
13510
    public java.util.Iterator<AdwordsCampaign> getSuccessIterator() {
13511
      return (this.success == null) ? null : this.success.iterator();
13512
    }
13513
 
13514
    public void addToSuccess(AdwordsCampaign elem) {
13515
      if (this.success == null) {
13516
        this.success = new ArrayList<AdwordsCampaign>();
13517
      }
13518
      this.success.add(elem);
13519
    }
13520
 
13521
    public List<AdwordsCampaign> getSuccess() {
13522
      return this.success;
13523
    }
13524
 
13525
    public void setSuccess(List<AdwordsCampaign> success) {
13526
      this.success = success;
13527
    }
13528
 
13529
    public void unsetSuccess() {
13530
      this.success = null;
13531
    }
13532
 
13533
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13534
    public boolean isSetSuccess() {
13535
      return this.success != null;
13536
    }
13537
 
13538
    public void setSuccessIsSet(boolean value) {
13539
      if (!value) {
13540
        this.success = null;
13541
      }
13542
    }
13543
 
13544
    public GoogleAdwordsServiceException getGasex() {
13545
      return this.gasex;
13546
    }
13547
 
13548
    public void setGasex(GoogleAdwordsServiceException gasex) {
13549
      this.gasex = gasex;
13550
    }
13551
 
13552
    public void unsetGasex() {
13553
      this.gasex = null;
13554
    }
13555
 
13556
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
13557
    public boolean isSetGasex() {
13558
      return this.gasex != null;
13559
    }
13560
 
13561
    public void setGasexIsSet(boolean value) {
13562
      if (!value) {
13563
        this.gasex = null;
13564
      }
13565
    }
13566
 
13567
    public void setFieldValue(_Fields field, Object value) {
13568
      switch (field) {
13569
      case SUCCESS:
13570
        if (value == null) {
13571
          unsetSuccess();
13572
        } else {
13573
          setSuccess((List<AdwordsCampaign>)value);
13574
        }
13575
        break;
13576
 
13577
      case GASEX:
13578
        if (value == null) {
13579
          unsetGasex();
13580
        } else {
13581
          setGasex((GoogleAdwordsServiceException)value);
13582
        }
13583
        break;
13584
 
13585
      }
13586
    }
13587
 
13588
    public Object getFieldValue(_Fields field) {
13589
      switch (field) {
13590
      case SUCCESS:
13591
        return getSuccess();
13592
 
13593
      case GASEX:
13594
        return getGasex();
13595
 
13596
      }
13597
      throw new IllegalStateException();
13598
    }
13599
 
13600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13601
    public boolean isSet(_Fields field) {
13602
      if (field == null) {
13603
        throw new IllegalArgumentException();
13604
      }
13605
 
13606
      switch (field) {
13607
      case SUCCESS:
13608
        return isSetSuccess();
13609
      case GASEX:
13610
        return isSetGasex();
13611
      }
13612
      throw new IllegalStateException();
13613
    }
13614
 
13615
    @Override
13616
    public boolean equals(Object that) {
13617
      if (that == null)
13618
        return false;
13619
      if (that instanceof getAllAdwordsCampaigns_result)
13620
        return this.equals((getAllAdwordsCampaigns_result)that);
13621
      return false;
13622
    }
13623
 
13624
    public boolean equals(getAllAdwordsCampaigns_result that) {
13625
      if (that == null)
13626
        return false;
13627
 
13628
      boolean this_present_success = true && this.isSetSuccess();
13629
      boolean that_present_success = true && that.isSetSuccess();
13630
      if (this_present_success || that_present_success) {
13631
        if (!(this_present_success && that_present_success))
13632
          return false;
13633
        if (!this.success.equals(that.success))
13634
          return false;
13635
      }
13636
 
13637
      boolean this_present_gasex = true && this.isSetGasex();
13638
      boolean that_present_gasex = true && that.isSetGasex();
13639
      if (this_present_gasex || that_present_gasex) {
13640
        if (!(this_present_gasex && that_present_gasex))
13641
          return false;
13642
        if (!this.gasex.equals(that.gasex))
13643
          return false;
13644
      }
13645
 
13646
      return true;
13647
    }
13648
 
13649
    @Override
13650
    public int hashCode() {
13651
      return 0;
13652
    }
13653
 
13654
    public int compareTo(getAllAdwordsCampaigns_result other) {
13655
      if (!getClass().equals(other.getClass())) {
13656
        return getClass().getName().compareTo(other.getClass().getName());
13657
      }
13658
 
13659
      int lastComparison = 0;
13660
      getAllAdwordsCampaigns_result typedOther = (getAllAdwordsCampaigns_result)other;
13661
 
13662
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13663
      if (lastComparison != 0) {
13664
        return lastComparison;
13665
      }
13666
      if (isSetSuccess()) {
13667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13668
        if (lastComparison != 0) {
13669
          return lastComparison;
13670
        }
13671
      }
13672
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
13673
      if (lastComparison != 0) {
13674
        return lastComparison;
13675
      }
13676
      if (isSetGasex()) {
13677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
13678
        if (lastComparison != 0) {
13679
          return lastComparison;
13680
        }
13681
      }
13682
      return 0;
13683
    }
13684
 
13685
    public _Fields fieldForId(int fieldId) {
13686
      return _Fields.findByThriftId(fieldId);
13687
    }
13688
 
13689
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13690
      org.apache.thrift.protocol.TField field;
13691
      iprot.readStructBegin();
13692
      while (true)
13693
      {
13694
        field = iprot.readFieldBegin();
13695
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13696
          break;
13697
        }
13698
        switch (field.id) {
13699
          case 0: // SUCCESS
13700
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13701
              {
13702
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
13703
                this.success = new ArrayList<AdwordsCampaign>(_list12.size);
13704
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
13705
                {
13706
                  AdwordsCampaign _elem14; // required
13707
                  _elem14 = new AdwordsCampaign();
13708
                  _elem14.read(iprot);
13709
                  this.success.add(_elem14);
13710
                }
13711
                iprot.readListEnd();
13712
              }
13713
            } else { 
13714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13715
            }
13716
            break;
13717
          case 1: // GASEX
13718
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13719
              this.gasex = new GoogleAdwordsServiceException();
13720
              this.gasex.read(iprot);
13721
            } else { 
13722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13723
            }
13724
            break;
13725
          default:
13726
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13727
        }
13728
        iprot.readFieldEnd();
13729
      }
13730
      iprot.readStructEnd();
13731
      validate();
13732
    }
13733
 
13734
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13735
      oprot.writeStructBegin(STRUCT_DESC);
13736
 
13737
      if (this.isSetSuccess()) {
13738
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13739
        {
13740
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13741
          for (AdwordsCampaign _iter15 : this.success)
13742
          {
13743
            _iter15.write(oprot);
13744
          }
13745
          oprot.writeListEnd();
13746
        }
13747
        oprot.writeFieldEnd();
13748
      } else if (this.isSetGasex()) {
13749
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
13750
        this.gasex.write(oprot);
13751
        oprot.writeFieldEnd();
13752
      }
13753
      oprot.writeFieldStop();
13754
      oprot.writeStructEnd();
13755
    }
13756
 
13757
    @Override
13758
    public String toString() {
13759
      StringBuilder sb = new StringBuilder("getAllAdwordsCampaigns_result(");
13760
      boolean first = true;
13761
 
13762
      sb.append("success:");
13763
      if (this.success == null) {
13764
        sb.append("null");
13765
      } else {
13766
        sb.append(this.success);
13767
      }
13768
      first = false;
13769
      if (!first) sb.append(", ");
13770
      sb.append("gasex:");
13771
      if (this.gasex == null) {
13772
        sb.append("null");
13773
      } else {
13774
        sb.append(this.gasex);
13775
      }
13776
      first = false;
13777
      sb.append(")");
13778
      return sb.toString();
13779
    }
13780
 
13781
    public void validate() throws org.apache.thrift.TException {
13782
      // check for required fields
13783
    }
13784
 
13785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13786
      try {
13787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13788
      } catch (org.apache.thrift.TException te) {
13789
        throw new java.io.IOException(te);
13790
      }
13791
    }
13792
 
13793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13794
      try {
13795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13796
      } catch (org.apache.thrift.TException te) {
13797
        throw new java.io.IOException(te);
13798
      }
13799
    }
13800
 
13801
  }
13802
 
13803
  public static class getAllAdwordsAdGroups_args implements org.apache.thrift.TBase<getAllAdwordsAdGroups_args, getAllAdwordsAdGroups_args._Fields>, java.io.Serializable, Cloneable   {
13804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroups_args");
13805
 
13806
 
13807
 
13808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13810
;
13811
 
13812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13813
 
13814
      static {
13815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13816
          byName.put(field.getFieldName(), field);
13817
        }
13818
      }
13819
 
13820
      /**
13821
       * Find the _Fields constant that matches fieldId, or null if its not found.
13822
       */
13823
      public static _Fields findByThriftId(int fieldId) {
13824
        switch(fieldId) {
13825
          default:
13826
            return null;
13827
        }
13828
      }
13829
 
13830
      /**
13831
       * Find the _Fields constant that matches fieldId, throwing an exception
13832
       * if it is not found.
13833
       */
13834
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13835
        _Fields fields = findByThriftId(fieldId);
13836
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13837
        return fields;
13838
      }
13839
 
13840
      /**
13841
       * Find the _Fields constant that matches name, or null if its not found.
13842
       */
13843
      public static _Fields findByName(String name) {
13844
        return byName.get(name);
13845
      }
13846
 
13847
      private final short _thriftId;
13848
      private final String _fieldName;
13849
 
13850
      _Fields(short thriftId, String fieldName) {
13851
        _thriftId = thriftId;
13852
        _fieldName = fieldName;
13853
      }
13854
 
13855
      public short getThriftFieldId() {
13856
        return _thriftId;
13857
      }
13858
 
13859
      public String getFieldName() {
13860
        return _fieldName;
13861
      }
13862
    }
13863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13864
    static {
13865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroups_args.class, metaDataMap);
13868
    }
13869
 
13870
    public getAllAdwordsAdGroups_args() {
13871
    }
13872
 
13873
    /**
13874
     * Performs a deep copy on <i>other</i>.
13875
     */
13876
    public getAllAdwordsAdGroups_args(getAllAdwordsAdGroups_args other) {
13877
    }
13878
 
13879
    public getAllAdwordsAdGroups_args deepCopy() {
13880
      return new getAllAdwordsAdGroups_args(this);
13881
    }
13882
 
13883
    @Override
13884
    public void clear() {
13885
    }
13886
 
13887
    public void setFieldValue(_Fields field, Object value) {
13888
      switch (field) {
13889
      }
13890
    }
13891
 
13892
    public Object getFieldValue(_Fields field) {
13893
      switch (field) {
13894
      }
13895
      throw new IllegalStateException();
13896
    }
13897
 
13898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13899
    public boolean isSet(_Fields field) {
13900
      if (field == null) {
13901
        throw new IllegalArgumentException();
13902
      }
13903
 
13904
      switch (field) {
13905
      }
13906
      throw new IllegalStateException();
13907
    }
13908
 
13909
    @Override
13910
    public boolean equals(Object that) {
13911
      if (that == null)
13912
        return false;
13913
      if (that instanceof getAllAdwordsAdGroups_args)
13914
        return this.equals((getAllAdwordsAdGroups_args)that);
13915
      return false;
13916
    }
13917
 
13918
    public boolean equals(getAllAdwordsAdGroups_args that) {
13919
      if (that == null)
13920
        return false;
13921
 
13922
      return true;
13923
    }
13924
 
13925
    @Override
13926
    public int hashCode() {
13927
      return 0;
13928
    }
13929
 
13930
    public int compareTo(getAllAdwordsAdGroups_args other) {
13931
      if (!getClass().equals(other.getClass())) {
13932
        return getClass().getName().compareTo(other.getClass().getName());
13933
      }
13934
 
13935
      int lastComparison = 0;
13936
      getAllAdwordsAdGroups_args typedOther = (getAllAdwordsAdGroups_args)other;
13937
 
13938
      return 0;
13939
    }
13940
 
13941
    public _Fields fieldForId(int fieldId) {
13942
      return _Fields.findByThriftId(fieldId);
13943
    }
13944
 
13945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13946
      org.apache.thrift.protocol.TField field;
13947
      iprot.readStructBegin();
13948
      while (true)
13949
      {
13950
        field = iprot.readFieldBegin();
13951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13952
          break;
13953
        }
13954
        switch (field.id) {
13955
          default:
13956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13957
        }
13958
        iprot.readFieldEnd();
13959
      }
13960
      iprot.readStructEnd();
13961
      validate();
13962
    }
13963
 
13964
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13965
      validate();
13966
 
13967
      oprot.writeStructBegin(STRUCT_DESC);
13968
      oprot.writeFieldStop();
13969
      oprot.writeStructEnd();
13970
    }
13971
 
13972
    @Override
13973
    public String toString() {
13974
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroups_args(");
13975
      boolean first = true;
13976
 
13977
      sb.append(")");
13978
      return sb.toString();
13979
    }
13980
 
13981
    public void validate() throws org.apache.thrift.TException {
13982
      // check for required fields
13983
    }
13984
 
13985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13986
      try {
13987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13988
      } catch (org.apache.thrift.TException te) {
13989
        throw new java.io.IOException(te);
13990
      }
13991
    }
13992
 
13993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13994
      try {
13995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13996
      } catch (org.apache.thrift.TException te) {
13997
        throw new java.io.IOException(te);
13998
      }
13999
    }
14000
 
14001
  }
14002
 
14003
  public static class getAllAdwordsAdGroups_result implements org.apache.thrift.TBase<getAllAdwordsAdGroups_result, getAllAdwordsAdGroups_result._Fields>, java.io.Serializable, Cloneable   {
14004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroups_result");
14005
 
14006
    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);
14007
    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);
14008
 
14009
    private List<AdwordsAdGroup> success; // required
14010
    private GoogleAdwordsServiceException gasex; // required
14011
 
14012
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14013
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14014
      SUCCESS((short)0, "success"),
14015
      GASEX((short)1, "gasex");
14016
 
14017
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14018
 
14019
      static {
14020
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14021
          byName.put(field.getFieldName(), field);
14022
        }
14023
      }
14024
 
14025
      /**
14026
       * Find the _Fields constant that matches fieldId, or null if its not found.
14027
       */
14028
      public static _Fields findByThriftId(int fieldId) {
14029
        switch(fieldId) {
14030
          case 0: // SUCCESS
14031
            return SUCCESS;
14032
          case 1: // GASEX
14033
            return GASEX;
14034
          default:
14035
            return null;
14036
        }
14037
      }
14038
 
14039
      /**
14040
       * Find the _Fields constant that matches fieldId, throwing an exception
14041
       * if it is not found.
14042
       */
14043
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14044
        _Fields fields = findByThriftId(fieldId);
14045
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14046
        return fields;
14047
      }
14048
 
14049
      /**
14050
       * Find the _Fields constant that matches name, or null if its not found.
14051
       */
14052
      public static _Fields findByName(String name) {
14053
        return byName.get(name);
14054
      }
14055
 
14056
      private final short _thriftId;
14057
      private final String _fieldName;
14058
 
14059
      _Fields(short thriftId, String fieldName) {
14060
        _thriftId = thriftId;
14061
        _fieldName = fieldName;
14062
      }
14063
 
14064
      public short getThriftFieldId() {
14065
        return _thriftId;
14066
      }
14067
 
14068
      public String getFieldName() {
14069
        return _fieldName;
14070
      }
14071
    }
14072
 
14073
    // isset id assignments
14074
 
14075
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14076
    static {
14077
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14078
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14079
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14080
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroup.class))));
14081
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14082
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14083
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14084
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroups_result.class, metaDataMap);
14085
    }
14086
 
14087
    public getAllAdwordsAdGroups_result() {
14088
    }
14089
 
14090
    public getAllAdwordsAdGroups_result(
14091
      List<AdwordsAdGroup> success,
14092
      GoogleAdwordsServiceException gasex)
14093
    {
14094
      this();
14095
      this.success = success;
14096
      this.gasex = gasex;
14097
    }
14098
 
14099
    /**
14100
     * Performs a deep copy on <i>other</i>.
14101
     */
14102
    public getAllAdwordsAdGroups_result(getAllAdwordsAdGroups_result other) {
14103
      if (other.isSetSuccess()) {
14104
        List<AdwordsAdGroup> __this__success = new ArrayList<AdwordsAdGroup>();
14105
        for (AdwordsAdGroup other_element : other.success) {
14106
          __this__success.add(new AdwordsAdGroup(other_element));
14107
        }
14108
        this.success = __this__success;
14109
      }
14110
      if (other.isSetGasex()) {
14111
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
14112
      }
14113
    }
14114
 
14115
    public getAllAdwordsAdGroups_result deepCopy() {
14116
      return new getAllAdwordsAdGroups_result(this);
14117
    }
14118
 
14119
    @Override
14120
    public void clear() {
14121
      this.success = null;
14122
      this.gasex = null;
14123
    }
14124
 
14125
    public int getSuccessSize() {
14126
      return (this.success == null) ? 0 : this.success.size();
14127
    }
14128
 
14129
    public java.util.Iterator<AdwordsAdGroup> getSuccessIterator() {
14130
      return (this.success == null) ? null : this.success.iterator();
14131
    }
14132
 
14133
    public void addToSuccess(AdwordsAdGroup elem) {
14134
      if (this.success == null) {
14135
        this.success = new ArrayList<AdwordsAdGroup>();
14136
      }
14137
      this.success.add(elem);
14138
    }
14139
 
14140
    public List<AdwordsAdGroup> getSuccess() {
14141
      return this.success;
14142
    }
14143
 
14144
    public void setSuccess(List<AdwordsAdGroup> success) {
14145
      this.success = success;
14146
    }
14147
 
14148
    public void unsetSuccess() {
14149
      this.success = null;
14150
    }
14151
 
14152
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14153
    public boolean isSetSuccess() {
14154
      return this.success != null;
14155
    }
14156
 
14157
    public void setSuccessIsSet(boolean value) {
14158
      if (!value) {
14159
        this.success = null;
14160
      }
14161
    }
14162
 
14163
    public GoogleAdwordsServiceException getGasex() {
14164
      return this.gasex;
14165
    }
14166
 
14167
    public void setGasex(GoogleAdwordsServiceException gasex) {
14168
      this.gasex = gasex;
14169
    }
14170
 
14171
    public void unsetGasex() {
14172
      this.gasex = null;
14173
    }
14174
 
14175
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
14176
    public boolean isSetGasex() {
14177
      return this.gasex != null;
14178
    }
14179
 
14180
    public void setGasexIsSet(boolean value) {
14181
      if (!value) {
14182
        this.gasex = null;
14183
      }
14184
    }
14185
 
14186
    public void setFieldValue(_Fields field, Object value) {
14187
      switch (field) {
14188
      case SUCCESS:
14189
        if (value == null) {
14190
          unsetSuccess();
14191
        } else {
14192
          setSuccess((List<AdwordsAdGroup>)value);
14193
        }
14194
        break;
14195
 
14196
      case GASEX:
14197
        if (value == null) {
14198
          unsetGasex();
14199
        } else {
14200
          setGasex((GoogleAdwordsServiceException)value);
14201
        }
14202
        break;
14203
 
14204
      }
14205
    }
14206
 
14207
    public Object getFieldValue(_Fields field) {
14208
      switch (field) {
14209
      case SUCCESS:
14210
        return getSuccess();
14211
 
14212
      case GASEX:
14213
        return getGasex();
14214
 
14215
      }
14216
      throw new IllegalStateException();
14217
    }
14218
 
14219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14220
    public boolean isSet(_Fields field) {
14221
      if (field == null) {
14222
        throw new IllegalArgumentException();
14223
      }
14224
 
14225
      switch (field) {
14226
      case SUCCESS:
14227
        return isSetSuccess();
14228
      case GASEX:
14229
        return isSetGasex();
14230
      }
14231
      throw new IllegalStateException();
14232
    }
14233
 
14234
    @Override
14235
    public boolean equals(Object that) {
14236
      if (that == null)
14237
        return false;
14238
      if (that instanceof getAllAdwordsAdGroups_result)
14239
        return this.equals((getAllAdwordsAdGroups_result)that);
14240
      return false;
14241
    }
14242
 
14243
    public boolean equals(getAllAdwordsAdGroups_result that) {
14244
      if (that == null)
14245
        return false;
14246
 
14247
      boolean this_present_success = true && this.isSetSuccess();
14248
      boolean that_present_success = true && that.isSetSuccess();
14249
      if (this_present_success || that_present_success) {
14250
        if (!(this_present_success && that_present_success))
14251
          return false;
14252
        if (!this.success.equals(that.success))
14253
          return false;
14254
      }
14255
 
14256
      boolean this_present_gasex = true && this.isSetGasex();
14257
      boolean that_present_gasex = true && that.isSetGasex();
14258
      if (this_present_gasex || that_present_gasex) {
14259
        if (!(this_present_gasex && that_present_gasex))
14260
          return false;
14261
        if (!this.gasex.equals(that.gasex))
14262
          return false;
14263
      }
14264
 
14265
      return true;
14266
    }
14267
 
14268
    @Override
14269
    public int hashCode() {
14270
      return 0;
14271
    }
14272
 
14273
    public int compareTo(getAllAdwordsAdGroups_result other) {
14274
      if (!getClass().equals(other.getClass())) {
14275
        return getClass().getName().compareTo(other.getClass().getName());
14276
      }
14277
 
14278
      int lastComparison = 0;
14279
      getAllAdwordsAdGroups_result typedOther = (getAllAdwordsAdGroups_result)other;
14280
 
14281
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14282
      if (lastComparison != 0) {
14283
        return lastComparison;
14284
      }
14285
      if (isSetSuccess()) {
14286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14287
        if (lastComparison != 0) {
14288
          return lastComparison;
14289
        }
14290
      }
14291
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
14292
      if (lastComparison != 0) {
14293
        return lastComparison;
14294
      }
14295
      if (isSetGasex()) {
14296
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
14297
        if (lastComparison != 0) {
14298
          return lastComparison;
14299
        }
14300
      }
14301
      return 0;
14302
    }
14303
 
14304
    public _Fields fieldForId(int fieldId) {
14305
      return _Fields.findByThriftId(fieldId);
14306
    }
14307
 
14308
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14309
      org.apache.thrift.protocol.TField field;
14310
      iprot.readStructBegin();
14311
      while (true)
14312
      {
14313
        field = iprot.readFieldBegin();
14314
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14315
          break;
14316
        }
14317
        switch (field.id) {
14318
          case 0: // SUCCESS
14319
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14320
              {
14321
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
14322
                this.success = new ArrayList<AdwordsAdGroup>(_list16.size);
14323
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
14324
                {
14325
                  AdwordsAdGroup _elem18; // required
14326
                  _elem18 = new AdwordsAdGroup();
14327
                  _elem18.read(iprot);
14328
                  this.success.add(_elem18);
14329
                }
14330
                iprot.readListEnd();
14331
              }
14332
            } else { 
14333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14334
            }
14335
            break;
14336
          case 1: // GASEX
14337
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14338
              this.gasex = new GoogleAdwordsServiceException();
14339
              this.gasex.read(iprot);
14340
            } else { 
14341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14342
            }
14343
            break;
14344
          default:
14345
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14346
        }
14347
        iprot.readFieldEnd();
14348
      }
14349
      iprot.readStructEnd();
14350
      validate();
14351
    }
14352
 
14353
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14354
      oprot.writeStructBegin(STRUCT_DESC);
14355
 
14356
      if (this.isSetSuccess()) {
14357
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14358
        {
14359
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14360
          for (AdwordsAdGroup _iter19 : this.success)
14361
          {
14362
            _iter19.write(oprot);
14363
          }
14364
          oprot.writeListEnd();
14365
        }
14366
        oprot.writeFieldEnd();
14367
      } else if (this.isSetGasex()) {
14368
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
14369
        this.gasex.write(oprot);
14370
        oprot.writeFieldEnd();
14371
      }
14372
      oprot.writeFieldStop();
14373
      oprot.writeStructEnd();
14374
    }
14375
 
14376
    @Override
14377
    public String toString() {
14378
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroups_result(");
14379
      boolean first = true;
14380
 
14381
      sb.append("success:");
14382
      if (this.success == null) {
14383
        sb.append("null");
14384
      } else {
14385
        sb.append(this.success);
14386
      }
14387
      first = false;
14388
      if (!first) sb.append(", ");
14389
      sb.append("gasex:");
14390
      if (this.gasex == null) {
14391
        sb.append("null");
14392
      } else {
14393
        sb.append(this.gasex);
14394
      }
14395
      first = false;
14396
      sb.append(")");
14397
      return sb.toString();
14398
    }
14399
 
14400
    public void validate() throws org.apache.thrift.TException {
14401
      // check for required fields
14402
    }
14403
 
14404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14405
      try {
14406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14407
      } catch (org.apache.thrift.TException te) {
14408
        throw new java.io.IOException(te);
14409
      }
14410
    }
14411
 
14412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14413
      try {
14414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14415
      } catch (org.apache.thrift.TException te) {
14416
        throw new java.io.IOException(te);
14417
      }
14418
    }
14419
 
14420
  }
14421
 
14422
  public static class getAllAdwordsAdGroupAds_args implements org.apache.thrift.TBase<getAllAdwordsAdGroupAds_args, getAllAdwordsAdGroupAds_args._Fields>, java.io.Serializable, Cloneable   {
14423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroupAds_args");
14424
 
14425
 
14426
 
14427
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14428
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14429
;
14430
 
14431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14432
 
14433
      static {
14434
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14435
          byName.put(field.getFieldName(), field);
14436
        }
14437
      }
14438
 
14439
      /**
14440
       * Find the _Fields constant that matches fieldId, or null if its not found.
14441
       */
14442
      public static _Fields findByThriftId(int fieldId) {
14443
        switch(fieldId) {
14444
          default:
14445
            return null;
14446
        }
14447
      }
14448
 
14449
      /**
14450
       * Find the _Fields constant that matches fieldId, throwing an exception
14451
       * if it is not found.
14452
       */
14453
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14454
        _Fields fields = findByThriftId(fieldId);
14455
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14456
        return fields;
14457
      }
14458
 
14459
      /**
14460
       * Find the _Fields constant that matches name, or null if its not found.
14461
       */
14462
      public static _Fields findByName(String name) {
14463
        return byName.get(name);
14464
      }
14465
 
14466
      private final short _thriftId;
14467
      private final String _fieldName;
14468
 
14469
      _Fields(short thriftId, String fieldName) {
14470
        _thriftId = thriftId;
14471
        _fieldName = fieldName;
14472
      }
14473
 
14474
      public short getThriftFieldId() {
14475
        return _thriftId;
14476
      }
14477
 
14478
      public String getFieldName() {
14479
        return _fieldName;
14480
      }
14481
    }
14482
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14483
    static {
14484
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14485
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14486
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroupAds_args.class, metaDataMap);
14487
    }
14488
 
14489
    public getAllAdwordsAdGroupAds_args() {
14490
    }
14491
 
14492
    /**
14493
     * Performs a deep copy on <i>other</i>.
14494
     */
14495
    public getAllAdwordsAdGroupAds_args(getAllAdwordsAdGroupAds_args other) {
14496
    }
14497
 
14498
    public getAllAdwordsAdGroupAds_args deepCopy() {
14499
      return new getAllAdwordsAdGroupAds_args(this);
14500
    }
14501
 
14502
    @Override
14503
    public void clear() {
14504
    }
14505
 
14506
    public void setFieldValue(_Fields field, Object value) {
14507
      switch (field) {
14508
      }
14509
    }
14510
 
14511
    public Object getFieldValue(_Fields field) {
14512
      switch (field) {
14513
      }
14514
      throw new IllegalStateException();
14515
    }
14516
 
14517
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14518
    public boolean isSet(_Fields field) {
14519
      if (field == null) {
14520
        throw new IllegalArgumentException();
14521
      }
14522
 
14523
      switch (field) {
14524
      }
14525
      throw new IllegalStateException();
14526
    }
14527
 
14528
    @Override
14529
    public boolean equals(Object that) {
14530
      if (that == null)
14531
        return false;
14532
      if (that instanceof getAllAdwordsAdGroupAds_args)
14533
        return this.equals((getAllAdwordsAdGroupAds_args)that);
14534
      return false;
14535
    }
14536
 
14537
    public boolean equals(getAllAdwordsAdGroupAds_args that) {
14538
      if (that == null)
14539
        return false;
14540
 
14541
      return true;
14542
    }
14543
 
14544
    @Override
14545
    public int hashCode() {
14546
      return 0;
14547
    }
14548
 
14549
    public int compareTo(getAllAdwordsAdGroupAds_args other) {
14550
      if (!getClass().equals(other.getClass())) {
14551
        return getClass().getName().compareTo(other.getClass().getName());
14552
      }
14553
 
14554
      int lastComparison = 0;
14555
      getAllAdwordsAdGroupAds_args typedOther = (getAllAdwordsAdGroupAds_args)other;
14556
 
14557
      return 0;
14558
    }
14559
 
14560
    public _Fields fieldForId(int fieldId) {
14561
      return _Fields.findByThriftId(fieldId);
14562
    }
14563
 
14564
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14565
      org.apache.thrift.protocol.TField field;
14566
      iprot.readStructBegin();
14567
      while (true)
14568
      {
14569
        field = iprot.readFieldBegin();
14570
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14571
          break;
14572
        }
14573
        switch (field.id) {
14574
          default:
14575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14576
        }
14577
        iprot.readFieldEnd();
14578
      }
14579
      iprot.readStructEnd();
14580
      validate();
14581
    }
14582
 
14583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14584
      validate();
14585
 
14586
      oprot.writeStructBegin(STRUCT_DESC);
14587
      oprot.writeFieldStop();
14588
      oprot.writeStructEnd();
14589
    }
14590
 
14591
    @Override
14592
    public String toString() {
14593
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroupAds_args(");
14594
      boolean first = true;
14595
 
14596
      sb.append(")");
14597
      return sb.toString();
14598
    }
14599
 
14600
    public void validate() throws org.apache.thrift.TException {
14601
      // check for required fields
14602
    }
14603
 
14604
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14605
      try {
14606
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14607
      } catch (org.apache.thrift.TException te) {
14608
        throw new java.io.IOException(te);
14609
      }
14610
    }
14611
 
14612
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14613
      try {
14614
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14615
      } catch (org.apache.thrift.TException te) {
14616
        throw new java.io.IOException(te);
14617
      }
14618
    }
14619
 
14620
  }
14621
 
14622
  public static class getAllAdwordsAdGroupAds_result implements org.apache.thrift.TBase<getAllAdwordsAdGroupAds_result, getAllAdwordsAdGroupAds_result._Fields>, java.io.Serializable, Cloneable   {
14623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdGroupAds_result");
14624
 
14625
    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);
14626
    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);
14627
 
14628
    private List<AdwordsAdGroupAd> success; // required
14629
    private GoogleAdwordsServiceException gasex; // required
14630
 
14631
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14632
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14633
      SUCCESS((short)0, "success"),
14634
      GASEX((short)1, "gasex");
14635
 
14636
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14637
 
14638
      static {
14639
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14640
          byName.put(field.getFieldName(), field);
14641
        }
14642
      }
14643
 
14644
      /**
14645
       * Find the _Fields constant that matches fieldId, or null if its not found.
14646
       */
14647
      public static _Fields findByThriftId(int fieldId) {
14648
        switch(fieldId) {
14649
          case 0: // SUCCESS
14650
            return SUCCESS;
14651
          case 1: // GASEX
14652
            return GASEX;
14653
          default:
14654
            return null;
14655
        }
14656
      }
14657
 
14658
      /**
14659
       * Find the _Fields constant that matches fieldId, throwing an exception
14660
       * if it is not found.
14661
       */
14662
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14663
        _Fields fields = findByThriftId(fieldId);
14664
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14665
        return fields;
14666
      }
14667
 
14668
      /**
14669
       * Find the _Fields constant that matches name, or null if its not found.
14670
       */
14671
      public static _Fields findByName(String name) {
14672
        return byName.get(name);
14673
      }
14674
 
14675
      private final short _thriftId;
14676
      private final String _fieldName;
14677
 
14678
      _Fields(short thriftId, String fieldName) {
14679
        _thriftId = thriftId;
14680
        _fieldName = fieldName;
14681
      }
14682
 
14683
      public short getThriftFieldId() {
14684
        return _thriftId;
14685
      }
14686
 
14687
      public String getFieldName() {
14688
        return _fieldName;
14689
      }
14690
    }
14691
 
14692
    // isset id assignments
14693
 
14694
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14695
    static {
14696
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14697
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14698
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14699
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdGroupAd.class))));
14700
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14701
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14702
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14703
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdGroupAds_result.class, metaDataMap);
14704
    }
14705
 
14706
    public getAllAdwordsAdGroupAds_result() {
14707
    }
14708
 
14709
    public getAllAdwordsAdGroupAds_result(
14710
      List<AdwordsAdGroupAd> success,
14711
      GoogleAdwordsServiceException gasex)
14712
    {
14713
      this();
14714
      this.success = success;
14715
      this.gasex = gasex;
14716
    }
14717
 
14718
    /**
14719
     * Performs a deep copy on <i>other</i>.
14720
     */
14721
    public getAllAdwordsAdGroupAds_result(getAllAdwordsAdGroupAds_result other) {
14722
      if (other.isSetSuccess()) {
14723
        List<AdwordsAdGroupAd> __this__success = new ArrayList<AdwordsAdGroupAd>();
14724
        for (AdwordsAdGroupAd other_element : other.success) {
14725
          __this__success.add(new AdwordsAdGroupAd(other_element));
14726
        }
14727
        this.success = __this__success;
14728
      }
14729
      if (other.isSetGasex()) {
14730
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
14731
      }
14732
    }
14733
 
14734
    public getAllAdwordsAdGroupAds_result deepCopy() {
14735
      return new getAllAdwordsAdGroupAds_result(this);
14736
    }
14737
 
14738
    @Override
14739
    public void clear() {
14740
      this.success = null;
14741
      this.gasex = null;
14742
    }
14743
 
14744
    public int getSuccessSize() {
14745
      return (this.success == null) ? 0 : this.success.size();
14746
    }
14747
 
14748
    public java.util.Iterator<AdwordsAdGroupAd> getSuccessIterator() {
14749
      return (this.success == null) ? null : this.success.iterator();
14750
    }
14751
 
14752
    public void addToSuccess(AdwordsAdGroupAd elem) {
14753
      if (this.success == null) {
14754
        this.success = new ArrayList<AdwordsAdGroupAd>();
14755
      }
14756
      this.success.add(elem);
14757
    }
14758
 
14759
    public List<AdwordsAdGroupAd> getSuccess() {
14760
      return this.success;
14761
    }
14762
 
14763
    public void setSuccess(List<AdwordsAdGroupAd> success) {
14764
      this.success = success;
14765
    }
14766
 
14767
    public void unsetSuccess() {
14768
      this.success = null;
14769
    }
14770
 
14771
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14772
    public boolean isSetSuccess() {
14773
      return this.success != null;
14774
    }
14775
 
14776
    public void setSuccessIsSet(boolean value) {
14777
      if (!value) {
14778
        this.success = null;
14779
      }
14780
    }
14781
 
14782
    public GoogleAdwordsServiceException getGasex() {
14783
      return this.gasex;
14784
    }
14785
 
14786
    public void setGasex(GoogleAdwordsServiceException gasex) {
14787
      this.gasex = gasex;
14788
    }
14789
 
14790
    public void unsetGasex() {
14791
      this.gasex = null;
14792
    }
14793
 
14794
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
14795
    public boolean isSetGasex() {
14796
      return this.gasex != null;
14797
    }
14798
 
14799
    public void setGasexIsSet(boolean value) {
14800
      if (!value) {
14801
        this.gasex = null;
14802
      }
14803
    }
14804
 
14805
    public void setFieldValue(_Fields field, Object value) {
14806
      switch (field) {
14807
      case SUCCESS:
14808
        if (value == null) {
14809
          unsetSuccess();
14810
        } else {
14811
          setSuccess((List<AdwordsAdGroupAd>)value);
14812
        }
14813
        break;
14814
 
14815
      case GASEX:
14816
        if (value == null) {
14817
          unsetGasex();
14818
        } else {
14819
          setGasex((GoogleAdwordsServiceException)value);
14820
        }
14821
        break;
14822
 
14823
      }
14824
    }
14825
 
14826
    public Object getFieldValue(_Fields field) {
14827
      switch (field) {
14828
      case SUCCESS:
14829
        return getSuccess();
14830
 
14831
      case GASEX:
14832
        return getGasex();
14833
 
14834
      }
14835
      throw new IllegalStateException();
14836
    }
14837
 
14838
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14839
    public boolean isSet(_Fields field) {
14840
      if (field == null) {
14841
        throw new IllegalArgumentException();
14842
      }
14843
 
14844
      switch (field) {
14845
      case SUCCESS:
14846
        return isSetSuccess();
14847
      case GASEX:
14848
        return isSetGasex();
14849
      }
14850
      throw new IllegalStateException();
14851
    }
14852
 
14853
    @Override
14854
    public boolean equals(Object that) {
14855
      if (that == null)
14856
        return false;
14857
      if (that instanceof getAllAdwordsAdGroupAds_result)
14858
        return this.equals((getAllAdwordsAdGroupAds_result)that);
14859
      return false;
14860
    }
14861
 
14862
    public boolean equals(getAllAdwordsAdGroupAds_result that) {
14863
      if (that == null)
14864
        return false;
14865
 
14866
      boolean this_present_success = true && this.isSetSuccess();
14867
      boolean that_present_success = true && that.isSetSuccess();
14868
      if (this_present_success || that_present_success) {
14869
        if (!(this_present_success && that_present_success))
14870
          return false;
14871
        if (!this.success.equals(that.success))
14872
          return false;
14873
      }
14874
 
14875
      boolean this_present_gasex = true && this.isSetGasex();
14876
      boolean that_present_gasex = true && that.isSetGasex();
14877
      if (this_present_gasex || that_present_gasex) {
14878
        if (!(this_present_gasex && that_present_gasex))
14879
          return false;
14880
        if (!this.gasex.equals(that.gasex))
14881
          return false;
14882
      }
14883
 
14884
      return true;
14885
    }
14886
 
14887
    @Override
14888
    public int hashCode() {
14889
      return 0;
14890
    }
14891
 
14892
    public int compareTo(getAllAdwordsAdGroupAds_result other) {
14893
      if (!getClass().equals(other.getClass())) {
14894
        return getClass().getName().compareTo(other.getClass().getName());
14895
      }
14896
 
14897
      int lastComparison = 0;
14898
      getAllAdwordsAdGroupAds_result typedOther = (getAllAdwordsAdGroupAds_result)other;
14899
 
14900
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14901
      if (lastComparison != 0) {
14902
        return lastComparison;
14903
      }
14904
      if (isSetSuccess()) {
14905
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14906
        if (lastComparison != 0) {
14907
          return lastComparison;
14908
        }
14909
      }
14910
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
14911
      if (lastComparison != 0) {
14912
        return lastComparison;
14913
      }
14914
      if (isSetGasex()) {
14915
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
14916
        if (lastComparison != 0) {
14917
          return lastComparison;
14918
        }
14919
      }
14920
      return 0;
14921
    }
14922
 
14923
    public _Fields fieldForId(int fieldId) {
14924
      return _Fields.findByThriftId(fieldId);
14925
    }
14926
 
14927
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14928
      org.apache.thrift.protocol.TField field;
14929
      iprot.readStructBegin();
14930
      while (true)
14931
      {
14932
        field = iprot.readFieldBegin();
14933
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14934
          break;
14935
        }
14936
        switch (field.id) {
14937
          case 0: // SUCCESS
14938
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14939
              {
14940
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
14941
                this.success = new ArrayList<AdwordsAdGroupAd>(_list20.size);
14942
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
14943
                {
14944
                  AdwordsAdGroupAd _elem22; // required
14945
                  _elem22 = new AdwordsAdGroupAd();
14946
                  _elem22.read(iprot);
14947
                  this.success.add(_elem22);
14948
                }
14949
                iprot.readListEnd();
14950
              }
14951
            } else { 
14952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14953
            }
14954
            break;
14955
          case 1: // GASEX
14956
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14957
              this.gasex = new GoogleAdwordsServiceException();
14958
              this.gasex.read(iprot);
14959
            } else { 
14960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14961
            }
14962
            break;
14963
          default:
14964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14965
        }
14966
        iprot.readFieldEnd();
14967
      }
14968
      iprot.readStructEnd();
14969
      validate();
14970
    }
14971
 
14972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14973
      oprot.writeStructBegin(STRUCT_DESC);
14974
 
14975
      if (this.isSetSuccess()) {
14976
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14977
        {
14978
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14979
          for (AdwordsAdGroupAd _iter23 : this.success)
14980
          {
14981
            _iter23.write(oprot);
14982
          }
14983
          oprot.writeListEnd();
14984
        }
14985
        oprot.writeFieldEnd();
14986
      } else if (this.isSetGasex()) {
14987
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
14988
        this.gasex.write(oprot);
14989
        oprot.writeFieldEnd();
14990
      }
14991
      oprot.writeFieldStop();
14992
      oprot.writeStructEnd();
14993
    }
14994
 
14995
    @Override
14996
    public String toString() {
14997
      StringBuilder sb = new StringBuilder("getAllAdwordsAdGroupAds_result(");
14998
      boolean first = true;
14999
 
15000
      sb.append("success:");
15001
      if (this.success == null) {
15002
        sb.append("null");
15003
      } else {
15004
        sb.append(this.success);
15005
      }
15006
      first = false;
15007
      if (!first) sb.append(", ");
15008
      sb.append("gasex:");
15009
      if (this.gasex == null) {
15010
        sb.append("null");
15011
      } else {
15012
        sb.append(this.gasex);
15013
      }
15014
      first = false;
15015
      sb.append(")");
15016
      return sb.toString();
15017
    }
15018
 
15019
    public void validate() throws org.apache.thrift.TException {
15020
      // check for required fields
15021
    }
15022
 
15023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15024
      try {
15025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15026
      } catch (org.apache.thrift.TException te) {
15027
        throw new java.io.IOException(te);
15028
      }
15029
    }
15030
 
15031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15032
      try {
15033
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15034
      } catch (org.apache.thrift.TException te) {
15035
        throw new java.io.IOException(te);
15036
      }
15037
    }
15038
 
15039
  }
15040
 
15041
  public static class getAllAdwordsAdKeywords_args implements org.apache.thrift.TBase<getAllAdwordsAdKeywords_args, getAllAdwordsAdKeywords_args._Fields>, java.io.Serializable, Cloneable   {
15042
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdKeywords_args");
15043
 
15044
 
15045
 
15046
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15047
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15048
;
15049
 
15050
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15051
 
15052
      static {
15053
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15054
          byName.put(field.getFieldName(), field);
15055
        }
15056
      }
15057
 
15058
      /**
15059
       * Find the _Fields constant that matches fieldId, or null if its not found.
15060
       */
15061
      public static _Fields findByThriftId(int fieldId) {
15062
        switch(fieldId) {
15063
          default:
15064
            return null;
15065
        }
15066
      }
15067
 
15068
      /**
15069
       * Find the _Fields constant that matches fieldId, throwing an exception
15070
       * if it is not found.
15071
       */
15072
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15073
        _Fields fields = findByThriftId(fieldId);
15074
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15075
        return fields;
15076
      }
15077
 
15078
      /**
15079
       * Find the _Fields constant that matches name, or null if its not found.
15080
       */
15081
      public static _Fields findByName(String name) {
15082
        return byName.get(name);
15083
      }
15084
 
15085
      private final short _thriftId;
15086
      private final String _fieldName;
15087
 
15088
      _Fields(short thriftId, String fieldName) {
15089
        _thriftId = thriftId;
15090
        _fieldName = fieldName;
15091
      }
15092
 
15093
      public short getThriftFieldId() {
15094
        return _thriftId;
15095
      }
15096
 
15097
      public String getFieldName() {
15098
        return _fieldName;
15099
      }
15100
    }
15101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15102
    static {
15103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15104
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15105
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdKeywords_args.class, metaDataMap);
15106
    }
15107
 
15108
    public getAllAdwordsAdKeywords_args() {
15109
    }
15110
 
15111
    /**
15112
     * Performs a deep copy on <i>other</i>.
15113
     */
15114
    public getAllAdwordsAdKeywords_args(getAllAdwordsAdKeywords_args other) {
15115
    }
15116
 
15117
    public getAllAdwordsAdKeywords_args deepCopy() {
15118
      return new getAllAdwordsAdKeywords_args(this);
15119
    }
15120
 
15121
    @Override
15122
    public void clear() {
15123
    }
15124
 
15125
    public void setFieldValue(_Fields field, Object value) {
15126
      switch (field) {
15127
      }
15128
    }
15129
 
15130
    public Object getFieldValue(_Fields field) {
15131
      switch (field) {
15132
      }
15133
      throw new IllegalStateException();
15134
    }
15135
 
15136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15137
    public boolean isSet(_Fields field) {
15138
      if (field == null) {
15139
        throw new IllegalArgumentException();
15140
      }
15141
 
15142
      switch (field) {
15143
      }
15144
      throw new IllegalStateException();
15145
    }
15146
 
15147
    @Override
15148
    public boolean equals(Object that) {
15149
      if (that == null)
15150
        return false;
15151
      if (that instanceof getAllAdwordsAdKeywords_args)
15152
        return this.equals((getAllAdwordsAdKeywords_args)that);
15153
      return false;
15154
    }
15155
 
15156
    public boolean equals(getAllAdwordsAdKeywords_args that) {
15157
      if (that == null)
15158
        return false;
15159
 
15160
      return true;
15161
    }
15162
 
15163
    @Override
15164
    public int hashCode() {
15165
      return 0;
15166
    }
15167
 
15168
    public int compareTo(getAllAdwordsAdKeywords_args other) {
15169
      if (!getClass().equals(other.getClass())) {
15170
        return getClass().getName().compareTo(other.getClass().getName());
15171
      }
15172
 
15173
      int lastComparison = 0;
15174
      getAllAdwordsAdKeywords_args typedOther = (getAllAdwordsAdKeywords_args)other;
15175
 
15176
      return 0;
15177
    }
15178
 
15179
    public _Fields fieldForId(int fieldId) {
15180
      return _Fields.findByThriftId(fieldId);
15181
    }
15182
 
15183
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15184
      org.apache.thrift.protocol.TField field;
15185
      iprot.readStructBegin();
15186
      while (true)
15187
      {
15188
        field = iprot.readFieldBegin();
15189
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15190
          break;
15191
        }
15192
        switch (field.id) {
15193
          default:
15194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15195
        }
15196
        iprot.readFieldEnd();
15197
      }
15198
      iprot.readStructEnd();
15199
      validate();
15200
    }
15201
 
15202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15203
      validate();
15204
 
15205
      oprot.writeStructBegin(STRUCT_DESC);
15206
      oprot.writeFieldStop();
15207
      oprot.writeStructEnd();
15208
    }
15209
 
15210
    @Override
15211
    public String toString() {
15212
      StringBuilder sb = new StringBuilder("getAllAdwordsAdKeywords_args(");
15213
      boolean first = true;
15214
 
15215
      sb.append(")");
15216
      return sb.toString();
15217
    }
15218
 
15219
    public void validate() throws org.apache.thrift.TException {
15220
      // check for required fields
15221
    }
15222
 
15223
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15224
      try {
15225
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15226
      } catch (org.apache.thrift.TException te) {
15227
        throw new java.io.IOException(te);
15228
      }
15229
    }
15230
 
15231
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15232
      try {
15233
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15234
      } catch (org.apache.thrift.TException te) {
15235
        throw new java.io.IOException(te);
15236
      }
15237
    }
15238
 
15239
  }
15240
 
15241
  public static class getAllAdwordsAdKeywords_result implements org.apache.thrift.TBase<getAllAdwordsAdKeywords_result, getAllAdwordsAdKeywords_result._Fields>, java.io.Serializable, Cloneable   {
15242
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAdwordsAdKeywords_result");
15243
 
15244
    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);
15245
    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);
15246
 
15247
    private List<AdwordsAdKeyword> success; // required
15248
    private GoogleAdwordsServiceException gasex; // required
15249
 
15250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15251
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15252
      SUCCESS((short)0, "success"),
15253
      GASEX((short)1, "gasex");
15254
 
15255
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15256
 
15257
      static {
15258
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15259
          byName.put(field.getFieldName(), field);
15260
        }
15261
      }
15262
 
15263
      /**
15264
       * Find the _Fields constant that matches fieldId, or null if its not found.
15265
       */
15266
      public static _Fields findByThriftId(int fieldId) {
15267
        switch(fieldId) {
15268
          case 0: // SUCCESS
15269
            return SUCCESS;
15270
          case 1: // GASEX
15271
            return GASEX;
15272
          default:
15273
            return null;
15274
        }
15275
      }
15276
 
15277
      /**
15278
       * Find the _Fields constant that matches fieldId, throwing an exception
15279
       * if it is not found.
15280
       */
15281
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15282
        _Fields fields = findByThriftId(fieldId);
15283
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15284
        return fields;
15285
      }
15286
 
15287
      /**
15288
       * Find the _Fields constant that matches name, or null if its not found.
15289
       */
15290
      public static _Fields findByName(String name) {
15291
        return byName.get(name);
15292
      }
15293
 
15294
      private final short _thriftId;
15295
      private final String _fieldName;
15296
 
15297
      _Fields(short thriftId, String fieldName) {
15298
        _thriftId = thriftId;
15299
        _fieldName = fieldName;
15300
      }
15301
 
15302
      public short getThriftFieldId() {
15303
        return _thriftId;
15304
      }
15305
 
15306
      public String getFieldName() {
15307
        return _fieldName;
15308
      }
15309
    }
15310
 
15311
    // isset id assignments
15312
 
15313
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15314
    static {
15315
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15316
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15317
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15318
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AdwordsAdKeyword.class))));
15319
      tmpMap.put(_Fields.GASEX, new org.apache.thrift.meta_data.FieldMetaData("gasex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15321
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15322
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAdwordsAdKeywords_result.class, metaDataMap);
15323
    }
15324
 
15325
    public getAllAdwordsAdKeywords_result() {
15326
    }
15327
 
15328
    public getAllAdwordsAdKeywords_result(
15329
      List<AdwordsAdKeyword> success,
15330
      GoogleAdwordsServiceException gasex)
15331
    {
15332
      this();
15333
      this.success = success;
15334
      this.gasex = gasex;
15335
    }
15336
 
15337
    /**
15338
     * Performs a deep copy on <i>other</i>.
15339
     */
15340
    public getAllAdwordsAdKeywords_result(getAllAdwordsAdKeywords_result other) {
15341
      if (other.isSetSuccess()) {
15342
        List<AdwordsAdKeyword> __this__success = new ArrayList<AdwordsAdKeyword>();
15343
        for (AdwordsAdKeyword other_element : other.success) {
15344
          __this__success.add(new AdwordsAdKeyword(other_element));
15345
        }
15346
        this.success = __this__success;
15347
      }
15348
      if (other.isSetGasex()) {
15349
        this.gasex = new GoogleAdwordsServiceException(other.gasex);
15350
      }
15351
    }
15352
 
15353
    public getAllAdwordsAdKeywords_result deepCopy() {
15354
      return new getAllAdwordsAdKeywords_result(this);
15355
    }
15356
 
15357
    @Override
15358
    public void clear() {
15359
      this.success = null;
15360
      this.gasex = null;
15361
    }
15362
 
15363
    public int getSuccessSize() {
15364
      return (this.success == null) ? 0 : this.success.size();
15365
    }
15366
 
15367
    public java.util.Iterator<AdwordsAdKeyword> getSuccessIterator() {
15368
      return (this.success == null) ? null : this.success.iterator();
15369
    }
15370
 
15371
    public void addToSuccess(AdwordsAdKeyword elem) {
15372
      if (this.success == null) {
15373
        this.success = new ArrayList<AdwordsAdKeyword>();
15374
      }
15375
      this.success.add(elem);
15376
    }
15377
 
15378
    public List<AdwordsAdKeyword> getSuccess() {
15379
      return this.success;
15380
    }
15381
 
15382
    public void setSuccess(List<AdwordsAdKeyword> success) {
15383
      this.success = success;
15384
    }
15385
 
15386
    public void unsetSuccess() {
15387
      this.success = null;
15388
    }
15389
 
15390
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15391
    public boolean isSetSuccess() {
15392
      return this.success != null;
15393
    }
15394
 
15395
    public void setSuccessIsSet(boolean value) {
15396
      if (!value) {
15397
        this.success = null;
15398
      }
15399
    }
15400
 
15401
    public GoogleAdwordsServiceException getGasex() {
15402
      return this.gasex;
15403
    }
15404
 
15405
    public void setGasex(GoogleAdwordsServiceException gasex) {
15406
      this.gasex = gasex;
15407
    }
15408
 
15409
    public void unsetGasex() {
15410
      this.gasex = null;
15411
    }
15412
 
15413
    /** Returns true if field gasex is set (has been assigned a value) and false otherwise */
15414
    public boolean isSetGasex() {
15415
      return this.gasex != null;
15416
    }
15417
 
15418
    public void setGasexIsSet(boolean value) {
15419
      if (!value) {
15420
        this.gasex = null;
15421
      }
15422
    }
15423
 
15424
    public void setFieldValue(_Fields field, Object value) {
15425
      switch (field) {
15426
      case SUCCESS:
15427
        if (value == null) {
15428
          unsetSuccess();
15429
        } else {
15430
          setSuccess((List<AdwordsAdKeyword>)value);
15431
        }
15432
        break;
15433
 
15434
      case GASEX:
15435
        if (value == null) {
15436
          unsetGasex();
15437
        } else {
15438
          setGasex((GoogleAdwordsServiceException)value);
15439
        }
15440
        break;
15441
 
15442
      }
15443
    }
15444
 
15445
    public Object getFieldValue(_Fields field) {
15446
      switch (field) {
15447
      case SUCCESS:
15448
        return getSuccess();
15449
 
15450
      case GASEX:
15451
        return getGasex();
15452
 
15453
      }
15454
      throw new IllegalStateException();
15455
    }
15456
 
15457
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15458
    public boolean isSet(_Fields field) {
15459
      if (field == null) {
15460
        throw new IllegalArgumentException();
15461
      }
15462
 
15463
      switch (field) {
15464
      case SUCCESS:
15465
        return isSetSuccess();
15466
      case GASEX:
15467
        return isSetGasex();
15468
      }
15469
      throw new IllegalStateException();
15470
    }
15471
 
15472
    @Override
15473
    public boolean equals(Object that) {
15474
      if (that == null)
15475
        return false;
15476
      if (that instanceof getAllAdwordsAdKeywords_result)
15477
        return this.equals((getAllAdwordsAdKeywords_result)that);
15478
      return false;
15479
    }
15480
 
15481
    public boolean equals(getAllAdwordsAdKeywords_result that) {
15482
      if (that == null)
15483
        return false;
15484
 
15485
      boolean this_present_success = true && this.isSetSuccess();
15486
      boolean that_present_success = true && that.isSetSuccess();
15487
      if (this_present_success || that_present_success) {
15488
        if (!(this_present_success && that_present_success))
15489
          return false;
15490
        if (!this.success.equals(that.success))
15491
          return false;
15492
      }
15493
 
15494
      boolean this_present_gasex = true && this.isSetGasex();
15495
      boolean that_present_gasex = true && that.isSetGasex();
15496
      if (this_present_gasex || that_present_gasex) {
15497
        if (!(this_present_gasex && that_present_gasex))
15498
          return false;
15499
        if (!this.gasex.equals(that.gasex))
15500
          return false;
15501
      }
15502
 
15503
      return true;
15504
    }
15505
 
15506
    @Override
15507
    public int hashCode() {
15508
      return 0;
15509
    }
15510
 
15511
    public int compareTo(getAllAdwordsAdKeywords_result other) {
15512
      if (!getClass().equals(other.getClass())) {
15513
        return getClass().getName().compareTo(other.getClass().getName());
15514
      }
15515
 
15516
      int lastComparison = 0;
15517
      getAllAdwordsAdKeywords_result typedOther = (getAllAdwordsAdKeywords_result)other;
15518
 
15519
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15520
      if (lastComparison != 0) {
15521
        return lastComparison;
15522
      }
15523
      if (isSetSuccess()) {
15524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15525
        if (lastComparison != 0) {
15526
          return lastComparison;
15527
        }
15528
      }
15529
      lastComparison = Boolean.valueOf(isSetGasex()).compareTo(typedOther.isSetGasex());
15530
      if (lastComparison != 0) {
15531
        return lastComparison;
15532
      }
15533
      if (isSetGasex()) {
15534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gasex, typedOther.gasex);
15535
        if (lastComparison != 0) {
15536
          return lastComparison;
15537
        }
15538
      }
15539
      return 0;
15540
    }
15541
 
15542
    public _Fields fieldForId(int fieldId) {
15543
      return _Fields.findByThriftId(fieldId);
15544
    }
15545
 
15546
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15547
      org.apache.thrift.protocol.TField field;
15548
      iprot.readStructBegin();
15549
      while (true)
15550
      {
15551
        field = iprot.readFieldBegin();
15552
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15553
          break;
15554
        }
15555
        switch (field.id) {
15556
          case 0: // SUCCESS
15557
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15558
              {
15559
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
15560
                this.success = new ArrayList<AdwordsAdKeyword>(_list24.size);
15561
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
15562
                {
15563
                  AdwordsAdKeyword _elem26; // required
15564
                  _elem26 = new AdwordsAdKeyword();
15565
                  _elem26.read(iprot);
15566
                  this.success.add(_elem26);
15567
                }
15568
                iprot.readListEnd();
15569
              }
15570
            } else { 
15571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15572
            }
15573
            break;
15574
          case 1: // GASEX
15575
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15576
              this.gasex = new GoogleAdwordsServiceException();
15577
              this.gasex.read(iprot);
15578
            } else { 
15579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15580
            }
15581
            break;
15582
          default:
15583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15584
        }
15585
        iprot.readFieldEnd();
15586
      }
15587
      iprot.readStructEnd();
15588
      validate();
15589
    }
15590
 
15591
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15592
      oprot.writeStructBegin(STRUCT_DESC);
15593
 
15594
      if (this.isSetSuccess()) {
15595
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15596
        {
15597
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15598
          for (AdwordsAdKeyword _iter27 : this.success)
15599
          {
15600
            _iter27.write(oprot);
15601
          }
15602
          oprot.writeListEnd();
15603
        }
15604
        oprot.writeFieldEnd();
15605
      } else if (this.isSetGasex()) {
15606
        oprot.writeFieldBegin(GASEX_FIELD_DESC);
15607
        this.gasex.write(oprot);
15608
        oprot.writeFieldEnd();
15609
      }
15610
      oprot.writeFieldStop();
15611
      oprot.writeStructEnd();
15612
    }
15613
 
15614
    @Override
15615
    public String toString() {
15616
      StringBuilder sb = new StringBuilder("getAllAdwordsAdKeywords_result(");
15617
      boolean first = true;
15618
 
15619
      sb.append("success:");
15620
      if (this.success == null) {
15621
        sb.append("null");
15622
      } else {
15623
        sb.append(this.success);
15624
      }
15625
      first = false;
15626
      if (!first) sb.append(", ");
15627
      sb.append("gasex:");
15628
      if (this.gasex == null) {
15629
        sb.append("null");
15630
      } else {
15631
        sb.append(this.gasex);
15632
      }
15633
      first = false;
15634
      sb.append(")");
15635
      return sb.toString();
15636
    }
15637
 
15638
    public void validate() throws org.apache.thrift.TException {
15639
      // check for required fields
15640
    }
15641
 
15642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15643
      try {
15644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15645
      } catch (org.apache.thrift.TException te) {
15646
        throw new java.io.IOException(te);
15647
      }
15648
    }
15649
 
15650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15651
      try {
15652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15653
      } catch (org.apache.thrift.TException te) {
15654
        throw new java.io.IOException(te);
15655
      }
15656
    }
15657
 
15658
  }
15659
 
15660
}