Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
2
/*
3
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
 * use this file except in compliance with the License. You may obtain a copy of
5
 * the License at
6
 *
7
 * http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 * Unless required by applicable law or agreed to in writing, software
10
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
 * License for the specific language governing permissions and limitations under
13
 * the License.
14
 */
15
 
16
 
17
  /**
18
   * The "blogs" collection of methods.
19
   * Typical usage is:
20
   *  <code>
21
   *   $bloggerService = new Google_BloggerService(...);
22
   *   $blogs = $bloggerService->blogs;
23
   *  </code>
24
   */
25
  class Google_BlogsServiceResource extends Google_ServiceResource {
26
 
27
 
28
    /**
29
     * Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
30
     *
31
     * @param string $userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
32
     * @param array $optParams Optional parameters.
33
     * @return Google_BlogList
34
     */
35
    public function listByUser($userId, $optParams = array()) {
36
      $params = array('userId' => $userId);
37
      $params = array_merge($params, $optParams);
38
      $data = $this->__call('listByUser', array($params));
39
      if ($this->useObjects()) {
40
        return new Google_BlogList($data);
41
      } else {
42
        return $data;
43
      }
44
    }
45
    /**
46
     * Retrieve a Blog by URL. (blogs.getByUrl)
47
     *
48
     * @param array $optParams Optional parameters.
49
     *
50
     * @opt_param string url The URL of the blog to retrieve.
51
     * @return Google_Blog
52
     */
53
    public function getByUrl($optParams = array()) {
54
      $params = array();
55
      $params = array_merge($params, $optParams);
56
      $data = $this->__call('getByUrl', array($params));
57
      if ($this->useObjects()) {
58
        return new Google_Blog($data);
59
      } else {
60
        return $data;
61
      }
62
    }
63
    /**
64
     * Gets one blog by id. (blogs.get)
65
     *
66
     * @param string $blogId The ID of the blog to get.
67
     * @param array $optParams Optional parameters.
68
     *
69
     * @opt_param string maxPosts Maximum number of posts to pull back with the blog.
70
     * @return Google_Blog
71
     */
72
    public function get($blogId, $optParams = array()) {
73
      $params = array('blogId' => $blogId);
74
      $params = array_merge($params, $optParams);
75
      $data = $this->__call('get', array($params));
76
      if ($this->useObjects()) {
77
        return new Google_Blog($data);
78
      } else {
79
        return $data;
80
      }
81
    }
82
  }
83
 
84
  /**
85
   * The "posts" collection of methods.
86
   * Typical usage is:
87
   *  <code>
88
   *   $bloggerService = new Google_BloggerService(...);
89
   *   $posts = $bloggerService->posts;
90
   *  </code>
91
   */
92
  class Google_PostsServiceResource extends Google_ServiceResource {
93
 
94
 
95
    /**
96
     * Add a post. (posts.insert)
97
     *
98
     * @param string $blogId ID of the blog to fetch the post from.
99
     * @param Google_Post $postBody
100
     * @param array $optParams Optional parameters.
101
     * @return Google_Post
102
     */
103
    public function insert($blogId, Google_Post $postBody, $optParams = array()) {
104
      $params = array('blogId' => $blogId, 'postBody' => $postBody);
105
      $params = array_merge($params, $optParams);
106
      $data = $this->__call('insert', array($params));
107
      if ($this->useObjects()) {
108
        return new Google_Post($data);
109
      } else {
110
        return $data;
111
      }
112
    }
113
    /**
114
     * Search for a post. (posts.search)
115
     *
116
     * @param string $blogId ID of the blog to fetch the post from.
117
     * @param array $optParams Optional parameters.
118
     *
119
     * @opt_param string q Query terms to search this blog for matching posts.
120
     * @return Google_PostList
121
     */
122
    public function search($blogId, $optParams = array()) {
123
      $params = array('blogId' => $blogId);
124
      $params = array_merge($params, $optParams);
125
      $data = $this->__call('search', array($params));
126
      if ($this->useObjects()) {
127
        return new Google_PostList($data);
128
      } else {
129
        return $data;
130
      }
131
    }
132
    /**
133
     * Get a post by id. (posts.get)
134
     *
135
     * @param string $blogId ID of the blog to fetch the post from.
136
     * @param string $postId The ID of the post
137
     * @param array $optParams Optional parameters.
138
     *
139
     * @opt_param string maxComments Maximum number of comments to pull back on a post.
140
     * @return Google_Post
141
     */
142
    public function get($blogId, $postId, $optParams = array()) {
143
      $params = array('blogId' => $blogId, 'postId' => $postId);
144
      $params = array_merge($params, $optParams);
145
      $data = $this->__call('get', array($params));
146
      if ($this->useObjects()) {
147
        return new Google_Post($data);
148
      } else {
149
        return $data;
150
      }
151
    }
152
    /**
153
     * Retrieves a list of posts, possibly filtered. (posts.list)
154
     *
155
     * @param string $blogId ID of the blog to fetch posts from.
156
     * @param array $optParams Optional parameters.
157
     *
158
     * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
159
     * @opt_param string endDate Latest post date to fetch, a date-time with RFC 3339 formatting.
160
     * @opt_param string labels Comma-separated list of labels to search for.
161
     * @opt_param string maxResults Maximum number of posts to fetch.
162
     * @opt_param string pageToken Continuation token if the request is paged.
163
     * @opt_param bool fetchBodies Whether the body content of posts is included.
164
     * @return Google_PostList
165
     */
166
    public function listPosts($blogId, $optParams = array()) {
167
      $params = array('blogId' => $blogId);
168
      $params = array_merge($params, $optParams);
169
      $data = $this->__call('list', array($params));
170
      if ($this->useObjects()) {
171
        return new Google_PostList($data);
172
      } else {
173
        return $data;
174
      }
175
    }
176
    /**
177
     * Update a post. (posts.update)
178
     *
179
     * @param string $blogId The ID of the Blog.
180
     * @param string $postId The ID of the Post.
181
     * @param Google_Post $postBody
182
     * @param array $optParams Optional parameters.
183
     * @return Google_Post
184
     */
185
    public function update($blogId, $postId, Google_Post $postBody, $optParams = array()) {
186
      $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
187
      $params = array_merge($params, $optParams);
188
      $data = $this->__call('update', array($params));
189
      if ($this->useObjects()) {
190
        return new Google_Post($data);
191
      } else {
192
        return $data;
193
      }
194
    }
195
    /**
196
     * Retrieve a Post by Path. (posts.getByPath)
197
     *
198
     * @param string $blogId ID of the blog to fetch the post from.
199
     * @param array $optParams Optional parameters.
200
     *
201
     * @opt_param string path Path of the Post to retrieve.
202
     * @opt_param string maxComments Maximum number of comments to pull back on a post.
203
     * @return Google_Post
204
     */
205
    public function getByPath($blogId, $optParams = array()) {
206
      $params = array('blogId' => $blogId);
207
      $params = array_merge($params, $optParams);
208
      $data = $this->__call('getByPath', array($params));
209
      if ($this->useObjects()) {
210
        return new Google_Post($data);
211
      } else {
212
        return $data;
213
      }
214
    }
215
    /**
216
     * Update a post. This method supports patch semantics. (posts.patch)
217
     *
218
     * @param string $blogId The ID of the Blog.
219
     * @param string $postId The ID of the Post.
220
     * @param Google_Post $postBody
221
     * @param array $optParams Optional parameters.
222
     * @return Google_Post
223
     */
224
    public function patch($blogId, $postId, Google_Post $postBody, $optParams = array()) {
225
      $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
226
      $params = array_merge($params, $optParams);
227
      $data = $this->__call('patch', array($params));
228
      if ($this->useObjects()) {
229
        return new Google_Post($data);
230
      } else {
231
        return $data;
232
      }
233
    }
234
    /**
235
     * Delete a post by id. (posts.delete)
236
     *
237
     * @param string $blogId The Id of the Blog.
238
     * @param string $postId The ID of the Post.
239
     * @param array $optParams Optional parameters.
240
     */
241
    public function delete($blogId, $postId, $optParams = array()) {
242
      $params = array('blogId' => $blogId, 'postId' => $postId);
243
      $params = array_merge($params, $optParams);
244
      $data = $this->__call('delete', array($params));
245
      return $data;
246
    }
247
  }
248
 
249
  /**
250
   * The "pages" collection of methods.
251
   * Typical usage is:
252
   *  <code>
253
   *   $bloggerService = new Google_BloggerService(...);
254
   *   $pages = $bloggerService->pages;
255
   *  </code>
256
   */
257
  class Google_PagesServiceResource extends Google_ServiceResource {
258
 
259
 
260
    /**
261
     * Retrieves pages for a blog, possibly filtered. (pages.list)
262
     *
263
     * @param string $blogId ID of the blog to fetch pages from.
264
     * @param array $optParams Optional parameters.
265
     *
266
     * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
267
     * @return Google_PageList
268
     */
269
    public function listPages($blogId, $optParams = array()) {
270
      $params = array('blogId' => $blogId);
271
      $params = array_merge($params, $optParams);
272
      $data = $this->__call('list', array($params));
273
      if ($this->useObjects()) {
274
        return new Google_PageList($data);
275
      } else {
276
        return $data;
277
      }
278
    }
279
    /**
280
     * Gets one blog page by id. (pages.get)
281
     *
282
     * @param string $blogId ID of the blog containing the page.
283
     * @param string $pageId The ID of the page to get.
284
     * @param array $optParams Optional parameters.
285
     * @return Google_Page
286
     */
287
    public function get($blogId, $pageId, $optParams = array()) {
288
      $params = array('blogId' => $blogId, 'pageId' => $pageId);
289
      $params = array_merge($params, $optParams);
290
      $data = $this->__call('get', array($params));
291
      if ($this->useObjects()) {
292
        return new Google_Page($data);
293
      } else {
294
        return $data;
295
      }
296
    }
297
  }
298
 
299
  /**
300
   * The "comments" collection of methods.
301
   * Typical usage is:
302
   *  <code>
303
   *   $bloggerService = new Google_BloggerService(...);
304
   *   $comments = $bloggerService->comments;
305
   *  </code>
306
   */
307
  class Google_CommentsServiceResource extends Google_ServiceResource {
308
 
309
 
310
    /**
311
     * Retrieves the comments for a blog, possibly filtered. (comments.list)
312
     *
313
     * @param string $blogId ID of the blog to fetch comments from.
314
     * @param string $postId ID of the post to fetch posts from.
315
     * @param array $optParams Optional parameters.
316
     *
317
     * @opt_param string startDate Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
318
     * @opt_param string endDate Latest date of comment to fetch, a date-time with RFC 3339 formatting.
319
     * @opt_param string maxResults Maximum number of comments to include in the result.
320
     * @opt_param string pageToken Continuation token if request is paged.
321
     * @opt_param bool fetchBodies Whether the body content of the comments is included.
322
     * @return Google_CommentList
323
     */
324
    public function listComments($blogId, $postId, $optParams = array()) {
325
      $params = array('blogId' => $blogId, 'postId' => $postId);
326
      $params = array_merge($params, $optParams);
327
      $data = $this->__call('list', array($params));
328
      if ($this->useObjects()) {
329
        return new Google_CommentList($data);
330
      } else {
331
        return $data;
332
      }
333
    }
334
    /**
335
     * Gets one comment by id. (comments.get)
336
     *
337
     * @param string $blogId ID of the blog to containing the comment.
338
     * @param string $postId ID of the post to fetch posts from.
339
     * @param string $commentId The ID of the comment to get.
340
     * @param array $optParams Optional parameters.
341
     * @return Google_Comment
342
     */
343
    public function get($blogId, $postId, $commentId, $optParams = array()) {
344
      $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
345
      $params = array_merge($params, $optParams);
346
      $data = $this->__call('get', array($params));
347
      if ($this->useObjects()) {
348
        return new Google_Comment($data);
349
      } else {
350
        return $data;
351
      }
352
    }
353
  }
354
 
355
  /**
356
   * The "users" collection of methods.
357
   * Typical usage is:
358
   *  <code>
359
   *   $bloggerService = new Google_BloggerService(...);
360
   *   $users = $bloggerService->users;
361
   *  </code>
362
   */
363
  class Google_UsersServiceResource extends Google_ServiceResource {
364
 
365
 
366
    /**
367
     * Gets one user by id. (users.get)
368
     *
369
     * @param string $userId The ID of the user to get.
370
     * @param array $optParams Optional parameters.
371
     * @return Google_User
372
     */
373
    public function get($userId, $optParams = array()) {
374
      $params = array('userId' => $userId);
375
      $params = array_merge($params, $optParams);
376
      $data = $this->__call('get', array($params));
377
      if ($this->useObjects()) {
378
        return new Google_User($data);
379
      } else {
380
        return $data;
381
      }
382
    }
383
  }
384
 
385
/**
386
 * Service definition for Google_Blogger (v3).
387
 *
388
 * <p>
389
 * API for access to the data within Blogger.
390
 * </p>
391
 *
392
 * <p>
393
 * For more information about this service, see the
394
 * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">API Documentation</a>
395
 * </p>
396
 *
397
 * @author Google, Inc.
398
 */
399
class Google_BloggerService extends Google_Service {
400
  public $blogs;
401
  public $posts;
402
  public $pages;
403
  public $comments;
404
  public $users;
405
  /**
406
   * Constructs the internal representation of the Blogger service.
407
   *
408
   * @param Google_Client $client
409
   */
410
  public function __construct(Google_Client $client) {
411
    $this->servicePath = 'blogger/v3/';
412
    $this->version = 'v3';
413
    $this->serviceName = 'blogger';
414
 
415
    $client->addService($this->serviceName, $this->version);
416
    $this->blogs = new Google_BlogsServiceResource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"listByUser": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.blogs.listByUser", "httpMethod": "GET", "path": "users/{userId}/blogs", "response": {"$ref": "BlogList"}}, "getByUrl": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"url": {"type": "string", "location": "query"}}, "response": {"$ref": "Blog"}, "httpMethod": "GET", "path": "blogs/byurl", "id": "blogger.blogs.getByUrl"}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"maxPosts": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.blogs.get", "httpMethod": "GET", "path": "blogs/{blogId}", "response": {"$ref": "Blog"}}}}', true));
417
    $this->posts = new Google_PostsServiceResource($this, $this->serviceName, 'posts', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "POST", "path": "blogs/{blogId}/posts", "id": "blogger.posts.insert"}, "search": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.search", "httpMethod": "GET", "path": "blogs/{blogId}/posts/search", "response": {"$ref": "PostList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"maxComments": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}", "response": {"$ref": "Post"}}, "list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"startDate": {"type": "string", "location": "query", "format": "date-time"}, "endDate": {"type": "string", "location": "query", "format": "date-time"}, "labels": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts", "response": {"$ref": "PostList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "PUT", "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.update"}, "getByPath": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"path": {"type": "string", "location": "query"}, "maxComments": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.getByPath", "httpMethod": "GET", "path": "blogs/{blogId}/posts/bypath", "response": {"$ref": "Post"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "PATCH", "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/blogger"], "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.delete", "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
418
    $this->pages = new Google_PagesServiceResource($this, $this->serviceName, 'pages', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.list", "httpMethod": "GET", "path": "blogs/{blogId}/pages", "response": {"$ref": "PageList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"pageId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.get", "httpMethod": "GET", "path": "blogs/{blogId}/pages/{pageId}", "response": {"$ref": "Page"}}}}', true));
419
    $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"startDate": {"type": "string", "location": "query", "format": "date-time"}, "postId": {"required": true, "type": "string", "location": "path"}, "endDate": {"type": "string", "location": "query", "format": "date-time"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments", "response": {"$ref": "CommentList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
420
    $this->users = new Google_UsersServiceResource($this, $this->serviceName, 'users', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.users.get", "httpMethod": "GET", "path": "users/{userId}", "response": {"$ref": "User"}}}}', true));
421
 
422
  }
423
}
424
 
425
class Google_Blog extends Google_Model {
426
  public $kind;
427
  public $description;
428
  protected $__localeType = 'Google_BlogLocale';
429
  protected $__localeDataType = '';
430
  public $locale;
431
  protected $__postsType = 'Google_BlogPosts';
432
  protected $__postsDataType = '';
433
  public $posts;
434
  public $customMetaData;
435
  public $updated;
436
  protected $__pagesType = 'Google_BlogPages';
437
  protected $__pagesDataType = '';
438
  public $pages;
439
  public $url;
440
  public $published;
441
  public $id;
442
  public $selfLink;
443
  public $name;
444
  public function setKind($kind) {
445
    $this->kind = $kind;
446
  }
447
  public function getKind() {
448
    return $this->kind;
449
  }
450
  public function setDescription($description) {
451
    $this->description = $description;
452
  }
453
  public function getDescription() {
454
    return $this->description;
455
  }
456
  public function setLocale(Google_BlogLocale $locale) {
457
    $this->locale = $locale;
458
  }
459
  public function getLocale() {
460
    return $this->locale;
461
  }
462
  public function setPosts(Google_BlogPosts $posts) {
463
    $this->posts = $posts;
464
  }
465
  public function getPosts() {
466
    return $this->posts;
467
  }
468
  public function setCustomMetaData($customMetaData) {
469
    $this->customMetaData = $customMetaData;
470
  }
471
  public function getCustomMetaData() {
472
    return $this->customMetaData;
473
  }
474
  public function setUpdated($updated) {
475
    $this->updated = $updated;
476
  }
477
  public function getUpdated() {
478
    return $this->updated;
479
  }
480
  public function setPages(Google_BlogPages $pages) {
481
    $this->pages = $pages;
482
  }
483
  public function getPages() {
484
    return $this->pages;
485
  }
486
  public function setUrl($url) {
487
    $this->url = $url;
488
  }
489
  public function getUrl() {
490
    return $this->url;
491
  }
492
  public function setPublished($published) {
493
    $this->published = $published;
494
  }
495
  public function getPublished() {
496
    return $this->published;
497
  }
498
  public function setId($id) {
499
    $this->id = $id;
500
  }
501
  public function getId() {
502
    return $this->id;
503
  }
504
  public function setSelfLink($selfLink) {
505
    $this->selfLink = $selfLink;
506
  }
507
  public function getSelfLink() {
508
    return $this->selfLink;
509
  }
510
  public function setName($name) {
511
    $this->name = $name;
512
  }
513
  public function getName() {
514
    return $this->name;
515
  }
516
}
517
 
518
class Google_BlogList extends Google_Model {
519
  protected $__itemsType = 'Google_Blog';
520
  protected $__itemsDataType = 'array';
521
  public $items;
522
  public $kind;
523
  public function setItems(/* array(Google_Blog) */ $items) {
524
    $this->assertIsArray($items, 'Google_Blog', __METHOD__);
525
    $this->items = $items;
526
  }
527
  public function getItems() {
528
    return $this->items;
529
  }
530
  public function setKind($kind) {
531
    $this->kind = $kind;
532
  }
533
  public function getKind() {
534
    return $this->kind;
535
  }
536
}
537
 
538
class Google_BlogLocale extends Google_Model {
539
  public $country;
540
  public $variant;
541
  public $language;
542
  public function setCountry($country) {
543
    $this->country = $country;
544
  }
545
  public function getCountry() {
546
    return $this->country;
547
  }
548
  public function setVariant($variant) {
549
    $this->variant = $variant;
550
  }
551
  public function getVariant() {
552
    return $this->variant;
553
  }
554
  public function setLanguage($language) {
555
    $this->language = $language;
556
  }
557
  public function getLanguage() {
558
    return $this->language;
559
  }
560
}
561
 
562
class Google_BlogPages extends Google_Model {
563
  public $totalItems;
564
  public $selfLink;
565
  public function setTotalItems($totalItems) {
566
    $this->totalItems = $totalItems;
567
  }
568
  public function getTotalItems() {
569
    return $this->totalItems;
570
  }
571
  public function setSelfLink($selfLink) {
572
    $this->selfLink = $selfLink;
573
  }
574
  public function getSelfLink() {
575
    return $this->selfLink;
576
  }
577
}
578
 
