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 "contacts" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $mirrorService = new Google_MirrorService(...);
22   *   $contacts = $mirrorService->contacts;
23   *  </code>
24   */
25  class Google_ContactsServiceResource extends Google_ServiceResource {
26
27    /**
28     * Deletes a contact. (contacts.delete)
29     *
30     * @param string $id The ID of the contact.
31     * @param array $optParams Optional parameters.
32     */
33    public function delete($id, $optParams = array()) {
34      $params = array('id' => $id);
35      $params = array_merge($params, $optParams);
36      $data = $this->__call('delete', array($params));
37      return $data;
38    }
39    /**
40     * Gets a single contact by ID. (contacts.get)
41     *
42     * @param string $id The ID of the contact.
43     * @param array $optParams Optional parameters.
44     * @return Google_Contact
45     */
46    public function get($id, $optParams = array()) {
47      $params = array('id' => $id);
48      $params = array_merge($params, $optParams);
49      $data = $this->__call('get', array($params));
50      if ($this->useObjects()) {
51        return new Google_Contact($data);
52      } else {
53        return $data;
54      }
55    }
56    /**
57     * Inserts a new contact. (contacts.insert)
58     *
59     * @param Google_Contact $postBody
60     * @param array $optParams Optional parameters.
61     * @return Google_Contact
62     */
63    public function insert(Google_Contact $postBody, $optParams = array()) {
64      $params = array('postBody' => $postBody);
65      $params = array_merge($params, $optParams);
66      $data = $this->__call('insert', array($params));
67      if ($this->useObjects()) {
68        return new Google_Contact($data);
69      } else {
70        return $data;
71      }
72    }
73    /**
74     * Retrieves a list of contacts for the authenticated user. (contacts.list)
75     *
76     * @param array $optParams Optional parameters.
77     * @return Google_ContactsListResponse
78     */
79    public function listContacts($optParams = array()) {
80      $params = array();
81      $params = array_merge($params, $optParams);
82      $data = $this->__call('list', array($params));
83      if ($this->useObjects()) {
84        return new Google_ContactsListResponse($data);
85      } else {
86        return $data;
87      }
88    }
89    /**
90     * Updates a contact in place. This method supports patch semantics.
91     * (contacts.patch)
92     *
93     * @param string $id The ID of the contact.
94     * @param Google_Contact $postBody
95     * @param array $optParams Optional parameters.
96     * @return Google_Contact
97     */
98    public function patch($id, Google_Contact $postBody, $optParams = array()) {
99      $params = array('id' => $id, 'postBody' => $postBody);
100      $params = array_merge($params, $optParams);
101      $data = $this->__call('patch', array($params));
102      if ($this->useObjects()) {
103        return new Google_Contact($data);
104      } else {
105        return $data;
106      }
107    }
108    /**
109     * Updates a contact in place. (contacts.update)
110     *
111     * @param string $id The ID of the contact.
112     * @param Google_Contact $postBody
113     * @param array $optParams Optional parameters.
114     * @return Google_Contact
115     */
116    public function update($id, Google_Contact $postBody, $optParams = array()) {
117      $params = array('id' => $id, 'postBody' => $postBody);
118      $params = array_merge($params, $optParams);
119      $data = $this->__call('update', array($params));
120      if ($this->useObjects()) {
121        return new Google_Contact($data);
122      } else {
123        return $data;
124      }
125    }
126  }
127
128  /**
129   * The "locations" collection of methods.
130   * Typical usage is:
131   *  <code>
132   *   $mirrorService = new Google_MirrorService(...);
133   *   $locations = $mirrorService->locations;
134   *  </code>
135   */
136  class Google_LocationsServiceResource extends Google_ServiceResource {
137
138    /**
139     * Gets a single location by ID. (locations.get)
140     *
141     * @param string $id The ID of the location or latest for the last known location.
142     * @param array $optParams Optional parameters.
143     * @return Google_Location
144     */
145    public function get($id, $optParams = array()) {
146      $params = array('id' => $id);
147      $params = array_merge($params, $optParams);
148      $data = $this->__call('get', array($params));
149      if ($this->useObjects()) {
150        return new Google_Location($data);
151      } else {
152        return $data;
153      }
154    }
155    /**
156     * Retrieves a list of locations for the user. (locations.list)
157     *
158     * @param array $optParams Optional parameters.
159     * @return Google_LocationsListResponse
160     */
161    public function listLocations($optParams = array()) {
162      $params = array();
163      $params = array_merge($params, $optParams);
164      $data = $this->__call('list', array($params));
165      if ($this->useObjects()) {
166        return new Google_LocationsListResponse($data);
167      } else {
168        return $data;
169      }
170    }
171  }
172
173  /**
174   * The "subscriptions" collection of methods.
175   * Typical usage is:
176   *  <code>
177   *   $mirrorService = new Google_MirrorService(...);
178   *   $subscriptions = $mirrorService->subscriptions;
179   *  </code>
180   */
181  class Google_SubscriptionsServiceResource extends Google_ServiceResource {
182
183    /**
184     * Deletes a subscription. (subscriptions.delete)
185     *
186     * @param string $id The ID of the subscription.
187     * @param array $optParams Optional parameters.
188     */
189    public function delete($id, $optParams = array()) {
190      $params = array('id' => $id);
191      $params = array_merge($params, $optParams);
192      $data = $this->__call('delete', array($params));
193      return $data;
194    }
195    /**
196     * Creates a new subscription. (subscriptions.insert)
197     *
198     * @param Google_Subscription $postBody
199     * @param array $optParams Optional parameters.
200     * @return Google_Subscription
201     */
202    public function insert(Google_Subscription $postBody, $optParams = array()) {
203      $params = array('postBody' => $postBody);
204      $params = array_merge($params, $optParams);
205      $data = $this->__call('insert', array($params));
206      if ($this->useObjects()) {
207        return new Google_Subscription($data);
208      } else {
209        return $data;
210      }
211    }
212    /**
213     * Retrieves a list of subscriptions for the authenticated user and service.
214     * (subscriptions.list)
215     *
216     * @param array $optParams Optional parameters.
217     * @return Google_SubscriptionsListResponse
218     */
219    public function listSubscriptions($optParams = array()) {
220      $params = array();
221      $params = array_merge($params, $optParams);
222      $data = $this->__call('list', array($params));
223      if ($this->useObjects()) {
224        return new Google_SubscriptionsListResponse($data);
225      } else {
226        return $data;
227      }
228    }
229    /**
230     * Updates an existing subscription in place. (subscriptions.update)
231     *
232     * @param string $id The ID of the subscription.
233     * @param Google_Subscription $postBody
234     * @param array $optParams Optional parameters.
235     * @return Google_Subscription
236     */
237    public function update($id, Google_Subscription $postBody, $optParams = array()) {
238      $params = array('id' => $id, 'postBody' => $postBody);
239      $params = array_merge($params, $optParams);
240      $data = $this->__call('update', array($params));
241      if ($this->useObjects()) {
242        return new Google_Subscription($data);
243      } else {
244        return $data;
245      }
246    }
247  }
248
249  /**
250   * The "timeline" collection of methods.
251   * Typical usage is:
252   *  <code>
253   *   $mirrorService = new Google_MirrorService(...);
254   *   $timeline = $mirrorService->timeline;
255   *  </code>
256   */
257  class Google_TimelineServiceResource extends Google_ServiceResource {
258
259    /**
260     * Deletes a timeline item. (timeline.delete)
261     *
262     * @param string $id The ID of the timeline item.
263     * @param array $optParams Optional parameters.
264     */
265    public function delete($id, $optParams = array()) {
266      $params = array('id' => $id);
267      $params = array_merge($params, $optParams);
268      $data = $this->__call('delete', array($params));
269      return $data;
270    }
271    /**
272     * Gets a single timeline item by ID. (timeline.get)
273     *
274     * @param string $id The ID of the timeline item.
275     * @param array $optParams Optional parameters.
276     * @return Google_TimelineItem
277     */
278    public function get($id, $optParams = array()) {
279      $params = array('id' => $id);
280      $params = array_merge($params, $optParams);
281      $data = $this->__call('get', array($params));
282      if ($this->useObjects()) {
283        return new Google_TimelineItem($data);
284      } else {
285        return $data;
286      }
287    }
288    /**
289     * Inserts a new item into the timeline. (timeline.insert)
290     *
291     * @param Google_TimelineItem $postBody
292     * @param array $optParams Optional parameters.
293     * @return Google_TimelineItem
294     */
295    public function insert(Google_TimelineItem $postBody, $optParams = array()) {
296      $params = array('postBody' => $postBody);
297      $params = array_merge($params, $optParams);
298      $data = $this->__call('insert', array($params));
299      if ($this->useObjects()) {
300        return new Google_TimelineItem($data);
301      } else {
302        return $data;
303      }
304    }
305    /**
306     * Retrieves a list of timeline items for the authenticated user.
307     * (timeline.list)
308     *
309     * @param array $optParams Optional parameters.
310     *
311     * @opt_param string bundleId If provided, only items with the given bundleId will be returned.
312     * @opt_param bool includeDeleted If true, tombstone records for deleted items will be returned.
313     * @opt_param string maxResults The maximum number of items to include in the response, used for paging.
314     * @opt_param string orderBy Controls the order in which timeline items are returned.
315     * @opt_param string pageToken Token for the page of results to return.
316     * @opt_param bool pinnedOnly If true, only pinned items will be returned.
317     * @opt_param string sourceItemId If provided, only items with the given sourceItemId will be returned.
318     * @return Google_TimelineListResponse
319     */
320    public function listTimeline($optParams = array()) {
321      $params = array();
322      $params = array_merge($params, $optParams);
323      $data = $this->__call('list', array($params));
324      if ($this->useObjects()) {
325        return new Google_TimelineListResponse($data);
326      } else {
327        return $data;
328      }
329    }
330    /**
331     * Updates a timeline item in place. This method supports patch semantics.
332     * (timeline.patch)
333     *
334     * @param string $id The ID of the timeline item.
335     * @param Google_TimelineItem $postBody
336     * @param array $optParams Optional parameters.
337     * @return Google_TimelineItem
338     */
339    public function patch($id, Google_TimelineItem $postBody, $optParams = array()) {
340      $params = array('id' => $id, 'postBody' => $postBody);
341      $params = array_merge($params, $optParams);
342      $data = $this->__call('patch', array($params));
343      if ($this->useObjects()) {
344        return new Google_TimelineItem($data);
345      } else {
346        return $data;
347      }
348    }
349    /**
350     * Updates a timeline item in place. (timeline.update)
351     *
352     * @param string $id The ID of the timeline item.
353     * @param Google_TimelineItem $postBody
354     * @param array $optParams Optional parameters.
355     * @return Google_TimelineItem
356     */
357    public function update($id, Google_TimelineItem $postBody, $optParams = array()) {
358      $params = array('id' => $id, 'postBody' => $postBody);
359      $params = array_merge($params, $optParams);
360      $data = $this->__call('update', array($params));
361      if ($this->useObjects()) {
362        return new Google_TimelineItem($data);
363      } else {
364        return $data;
365      }
366    }
367  }
368
369  /**
370   * The "attachments" collection of methods.
371   * Typical usage is:
372   *  <code>
373   *   $mirrorService = new Google_MirrorService(...);
374   *   $attachments = $mirrorService->attachments;
375   *  </code>
376   */
377  class Google_TimelineAttachmentsServiceResource extends Google_ServiceResource {
378
379    /**
380     * Deletes an attachment from a timeline item. (attachments.delete)
381     *
382     * @param string $itemId The ID of the timeline item the attachment belongs to.
383     * @param string $attachmentId The ID of the attachment.
384     * @param array $optParams Optional parameters.
385     */
386    public function delete($itemId, $attachmentId, $optParams = array()) {
387      $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
388      $params = array_merge($params, $optParams);
389      $data = $this->__call('delete', array($params));
390      return $data;
391    }
392    /**
393     * Retrieves an attachment on a timeline item by item ID and attachment ID.
394     * (attachments.get)
395     *
396     * @param string $itemId The ID of the timeline item the attachment belongs to.
397     * @param string $attachmentId The ID of the attachment.
398     * @param array $optParams Optional parameters.
399     * @return Google_Attachment
400     */
401    public function get($itemId, $attachmentId, $optParams = array()) {
402      $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
403      $params = array_merge($params, $optParams);
404      $data = $this->__call('get', array($params));
405      if ($this->useObjects()) {
406        return new Google_Attachment($data);
407      } else {
408        return $data;
409      }
410    }
411    /**
412     * Adds a new attachment to a timeline item. (attachments.insert)
413     *
414     * @param string $itemId The ID of the timeline item the attachment belongs to.
415     * @param array $optParams Optional parameters.
416     * @return Google_Attachment
417     */
418    public function insert($itemId, $optParams = array()) {
419      $params = array('itemId' => $itemId);
420      $params = array_merge($params, $optParams);
421      $data = $this->__call('insert', array($params));
422      if ($this->useObjects()) {
423        return new Google_Attachment($data);
424      } else {
425        return $data;
426      }
427    }
428    /**
429     * Returns a list of attachments for a timeline item. (attachments.list)
430     *
431     * @param string $itemId The ID of the timeline item whose attachments should be listed.
432     * @param array $optParams Optional parameters.
433     * @return Google_AttachmentsListResponse
434     */
435    public function listTimelineAttachments($itemId, $optParams = array()) {
436      $params = array('itemId' => $itemId);
437      $params = array_merge($params, $optParams);
438      $data = $this->__call('list', array($params));
439      if ($this->useObjects()) {
440        return new Google_AttachmentsListResponse($data);
441      } else {
442        return $data;
443      }
444    }
445  }
446
447/**
448 * Service definition for Google_Mirror (v1).
449 *
450 * <p>
451 * API for interacting with Glass users via the timeline.
452 * </p>
453 *
454 * <p>
455 * For more information about this service, see the
456 * <a href="https://developers.google.com/glass" target="_blank">API Documentation</a>
457 * </p>
458 *
459 * @author Google, Inc.
460 */
461class Google_MirrorService extends Google_Service {
462  public $contacts;
463  public $locations;
464  public $subscriptions;
465  public $timeline;
466  public $timeline_attachments;
467  /**
468   * Constructs the internal representation of the Mirror service.
469   *
470   * @param Google_Client $client
471   */
472  public function __construct(Google_Client $client) {
473    $this->servicePath = 'mirror/v1/';
474    $this->version = 'v1';
475    $this->serviceName = 'mirror';
476
477    $client->addService($this->serviceName, $this->version);
478    $this->contacts = new Google_ContactsServiceResource($this, $this->serviceName, 'contacts', json_decode('{"methods": {"delete": {"id": "mirror.contacts.delete", "path": "contacts/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "mirror.contacts.get", "path": "contacts/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Contact"}}, "insert": {"id": "mirror.contacts.insert", "path": "contacts", "httpMethod": "POST", "request": {"$ref": "Contact"}, "response": {"$ref": "Contact"}}, "list": {"id": "mirror.contacts.list", "path": "contacts", "httpMethod": "GET", "response": {"$ref": "ContactsListResponse"}}, "patch": {"id": "mirror.contacts.patch", "path": "contacts/{id}", "httpMethod": "PATCH", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Contact"}, "response": {"$ref": "Contact"}}, "update": {"id": "mirror.contacts.update", "path": "contacts/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Contact"}, "response": {"$ref": "Contact"}}}}', true));
479    $this->locations = new Google_LocationsServiceResource($this, $this->serviceName, 'locations', json_decode('{"methods": {"get": {"id": "mirror.locations.get", "path": "locations/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Location"}}, "list": {"id": "mirror.locations.list", "path": "locations", "httpMethod": "GET", "response": {"$ref": "LocationsListResponse"}}}}', true));
480    $this->subscriptions = new Google_SubscriptionsServiceResource($this, $this->serviceName, 'subscriptions', json_decode('{"methods": {"delete": {"id": "mirror.subscriptions.delete", "path": "subscriptions/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}}, "insert": {"id": "mirror.subscriptions.insert", "path": "subscriptions", "httpMethod": "POST", "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}}, "list": {"id": "mirror.subscriptions.list", "path": "subscriptions", "httpMethod": "GET", "response": {"$ref": "SubscriptionsListResponse"}}, "update": {"id": "mirror.subscriptions.update", "path": "subscriptions/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}}}}', true));
481    $this->timeline = new Google_TimelineServiceResource($this, $this->serviceName, 'timeline', json_decode('{"methods": {"delete": {"id": "mirror.timeline.delete", "path": "timeline/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "mirror.timeline.get", "path": "timeline/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TimelineItem"}}, "insert": {"id": "mirror.timeline.insert", "path": "timeline", "httpMethod": "POST", "request": {"$ref": "TimelineItem"}, "response": {"$ref": "TimelineItem"}, "supportsMediaUpload": true, "mediaUpload": {"accept": ["audio/*", "image/*", "video/*"], "maxSize": "10MB", "protocols": {"simple": {"multipart": true, "path": "/upload/mirror/v1/timeline"}, "resumable": {"multipart": true, "path": "/resumable/upload/mirror/v1/timeline"}}}}, "list": {"id": "mirror.timeline.list", "path": "timeline", "httpMethod": "GET", "parameters": {"bundleId": {"type": "string", "location": "query"}, "includeDeleted": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "orderBy": {"type": "string", "enum": ["displayTime", "writeTime"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "pinnedOnly": {"type": "boolean", "location": "query"}, "sourceItemId": {"type": "string", "location": "query"}}, "response": {"$ref": "TimelineListResponse"}}, "patch": {"id": "mirror.timeline.patch", "path": "timeline/{id}", "httpMethod": "PATCH", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "TimelineItem"}, "response": {"$ref": "TimelineItem"}}, "update": {"id": "mirror.timeline.update", "path": "timeline/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "TimelineItem"}, "response": {"$ref": "TimelineItem"}, "supportsMediaUpload": true, "mediaUpload": {"accept": ["audio/*", "image/*", "video/*"], "maxSize": "10MB", "protocols": {"simple": {"multipart": true, "path": "/upload/mirror/v1/timeline/{id}"}, "resumable": {"multipart": true, "path": "/resumable/upload/mirror/v1/timeline/{id}"}}}}}}', true));
482    $this->timeline_attachments = new Google_TimelineAttachmentsServiceResource($this, $this->serviceName, 'attachments', json_decode('{"methods": {"delete": {"id": "mirror.timeline.attachments.delete", "path": "timeline/{itemId}/attachments/{attachmentId}", "httpMethod": "DELETE", "parameters": {"attachmentId": {"type": "string", "required": true, "location": "path"}, "itemId": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "mirror.timeline.attachments.get", "path": "timeline/{itemId}/attachments/{attachmentId}", "httpMethod": "GET", "parameters": {"attachmentId": {"type": "string", "required": true, "location": "path"}, "itemId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Attachment"}, "supportsMediaDownload": true}, "insert": {"id": "mirror.timeline.attachments.insert", "path": "timeline/{itemId}/attachments", "httpMethod": "POST", "parameters": {"itemId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Attachment"}, "supportsMediaUpload": true, "mediaUpload": {"accept": ["audio/*", "image/*", "video/*"], "maxSize": "10MB", "protocols": {"simple": {"multipart": true, "path": "/upload/mirror/v1/timeline/{itemId}/attachments"}, "resumable": {"multipart": true, "path": "/resumable/upload/mirror/v1/timeline/{itemId}/attachments"}}}}, "list": {"id": "mirror.timeline.attachments.list", "path": "timeline/{itemId}/attachments", "httpMethod": "GET", "parameters": {"itemId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AttachmentsListResponse"}}}}', true));
483
484  }
485}
486
487
488
489class Google_Attachment extends Google_Model {
490  public $contentType;
491  public $contentUrl;
492  public $id;
493  public $isProcessingContent;
494  public function setContentType( $contentType) {
495    $this->contentType = $contentType;
496  }
497  public function getContentType() {
498    return $this->contentType;
499  }
500  public function setContentUrl( $contentUrl) {
501    $this->contentUrl = $contentUrl;
502  }
503  public function getContentUrl() {
504    return $this->contentUrl;
505  }
506  public function setId( $id) {
507    $this->id = $id;
508  }
509  public function getId() {
510    return $this->id;
511  }
512  public function setIsProcessingContent( $isProcessingContent) {
513    $this->isProcessingContent = $isProcessingContent;
514  }
515  public function getIsProcessingContent() {
516    return $this->isProcessingContent;
517  }
518}
519
520class Google_AttachmentsListResponse extends Google_Model {
521  protected $__itemsType = 'Google_Attachment';
522  protected $__itemsDataType = 'array';
523  public $items;
524  public $kind;
525  public function setItems(/* array(Google_Attachment) */ $items) {
526    $this->assertIsArray($items, 'Google_Attachment', __METHOD__);
527    $this->items = $items;
528  }
529  public function getItems() {
530    return $this->items;
531  }
532  public function setKind( $kind) {
533    $this->kind = $kind;
534  }
535  public function getKind() {
536    return $this->kind;
537  }
538}
539
540class Google_Command extends Google_Model {
541  public $type;
542  public function setType( $type) {
543    $this->type = $type;
544  }
545  public function getType() {
546    return $this->type;
547  }
548}
549
550class Google_Contact extends Google_Model {
551  protected $__acceptCommandsType = 'Google_Command';
552  protected $__acceptCommandsDataType = 'array';
553  public $acceptCommands;
554  public $acceptTypes;
555  public $displayName;
556  public $id;
557  public $imageUrls;
558  public $kind;
559  public $phoneNumber;
560  public $priority;
561  public $source;
562  public $speakableName;
563  public $type;
564  public function setAcceptCommands(/* array(Google_Command) */ $acceptCommands) {
565    $this->assertIsArray($acceptCommands, 'Google_Command', __METHOD__);
566    $this->acceptCommands = $acceptCommands;
567  }
568  public function getAcceptCommands() {
569    return $this->acceptCommands;
570  }
571  public function setAcceptTypes(/* array(Google_string) */ $acceptTypes) {
572    $this->assertIsArray($acceptTypes, 'Google_string', __METHOD__);
573    $this->acceptTypes = $acceptTypes;
574  }
575  public function getAcceptTypes() {
576    return $this->acceptTypes;
577  }
578  public function setDisplayName( $displayName) {
579    $this->displayName = $displayName;
580  }
581  public function getDisplayName() {
582    return $this->displayName;
583  }
584  public function setId( $id) {
585    $this->id = $id;
586  }
587  public function getId() {
588    return $this->id;
589  }
590  public function setImageUrls(/* array(Google_string) */ $imageUrls) {
591    $this->assertIsArray($imageUrls, 'Google_string', __METHOD__);
592    $this->imageUrls = $imageUrls;
593  }
594  public function getImageUrls() {
595    return $this->imageUrls;
596  }
597  public function setKind( $kind) {
598    $this->kind = $kind;
599  }
600  public function getKind() {
601    return $this->kind;
602  }
603  public function setPhoneNumber( $phoneNumber) {
604    $this->phoneNumber = $phoneNumber;
605  }
606  public function getPhoneNumber() {
607    return $this->phoneNumber;
608  }
609  public function setPriority( $priority) {
610    $this->priority = $priority;
611  }
612  public function getPriority() {
613    return $this->priority;
614  }
615  public function setSource( $source) {
616    $this->source = $source;
617  }
618  public function getSource() {
619    return $this->source;
620  }
621  public function setSpeakableName( $speakableName) {
622    $this->speakableName = $speakableName;
623  }
624  public function getSpeakableName() {
625    return $this->speakableName;
626  }
627  public function setType( $type) {
628    $this->type = $type;
629  }
630  public function getType() {
631    return $this->type;
632  }
633}
634
635class Google_ContactsListResponse extends Google_Model {
636  protected $__itemsType = 'Google_Contact';
637  protected $__itemsDataType = 'array';
638  public $items;
639  public $kind;
640  public function setItems(/* array(Google_Contact) */ $items) {
641    $this->assertIsArray($items, 'Google_Contact', __METHOD__);
642    $this->items = $items;
643  }
644  public function getItems() {
645    return $this->items;
646  }
647  public function setKind( $kind) {
648    $this->kind = $kind;
649  }
650  public function getKind() {
651    return $this->kind;
652  }
653}
654
655class Google_Location extends Google_Model {
656  public $accuracy;
657  public $address;
658  public $displayName;
659  public $id;
660  public $kind;
661  public $latitude;
662  public $longitude;
663  public $timestamp;
664  public function setAccuracy( $accuracy) {
665    $this->accuracy = $accuracy;
666  }
667  public function getAccuracy() {
668    return $this->accuracy;
669  }
670  public function setAddress( $address) {
671    $this->address = $address;
672  }
673  public function getAddress() {
674    return $this->address;
675  }
676  public function setDisplayName( $displayName) {
677    $this->displayName = $displayName;
678  }
679  public function getDisplayName() {
680    return $this->displayName;
681  }
682  public function setId( $id) {
683    $this->id = $id;
684  }
685  public function getId() {
686    return $this->id;
687  }
688  public function setKind( $kind) {
689    $this->kind = $kind;
690  }
691  public function getKind() {
692    return $this->kind;
693  }
694  public function setLatitude( $latitude) {
695    $this->latitude = $latitude;
696  }
697  public function getLatitude() {
698    return $this->latitude;
699  }
700  public function setLongitude( $longitude) {
701    $this->longitude = $longitude;
702  }
703  public function getLongitude() {
704    return $this->longitude;
705  }
706  public function setTimestamp( $timestamp) {
707    $this->timestamp = $timestamp;
708  }
709  public function getTimestamp() {
710    return $this->timestamp;
711  }
712}
713
714class Google_LocationsListResponse extends Google_Model {
715  protected $__itemsType = 'Google_Location';
716  protected $__itemsDataType = 'array';
717  public $items;
718  public $kind;
719  public function setItems(/* array(Google_Location) */ $items) {
720    $this->assertIsArray($items, 'Google_Location', __METHOD__);
721    $this->items = $items;
722  }
723  public function getItems() {
724    return $this->items;
725  }
726  public function setKind( $kind) {
727    $this->kind = $kind;
728  }
729  public function getKind() {
730    return $this->kind;
731  }
732}
733
734class Google_MenuItem extends Google_Model {
735  public $action;
736  public $id;
737  public $payload;
738  public $removeWhenSelected;
739  protected $__valuesType = 'Google_MenuValue';
740  protected $__valuesDataType = 'array';
741  public $values;
742  public function setAction( $action) {
743    $this->action = $action;
744  }
745  public function getAction() {
746    return $this->action;
747  }
748  public function setId( $id) {
749    $this->id = $id;
750  }
751  public function getId() {
752    return $this->id;
753  }
754  public function setPayload( $payload) {
755    $this->payload = $payload;
756  }
757  public function getPayload() {
758    return $this->payload;
759  }
760  public function setRemoveWhenSelected( $removeWhenSelected) {
761    $this->removeWhenSelected = $removeWhenSelected;
762  }
763  public function getRemoveWhenSelected() {
764    return $this->removeWhenSelected;
765  }
766  public function setValues(/* array(Google_MenuValue) */ $values) {
767    $this->assertIsArray($values, 'Google_MenuValue', __METHOD__);
768    $this->values = $values;
769  }
770  public function getValues() {
771    return $this->values;
772  }
773}
774
775class Google_MenuValue extends Google_Model {
776  public $displayName;
777  public $iconUrl;
778  public $state;
779  public function setDisplayName( $displayName) {
780    $this->displayName = $displayName;
781  }
782  public function getDisplayName() {
783    return $this->displayName;
784  }
785  public function setIconUrl( $iconUrl) {
786    $this->iconUrl = $iconUrl;
787  }
788  public function getIconUrl() {
789    return $this->iconUrl;
790  }
791  public function setState( $state) {
792    $this->state = $state;
793  }
794  public function getState() {
795    return $this->state;
796  }
797}
798
799class Google_Notification extends Google_Model {
800  public $collection;
801  public $itemId;
802  public $operation;
803  protected $__userActionsType = 'Google_UserAction';
804  protected $__userActionsDataType = 'array';
805  public $userActions;
806  public $userToken;
807  public $verifyToken;
808  public function setCollection( $collection) {
809    $this->collection = $collection;
810  }
811  public function getCollection() {
812    return $this->collection;
813  }
814  public function setItemId( $itemId) {
815    $this->itemId = $itemId;
816  }
817  public function getItemId() {
818    return $this->itemId;
819  }
820  public function setOperation( $operation) {
821    $this->operation = $operation;
822  }
823  public function getOperation() {
824    return $this->operation;
825  }
826  public function setUserActions(/* array(Google_UserAction) */ $userActions) {
827    $this->assertIsArray($userActions, 'Google_UserAction', __METHOD__);
828    $this->userActions = $userActions;
829  }
830  public function getUserActions() {
831    return $this->userActions;
832  }
833  public function setUserToken( $userToken) {
834    $this->userToken = $userToken;
835  }
836  public function getUserToken() {
837    return $this->userToken;
838  }
839  public function setVerifyToken( $verifyToken) {
840    $this->verifyToken = $verifyToken;
841  }
842  public function getVerifyToken() {
843    return $this->verifyToken;
844  }
845}
846
847class Google_NotificationConfig extends Google_Model {
848  public $deliveryTime;
849  public $level;
850  public function setDeliveryTime( $deliveryTime) {
851    $this->deliveryTime = $deliveryTime;
852  }
853  public function getDeliveryTime() {
854    return $this->deliveryTime;
855  }
856  public function setLevel( $level) {
857    $this->level = $level;
858  }
859  public function getLevel() {
860    return $this->level;
861  }
862}
863
864class Google_Subscription extends Google_Model {
865  public $callbackUrl;
866  public $collection;
867  public $id;
868  public $kind;
869  protected $__notificationType = 'Google_Notification';
870  protected $__notificationDataType = '';
871  public $notification;
872  public $operation;
873  public $updated;
874  public $userToken;
875  public $verifyToken;
876  public function setCallbackUrl( $callbackUrl) {
877    $this->callbackUrl = $callbackUrl;
878  }
879  public function getCallbackUrl() {
880    return $this->callbackUrl;
881  }
882  public function setCollection( $collection) {
883    $this->collection = $collection;
884  }
885  public function getCollection() {
886    return $this->collection;
887  }
888  public function setId( $id) {
889    $this->id = $id;
890  }
891  public function getId() {
892    return $this->id;
893  }
894  public function setKind( $kind) {
895    $this->kind = $kind;
896  }
897  public function getKind() {
898    return $this->kind;
899  }
900  public function setNotification(Google_Notification $notification) {
901    $this->notification = $notification;
902  }
903  public function getNotification() {
904    return $this->notification;
905  }
906  public function setOperation(/* array(Google_string) */ $operation) {
907    $this->assertIsArray($operation, 'Google_string', __METHOD__);
908    $this->operation = $operation;
909  }
910  public function getOperation() {
911    return $this->operation;
912  }
913  public function setUpdated( $updated) {
914    $this->updated = $updated;
915  }
916  public function getUpdated() {
917    return $this->updated;
918  }
919  public function setUserToken( $userToken) {
920    $this->userToken = $userToken;
921  }
922  public function getUserToken() {
923    return $this->userToken;
924  }
925  public function setVerifyToken( $verifyToken) {
926    $this->verifyToken = $verifyToken;
927  }
928  public function getVerifyToken() {
929    return $this->verifyToken;
930  }
931}
932
933class Google_SubscriptionsListResponse extends Google_Model {
934  protected $__itemsType = 'Google_Subscription';
935  protected $__itemsDataType = 'array';
936  public $items;
937  public $kind;
938  public function setItems(/* array(Google_Subscription) */ $items) {
939    $this->assertIsArray($items, 'Google_Subscription', __METHOD__);
940    $this->items = $items;
941  }
942  public function getItems() {
943    return $this->items;
944  }
945  public function setKind( $kind) {
946    $this->kind = $kind;
947  }
948  public function getKind() {
949    return $this->kind;
950  }
951}
952
953class Google_TimelineItem extends Google_Model {
954  protected $__attachmentsType = 'Google_Attachment';
955  protected $__attachmentsDataType = 'array';
956  public $attachments;
957  public $bundleId;
958  public $canonicalUrl;
959  public $created;
960  protected $__creatorType = 'Google_Contact';
961  protected $__creatorDataType = '';
962  public $creator;
963  public $displayTime;
964  public $etag;
965  public $html;
966  public $htmlPages;
967  public $id;
968  public $inReplyTo;
969  public $isBundleCover;
970  public $isDeleted;
971  public $isPinned;
972  public $kind;
973  protected $__locationType = 'Google_Location';
974  protected $__locationDataType = '';
975  public $location;
976  protected $__menuItemsType = 'Google_MenuItem';
977  protected $__menuItemsDataType = 'array';
978  public $menuItems;
979  protected $__notificationType = 'Google_NotificationConfig';
980  protected $__notificationDataType = '';
981  public $notification;
982  public $pinScore;
983  protected $__recipientsType = 'Google_Contact';
984  protected $__recipientsDataType = 'array';
985  public $recipients;
986  public $selfLink;
987  public $sourceItemId;
988  public $speakableText;
989  public $speakableType;
990  public $text;
991  public $title;
992  public $updated;
993  public function setAttachments(/* array(Google_Attachment) */ $attachments) {
994    $this->assertIsArray($attachments, 'Google_Attachment', __METHOD__);
995    $this->attachments = $attachments;
996  }
997  public function getAttachments() {
998    return $this->attachments;
999  }
1000  public function setBundleId( $bundleId) {
1001    $this->bundleId = $bundleId;
1002  }
1003  public function getBundleId() {
1004    return $this->bundleId;
1005  }
1006  public function setCanonicalUrl( $canonicalUrl) {
1007    $this->canonicalUrl = $canonicalUrl;
1008  }
1009  public function getCanonicalUrl() {
1010    return $this->canonicalUrl;
1011  }
1012  public function setCreated( $created) {
1013    $this->created = $created;
1014  }
1015  public function getCreated() {
1016    return $this->created;
1017  }
1018  public function setCreator(Google_Contact $creator) {
1019    $this->creator = $creator;
1020  }
1021  public function getCreator() {
1022    return $this->creator;
1023  }
1024  public function setDisplayTime( $displayTime) {
1025    $this->displayTime = $displayTime;
1026  }
1027  public function getDisplayTime() {
1028    return $this->displayTime;
1029  }
1030  public function setEtag( $etag) {
1031    $this->etag = $etag;
1032  }
1033  public function getEtag() {
1034    return $this->etag;
1035  }
1036  public function setHtml( $html) {
1037    $this->html = $html;
1038  }
1039  public function getHtml() {
1040    return $this->html;
1041  }
1042  public function setHtmlPages(/* array(Google_string) */ $htmlPages) {
1043    $this->assertIsArray($htmlPages, 'Google_string', __METHOD__);
1044    $this->htmlPages = $htmlPages;
1045  }
1046  public function getHtmlPages() {
1047    return $this->htmlPages;
1048  }
1049  public function setId( $id) {
1050    $this->id = $id;
1051  }
1052  public function getId() {
1053    return $this->id;
1054  }
1055  public function setInReplyTo( $inReplyTo) {
1056    $this->inReplyTo = $inReplyTo;
1057  }
1058  public function getInReplyTo() {
1059    return $this->inReplyTo;
1060  }
1061  public function setIsBundleCover( $isBundleCover) {
1062    $this->isBundleCover = $isBundleCover;
1063  }
1064  public function getIsBundleCover() {
1065    return $this->isBundleCover;
1066  }
1067  public function setIsDeleted( $isDeleted) {
1068    $this->isDeleted = $isDeleted;
1069  }
1070  public function getIsDeleted() {
1071    return $this->isDeleted;
1072  }
1073  public function setIsPinned( $isPinned) {
1074    $this->isPinned = $isPinned;
1075  }
1076  public function getIsPinned() {
1077    return $this->isPinned;
1078  }
1079  public function setKind( $kind) {
1080    $this->kind = $kind;
1081  }
1082  public function getKind() {
1083    return $this->kind;
1084  }
1085  public function setLocation(Google_Location $location) {
1086    $this->location = $location;
1087  }
1088  public function getLocation() {
1089    return $this->location;
1090  }
1091  public function setMenuItems(/* array(Google_MenuItem) */ $menuItems) {
1092    $this->assertIsArray($menuItems, 'Google_MenuItem', __METHOD__);
1093    $this->menuItems = $menuItems;
1094  }
1095  public function getMenuItems() {
1096    return $this->menuItems;
1097  }
1098  public function setNotification(Google_NotificationConfig $notification) {
1099    $this->notification = $notification;
1100  }
1101  public function getNotification() {
1102    return $this->notification;
1103  }
1104  public function setPinScore( $pinScore) {
1105    $this->pinScore = $pinScore;
1106  }
1107  public function getPinScore() {
1108    return $this->pinScore;
1109  }
1110  public function setRecipients(/* array(Google_Contact) */ $recipients) {
1111    $this->assertIsArray($recipients, 'Google_Contact', __METHOD__);
1112    $this->recipients = $recipients;
1113  }
1114  public function getRecipients() {
1115    return $this->recipients;
1116  }
1117  public function setSelfLink( $selfLink) {
1118    $this->selfLink = $selfLink;
1119  }
1120  public function getSelfLink() {
1121    return $this->selfLink;
1122  }
1123  public function setSourceItemId( $sourceItemId) {
1124    $this->sourceItemId = $sourceItemId;
1125  }
1126  public function getSourceItemId() {
1127    return $this->sourceItemId;
1128  }
1129  public function setSpeakableText( $speakableText) {
1130    $this->speakableText = $speakableText;
1131  }
1132  public function getSpeakableText() {
1133    return $this->speakableText;
1134  }
1135  public function setSpeakableType( $speakableType) {
1136    $this->speakableType = $speakableType;
1137  }
1138  public function getSpeakableType() {
1139    return $this->speakableType;
1140  }
1141  public function setText( $text) {
1142    $this->text = $text;
1143  }
1144  public function getText() {
1145    return $this->text;
1146  }
1147  public function setTitle( $title) {
1148    $this->title = $title;
1149  }
1150  public function getTitle() {
1151    return $this->title;
1152  }
1153  public function setUpdated( $updated) {
1154    $this->updated = $updated;
1155  }
1156  public function getUpdated() {
1157    return $this->updated;
1158  }
1159}
1160
1161class Google_TimelineListResponse extends Google_Model {
1162  protected $__itemsType = 'Google_TimelineItem';
1163  protected $__itemsDataType = 'array';
1164  public $items;
1165  public $kind;
1166  public $nextPageToken;
1167  public function setItems(/* array(Google_TimelineItem) */ $items) {
1168    $this->assertIsArray($items, 'Google_TimelineItem', __METHOD__);
1169    $this->items = $items;
1170  }
1171  public function getItems() {
1172    return $this->items;
1173  }
1174  public function setKind( $kind) {
1175    $this->kind = $kind;
1176  }
1177  public function getKind() {
1178    return $this->kind;
1179  }
1180  public function setNextPageToken( $nextPageToken) {
1181    $this->nextPageToken = $nextPageToken;
1182  }
1183  public function getNextPageToken() {
1184    return $this->nextPageToken;
1185  }
1186}
1187
1188class Google_UserAction extends Google_Model {
1189  public $payload;
1190  public $type;
1191  public function setPayload( $payload) {
1192    $this->payload = $payload;
1193  }
1194  public function getPayload() {
1195    return $this->payload;
1196  }
1197  public function setType( $type) {
1198    $this->type = $type;
1199  }
1200  public function getType() {
1201    return $this->type;
1202  }
1203}
1204