[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Copyright 2010 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18 /** 19 * Service definition for Gmail (v1). 20 * 21 * <p> 22 * The Gmail REST API. 23 * </p> 24 * 25 * <p> 26 * For more information about this service, see the API 27 * <a href="https://developers.google.com/gmail/api/" target="_blank">Documentation</a> 28 * </p> 29 * 30 * @author Google, Inc. 31 */ 32 class Google_Service_Gmail extends Google_Service 33 { 34 /** View and manage your mail. */ 35 const MAIL_GOOGLE_COM = "https://mail.google.com"; 36 /** Manage drafts and send emails. */ 37 const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; 38 /** View and modify but not delete your email. */ 39 const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; 40 /** View your emails messages and settings. */ 41 const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; 42 43 public $users_drafts; 44 public $users_history; 45 public $users_labels; 46 public $users_messages; 47 public $users_messages_attachments; 48 public $users_threads; 49 50 51 /** 52 * Constructs the internal representation of the Gmail service. 53 * 54 * @param Google_Client $client 55 */ 56 public function __construct(Google_Client $client) 57 { 58 parent::__construct($client); 59 $this->servicePath = 'gmail/v1/users/'; 60 $this->version = 'v1'; 61 $this->serviceName = 'gmail'; 62 63 $this->users_drafts = new Google_Service_Gmail_UsersDrafts_Resource( 64 $this, 65 $this->serviceName, 66 'drafts', 67 array( 68 'methods' => array( 69 'create' => array( 70 'path' => '{userId}/drafts', 71 'httpMethod' => 'POST', 72 'parameters' => array( 73 'userId' => array( 74 'location' => 'path', 75 'type' => 'string', 76 'required' => true, 77 ), 78 ), 79 ),'delete' => array( 80 'path' => '{userId}/drafts/{id}', 81 'httpMethod' => 'DELETE', 82 'parameters' => array( 83 'userId' => array( 84 'location' => 'path', 85 'type' => 'string', 86 'required' => true, 87 ), 88 'id' => array( 89 'location' => 'path', 90 'type' => 'string', 91 'required' => true, 92 ), 93 ), 94 ),'get' => array( 95 'path' => '{userId}/drafts/{id}', 96 'httpMethod' => 'GET', 97 'parameters' => array( 98 'userId' => array( 99 'location' => 'path', 100 'type' => 'string', 101 'required' => true, 102 ), 103 'id' => array( 104 'location' => 'path', 105 'type' => 'string', 106 'required' => true, 107 ), 108 'format' => array( 109 'location' => 'query', 110 'type' => 'string', 111 ), 112 ), 113 ),'list' => array( 114 'path' => '{userId}/drafts', 115 'httpMethod' => 'GET', 116 'parameters' => array( 117 'userId' => array( 118 'location' => 'path', 119 'type' => 'string', 120 'required' => true, 121 ), 122 'pageToken' => array( 123 'location' => 'query', 124 'type' => 'string', 125 ), 126 'maxResults' => array( 127 'location' => 'query', 128 'type' => 'integer', 129 ), 130 ), 131 ),'send' => array( 132 'path' => '{userId}/drafts/send', 133 'httpMethod' => 'POST', 134 'parameters' => array( 135 'userId' => array( 136 'location' => 'path', 137 'type' => 'string', 138 'required' => true, 139 ), 140 ), 141 ),'update' => array( 142 'path' => '{userId}/drafts/{id}', 143 'httpMethod' => 'PUT', 144 'parameters' => array( 145 'userId' => array( 146 'location' => 'path', 147 'type' => 'string', 148 'required' => true, 149 ), 150 'id' => array( 151 'location' => 'path', 152 'type' => 'string', 153 'required' => true, 154 ), 155 ), 156 ), 157 ) 158 ) 159 ); 160 $this->users_history = new Google_Service_Gmail_UsersHistory_Resource( 161 $this, 162 $this->serviceName, 163 'history', 164 array( 165 'methods' => array( 166 'list' => array( 167 'path' => '{userId}/history', 168 'httpMethod' => 'GET', 169 'parameters' => array( 170 'userId' => array( 171 'location' => 'path', 172 'type' => 'string', 173 'required' => true, 174 ), 175 'pageToken' => array( 176 'location' => 'query', 177 'type' => 'string', 178 ), 179 'maxResults' => array( 180 'location' => 'query', 181 'type' => 'integer', 182 ), 183 'labelId' => array( 184 'location' => 'query', 185 'type' => 'string', 186 ), 187 'startHistoryId' => array( 188 'location' => 'query', 189 'type' => 'string', 190 ), 191 ), 192 ), 193 ) 194 ) 195 ); 196 $this->users_labels = new Google_Service_Gmail_UsersLabels_Resource( 197 $this, 198 $this->serviceName, 199 'labels', 200 array( 201 'methods' => array( 202 'create' => array( 203 'path' => '{userId}/labels', 204 'httpMethod' => 'POST', 205 'parameters' => array( 206 'userId' => array( 207 'location' => 'path', 208 'type' => 'string', 209 'required' => true, 210 ), 211 ), 212 ),'delete' => array( 213 'path' => '{userId}/labels/{id}', 214 'httpMethod' => 'DELETE', 215 'parameters' => array( 216 'userId' => array( 217 'location' => 'path', 218 'type' => 'string', 219 'required' => true, 220 ), 221 'id' => array( 222 'location' => 'path', 223 'type' => 'string', 224 'required' => true, 225 ), 226 ), 227 ),'get' => array( 228 'path' => '{userId}/labels/{id}', 229 'httpMethod' => 'GET', 230 'parameters' => array( 231 'userId' => array( 232 'location' => 'path', 233 'type' => 'string', 234 'required' => true, 235 ), 236 'id' => array( 237 'location' => 'path', 238 'type' => 'string', 239 'required' => true, 240 ), 241 ), 242 ),'list' => array( 243 'path' => '{userId}/labels', 244 'httpMethod' => 'GET', 245 'parameters' => array( 246 'userId' => array( 247 'location' => 'path', 248 'type' => 'string', 249 'required' => true, 250 ), 251 ), 252 ),'patch' => array( 253 'path' => '{userId}/labels/{id}', 254 'httpMethod' => 'PATCH', 255 'parameters' => array( 256 'userId' => array( 257 'location' => 'path', 258 'type' => 'string', 259 'required' => true, 260 ), 261 'id' => array( 262 'location' => 'path', 263 'type' => 'string', 264 'required' => true, 265 ), 266 ), 267 ),'update' => array( 268 'path' => '{userId}/labels/{id}', 269 'httpMethod' => 'PUT', 270 'parameters' => array( 271 'userId' => array( 272 'location' => 'path', 273 'type' => 'string', 274 'required' => true, 275 ), 276 'id' => array( 277 'location' => 'path', 278 'type' => 'string', 279 'required' => true, 280 ), 281 ), 282 ), 283 ) 284 ) 285 ); 286 $this->users_messages = new Google_Service_Gmail_UsersMessages_Resource( 287 $this, 288 $this->serviceName, 289 'messages', 290 array( 291 'methods' => array( 292 'delete' => array( 293 'path' => '{userId}/messages/{id}', 294 'httpMethod' => 'DELETE', 295 'parameters' => array( 296 'userId' => array( 297 'location' => 'path', 298 'type' => 'string', 299 'required' => true, 300 ), 301 'id' => array( 302 'location' => 'path', 303 'type' => 'string', 304 'required' => true, 305 ), 306 ), 307 ),'get' => array( 308 'path' => '{userId}/messages/{id}', 309 'httpMethod' => 'GET', 310 'parameters' => array( 311 'userId' => array( 312 'location' => 'path', 313 'type' => 'string', 314 'required' => true, 315 ), 316 'id' => array( 317 'location' => 'path', 318 'type' => 'string', 319 'required' => true, 320 ), 321 'metadataHeaders' => array( 322 'location' => 'query', 323 'type' => 'string', 324 'repeated' => true, 325 ), 326 'format' => array( 327 'location' => 'query', 328 'type' => 'string', 329 ), 330 ), 331 ),'import' => array( 332 'path' => '{userId}/messages/import', 333 'httpMethod' => 'POST', 334 'parameters' => array( 335 'userId' => array( 336 'location' => 'path', 337 'type' => 'string', 338 'required' => true, 339 ), 340 'internalDateSource' => array( 341 'location' => 'query', 342 'type' => 'string', 343 ), 344 ), 345 ),'insert' => array( 346 'path' => '{userId}/messages', 347 'httpMethod' => 'POST', 348 'parameters' => array( 349 'userId' => array( 350 'location' => 'path', 351 'type' => 'string', 352 'required' => true, 353 ), 354 'internalDateSource' => array( 355 'location' => 'query', 356 'type' => 'string', 357 ), 358 ), 359 ),'list' => array( 360 'path' => '{userId}/messages', 361 'httpMethod' => 'GET', 362 'parameters' => array( 363 'userId' => array( 364 'location' => 'path', 365 'type' => 'string', 366 'required' => true, 367 ), 368 'maxResults' => array( 369 'location' => 'query', 370 'type' => 'integer', 371 ), 372 'q' => array( 373 'location' => 'query', 374 'type' => 'string', 375 ), 376 'pageToken' => array( 377 'location' => 'query', 378 'type' => 'string', 379 ), 380 'includeSpamTrash' => array( 381 'location' => 'query', 382 'type' => 'boolean', 383 ), 384 'labelIds' => array( 385 'location' => 'query', 386 'type' => 'string', 387 'repeated' => true, 388 ), 389 ), 390 ),'modify' => array( 391 'path' => '{userId}/messages/{id}/modify', 392 'httpMethod' => 'POST', 393 'parameters' => array( 394 'userId' => array( 395 'location' => 'path', 396 'type' => 'string', 397 'required' => true, 398 ), 399 'id' => array( 400 'location' => 'path', 401 'type' => 'string', 402 'required' => true, 403 ), 404 ), 405 ),'send' => array( 406 'path' => '{userId}/messages/send', 407 'httpMethod' => 'POST', 408 'parameters' => array( 409 'userId' => array( 410 'location' => 'path', 411 'type' => 'string', 412 'required' => true, 413 ), 414 ), 415 ),'trash' => array( 416 'path' => '{userId}/messages/{id}/trash', 417 'httpMethod' => 'POST', 418 'parameters' => array( 419 'userId' => array( 420 'location' => 'path', 421 'type' => 'string', 422 'required' => true, 423 ), 424 'id' => array( 425 'location' => 'path', 426 'type' => 'string', 427 'required' => true, 428 ), 429 ), 430 ),'untrash' => array( 431 'path' => '{userId}/messages/{id}/untrash', 432 'httpMethod' => 'POST', 433 'parameters' => array( 434 'userId' => array( 435 'location' => 'path', 436 'type' => 'string', 437 'required' => true, 438 ), 439 'id' => array( 440 'location' => 'path', 441 'type' => 'string', 442 'required' => true, 443 ), 444 ), 445 ), 446 ) 447 ) 448 ); 449 $this->users_messages_attachments = new Google_Service_Gmail_UsersMessagesAttachments_Resource( 450 $this, 451 $this->serviceName, 452 'attachments', 453 array( 454 'methods' => array( 455 'get' => array( 456 'path' => '{userId}/messages/{messageId}/attachments/{id}', 457 'httpMethod' => 'GET', 458 'parameters' => array( 459 'userId' => array( 460 'location' => 'path', 461 'type' => 'string', 462 'required' => true, 463 ), 464 'messageId' => array( 465 'location' => 'path', 466 'type' => 'string', 467 'required' => true, 468 ), 469 'id' => array( 470 'location' => 'path', 471 'type' => 'string', 472 'required' => true, 473 ), 474 ), 475 ), 476 ) 477 ) 478 ); 479 $this->users_threads = new Google_Service_Gmail_UsersThreads_Resource( 480 $this, 481 $this->serviceName, 482 'threads', 483 array( 484 'methods' => array( 485 'delete' => array( 486 'path' => '{userId}/threads/{id}', 487 'httpMethod' => 'DELETE', 488 'parameters' => array( 489 'userId' => array( 490 'location' => 'path', 491 'type' => 'string', 492 'required' => true, 493 ), 494 'id' => array( 495 'location' => 'path', 496 'type' => 'string', 497 'required' => true, 498 ), 499 ), 500 ),'get' => array( 501 'path' => '{userId}/threads/{id}', 502 'httpMethod' => 'GET', 503 'parameters' => array( 504 'userId' => array( 505 'location' => 'path', 506 'type' => 'string', 507 'required' => true, 508 ), 509 'id' => array( 510 'location' => 'path', 511 'type' => 'string', 512 'required' => true, 513 ), 514 ), 515 ),'list' => array( 516 'path' => '{userId}/threads', 517 'httpMethod' => 'GET', 518 'parameters' => array( 519 'userId' => array( 520 'location' => 'path', 521 'type' => 'string', 522 'required' => true, 523 ), 524 'maxResults' => array( 525 'location' => 'query', 526 'type' => 'integer', 527 ), 528 'q' => array( 529 'location' => 'query', 530 'type' => 'string', 531 ), 532 'pageToken' => array( 533 'location' => 'query', 534 'type' => 'string', 535 ), 536 'includeSpamTrash' => array( 537 'location' => 'query', 538 'type' => 'boolean', 539 ), 540 'labelIds' => array( 541 'location' => 'query', 542 'type' => 'string', 543 'repeated' => true, 544 ), 545 ), 546 ),'modify' => array( 547 'path' => '{userId}/threads/{id}/modify', 548 'httpMethod' => 'POST', 549 'parameters' => array( 550 'userId' => array( 551 'location' => 'path', 552 'type' => 'string', 553 'required' => true, 554 ), 555 'id' => array( 556 'location' => 'path', 557 'type' => 'string', 558 'required' => true, 559 ), 560 ), 561 ),'trash' => array( 562 'path' => '{userId}/threads/{id}/trash', 563 'httpMethod' => 'POST', 564 'parameters' => array( 565 'userId' => array( 566 'location' => 'path', 567 'type' => 'string', 568 'required' => true, 569 ), 570 'id' => array( 571 'location' => 'path', 572 'type' => 'string', 573 'required' => true, 574 ), 575 ), 576 ),'untrash' => array( 577 'path' => '{userId}/threads/{id}/untrash', 578 'httpMethod' => 'POST', 579 'parameters' => array( 580 'userId' => array( 581 'location' => 'path', 582 'type' => 'string', 583 'required' => true, 584 ), 585 'id' => array( 586 'location' => 'path', 587 'type' => 'string', 588 'required' => true, 589 ), 590 ), 591 ), 592 ) 593 ) 594 ); 595 } 596 } 597 598 599 /** 600 * The "users" collection of methods. 601 * Typical usage is: 602 * <code> 603 * $gmailService = new Google_Service_Gmail(...); 604 * $users = $gmailService->users; 605 * </code> 606 */ 607 class Google_Service_Gmail_Users_Resource extends Google_Service_Resource 608 { 609 610 } 611 612 /** 613 * The "drafts" collection of methods. 614 * Typical usage is: 615 * <code> 616 * $gmailService = new Google_Service_Gmail(...); 617 * $drafts = $gmailService->drafts; 618 * </code> 619 */ 620 class Google_Service_Gmail_UsersDrafts_Resource extends Google_Service_Resource 621 { 622 623 /** 624 * Creates a new draft with the DRAFT label. (drafts.create) 625 * 626 * @param string $userId 627 * The user's email address. The special value me can be used to indicate the authenticated user. 628 * @param Google_Draft $postBody 629 * @param array $optParams Optional parameters. 630 * @return Google_Service_Gmail_Draft 631 */ 632 public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) 633 { 634 $params = array('userId' => $userId, 'postBody' => $postBody); 635 $params = array_merge($params, $optParams); 636 return $this->call('create', array($params), "Google_Service_Gmail_Draft"); 637 } 638 /** 639 * Immediately and permanently deletes the specified draft. Does not simply 640 * trash it. (drafts.delete) 641 * 642 * @param string $userId 643 * The user's email address. The special value me can be used to indicate the authenticated user. 644 * @param string $id 645 * The ID of the draft to delete. 646 * @param array $optParams Optional parameters. 647 */ 648 public function delete($userId, $id, $optParams = array()) 649 { 650 $params = array('userId' => $userId, 'id' => $id); 651 $params = array_merge($params, $optParams); 652 return $this->call('delete', array($params)); 653 } 654 /** 655 * Gets the specified draft. (drafts.get) 656 * 657 * @param string $userId 658 * The user's email address. The special value me can be used to indicate the authenticated user. 659 * @param string $id 660 * The ID of the draft to retrieve. 661 * @param array $optParams Optional parameters. 662 * 663 * @opt_param string format 664 * The format to return the draft in. 665 * @return Google_Service_Gmail_Draft 666 */ 667 public function get($userId, $id, $optParams = array()) 668 { 669 $params = array('userId' => $userId, 'id' => $id); 670 $params = array_merge($params, $optParams); 671 return $this->call('get', array($params), "Google_Service_Gmail_Draft"); 672 } 673 /** 674 * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) 675 * 676 * @param string $userId 677 * The user's email address. The special value me can be used to indicate the authenticated user. 678 * @param array $optParams Optional parameters. 679 * 680 * @opt_param string pageToken 681 * Page token to retrieve a specific page of results in the list. 682 * @opt_param string maxResults 683 * Maximum number of drafts to return. 684 * @return Google_Service_Gmail_ListDraftsResponse 685 */ 686 public function listUsersDrafts($userId, $optParams = array()) 687 { 688 $params = array('userId' => $userId); 689 $params = array_merge($params, $optParams); 690 return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); 691 } 692 /** 693 * Sends the specified, existing draft to the recipients in the To, Cc, and Bcc 694 * headers. (drafts.send) 695 * 696 * @param string $userId 697 * The user's email address. The special value me can be used to indicate the authenticated user. 698 * @param Google_Draft $postBody 699 * @param array $optParams Optional parameters. 700 * @return Google_Service_Gmail_Message 701 */ 702 public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) 703 { 704 $params = array('userId' => $userId, 'postBody' => $postBody); 705 $params = array_merge($params, $optParams); 706 return $this->call('send', array($params), "Google_Service_Gmail_Message"); 707 } 708 /** 709 * Replaces a draft's content. (drafts.update) 710 * 711 * @param string $userId 712 * The user's email address. The special value me can be used to indicate the authenticated user. 713 * @param string $id 714 * The ID of the draft to update. 715 * @param Google_Draft $postBody 716 * @param array $optParams Optional parameters. 717 * @return Google_Service_Gmail_Draft 718 */ 719 public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array()) 720 { 721 $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); 722 $params = array_merge($params, $optParams); 723 return $this->call('update', array($params), "Google_Service_Gmail_Draft"); 724 } 725 } 726 /** 727 * The "history" collection of methods. 728 * Typical usage is: 729 * <code> 730 * $gmailService = new Google_Service_Gmail(...); 731 * $history = $gmailService->history; 732 * </code> 733 */ 734 class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource 735 { 736 737 /** 738 * Lists the history of all changes to the given mailbox. History results are 739 * returned in chronological order (increasing historyId). 740 * (history.listUsersHistory) 741 * 742 * @param string $userId 743 * The user's email address. The special value me can be used to indicate the authenticated user. 744 * @param array $optParams Optional parameters. 745 * 746 * @opt_param string pageToken 747 * Page token to retrieve a specific page of results in the list. 748 * @opt_param string maxResults 749 * The maximum number of history records to return. 750 * @opt_param string labelId 751 * Only return messages with a label matching the ID. 752 * @opt_param string startHistoryId 753 * Required. Returns history records after the specified startHistoryId. The supplied 754 * startHistoryId should be obtained from the historyId of a message, thread, or previous list 755 * response. History IDs increase chronologically but are not contiguous with random gaps in 756 * between valid IDs. Supplying an invalid or out of date startHistoryId typically returns an HTTP 757 * 404 error code. A historyId is typically valid for at least a week, but in some circumstances 758 * may be valid for only a few hours. If you receive an HTTP 404 error response, your application 759 * should perform a full sync. If you receive no nextPageToken in the response, there are no 760 * updates to retrieve and you can store the returned historyId for a future request. 761 * @return Google_Service_Gmail_ListHistoryResponse 762 */ 763 public function listUsersHistory($userId, $optParams = array()) 764 { 765 $params = array('userId' => $userId); 766 $params = array_merge($params, $optParams); 767 return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); 768 } 769 } 770 /** 771 * The "labels" collection of methods. 772 * Typical usage is: 773 * <code> 774 * $gmailService = new Google_Service_Gmail(...); 775 * $labels = $gmailService->labels; 776 * </code> 777 */ 778 class Google_Service_Gmail_UsersLabels_Resource extends Google_Service_Resource 779 { 780 781 /** 782 * Creates a new label. (labels.create) 783 * 784 * @param string $userId 785 * The user's email address. The special value me can be used to indicate the authenticated user. 786 * @param Google_Label $postBody 787 * @param array $optParams Optional parameters. 788 * @return Google_Service_Gmail_Label 789 */ 790 public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array()) 791 { 792 $params = array('userId' => $userId, 'postBody' => $postBody); 793 $params = array_merge($params, $optParams); 794 return $this->call('create', array($params), "Google_Service_Gmail_Label"); 795 } 796 /** 797 * Immediately and permanently deletes the specified label and removes it from 798 * any messages and threads that it is applied to. (labels.delete) 799 * 800 * @param string $userId 801 * The user's email address. The special value me can be used to indicate the authenticated user. 802 * @param string $id 803 * The ID of the label to delete. 804 * @param array $optParams Optional parameters. 805 */ 806 public function delete($userId, $id, $optParams = array()) 807 { 808 $params = array('userId' => $userId, 'id' => $id); 809 $params = array_merge($params, $optParams); 810 return $this->call('delete', array($params)); 811 } 812 /** 813 * Gets the specified label. (labels.get) 814 * 815 * @param string $userId 816 * The user's email address. The special value me can be used to indicate the authenticated user. 817 * @param string $id 818 * The ID of the label to retrieve. 819 * @param array $optParams Optional parameters. 820 * @return Google_Service_Gmail_Label 821 */ 822 public function get($userId, $id, $optParams = array()) 823 { 824 $params = array('userId' => $userId, 'id' => $id); 825 $params = array_merge($params, $optParams); 826 return $this->call('get', array($params), "Google_Service_Gmail_Label"); 827 } 828 /** 829 * Lists all labels in the user's mailbox. (labels.listUsersLabels) 830 * 831 * @param string $userId 832 * The user's email address. The special value me can be used to indicate the authenticated user. 833 * @param array $optParams Optional parameters. 834 * @return Google_Service_Gmail_ListLabelsResponse 835 */ 836 public function listUsersLabels($userId, $optParams = array()) 837 { 838 $params = array('userId' => $userId); 839 $params = array_merge($params, $optParams); 840 return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); 841 } 842 /** 843 * Updates the specified label. This method supports patch semantics. 844 * (labels.patch) 845 * 846 * @param string $userId 847 * The user's email address. The special value me can be used to indicate the authenticated user. 848 * @param string $id 849 * The ID of the label to update. 850 * @param Google_Label $postBody 851 * @param array $optParams Optional parameters. 852 * @return Google_Service_Gmail_Label 853 */ 854 public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) 855 { 856 $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); 857 $params = array_merge($params, $optParams); 858 return $this->call('patch', array($params), "Google_Service_Gmail_Label"); 859 } 860 /** 861 * Updates the specified label. (labels.update) 862 * 863 * @param string $userId 864 * The user's email address. The special value me can be used to indicate the authenticated user. 865 * @param string $id 866 * The ID of the label to update. 867 * @param Google_Label $postBody 868 * @param array $optParams Optional parameters. 869 * @return Google_Service_Gmail_Label 870 */ 871 public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) 872 { 873 $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); 874 $params = array_merge($params, $optParams); 875 return $this->call('update', array($params), "Google_Service_Gmail_Label"); 876 } 877 } 878 /** 879 * The "messages" collection of methods. 880 * Typical usage is: 881 * <code> 882 * $gmailService = new Google_Service_Gmail(...); 883 * $messages = $gmailService->messages; 884 * </code> 885 */ 886 class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resource 887 { 888 889 /** 890 * Immediately and permanently deletes the specified message. This operation 891 * cannot be undone. Prefer messages.trash instead. (messages.delete) 892 * 893 * @param string $userId 894 * The user's email address. The special value me can be used to indicate the authenticated user. 895 * @param string $id 896 * The ID of the message to delete. 897 * @param array $optParams Optional parameters. 898 */ 899 public function delete($userId, $id, $optParams = array()) 900 { 901 $params = array('userId' => $userId, 'id' => $id); 902 $params = array_merge($params, $optParams); 903 return $this->call('delete', array($params)); 904 } 905 /** 906 * Gets the specified message. (messages.get) 907 * 908 * @param string $userId 909 * The user's email address. The special value me can be used to indicate the authenticated user. 910 * @param string $id 911 * The ID of the message to retrieve. 912 * @param array $optParams Optional parameters. 913 * 914 * @opt_param string metadataHeaders 915 * When given and format is METADATA, only include headers specified. 916 * @opt_param string format 917 * The format to return the message in. 918 * @return Google_Service_Gmail_Message 919 */ 920 public function get($userId, $id, $optParams = array()) 921 { 922 $params = array('userId' => $userId, 'id' => $id); 923 $params = array_merge($params, $optParams); 924 return $this->call('get', array($params), "Google_Service_Gmail_Message"); 925 } 926 /** 927 * Imports a message into only this user's mailbox, with standard email delivery 928 * scanning and classification similar to receiving via SMTP. Does not send a 929 * message. (messages.import) 930 * 931 * @param string $userId 932 * The user's email address. The special value me can be used to indicate the authenticated user. 933 * @param Google_Message $postBody 934 * @param array $optParams Optional parameters. 935 * 936 * @opt_param string internalDateSource 937 * Source for Gmail's internal date of the message. 938 * @return Google_Service_Gmail_Message 939 */ 940 public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) 941 { 942 $params = array('userId' => $userId, 'postBody' => $postBody); 943 $params = array_merge($params, $optParams); 944 return $this->call('import', array($params), "Google_Service_Gmail_Message"); 945 } 946 /** 947 * Directly inserts a message into only this user's mailbox similar to IMAP 948 * APPEND, bypassing most scanning and classification. Does not send a message. 949 * (messages.insert) 950 * 951 * @param string $userId 952 * The user's email address. The special value me can be used to indicate the authenticated user. 953 * @param Google_Message $postBody 954 * @param array $optParams Optional parameters. 955 * 956 * @opt_param string internalDateSource 957 * Source for Gmail's internal date of the message. 958 * @return Google_Service_Gmail_Message 959 */ 960 public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) 961 { 962 $params = array('userId' => $userId, 'postBody' => $postBody); 963 $params = array_merge($params, $optParams); 964 return $this->call('insert', array($params), "Google_Service_Gmail_Message"); 965 } 966 /** 967 * Lists the messages in the user's mailbox. (messages.listUsersMessages) 968 * 969 * @param string $userId 970 * The user's email address. The special value me can be used to indicate the authenticated user. 971 * @param array $optParams Optional parameters. 972 * 973 * @opt_param string maxResults 974 * Maximum number of messages to return. 975 * @opt_param string q 976 * Only return messages matching the specified query. Supports the same query format as the Gmail 977 * search box. For example, "from:[email protected] rfc822msgid: is:unread". 978 * @opt_param string pageToken 979 * Page token to retrieve a specific page of results in the list. 980 * @opt_param bool includeSpamTrash 981 * Include messages from SPAM and TRASH in the results. 982 * @opt_param string labelIds 983 * Only return messages with labels that match all of the specified label IDs. 984 * @return Google_Service_Gmail_ListMessagesResponse 985 */ 986 public function listUsersMessages($userId, $optParams = array()) 987 { 988 $params = array('userId' => $userId); 989 $params = array_merge($params, $optParams); 990 return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); 991 } 992 /** 993 * Modifies the labels on the specified message. (messages.modify) 994 * 995 * @param string $userId 996 * The user's email address. The special value me can be used to indicate the authenticated user. 997 * @param string $id 998 * The ID of the message to modify. 999 * @param Google_ModifyMessageRequest $postBody 1000 * @param array $optParams Optional parameters. 1001 * @return Google_Service_Gmail_Message 1002 */ 1003 public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) 1004 { 1005 $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); 1006 $params = array_merge($params, $optParams); 1007 return $this->call('modify', array($params), "Google_Service_Gmail_Message"); 1008 } 1009 /** 1010 * Sends the specified message to the recipients in the To, Cc, and Bcc headers. 1011 * (messages.send) 1012 * 1013 * @param string $userId 1014 * The user's email address. The special value me can be used to indicate the authenticated user. 1015 * @param Google_Message $postBody 1016 * @param array $optParams Optional parameters. 1017 * @return Google_Service_Gmail_Message 1018 */ 1019 public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) 1020 { 1021 $params = array('userId' => $userId, 'postBody' => $postBody); 1022 $params = array_merge($params, $optParams); 1023 return $this->call('send', array($params), "Google_Service_Gmail_Message"); 1024 } 1025 /** 1026 * Moves the specified message to the trash. (messages.trash) 1027 * 1028 * @param string $userId 1029 * The user's email address. The special value me can be used to indicate the authenticated user. 1030 * @param string $id 1031 * The ID of the message to Trash. 1032 * @param array $optParams Optional parameters. 1033 * @return Google_Service_Gmail_Message 1034 */ 1035 public function trash($userId, $id, $optParams = array()) 1036 { 1037 $params = array('userId' => $userId, 'id' => $id); 1038 $params = array_merge($params, $optParams); 1039 return $this->call('trash', array($params), "Google_Service_Gmail_Message"); 1040 } 1041 /** 1042 * Removes the specified message from the trash. (messages.untrash) 1043 * 1044 * @param string $userId 1045 * The user's email address. The special value me can be used to indicate the authenticated user. 1046 * @param string $id 1047 * The ID of the message to remove from Trash. 1048 * @param array $optParams Optional parameters. 1049 * @return Google_Service_Gmail_Message 1050 */ 1051 public function untrash($userId, $id, $optParams = array()) 1052 { 1053 $params = array('userId' => $userId, 'id' => $id); 1054 $params = array_merge($params, $optParams); 1055 return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); 1056 } 1057 } 1058 1059 /** 1060 * The "attachments" collection of methods. 1061 * Typical usage is: 1062 * <code> 1063 * $gmailService = new Google_Service_Gmail(...); 1064 * $attachments = $gmailService->attachments; 1065 * </code> 1066 */ 1067 class Google_Service_Gmail_UsersMessagesAttachments_Resource extends Google_Service_Resource 1068 { 1069 1070 /** 1071 * Gets the specified message attachment. (attachments.get) 1072 * 1073 * @param string $userId 1074 * The user's email address. The special value me can be used to indicate the authenticated user. 1075 * @param string $messageId 1076 * The ID of the message containing the attachment. 1077 * @param string $id 1078 * The ID of the attachment. 1079 * @param array $optParams Optional parameters. 1080 * @return Google_Service_Gmail_MessagePartBody 1081 */ 1082 public function get($userId, $messageId, $id, $optParams = array()) 1083 { 1084 $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); 1085 $params = array_merge($params, $optParams); 1086 return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); 1087 } 1088 } 1089 /** 1090 * The "threads" collection of methods. 1091 * Typical usage is: 1092 * <code> 1093 * $gmailService = new Google_Service_Gmail(...); 1094 * $threads = $gmailService->threads; 1095 * </code> 1096 */ 1097 class Google_Service_Gmail_UsersThreads_Resource extends Google_Service_Resource 1098 { 1099 1100 /** 1101 * Immediately and permanently deletes the specified thread. This operation 1102 * cannot be undone. Prefer threads.trash instead. (threads.delete) 1103 * 1104 * @param string $userId 1105 * The user's email address. The special value me can be used to indicate the authenticated user. 1106 * @param string $id 1107 * ID of the Thread to delete. 1108 * @param array $optParams Optional parameters. 1109 */ 1110 public function delete($userId, $id, $optParams = array()) 1111 { 1112 $params = array('userId' => $userId, 'id' => $id); 1113 $params = array_merge($params, $optParams); 1114 return $this->call('delete', array($params)); 1115 } 1116 /** 1117 * Gets the specified thread. (threads.get) 1118 * 1119 * @param string $userId 1120 * The user's email address. The special value me can be used to indicate the authenticated user. 1121 * @param string $id 1122 * The ID of the thread to retrieve. 1123 * @param array $optParams Optional parameters. 1124 * @return Google_Service_Gmail_Thread 1125 */ 1126 public function get($userId, $id, $optParams = array()) 1127 { 1128 $params = array('userId' => $userId, 'id' => $id); 1129 $params = array_merge($params, $optParams); 1130 return $this->call('get', array($params), "Google_Service_Gmail_Thread"); 1131 } 1132 /** 1133 * Lists the threads in the user's mailbox. (threads.listUsersThreads) 1134 * 1135 * @param string $userId 1136 * The user's email address. The special value me can be used to indicate the authenticated user. 1137 * @param array $optParams Optional parameters. 1138 * 1139 * @opt_param string maxResults 1140 * Maximum number of threads to return. 1141 * @opt_param string q 1142 * Only return threads matching the specified query. Supports the same query format as the Gmail 1143 * search box. For example, "from:[email protected] rfc822msgid: is:unread". 1144 * @opt_param string pageToken 1145 * Page token to retrieve a specific page of results in the list. 1146 * @opt_param bool includeSpamTrash 1147 * Include threads from SPAM and TRASH in the results. 1148 * @opt_param string labelIds 1149 * Only return threads with labels that match all of the specified label IDs. 1150 * @return Google_Service_Gmail_ListThreadsResponse 1151 */ 1152 public function listUsersThreads($userId, $optParams = array()) 1153 { 1154 $params = array('userId' => $userId); 1155 $params = array_merge($params, $optParams); 1156 return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); 1157 } 1158 /** 1159 * Modifies the labels applied to the thread. This applies to all messages in 1160 * the thread. (threads.modify) 1161 * 1162 * @param string $userId 1163 * The user's email address. The special value me can be used to indicate the authenticated user. 1164 * @param string $id 1165 * The ID of the thread to modify. 1166 * @param Google_ModifyThreadRequest $postBody 1167 * @param array $optParams Optional parameters. 1168 * @return Google_Service_Gmail_Thread 1169 */ 1170 public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) 1171 { 1172 $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); 1173 $params = array_merge($params, $optParams); 1174 return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); 1175 } 1176 /** 1177 * Moves the specified thread to the trash. (threads.trash) 1178 * 1179 * @param string $userId 1180 * The user's email address. The special value me can be used to indicate the authenticated user. 1181 * @param string $id 1182 * The ID of the thread to Trash. 1183 * @param array $optParams Optional parameters. 1184 * @return Google_Service_Gmail_Thread 1185 */ 1186 public function trash($userId, $id, $optParams = array()) 1187 { 1188 $params = array('userId' => $userId, 'id' => $id); 1189 $params = array_merge($params, $optParams); 1190 return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); 1191 } 1192 /** 1193 * Removes the specified thread from the trash. (threads.untrash) 1194 * 1195 * @param string $userId 1196 * The user's email address. The special value me can be used to indicate the authenticated user. 1197 * @param string $id 1198 * The ID of the thread to remove from Trash. 1199 * @param array $optParams Optional parameters. 1200 * @return Google_Service_Gmail_Thread 1201 */ 1202 public function untrash($userId, $id, $optParams = array()) 1203 { 1204 $params = array('userId' => $userId, 'id' => $id); 1205 $params = array_merge($params, $optParams); 1206 return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); 1207 } 1208 } 1209 1210 1211 1212 1213 class Google_Service_Gmail_Draft extends Google_Model 1214 { 1215 public $id; 1216 protected $messageType = 'Google_Service_Gmail_Message'; 1217 protected $messageDataType = ''; 1218 1219 public function setId($id) 1220 { 1221 $this->id = $id; 1222 } 1223 1224 public function getId() 1225 { 1226 return $this->id; 1227 } 1228 1229 public function setMessage(Google_Service_Gmail_Message $message) 1230 { 1231 $this->message = $message; 1232 } 1233 1234 public function getMessage() 1235 { 1236 return $this->message; 1237 } 1238 } 1239 1240 class Google_Service_Gmail_History extends Google_Collection 1241 { 1242 protected $collection_key = 'messages'; 1243 public $id; 1244 protected $messagesType = 'Google_Service_Gmail_Message'; 1245 protected $messagesDataType = 'array'; 1246 1247 public function setId($id) 1248 { 1249 $this->id = $id; 1250 } 1251 1252 public function getId() 1253 { 1254 return $this->id; 1255 } 1256 1257 public function setMessages($messages) 1258 { 1259 $this->messages = $messages; 1260 } 1261 1262 public function getMessages() 1263 { 1264 return $this->messages; 1265 } 1266 } 1267 1268 class Google_Service_Gmail_Label extends Google_Model 1269 { 1270 public $id; 1271 public $labelListVisibility; 1272 public $messageListVisibility; 1273 public $name; 1274 public $type; 1275 1276 public function setId($id) 1277 { 1278 $this->id = $id; 1279 } 1280 1281 public function getId() 1282 { 1283 return $this->id; 1284 } 1285 1286 public function setLabelListVisibility($labelListVisibility) 1287 { 1288 $this->labelListVisibility = $labelListVisibility; 1289 } 1290 1291 public function getLabelListVisibility() 1292 { 1293 return $this->labelListVisibility; 1294 } 1295 1296 public function setMessageListVisibility($messageListVisibility) 1297 { 1298 $this->messageListVisibility = $messageListVisibility; 1299 } 1300 1301 public function getMessageListVisibility() 1302 { 1303 return $this->messageListVisibility; 1304 } 1305 1306 public function setName($name) 1307 { 1308 $this->name = $name; 1309 } 1310 1311 public function getName() 1312 { 1313 return $this->name; 1314 } 1315 1316 public function setType($type) 1317 { 1318 $this->type = $type; 1319 } 1320 1321 public function getType() 1322 { 1323 return $this->type; 1324 } 1325 } 1326 1327 class Google_Service_Gmail_ListDraftsResponse extends Google_Collection 1328 { 1329 protected $collection_key = 'drafts'; 1330 protected $draftsType = 'Google_Service_Gmail_Draft'; 1331 protected $draftsDataType = 'array'; 1332 public $nextPageToken; 1333 public $resultSizeEstimate; 1334 1335 public function setDrafts($drafts) 1336 { 1337 $this->drafts = $drafts; 1338 } 1339 1340 public function getDrafts() 1341 { 1342 return $this->drafts; 1343 } 1344 1345 public function setNextPageToken($nextPageToken) 1346 { 1347 $this->nextPageToken = $nextPageToken; 1348 } 1349 1350 public function getNextPageToken() 1351 { 1352 return $this->nextPageToken; 1353 } 1354 1355 public function setResultSizeEstimate($resultSizeEstimate) 1356 { 1357 $this->resultSizeEstimate = $resultSizeEstimate; 1358 } 1359 1360 public function getResultSizeEstimate() 1361 { 1362 return $this->resultSizeEstimate; 1363 } 1364 } 1365 1366 class Google_Service_Gmail_ListHistoryResponse extends Google_Collection 1367 { 1368 protected $collection_key = 'history'; 1369 protected $historyType = 'Google_Service_Gmail_History'; 1370 protected $historyDataType = 'array'; 1371 public $historyId; 1372 public $nextPageToken; 1373 1374 public function setHistory($history) 1375 { 1376 $this->history = $history; 1377 } 1378 1379 public function getHistory() 1380 { 1381 return $this->history; 1382 } 1383 1384 public function setHistoryId($historyId) 1385 { 1386 $this->historyId = $historyId; 1387 } 1388 1389 public function getHistoryId() 1390 { 1391 return $this->historyId; 1392 } 1393 1394 public function setNextPageToken($nextPageToken) 1395 { 1396 $this->nextPageToken = $nextPageToken; 1397 } 1398 1399 public function getNextPageToken() 1400 { 1401 return $this->nextPageToken; 1402 } 1403 } 1404 1405 class Google_Service_Gmail_ListLabelsResponse extends Google_Collection 1406 { 1407 protected $collection_key = 'labels'; 1408 protected $labelsType = 'Google_Service_Gmail_Label'; 1409 protected $labelsDataType = 'array'; 1410 1411 public function setLabels($labels) 1412 { 1413 $this->labels = $labels; 1414 } 1415 1416 public function getLabels() 1417 { 1418 return $this->labels; 1419 } 1420 } 1421 1422 class Google_Service_Gmail_ListMessagesResponse extends Google_Collection 1423 { 1424 protected $collection_key = 'messages'; 1425 protected $messagesType = 'Google_Service_Gmail_Message'; 1426 protected $messagesDataType = 'array'; 1427 public $nextPageToken; 1428 public $resultSizeEstimate; 1429 1430 public function setMessages($messages) 1431 { 1432 $this->messages = $messages; 1433 } 1434 1435 public function getMessages() 1436 { 1437 return $this->messages; 1438 } 1439 1440 public function setNextPageToken($nextPageToken) 1441 { 1442 $this->nextPageToken = $nextPageToken; 1443 } 1444 1445 public function getNextPageToken() 1446 { 1447 return $this->nextPageToken; 1448 } 1449 1450 public function setResultSizeEstimate($resultSizeEstimate) 1451 { 1452 $this->resultSizeEstimate = $resultSizeEstimate; 1453 } 1454 1455 public function getResultSizeEstimate() 1456 { 1457 return $this->resultSizeEstimate; 1458 } 1459 } 1460 1461 class Google_Service_Gmail_ListThreadsResponse extends Google_Collection 1462 { 1463 protected $collection_key = 'threads'; 1464 public $nextPageToken; 1465 public $resultSizeEstimate; 1466 protected $threadsType = 'Google_Service_Gmail_Thread'; 1467 protected $threadsDataType = 'array'; 1468 1469 public function setNextPageToken($nextPageToken) 1470 { 1471 $this->nextPageToken = $nextPageToken; 1472 } 1473 1474 public function getNextPageToken() 1475 { 1476 return $this->nextPageToken; 1477 } 1478 1479 public function setResultSizeEstimate($resultSizeEstimate) 1480 { 1481 $this->resultSizeEstimate = $resultSizeEstimate; 1482 } 1483 1484 public function getResultSizeEstimate() 1485 { 1486 return $this->resultSizeEstimate; 1487 } 1488 1489 public function setThreads($threads) 1490 { 1491 $this->threads = $threads; 1492 } 1493 1494 public function getThreads() 1495 { 1496 return $this->threads; 1497 } 1498 } 1499 1500 class Google_Service_Gmail_Message extends Google_Collection 1501 { 1502 protected $collection_key = 'labelIds'; 1503 public $historyId; 1504 public $id; 1505 public $labelIds; 1506 protected $payloadType = 'Google_Service_Gmail_MessagePart'; 1507 protected $payloadDataType = ''; 1508 public $raw; 1509 public $sizeEstimate; 1510 public $snippet; 1511 public $threadId; 1512 1513 public function setHistoryId($historyId) 1514 { 1515 $this->historyId = $historyId; 1516 } 1517 1518 public function getHistoryId() 1519 { 1520 return $this->historyId; 1521 } 1522 1523 public function setId($id) 1524 { 1525 $this->id = $id; 1526 } 1527 1528 public function getId() 1529 { 1530 return $this->id; 1531 } 1532 1533 public function setLabelIds($labelIds) 1534 { 1535 $this->labelIds = $labelIds; 1536 } 1537 1538 public function getLabelIds() 1539 { 1540 return $this->labelIds; 1541 } 1542 1543 public function setPayload(Google_Service_Gmail_MessagePart $payload) 1544 { 1545 $this->payload = $payload; 1546 } 1547 1548 public function getPayload() 1549 { 1550 return $this->payload; 1551 } 1552 1553 public function setRaw($raw) 1554 { 1555 $this->raw = $raw; 1556 } 1557 1558 public function getRaw() 1559 { 1560 return $this->raw; 1561 } 1562 1563 public function setSizeEstimate($sizeEstimate) 1564 { 1565 $this->sizeEstimate = $sizeEstimate; 1566 } 1567 1568 public function getSizeEstimate() 1569 { 1570 return $this->sizeEstimate; 1571 } 1572 1573 public function setSnippet($snippet) 1574 { 1575 $this->snippet = $snippet; 1576 } 1577 1578 public function getSnippet() 1579 { 1580 return $this->snippet; 1581 } 1582 1583 public function setThreadId($threadId) 1584 { 1585 $this->threadId = $threadId; 1586 } 1587 1588 public function getThreadId() 1589 { 1590 return $this->threadId; 1591 } 1592 } 1593 1594 class Google_Service_Gmail_MessagePart extends Google_Collection 1595 { 1596 protected $collection_key = 'parts'; 1597 protected $bodyType = 'Google_Service_Gmail_MessagePartBody'; 1598 protected $bodyDataType = ''; 1599 public $filename; 1600 protected $headersType = 'Google_Service_Gmail_MessagePartHeader'; 1601 protected $headersDataType = 'array'; 1602 public $mimeType; 1603 public $partId; 1604 protected $partsType = 'Google_Service_Gmail_MessagePart'; 1605 protected $partsDataType = 'array'; 1606 1607 public function setBody(Google_Service_Gmail_MessagePartBody $body) 1608 { 1609 $this->body = $body; 1610 } 1611 1612 public function getBody() 1613 { 1614 return $this->body; 1615 } 1616 1617 public function setFilename($filename) 1618 { 1619 $this->filename = $filename; 1620 } 1621 1622 public function getFilename() 1623 { 1624 return $this->filename; 1625 } 1626 1627 public function setHeaders($headers) 1628 { 1629 $this->headers = $headers; 1630 } 1631 1632 public function getHeaders() 1633 { 1634 return $this->headers; 1635 } 1636 1637 public function setMimeType($mimeType) 1638 { 1639 $this->mimeType = $mimeType; 1640 } 1641 1642 public function getMimeType() 1643 { 1644 return $this->mimeType; 1645 } 1646 1647 public function setPartId($partId) 1648 { 1649 $this->partId = $partId; 1650 } 1651 1652 public function getPartId() 1653 { 1654 return $this->partId; 1655 } 1656 1657 public function setParts($parts) 1658 { 1659 $this->parts = $parts; 1660 } 1661 1662 public function getParts() 1663 { 1664 return $this->parts; 1665 } 1666 } 1667 1668 class Google_Service_Gmail_MessagePartBody extends Google_Model 1669 { 1670 public $attachmentId; 1671 public $data; 1672 public $size; 1673 1674 public function setAttachmentId($attachmentId) 1675 { 1676 $this->attachmentId = $attachmentId; 1677 } 1678 1679 public function getAttachmentId() 1680 { 1681 return $this->attachmentId; 1682 } 1683 1684 public function setData($data) 1685 { 1686 $this->data = $data; 1687 } 1688 1689 public function getData() 1690 { 1691 return $this->data; 1692 } 1693 1694 public function setSize($size) 1695 { 1696 $this->size = $size; 1697 } 1698 1699 public function getSize() 1700 { 1701 return $this->size; 1702 } 1703 } 1704 1705 class Google_Service_Gmail_MessagePartHeader extends Google_Model 1706 { 1707 public $name; 1708 public $value; 1709 1710 public function setName($name) 1711 { 1712 $this->name = $name; 1713 } 1714 1715 public function getName() 1716 { 1717 return $this->name; 1718 } 1719 1720 public function setValue($value) 1721 { 1722 $this->value = $value; 1723 } 1724 1725 public function getValue() 1726 { 1727 return $this->value; 1728 } 1729 } 1730 1731 class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection 1732 { 1733 protected $collection_key = 'removeLabelIds'; 1734 public $addLabelIds; 1735 public $removeLabelIds; 1736 1737 public function setAddLabelIds($addLabelIds) 1738 { 1739 $this->addLabelIds = $addLabelIds; 1740 } 1741 1742 public function getAddLabelIds() 1743 { 1744 return $this->addLabelIds; 1745 } 1746 1747 public function setRemoveLabelIds($removeLabelIds) 1748 { 1749 $this->removeLabelIds = $removeLabelIds; 1750 } 1751 1752 public function getRemoveLabelIds() 1753 { 1754 return $this->removeLabelIds; 1755 } 1756 } 1757 1758 class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection 1759 { 1760 protected $collection_key = 'removeLabelIds'; 1761 public $addLabelIds; 1762 public $removeLabelIds; 1763 1764 public function setAddLabelIds($addLabelIds) 1765 { 1766 $this->addLabelIds = $addLabelIds; 1767 } 1768 1769 public function getAddLabelIds() 1770 { 1771 return $this->addLabelIds; 1772 } 1773 1774 public function setRemoveLabelIds($removeLabelIds) 1775 { 1776 $this->removeLabelIds = $removeLabelIds; 1777 } 1778 1779 public function getRemoveLabelIds() 1780 { 1781 return $this->removeLabelIds; 1782 } 1783 } 1784 1785 class Google_Service_Gmail_Thread extends Google_Collection 1786 { 1787 protected $collection_key = 'messages'; 1788 public $historyId; 1789 public $id; 1790 protected $messagesType = 'Google_Service_Gmail_Message'; 1791 protected $messagesDataType = 'array'; 1792 public $snippet; 1793 1794 public function setHistoryId($historyId) 1795 { 1796 $this->historyId = $historyId; 1797 } 1798 1799 public function getHistoryId() 1800 { 1801 return $this->historyId; 1802 } 1803 1804 public function setId($id) 1805 { 1806 $this->id = $id; 1807 } 1808 1809 public function getId() 1810 { 1811 return $this->id; 1812 } 1813 1814 public function setMessages($messages) 1815 { 1816 $this->messages = $messages; 1817 } 1818 1819 public function getMessages() 1820 { 1821 return $this->messages; 1822 } 1823 1824 public function setSnippet($snippet) 1825 { 1826 $this->snippet = $snippet; 1827 } 1828 1829 public function getSnippet() 1830 { 1831 return $this->snippet; 1832 } 1833 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |