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 "customFieldDef" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $coordinateService = new Google_CoordinateService(...);
22   *   $customFieldDef = $coordinateService->customFieldDef;
23   *  </code>
24   */
25  class Google_CustomFieldDefServiceResource extends Google_ServiceResource {
26
27    /**
28     * Retrieves a list of custom field definitions for a team. (customFieldDef.list)
29     *
30     * @param string $teamId Team ID
31     * @param array $optParams Optional parameters.
32     * @return Google_CustomFieldDefListResponse
33     */
34    public function listCustomFieldDef($teamId, $optParams = array()) {
35      $params = array('teamId' => $teamId);
36      $params = array_merge($params, $optParams);
37      $data = $this->__call('list', array($params));
38      if ($this->useObjects()) {
39        return new Google_CustomFieldDefListResponse($data);
40      } else {
41        return $data;
42      }
43    }
44  }
45
46  /**
47   * The "jobs" collection of methods.
48   * Typical usage is:
49   *  <code>
50   *   $coordinateService = new Google_CoordinateService(...);
51   *   $jobs = $coordinateService->jobs;
52   *  </code>
53   */
54  class Google_JobsServiceResource extends Google_ServiceResource {
55
56    /**
57     * Retrieves a job, including all the changes made to the job. (jobs.get)
58     *
59     * @param string $teamId Team ID
60     * @param string $jobId Job number
61     * @param array $optParams Optional parameters.
62     * @return Google_Job
63     */
64    public function get($teamId, $jobId, $optParams = array()) {
65      $params = array('teamId' => $teamId, 'jobId' => $jobId);
66      $params = array_merge($params, $optParams);
67      $data = $this->__call('get', array($params));
68      if ($this->useObjects()) {
69        return new Google_Job($data);
70      } else {
71        return $data;
72      }
73    }
74    /**
75     * Inserts a new job. Only the state field of the job should be set. (jobs.insert)
76     *
77     * @param string $teamId Team ID
78     * @param string $address Job address as newline (Unix) separated string
79     * @param double $lat The latitude coordinate of this job's location.
80     * @param double $lng The longitude coordinate of this job's location.
81     * @param string $title Job title
82     * @param Google_Job $postBody
83     * @param array $optParams Optional parameters.
84     *
85     * @opt_param string assignee Assignee email address, or empty string to unassign.
86     * @opt_param string customField Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
87     * @opt_param string customerName Customer name
88     * @opt_param string customerPhoneNumber Customer phone number
89     * @opt_param string note Job note as newline (Unix) separated string
90     * @return Google_Job
91     */
92    public function insert($teamId, $address, $lat, $lng, $title, Google_Job $postBody, $optParams = array()) {
93      $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody);
94      $params = array_merge($params, $optParams);
95      $data = $this->__call('insert', array($params));
96      if ($this->useObjects()) {
97        return new Google_Job($data);
98      } else {
99        return $data;
100      }
101    }
102    /**
103     * Retrieves jobs created or modified since the given timestamp. (jobs.list)
104     *
105     * @param string $teamId Team ID
106     * @param array $optParams Optional parameters.
107     *
108     * @opt_param string maxResults Maximum number of results to return in one page.
109     * @opt_param string minModifiedTimestampMs Minimum time a job was modified in milliseconds since epoch.
110     * @opt_param string pageToken Continuation token
111     * @return Google_JobListResponse
112     */
113    public function listJobs($teamId, $optParams = array()) {
114      $params = array('teamId' => $teamId);
115      $params = array_merge($params, $optParams);
116      $data = $this->__call('list', array($params));
117      if ($this->useObjects()) {
118        return new Google_JobListResponse($data);
119      } else {
120        return $data;
121      }
122    }
123    /**
124     * Updates a job. Fields that are set in the job state will be updated. This method supports patch
125     * semantics. (jobs.patch)
126     *
127     * @param string $teamId Team ID
128     * @param string $jobId Job number
129     * @param Google_Job $postBody
130     * @param array $optParams Optional parameters.
131     *
132     * @opt_param string address Job address as newline (Unix) separated string
133     * @opt_param string assignee Assignee email address, or empty string to unassign.
134     * @opt_param string customField Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
135     * @opt_param string customerName Customer name
136     * @opt_param string customerPhoneNumber Customer phone number
137     * @opt_param double lat The latitude coordinate of this job's location.
138     * @opt_param double lng The longitude coordinate of this job's location.
139     * @opt_param string note Job note as newline (Unix) separated string
140     * @opt_param string progress Job progress
141     * @opt_param string title Job title
142     * @return Google_Job
143     */
144    public function patch($teamId, $jobId, Google_Job $postBody, $optParams = array()) {
145      $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
146      $params = array_merge($params, $optParams);
147      $data = $this->__call('patch', array($params));
148      if ($this->useObjects()) {
149        return new Google_Job($data);
150      } else {
151        return $data;
152      }
153    }
154    /**
155     * Updates a job. Fields that are set in the job state will be updated. (jobs.update)
156     *
157     * @param string $teamId Team ID
158     * @param string $jobId Job number
159     * @param Google_Job $postBody
160     * @param array $optParams Optional parameters.
161     *
162     * @opt_param string address Job address as newline (Unix) separated string
163     * @opt_param string assignee Assignee email address, or empty string to unassign.
164     * @opt_param string customField Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
165     * @opt_param string customerName Customer name
166     * @opt_param string customerPhoneNumber Customer phone number
167     * @opt_param double lat The latitude coordinate of this job's location.
168     * @opt_param double lng The longitude coordinate of this job's location.
169     * @opt_param string note Job note as newline (Unix) separated string
170     * @opt_param string progress Job progress
171     * @opt_param string title Job title
172     * @return Google_Job
173     */
174    public function update($teamId, $jobId, Google_Job $postBody, $optParams = array()) {
175      $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
176      $params = array_merge($params, $optParams);
177      $data = $this->__call('update', array($params));
178      if ($this->useObjects()) {
179        return new Google_Job($data);
180      } else {
181        return $data;
182      }
183    }
184  }
185
186  /**
187   * The "location" collection of methods.
188   * Typical usage is:
189   *  <code>
190   *   $coordinateService = new Google_CoordinateService(...);
191   *   $location = $coordinateService->location;
192   *  </code>
193   */
194  class Google_LocationServiceResource extends Google_ServiceResource {
195
196    /**
197     * Retrieves a list of locations for a worker. (location.list)
198     *
199     * @param string $teamId Team ID
200     * @param string $workerEmail Worker email address.
201     * @param string $startTimestampMs Start timestamp in milliseconds since the epoch.
202     * @param array $optParams Optional parameters.
203     *
204     * @opt_param string maxResults Maximum number of results to return in one page.
205     * @opt_param string pageToken Continuation token
206     * @return Google_LocationListResponse
207     */
208    public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) {
209      $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs);
210      $params = array_merge($params, $optParams);
211      $data = $this->__call('list', array($params));
212      if ($this->useObjects()) {
213        return new Google_LocationListResponse($data);
214      } else {
215        return $data;
216      }
217    }
218  }
219
220  /**
221   * The "schedule" collection of methods.
222   * Typical usage is:
223   *  <code>
224   *   $coordinateService = new Google_CoordinateService(...);
225   *   $schedule = $coordinateService->schedule;
226   *  </code>
227   */
228  class Google_ScheduleServiceResource extends Google_ServiceResource {
229
230    /**
231     * Retrieves the schedule for a job. (schedule.get)
232     *
233     * @param string $teamId Team ID
234     * @param string $jobId Job number
235     * @param array $optParams Optional parameters.
236     * @return Google_Schedule
237     */
238    public function get($teamId, $jobId, $optParams = array()) {
239      $params = array('teamId' => $teamId, 'jobId' => $jobId);
240      $params = array_merge($params, $optParams);
241      $data = $this->__call('get', array($params));
242      if ($this->useObjects()) {
243        return new Google_Schedule($data);
244      } else {
245        return $data;
246      }
247    }
248    /**
249     * Replaces the schedule of a job with the provided schedule. This method supports patch semantics.
250     * (schedule.patch)
251     *
252     * @param string $teamId Team ID
253     * @param string $jobId Job number
254     * @param Google_Schedule $postBody
255     * @param array $optParams Optional parameters.
256     *
257     * @opt_param bool allDay Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
258     * @opt_param string duration Job duration in milliseconds.
259     * @opt_param string endTime Scheduled end time in milliseconds since epoch.
260     * @opt_param string startTime Scheduled start time in milliseconds since epoch.
261     * @return Google_Schedule
262     */
263    public function patch($teamId, $jobId, Google_Schedule $postBody, $optParams = array()) {
264      $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
265      $params = array_merge($params, $optParams);
266      $data = $this->__call('patch', array($params));
267      if ($this->useObjects()) {
268        return new Google_Schedule($data);
269      } else {
270        return $data;
271      }
272    }
273    /**
274     * Replaces the schedule of a job with the provided schedule. (schedule.update)
275     *
276     * @param string $teamId Team ID
277     * @param string $jobId Job number
278     * @param Google_Schedule $postBody
279     * @param array $optParams Optional parameters.
280     *
281     * @opt_param bool allDay Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
282     * @opt_param string duration Job duration in milliseconds.
283     * @opt_param string endTime Scheduled end time in milliseconds since epoch.
284     * @opt_param string startTime Scheduled start time in milliseconds since epoch.
285     * @return Google_Schedule
286     */
287    public function update($teamId, $jobId, Google_Schedule $postBody, $optParams = array()) {
288      $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
289      $params = array_merge($params, $optParams);
290      $data = $this->__call('update', array($params));
291      if ($this->useObjects()) {
292        return new Google_Schedule($data);
293      } else {
294        return $data;
295      }
296    }
297  }
298
299  /**
300   * The "worker" collection of methods.
301   * Typical usage is:
302   *  <code>
303   *   $coordinateService = new Google_CoordinateService(...);
304   *   $worker = $coordinateService->worker;
305   *  </code>
306   */
307  class Google_WorkerServiceResource extends Google_ServiceResource {
308
309    /**
310     * Retrieves a list of workers in a team. (worker.list)
311     *
312     * @param string $teamId Team ID
313     * @param array $optParams Optional parameters.
314     * @return Google_WorkerListResponse
315     */
316    public function listWorker($teamId, $optParams = array()) {
317      $params = array('teamId' => $teamId);
318      $params = array_merge($params, $optParams);
319      $data = $this->__call('list', array($params));
320      if ($this->useObjects()) {
321        return new Google_WorkerListResponse($data);
322      } else {
323        return $data;
324      }
325    }
326  }
327
328/**
329 * Service definition for Google_Coordinate (v1).
330 *
331 * <p>
332 * Lets you view and manage jobs in a Coordinate team.
333 * </p>
334 *
335 * <p>
336 * For more information about this service, see the
337 * <a href="https://developers.google.com/coordinate/" target="_blank">API Documentation</a>
338 * </p>
339 *
340 * @author Google, Inc.
341 */
342class Google_CoordinateService extends Google_Service {
343  public $customFieldDef;
344  public $jobs;
345  public $location;
346  public $schedule;
347  public $worker;
348  /**
349   * Constructs the internal representation of the Coordinate service.
350   *
351   * @param Google_Client $client
352   */
353  public function __construct(Google_Client $client) {
354    $this->servicePath = 'coordinate/v1/teams/';
355    $this->version = 'v1';
356    $this->serviceName = 'coordinate';
357
358    $client->addService($this->serviceName, $this->version);
359    $this->customFieldDef = new Google_CustomFieldDefServiceResource($this, $this->serviceName, 'customFieldDef', json_decode('{"methods": {"list": {"id": "coordinate.customFieldDef.list", "path": "{teamId}/custom_fields", "httpMethod": "GET", "parameters": {"teamId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomFieldDefListResponse"}, "scopes": ["https://www.googleapis.com/auth/coordinate", "https://www.googleapis.com/auth/coordinate.readonly"]}}}', true));
360    $this->jobs = new Google_JobsServiceResource($this, $this->serviceName, 'jobs', json_decode('{"methods": {"get": {"id": "coordinate.jobs.get", "path": "{teamId}/jobs/{jobId}", "httpMethod": "GET", "parameters": {"jobId": {"type": "string", "required": true, "format": "uint64", "location": "path"}, "teamId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/coordinate", "https://www.googleapis.com/auth/coordinate.readonly"]}, "insert": {"id": "coordinate.jobs.insert", "path": "{teamId}/jobs", "httpMethod": "POST", "parameters": {"address": {"type": "string", "required": true, "location": "query"}, "assignee": {"type": "string", "location": "query"}, "customField": {"type": "string", "repeated": true, "location": "query"}, "customerName": {"type": "string", "location": "query"}, "customerPhoneNumber": {"type": "string", "location": "query"}, "lat": {"type": "number", "required": true, "format": "double", "location": "query"}, "lng": {"type": "number", "required": true, "format": "double", "location": "query"}, "note": {"type": "string", "location": "query"}, "teamId": {"type": "string", "required": true, "location": "path"}, "title": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Job"}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/coordinate"]}, "list": {"id": "coordinate.jobs.list", "path": "{teamId}/jobs", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "minModifiedTimestampMs": {"type": "string", "format": "uint64", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "teamId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "JobListResponse"}, "scopes": ["https://www.googleapis.com/auth/coordinate", "https://www.googleapis.com/auth/coordinate.readonly"]}, "patch": {"id": "coordinate.jobs.patch", "path": "{teamId}/jobs/{jobId}", "httpMethod": "PATCH", "parameters": {"address": {"type": "string", "location": "query"}, "assignee": {"type": "string", "location": "query"}, "customField": {"type": "string", "repeated": true, "location": "query"}, "customerName": {"type": "string", "location": "query"}, "customerPhoneNumber": {"type": "string", "location": "query"}, "jobId": {"type": "string", "required": true, "format": "uint64", "location": "path"}, "lat": {"type": "number", "format": "double", "location": "query"}, "lng": {"type": "number", "format": "double", "location": "query"}, "note": {"type": "string", "location": "query"}, "progress": {"type": "string", "enum": ["COMPLETED", "IN_PROGRESS", "NOT_ACCEPTED", "NOT_STARTED", "OBSOLETE"], "location": "query"}, "teamId": {"type": "string", "required": true, "location": "path"}, "title": {"type": "string", "location": "query"}}, "request": {"$ref": "Job"}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/coordinate"]}, "update": {"id": "coordinate.jobs.update", "path": "{teamId}/jobs/{jobId}", "httpMethod": "PUT", "parameters": {"address": {"type": "string", "location": "query"}, "assignee": {"type": "string", "location": "query"}, "customField": {"type": "string", "repeated": true, "location": "query"}, "customerName": {"type": "string", "location": "query"}, "customerPhoneNumber": {"type": "string", "location": "query"}, "jobId": {"type": "string", "required": true, "format": "uint64", "location": "path"}, "lat": {"type": "number", "format": "double", "location": "query"}, "lng": {"type": "number", "format": "double", "location": "query"}, "note": {"type": "string", "location": "query"}, "progress": {"type": "string", "enum": ["COMPLETED", "IN_PROGRESS", "NOT_ACCEPTED", "NOT_STARTED", "OBSOLETE"], "location": "query"}, "teamId": {"type": "string", "required": true, "location": "path"}, "title": {"type": "string", "location": "query"}}, "request": {"$ref": "Job"}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/coordinate"]}}}', true));
361    $this->location = new Google_LocationServiceResource($this, $this->serviceName, 'location', json_decode('{"methods": {"list": {"id": "coordinate.location.list", "path": "{teamId}/workers/{workerEmail}/locations", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "startTimestampMs": {"type": "string", "required": true, "format": "uint64", "location": "query"}, "teamId": {"type": "string", "required": true, "location": "path"}, "workerEmail": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "LocationListResponse"}, "scopes": ["https://www.googleapis.com/auth/coordinate", "https://www.googleapis.com/auth/coordinate.readonly"]}}}', true));
362    $this->schedule = new Google_ScheduleServiceResource($this, $this->serviceName, 'schedule', json_decode('{"methods": {"get": {"id": "coordinate.schedule.get", "path": "{teamId}/jobs/{jobId}/schedule", "httpMethod": "GET", "parameters": {"jobId": {"type": "string", "required": true, "format": "uint64", "location": "path"}, "teamId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Schedule"}, "scopes": ["https://www.googleapis.com/auth/coordinate", "https://www.googleapis.com/auth/coordinate.readonly"]}, "patch": {"id": "coordinate.schedule.patch", "path": "{teamId}/jobs/{jobId}/schedule", "httpMethod": "PATCH", "parameters": {"allDay": {"type": "boolean", "location": "query"}, "duration": {"type": "string", "format": "uint64", "location": "query"}, "endTime": {"type": "string", "format": "uint64", "location": "query"}, "jobId": {"type": "string", "required": true, "format": "uint64", "location": "path"}, "startTime": {"type": "string", "format": "uint64", "location": "query"}, "teamId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Schedule"}, "response": {"$ref": "Schedule"}, "scopes": ["https://www.googleapis.com/auth/coordinate"]}, "update": {"id": "coordinate.schedule.update", "path": "{teamId}/jobs/{jobId}/schedule", "httpMethod": "PUT", "parameters": {"allDay": {"type": "boolean", "location": "query"}, "duration": {"type": "string", "format": "uint64", "location": "query"}, "endTime": {"type": "string", "format": "uint64", "location": "query"}, "jobId": {"type": "string", "required": true, "format": "uint64", "location": "path"}, "startTime": {"type": "string", "format": "uint64", "location": "query"}, "teamId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Schedule"}, "response": {"$ref": "Schedule"}, "scopes": ["https://www.googleapis.com/auth/coordinate"]}}}', true));
363    $this->worker = new Google_WorkerServiceResource($this, $this->serviceName, 'worker', json_decode('{"methods": {"list": {"id": "coordinate.worker.list", "path": "{teamId}/workers", "httpMethod": "GET", "parameters": {"teamId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "WorkerListResponse"}, "scopes": ["https://www.googleapis.com/auth/coordinate", "https://www.googleapis.com/auth/coordinate.readonly"]}}}', true));
364
365  }
366}
367
368
369
370class Google_CustomField extends Google_Model {
371  public $customFieldId;
372  public $kind;
373  public $value;
374  public function setCustomFieldId( $customFieldId) {
375    $this->customFieldId = $customFieldId;
376  }
377  public function getCustomFieldId() {
378    return $this->customFieldId;
379  }
380  public function setKind( $kind) {
381    $this->kind = $kind;
382  }
383  public function getKind() {
384    return $this->kind;
385  }
386  public function setValue( $value) {
387    $this->value = $value;
388  }
389  public function getValue() {
390    return $this->value;
391  }
392}
393
394class Google_CustomFieldDef extends Google_Model {
395  public $enabled;
396  public $id;
397  public $kind;
398  public $name;
399  public $requiredForCheckout;
400  public $type;
401  public function setEnabled( $enabled) {
402    $this->enabled = $enabled;
403  }
404  public function getEnabled() {
405    return $this->enabled;
406  }
407  public function setId( $id) {
408    $this->id = $id;
409  }
410  public function getId() {
411    return $this->id;
412  }
413  public function setKind( $kind) {
414    $this->kind = $kind;
415  }
416  public function getKind() {
417    return $this->kind;
418  }
419  public function setName( $name) {
420    $this->name = $name;
421  }
422  public function getName() {
423    return $this->name;
424  }
425  public function setRequiredForCheckout( $requiredForCheckout) {
426    $this->requiredForCheckout = $requiredForCheckout;
427  }
428  public function getRequiredForCheckout() {
429    return $this->requiredForCheckout;
430  }
431  public function setType( $type) {
432    $this->type = $type;
433  }
434  public function getType() {
435    return $this->type;
436  }
437}
438
439class Google_CustomFieldDefListResponse extends Google_Model {
440  protected $__itemsType = 'Google_CustomFieldDef';
441  protected $__itemsDataType = 'array';
442  public $items;
443  public $kind;
444  public function setItems(/* array(Google_CustomFieldDef) */ $items) {
445    $this->assertIsArray($items, 'Google_CustomFieldDef', __METHOD__);
446    $this->items = $items;
447  }
448  public function getItems() {
449    return $this->items;
450  }
451  public function setKind( $kind) {
452    $this->kind = $kind;
453  }
454  public function getKind() {
455    return $this->kind;
456  }
457}
458
459class Google_CustomFields extends Google_Model {
460  protected $__customFieldType = 'Google_CustomField';
461  protected $__customFieldDataType = 'array';
462  public $customField;
463  public $kind;
464  public function setCustomField(/* array(Google_CustomField) */ $customField) {
465    $this->assertIsArray($customField, 'Google_CustomField', __METHOD__);
466    $this->customField = $customField;
467  }
468  public function getCustomField() {
469    return $this->customField;
470  }
471  public function setKind( $kind) {
472    $this->kind = $kind;
473  }
474  public function getKind() {
475    return $this->kind;
476  }
477}
478
479class Google_Job extends Google_Model {
480  public $id;
481  protected $__jobChangeType = 'Google_JobChange';
482  protected $__jobChangeDataType = 'array';
483  public $jobChange;
484  public $kind;
485  protected $__stateType = 'Google_JobState';
486  protected $__stateDataType = '';
487  public $state;
488  public function setId( $id) {
489    $this->id = $id;
490  }
491  public function getId() {
492    return $this->id;
493  }
494  public function setJobChange(/* array(Google_JobChange) */ $jobChange) {
495    $this->assertIsArray($jobChange, 'Google_JobChange', __METHOD__);
496    $this->jobChange = $jobChange;
497  }
498  public function getJobChange() {
499    return $this->jobChange;
500  }
501  public function setKind( $kind) {
502    $this->kind = $kind;
503  }
504  public function getKind() {
505    return $this->kind;
506  }
507  public function setState(Google_JobState $state) {
508    $this->state = $state;
509  }
510  public function getState() {
511    return $this->state;
512  }
513}
514
515class Google_JobChange extends Google_Model {
516  public $kind;
517  protected $__stateType = 'Google_JobState';
518  protected $__stateDataType = '';
519  public $state;
520  public $timestamp;
521  public function setKind( $kind) {
522    $this->kind = $kind;
523  }
524  public function getKind() {
525    return $this->kind;
526  }
527  public function setState(Google_JobState $state) {
528    $this->state = $state;
529  }
530  public function getState() {
531    return $this->state;
532  }
533  public function setTimestamp( $timestamp) {
534    $this->timestamp = $timestamp;
535  }
536  public function getTimestamp() {
537    return $this->timestamp;
538  }
539}
540
541class Google_JobListResponse extends Google_Model {
542  protected $__itemsType = 'Google_Job';
543  protected $__itemsDataType = 'array';
544  public $items;
545  public $kind;
546  public $nextPageToken;
547  public function setItems(/* array(Google_Job) */ $items) {
548    $this->assertIsArray($items, 'Google_Job', __METHOD__);
549    $this->items = $items;
550  }
551  public function getItems() {
552    return $this->items;
553  }
554  public function setKind( $kind) {
555    $this->kind = $kind;
556  }
557  public function getKind() {
558    return $this->kind;
559  }
560  public function setNextPageToken( $nextPageToken) {
561    $this->nextPageToken = $nextPageToken;
562  }
563  public function getNextPageToken() {
564    return $this->nextPageToken;
565  }
566}
567
568class Google_JobState extends Google_Model {
569  public $assignee;
570  protected $__customFieldsType = 'Google_CustomFields';
571  protected $__customFieldsDataType = '';
572  public $customFields;
573  public $customerName;
574  public $customerPhoneNumber;
575  public $kind;
576  protected $__locationType = 'Google_Location';
577  protected $__locationDataType = '';
578  public $location;
579  public $note;
580  public $progress;
581  public $title;
582  public function setAssignee( $assignee) {
583    $this->assignee = $assignee;
584  }
585  public function getAssignee() {
586    return $this->assignee;
587  }
588  public function setCustomFields(Google_CustomFields $customFields) {
589    $this->customFields = $customFields;
590  }
591  public function getCustomFields() {
592    return $this->customFields;
593  }
594  public function setCustomerName( $customerName) {
595    $this->customerName = $customerName;
596  }
597  public function getCustomerName() {
598    return $this->customerName;
599  }
600  public function setCustomerPhoneNumber( $customerPhoneNumber) {
601    $this->customerPhoneNumber = $customerPhoneNumber;
602  }
603  public function getCustomerPhoneNumber() {
604    return $this->customerPhoneNumber;
605  }
606  public function setKind( $kind) {
607    $this->kind = $kind;
608  }
609  public function getKind() {
610    return $this->kind;
611  }
612  public function setLocation(Google_Location $location) {
613    $this->location = $location;
614  }
615  public function getLocation() {
616    return $this->location;
617  }
618  public function setNote(/* array(Google_string) */ $note) {
619    $this->assertIsArray($note, 'Google_string', __METHOD__);
620    $this->note = $note;
621  }
622  public function getNote() {
623    return $this->note;
624  }
625  public function setProgress( $progress) {
626    $this->progress = $progress;
627  }
628  public function getProgress() {
629    return $this->progress;
630  }
631  public function setTitle( $title) {
632    $this->title = $title;
633  }
634  public function getTitle() {
635    return $this->title;
636  }
637}
638
639class Google_Location extends Google_Model {
640  public $addressLine;
641  public $kind;
642  public $lat;
643  public $lng;
644  public function setAddressLine(/* array(Google_string) */ $addressLine) {
645    $this->assertIsArray($addressLine, 'Google_string', __METHOD__);
646    $this->addressLine = $addressLine;
647  }
648  public function getAddressLine() {
649    return $this->addressLine;
650  }
651  public function setKind( $kind) {
652    $this->kind = $kind;
653  }
654  public function getKind() {
655    return $this->kind;
656  }
657  public function setLat( $lat) {
658    $this->lat = $lat;
659  }
660  public function getLat() {
661    return $this->lat;
662  }
663  public function setLng( $lng) {
664    $this->lng = $lng;
665  }
666  public function getLng() {
667    return $this->lng;
668  }
669}
670
671class Google_LocationListResponse extends Google_Model {
672  protected $__itemsType = 'Google_LocationRecord';
673  protected $__itemsDataType = 'array';
674  public $items;
675  public $kind;
676  public $nextPageToken;
677  protected $__tokenPaginationType = 'Google_TokenPagination';
678  protected $__tokenPaginationDataType = '';
679  public $tokenPagination;
680  public function setItems(/* array(Google_LocationRecord) */ $items) {
681    $this->assertIsArray($items, 'Google_LocationRecord', __METHOD__);
682    $this->items = $items;
683  }
684  public function getItems() {
685    return $this->items;
686  }
687  public function setKind( $kind) {
688    $this->kind = $kind;
689  }
690  public function getKind() {
691    return $this->kind;
692  }
693  public function setNextPageToken( $nextPageToken) {
694    $this->nextPageToken = $nextPageToken;
695  }
696  public function getNextPageToken() {
697    return $this->nextPageToken;
698  }
699  public function setTokenPagination(Google_TokenPagination $tokenPagination) {
700    $this->tokenPagination = $tokenPagination;
701  }
702  public function getTokenPagination() {
703    return $this->tokenPagination;
704  }
705}
706
707class Google_LocationRecord extends Google_Model {
708  public $collectionTime;
709  public $confidenceRadius;
710  public $kind;
711  public $latitude;
712  public $longitude;
713  public function setCollectionTime( $collectionTime) {
714    $this->collectionTime = $collectionTime;
715  }
716  public function getCollectionTime() {
717    return $this->collectionTime;
718  }
719  public function setConfidenceRadius( $confidenceRadius) {
720    $this->confidenceRadius = $confidenceRadius;
721  }
722  public function getConfidenceRadius() {
723    return $this->confidenceRadius;
724  }
725  public function setKind( $kind) {
726    $this->kind = $kind;
727  }
728  public function getKind() {
729    return $this->kind;
730  }
731  public function setLatitude( $latitude) {
732    $this->latitude = $latitude;
733  }
734  public function getLatitude() {
735    return $this->latitude;
736  }
737  public function setLongitude( $longitude) {
738    $this->longitude = $longitude;
739  }
740  public function getLongitude() {
741    return $this->longitude;
742  }
743}
744
745class Google_Schedule extends Google_Model {
746  public $allDay;
747  public $duration;
748  public $endTime;
749  public $kind;
750  public $startTime;
751  public function setAllDay( $allDay) {
752    $this->allDay = $allDay;
753  }
754  public function getAllDay() {
755    return $this->allDay;
756  }
757  public function setDuration( $duration) {
758    $this->duration = $duration;
759  }
760  public function getDuration() {
761    return $this->duration;
762  }
763  public function setEndTime( $endTime) {
764    $this->endTime = $endTime;
765  }
766  public function getEndTime() {
767    return $this->endTime;
768  }
769  public function setKind( $kind) {
770    $this->kind = $kind;
771  }
772  public function getKind() {
773    return $this->kind;
774  }
775  public function setStartTime( $startTime) {
776    $this->startTime = $startTime;
777  }
778  public function getStartTime() {
779    return $this->startTime;
780  }
781}
782
783class Google_TokenPagination extends Google_Model {
784  public $kind;
785  public $nextPageToken;
786  public $previousPageToken;
787  public function setKind( $kind) {
788    $this->kind = $kind;
789  }
790  public function getKind() {
791    return $this->kind;
792  }
793  public function setNextPageToken( $nextPageToken) {
794    $this->nextPageToken = $nextPageToken;
795  }
796  public function getNextPageToken() {
797    return $this->nextPageToken;
798  }
799  public function setPreviousPageToken( $previousPageToken) {
800    $this->previousPageToken = $previousPageToken;
801  }
802  public function getPreviousPageToken() {
803    return $this->previousPageToken;
804  }
805}
806
807class Google_Worker extends Google_Model {
808  public $id;
809  public $kind;
810  public function setId( $id) {
811    $this->id = $id;
812  }
813  public function getId() {
814    return $this->id;
815  }
816  public function setKind( $kind) {
817    $this->kind = $kind;
818  }
819  public function getKind() {
820    return $this->kind;
821  }
822}
823
824class Google_WorkerListResponse extends Google_Model {
825  protected $__itemsType = 'Google_Worker';
826  protected $__itemsDataType = 'array';
827  public $items;
828  public $kind;
829  public function setItems(/* array(Google_Worker) */ $items) {
830    $this->assertIsArray($items, 'Google_Worker', __METHOD__);
831    $this->items = $items;
832  }
833  public function getItems() {
834    return $this->items;
835  }
836  public function setKind( $kind) {
837    $this->kind = $kind;
838  }
839  public function getKind() {
840    return $this->kind;
841  }
842}
843