579
class Google_BlogPosts extends Google_Model {
580
  public $totalItems;
581
  protected $__itemsType = 'Google_Post';
582
  protected $__itemsDataType = 'array';
583
  public $items;
584
  public $selfLink;
585
  public function setTotalItems($totalItems) {
586
    $this->totalItems = $totalItems;
587
  }
588
  public function getTotalItems() {
589
    return $this->totalItems;
590
  }
591
  public function setItems(/* array(Google_Post) */ $items) {
592
    $this->assertIsArray($items, 'Google_Post', __METHOD__);
593
    $this->items = $items;
594
  }
595
  public function getItems() {
596
    return $this->items;
597
  }
598
  public function setSelfLink($selfLink) {
599
    $this->selfLink = $selfLink;
600
  }
601
  public function getSelfLink() {
602
    return $this->selfLink;
603
  }
604
}
605
 
606
class Google_Comment extends Google_Model {
607
  public $content;
608
  public $kind;
609
  protected $__inReplyToType = 'Google_CommentInReplyTo';
610
  protected $__inReplyToDataType = '';
611
  public $inReplyTo;
612
  protected $__authorType = 'Google_CommentAuthor';
613
  protected $__authorDataType = '';
614
  public $author;
615
  public $updated;
616
  protected $__blogType = 'Google_CommentBlog';
617
  protected $__blogDataType = '';
618
  public $blog;
619
  public $published;
620
  protected $__postType = 'Google_CommentPost';
621
  protected $__postDataType = '';
622
  public $post;
623
  public $id;
624
  public $selfLink;
625
  public function setContent($content) {
626
    $this->content = $content;
627
  }
628
  public function getContent() {
629
    return $this->content;
630
  }
631
  public function setKind($kind) {
632
    $this->kind = $kind;
633
  }
634
  public function getKind() {
635
    return $this->kind;
636
  }
637
  public function setInReplyTo(Google_CommentInReplyTo $inReplyTo) {
638
    $this->inReplyTo = $inReplyTo;
639
  }
640
  public function getInReplyTo() {
641
    return $this->inReplyTo;
642
  }
643
  public function setAuthor(Google_CommentAuthor $author) {
644
    $this->author = $author;
645
  }
646
  public function getAuthor() {
647
    return $this->author;
648
  }
649
  public function setUpdated($updated) {
650
    $this->updated = $updated;
651
  }
652
  public function getUpdated() {
653
    return $this->updated;
654
  }
655
  public function setBlog(Google_CommentBlog $blog) {
656
    $this->blog = $blog;
657
  }
658
  public function getBlog() {
659
    return $this->blog;
660
  }
661
  public function setPublished($published) {
662
    $this->published = $published;
663
  }
664
  public function getPublished() {
665
    return $this->published;
666
  }
667
  public function setPost(Google_CommentPost $post) {
668
    $this->post = $post;
669
  }
670
  public function getPost() {
671
    return $this->post;
672
  }
673
  public function setId($id) {
674
    $this->id = $id;
675
  }
676
  public function getId() {
677
    return $this->id;
678
  }
679
  public function setSelfLink($selfLink) {
680
    $this->selfLink = $selfLink;
681
  }
682
  public function getSelfLink() {
683
    return $this->selfLink;
684
  }
685
}
686
 
687
class Google_CommentAuthor extends Google_Model {
688
  public $url;
689
  protected $__imageType = 'Google_CommentAuthorImage';
690
  protected $__imageDataType = '';
691
  public $image;
692
  public $displayName;
693
  public $id;
694
  public function setUrl($url) {
695
    $this->url = $url;
696
  }
697
  public function getUrl() {
698
    return $this->url;
699
  }
700
  public function setImage(Google_CommentAuthorImage $image) {
701
    $this->image = $image;
702
  }
703
  public function getImage() {
704
    return $this->image;
705
  }
706
  public function setDisplayName($displayName) {
707
    $this->displayName = $displayName;
708
  }
709
  public function getDisplayName() {
710
    return $this->displayName;
711
  }
712
  public function setId($id) {
713
    $this->id = $id;
714
  }
715
  public function getId() {
716
    return $this->id;
717
  }
718
}
719
 
720
class Google_CommentAuthorImage extends Google_Model {
721
  public $url;
722
  public function setUrl($url) {
723
    $this->url = $url;
724
  }
725
  public function getUrl() {
726
    return $this->url;
727
  }
728
}
729
 
730
class Google_CommentBlog extends Google_Model {
731
  public $id;
732
  public function setId($id) {
733
    $this->id = $id;
734
  }
735
  public function getId() {
736
    return $this->id;
737
  }
738
}
739
 
740
class Google_CommentInReplyTo extends Google_Model {
741
  public $id;
742
  public function setId($id) {
743
    $this->id = $id;
744
  }
745
  public function getId() {
746
    return $this->id;
747
  }
748
}
749
 
