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