750
class Google_CommentList extends Google_Model {
751
  public $nextPageToken;
752
  protected $__itemsType = 'Google_Comment';
753
  protected $__itemsDataType = 'array';
754
  public $items;
755
  public $kind;
756
  public $prevPageToken;
757
  public function setNextPageToken($nextPageToken) {
758
    $this->nextPageToken = $nextPageToken;
759
  }
760
  public function getNextPageToken() {
761
    return $this->nextPageToken;
762
  }
763
  public function setItems(/* array(Google_Comment) */ $items) {
764
    $this->assertIsArray($items, 'Google_Comment', __METHOD__);
765
    $this->items = $items;
766
  }
767
  public function getItems() {
768
    return $this->items;
769
  }
770
  public function setKind($kind) {
771
    $this->kind = $kind;
772
  }
773
  public function getKind() {
774
    return $this->kind;
775
  }
776
  public function setPrevPageToken($prevPageToken) {
777
    $this->prevPageToken = $prevPageToken;
778
  }
779
  public function getPrevPageToken() {
780
    return $this->prevPageToken;
781
  }
782
}
783
 
784
class Google_CommentPost extends Google_Model {
785
  public $id;
786
  public function setId($id) {
787
    $this->id = $id;
788
  }
789
  public function getId() {
790
    return $this->id;
791
  }
792
}
793
 
794
class Google_Page extends Google_Model {
795
  public $content;
796
  public $kind;
797
  protected $__authorType = 'Google_PageAuthor';
798
  protected $__authorDataType = '';
799
  public $author;
800
  public $url;
801
  public $title;
802
  public $updated;
803
  protected $__blogType = 'Google_PageBlog';
804
  protected $__blogDataType = '';
805
  public $blog;
806
  public $published;
807
  public $id;
808
  public $selfLink;
809
  public function setContent($content) {
810
    $this->content = $content;
811
  }
812
  public function getContent() {
813
    return $this->content;
814
  }
815
  public function setKind($kind) {
816
    $this->kind = $kind;
817
  }
818
  public function getKind() {
819
    return $this->kind;
820
  }
821
  public function setAuthor(Google_PageAuthor $author) {
822
    $this->author = $author;
823
  }
824
  public function getAuthor() {
825
    return $this->author;
826
  }
827
  public function setUrl($url) {
828
    $this->url = $url;
829
  }
830
  public function getUrl() {
831
    return $this->url;
832
  }
833
  public function setTitle($title) {
834
    $this->title = $title;
835
  }
836
  public function getTitle() {
837
    return $this->title;
838
  }
839
  public function setUpdated($updated) {
840
    $this->updated = $updated;
841
  }
842
  public function getUpdated() {
843
    return $this->updated;
844
  }
845
  public function setBlog(Google_PageBlog $blog) {
846
    $this->blog = $blog;
847
  }
848
  public function getBlog() {
849
    return $this->blog;
850
  }
851
  public function setPublished($published) {
852
    $this->published = $published;
853
  }
854
  public function getPublished() {
855
    return $this->published;
856
  }
857
  public function setId($id) {
858
    $this->id = $id;
859
  }
860
  public function getId() {
861
    return $this->id;
862
  }
863
  public function setSelfLink($selfLink) {
864
    $this->selfLink = $selfLink;
865
  }
866
  public function getSelfLink() {
867
    return $this->selfLink;
868
  }
869
}
870
 
871
class Google_PageAuthor extends Google_Model {
872
  public $url;
873
  protected $__imageType = 'Google_PageAuthorImage';
874
  protected $__imageDataType = '';
875
  public $image;
876
  public $displayName;
877
  public $id;
878
  public function setUrl($url) {
879
    $this->url = $url;
880
  }
881
  public function getUrl() {
882
    return $this->url;
883
  }
884
  public function setImage(Google_PageAuthorImage $image) {
885
    $this->image = $image;
886
  }
887
  public function getImage() {
888
    return $this->image;
889
  }
890
  public function setDisplayName($displayName) {
891
    $this->displayName = $displayName;
892
  }
893
  public function getDisplayName() {
894
    return $this->displayName;
895
  }
896
  public function setId($id) {
897
    $this->id = $id;
898
  }
899
  public function getId() {
900
    return $this->id;
901
  }
902
}
903
 
904
class Google_PageAuthorImage extends Google_Model {
905
  public $url;
906
  public function setUrl($url) {
907
    $this->url = $url;
908
  }
909
  public function getUrl() {
910
    return $this->url;
911
  }
912
}
913
 
914
class Google_PageBlog extends Google_Model {
915
  public $id;
916
  public function setId($id) {
917
    $this->id = $id;
918
  }
919
  public function getId() {
920
    return $this->id;
921
  }
922
}
923
 
924
class Google_PageList extends Google_Model {
925
  protected $__itemsType = 'Google_Page';
926
  protected $__itemsDataType = 'array';
927
  public $items;
928
  public $kind;
929
  public function setItems(/* array(Google_Page) */ $items) {
930
    $this->assertIsArray($items, 'Google_Page', __METHOD__);
931
    $this->items = $items;
932
  }
933
  public function getItems() {
934
    return $this->items;
935
  }
936
  public function setKind($kind) {
937
    $this->kind = $kind;
938
  }
939
  public function getKind() {
940
    return $this->kind;
941
  }
942
}
943
 
944
class Google_Post extends Google_Model {
945
  public $content;
946
  public $kind;
947
  protected $__authorType = 'Google_PostAuthor';
948
  protected $__authorDataType = '';
949
  public $author;
950
  protected $__repliesType = 'Google_PostReplies';
951
  protected $__repliesDataType = '';
952
  public $replies;
953
  public $labels;
954
  public $customMetaData;
955
  public $updated;
956
  protected $__blogType = 'Google_PostBlog';
957
  protected $__blogDataType = '';
958
  public $blog;
959
  public $url;
960
  protected $__locationType = 'Google_PostLocation';
961
  protected $__locationDataType = '';
962
  public $location;
963
  public $published;
964
  public $title;
965
  public $id;
966
  public $selfLink;
967
  public function setContent($content) {
968
    $this->content = $content;
969
  }
970
  public function getContent() {
971
    return $this->content;
972
  }
973
  public function setKind($kind) {
974
    $this->kind = $kind;
975
  }
976
  public function getKind() {
977
    return $this->kind;
978
  }
979
  public function setAuthor(Google_PostAuthor $author) {
980
    $this->author = $author;
981
  }
982
  public function getAuthor() {
983
    return $this->author;
984
  }
985
  public function setReplies(Google_PostReplies $replies) {
986
    $this->replies = $replies;
987
  }
988
  public function getReplies() {
989
    return $this->replies;
990
  }
991
  public function setLabels(/* array(Google_string) */ $labels) {
992
    $this->assertIsArray($labels, 'Google_string', __METHOD__);
993
    $this->labels = $labels;
994
  }
995
  public function getLabels() {
996
    return $this->labels;
997
  }
998
  public function setCustomMetaData($customMetaData) {
999
    $this->customMetaData = $customMetaData;
1000
  }
1001
  public function getCustomMetaData() {
1002
    return $this->customMetaData;
1003
  }
1004
  public function setUpdated($updated) {
1005
    $this->updated = $updated;
1006
  }
1007
  public function getUpdated() {
1008
    return $this->updated;
1009
  }
1010
  public function setBlog(Google_PostBlog $blog) {
1011
    $this->blog = $blog;
1012
  }
1013
  public function getBlog() {
1014
    return $this->blog;
1015
  }
1016
  public function setUrl($url) {
1017
    $this->url = $url;
1018
  }
1019
  public function getUrl() {
1020
    return $this->url;
1021
  }
1022
  public function setLocation(Google_PostLocation $location) {
1023
    $this->location = $location;
1024
  }
1025
  public function getLocation() {
1026
    return $this->location;
1027
  }
1028
  public function setPublished($published) {
1029
    $this->published = $published;
1030
  }
1031
  public function getPublished() {
1032
    return $this->published;
1033
  }
1034
  public function setTitle($title) {
1035
    $this->title = $title;
1036
  }
1037
  public function getTitle() {
1038
    return $this->title;
1039
  }
1040
  public function setId($id) {
1041
    $this->id = $id;
1042
  }
1043
  public function getId() {
1044
    return $this->id;
1045
  }
1046
  public function setSelfLink($selfLink) {
1047
    $this->selfLink = $selfLink;
1048
  }
1049
  public function getSelfLink() {
1050
    return $this->selfLink;
1051
  }
1052
}
1053
 
1054
class Google_PostAuthor extends Google_Model {
1055
  public $url;
1056
  protected $__imageType = 'Google_PostAuthorImage';
1057
  protected $__imageDataType = '';
1058
  public $image;
1059
  public $displayName;
1060
  public $id;
1061
  public function setUrl($url) {
1062
    $this->url = $url;
1063
  }
1064
  public function getUrl() {
1065
    return $this->url;
1066
  }
1067
  public function setImage(Google_PostAuthorImage $image) {
1068
    $this->image = $image;
1069
  }
1070
  public function getImage() {
1071
    return $this->image;
1072
  }
1073
  public function setDisplayName($displayName) {
1074
    $this->displayName = $displayName;
1075
  }
1076
  public function getDisplayName() {
1077
    return $this->displayName;
1078
  }
1079
  public function setId($id) {
1080
    $this->id = $id;
1081
  }
1082
  public function getId() {
1083
    return $this->id;
1084
  }
1085
}
1086
 
1087
class Google_PostAuthorImage extends Google_Model {
1088
  public $url;
1089
  public function setUrl($url) {
1090
    $this->url = $url;
1091
  }
1092
  public function getUrl() {
1093
    return $this->url;
1094
  }
1095
}
1096
 
1097
class Google_PostBlog extends Google_Model {
1098
  public $id;
1099
  public function setId($id) {
1100
    $this->id = $id;
1101
  }
1102
  public function getId() {
1103
    return $this->id;
1104
  }
1105
}
1106
 
1107
class Google_PostList extends Google_Model {
1108
  public $nextPageToken;
1109
  protected $__itemsType = 'Google_Post';
1110
  protected $__itemsDataType = 'array';
1111
  public $items;
1112
  public $kind;
1113
  public $prevPageToken;
1114
  public function setNextPageToken($nextPageToken) {
1115
    $this->nextPageToken = $nextPageToken;
1116
  }
1117
  public function getNextPageToken() {
1118
    return $this->nextPageToken;
1119
  }
1120
  public function setItems(/* array(Google_Post) */ $items) {
1121
    $this->assertIsArray($items, 'Google_Post', __METHOD__);
1122
    $this->items = $items;
1123
  }
1124
  public function getItems() {
1125
    return $this->items;
1126
  }
1127
  public function setKind($kind) {
1128
    $this->kind = $kind;
1129
  }
1130
  public function getKind() {
1131
    return $this->kind;
1132
  }
1133
  public function setPrevPageToken($prevPageToken) {
1134
    $this->prevPageToken = $prevPageToken;
1135
  }
1136
  public function getPrevPageToken() {
1137
    return $this->prevPageToken;
1138
  }
1139
}
1140
 
1141
class Google_PostLocation extends Google_Model {
1142
  public $lat;
1143
  public $lng;
1144
  public $span;
1145
  public $name;
1146
  public function setLat($lat) {
1147
    $this->lat = $lat;
1148
  }
1149
  public function getLat() {
1150
    return $this->lat;
1151
  }
1152
  public function setLng($lng) {
1153
    $this->lng = $lng;
1154
  }
1155
  public function getLng() {
1156
    return $this->lng;
1157
  }
1158
  public function setSpan($span) {
1159
    $this->span = $span;
1160
  }
1161
  public function getSpan() {
1162
    return $this->span;
1163
  }
1164
  public function setName($name) {
1165
    $this->name = $name;
1166
  }
1167
  public function getName() {
1168
    return $this->name;
1169
  }
1170
}
1171
 
1172
class Google_PostReplies extends Google_Model {
1173
  public $totalItems;
1174
  protected $__itemsType = 'Google_Comment';
1175
  protected $__itemsDataType = 'array';
1176
  public $items;
1177
  public $selfLink;
1178
  public function setTotalItems($totalItems) {
1179
    $this->totalItems = $totalItems;
1180
  }
1181
  public function getTotalItems() {
1182
    return $this->totalItems;
1183
  }
1184
  public function setItems(/* array(Google_Comment) */ $items) {
1185
    $this->assertIsArray($items, 'Google_Comment', __METHOD__);
1186
    $this->items = $items;
1187
  }
1188
  public function getItems() {
1189
    return $this->items;
1190
  }
1191
  public function setSelfLink($selfLink) {
1192
    $this->selfLink = $selfLink;
1193
  }
1194
  public function getSelfLink() {
1195
    return $this->selfLink;
1196
  }
1197
}
1198
 
1199
class Google_User extends Google_Model {
1200
  public $about;
1201
  public $displayName;
1202
  public $created;
1203
  protected $__localeType = 'Google_UserLocale';
1204
  protected $__localeDataType = '';
1205
  public $locale;
1206
  protected $__blogsType = 'Google_UserBlogs';
1207
  protected $__blogsDataType = '';
1208
  public $blogs;
1209
  public $kind;
1210
  public $url;
1211
  public $id;
1212
  public $selfLink;
1213
  public function setAbout($about) {
1214
    $this->about = $about;
1215
  }
1216
  public function getAbout() {
1217
    return $this->about;
1218
  }
1219
  public function setDisplayName($displayName) {
1220
    $this->displayName = $displayName;
1221
  }
1222
  public function getDisplayName() {
1223
    return $this->displayName;
1224
  }
1225
  public function setCreated($created) {
1226
    $this->created = $created;
1227
  }
1228
  public function getCreated() {
1229
    return $this->created;
1230
  }
1231
  public function setLocale(Google_UserLocale $locale) {
1232
    $this->locale = $locale;
1233
  }
1234
  public function getLocale() {
1235
    return $this->locale;
1236
  }
1237
  public function setBlogs(Google_UserBlogs $blogs) {
1238
    $this->blogs = $blogs;
1239
  }
1240
  public function getBlogs() {
1241
    return $this->blogs;
1242
  }
1243
  public function setKind($kind) {
1244
    $this->kind = $kind;
1245
  }
1246
  public function getKind() {
1247
    return $this->kind;
1248
  }
1249
  public function setUrl($url) {
1250
    $this->url = $url;
1251
  }
1252
  public function getUrl() {
1253
    return $this->url;
1254
  }
1255
  public function setId($id) {
1256
    $this->id = $id;
1257
  }
1258
  public function getId() {
1259
    return $this->id;
1260
  }
1261
  public function setSelfLink($selfLink) {
1262
    $this->selfLink = $selfLink;
1263
  }
1264
  public function getSelfLink() {
1265
    return $this->selfLink;
1266
  }
1267
}
1268
 
1269
class Google_UserBlogs extends Google_Model {
1270
  public $selfLink;
1271
  public function setSelfLink($selfLink) {
1272
    $this->selfLink = $selfLink;
1273
  }
1274
  public function getSelfLink() {
1275
    return $this->selfLink;
1276
  }
1277
}
1278
 
1279
class Google_UserLocale extends Google_Model {
1280
  public $country;
1281
  public $variant;
1282
  public $language;
1283
  public function setCountry($country) {
1284
    $this->country = $country;
1285
  }
1286
  public function getCountry() {
1287
    return $this->country;
1288
  }
1289
  public function setVariant($variant) {
1290
    $this->variant = $variant;
1291
  }
1292
  public function getVariant() {
1293
    return $this->variant;
1294
  }
1295
  public function setLanguage($language) {
1296
    $this->language = $language;
1297
  }
1298
  public function getLanguage() {
1299
    return $this->language;
1300
  }
1301
}