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 "votes" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $moderatorService = new Google_ModeratorService(...);
22   *   $votes = $moderatorService->votes;
23   *  </code>
24   */
25  class Google_VotesServiceResource extends Google_ServiceResource {
26
27
28    /**
29     * Inserts a new vote by the authenticated user for the specified submission within the specified
30     * series. (votes.insert)
31     *
32     * @param string $seriesId The decimal ID of the Series.
33     * @param string $submissionId The decimal ID of the Submission within the Series.
34     * @param Google_Vote $postBody
35     * @param array $optParams Optional parameters.
36     *
37     * @opt_param string unauthToken User identifier for unauthenticated usage mode
38     * @return Google_Vote
39     */
40    public function insert($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
41      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
42      $params = array_merge($params, $optParams);
43      $data = $this->__call('insert', array($params));
44      if ($this->useObjects()) {
45        return new Google_Vote($data);
46      } else {
47        return $data;
48      }
49    }
50    /**
51     * Updates the votes by the authenticated user for the specified submission within the specified
52     * series. This method supports patch semantics. (votes.patch)
53     *
54     * @param string $seriesId The decimal ID of the Series.
55     * @param string $submissionId The decimal ID of the Submission within the Series.
56     * @param Google_Vote $postBody
57     * @param array $optParams Optional parameters.
58     *
59     * @opt_param string userId
60     * @opt_param string unauthToken User identifier for unauthenticated usage mode
61     * @return Google_Vote
62     */
63    public function patch($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
64      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
65      $params = array_merge($params, $optParams);
66      $data = $this->__call('patch', array($params));
67      if ($this->useObjects()) {
68        return new Google_Vote($data);
69      } else {
70        return $data;
71      }
72    }
73    /**
74     * Lists the votes by the authenticated user for the given series. (votes.list)
75     *
76     * @param string $seriesId The decimal ID of the Series.
77     * @param array $optParams Optional parameters.
78     *
79     * @opt_param string max-results Maximum number of results to return.
80     * @opt_param string start-index Index of the first result to be retrieved.
81     * @return Google_VoteList
82     */
83    public function listVotes($seriesId, $optParams = array()) {
84      $params = array('seriesId' => $seriesId);
85      $params = array_merge($params, $optParams);
86      $data = $this->__call('list', array($params));
87      if ($this->useObjects()) {
88        return new Google_VoteList($data);
89      } else {
90        return $data;
91      }
92    }
93    /**
94     * Updates the votes by the authenticated user for the specified submission within the specified
95     * series. (votes.update)
96     *
97     * @param string $seriesId The decimal ID of the Series.
98     * @param string $submissionId The decimal ID of the Submission within the Series.
99     * @param Google_Vote $postBody
100     * @param array $optParams Optional parameters.
101     *
102     * @opt_param string userId
103     * @opt_param string unauthToken User identifier for unauthenticated usage mode
104     * @return Google_Vote
105     */
106    public function update($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
107      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
108      $params = array_merge($params, $optParams);
109      $data = $this->__call('update', array($params));
110      if ($this->useObjects()) {
111        return new Google_Vote($data);
112      } else {
113        return $data;
114      }
115    }
116    /**
117     * Returns the votes by the authenticated user for the specified submission within the specified
118     * series. (votes.get)
119     *
120     * @param string $seriesId The decimal ID of the Series.
121     * @param string $submissionId The decimal ID of the Submission within the Series.
122     * @param array $optParams Optional parameters.
123     *
124     * @opt_param string userId
125     * @opt_param string unauthToken User identifier for unauthenticated usage mode
126     * @return Google_Vote
127     */
128    public function get($seriesId, $submissionId, $optParams = array()) {
129      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
130      $params = array_merge($params, $optParams);
131      $data = $this->__call('get', array($params));
132      if ($this->useObjects()) {
133        return new Google_Vote($data);
134      } else {
135        return $data;
136      }
137    }
138  }
139
140  /**
141   * The "responses" collection of methods.
142   * Typical usage is:
143   *  <code>
144   *   $moderatorService = new Google_ModeratorService(...);
145   *   $responses = $moderatorService->responses;
146   *  </code>
147   */
148  class Google_ResponsesServiceResource extends Google_ServiceResource {
149
150
151    /**
152     * Inserts a response for the specified submission in the specified topic within the specified
153     * series. (responses.insert)
154     *
155     * @param string $seriesId The decimal ID of the Series.
156     * @param string $topicId The decimal ID of the Topic within the Series.
157     * @param string $parentSubmissionId The decimal ID of the parent Submission within the Series.
158     * @param Google_Submission $postBody
159     * @param array $optParams Optional parameters.
160     *
161     * @opt_param string unauthToken User identifier for unauthenticated usage mode
162     * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
163     * @return Google_Submission
164     */
165    public function insert($seriesId, $topicId, $parentSubmissionId, Google_Submission $postBody, $optParams = array()) {
166      $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'parentSubmissionId' => $parentSubmissionId, 'postBody' => $postBody);
167      $params = array_merge($params, $optParams);
168      $data = $this->__call('insert', array($params));
169      if ($this->useObjects()) {
170        return new Google_Submission($data);
171      } else {
172        return $data;
173      }
174    }
175    /**
176     * Lists or searches the responses for the specified submission within the specified series and
177     * returns the search results. (responses.list)
178     *
179     * @param string $seriesId The decimal ID of the Series.
180     * @param string $submissionId The decimal ID of the Submission within the Series.
181     * @param array $optParams Optional parameters.
182     *
183     * @opt_param string max-results Maximum number of results to return.
184     * @opt_param string sort Sort order.
185     * @opt_param string author Restricts the results to submissions by a specific author.
186     * @opt_param string start-index Index of the first result to be retrieved.
187     * @opt_param string q Search query.
188     * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
189     * @return Google_SubmissionList
190     */
191    public function listResponses($seriesId, $submissionId, $optParams = array()) {
192      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
193      $params = array_merge($params, $optParams);
194      $data = $this->__call('list', array($params));
195      if ($this->useObjects()) {
196        return new Google_SubmissionList($data);
197      } else {
198        return $data;
199      }
200    }
201  }
202
203  /**
204   * The "tags" collection of methods.
205   * Typical usage is:
206   *  <code>
207   *   $moderatorService = new Google_ModeratorService(...);
208   *   $tags = $moderatorService->tags;
209   *  </code>
210   */
211  class Google_TagsServiceResource extends Google_ServiceResource {
212
213
214    /**
215     * Inserts a new tag for the specified submission within the specified series. (tags.insert)
216     *
217     * @param string $seriesId The decimal ID of the Series.
218     * @param string $submissionId The decimal ID of the Submission within the Series.
219     * @param Google_Tag $postBody
220     * @param array $optParams Optional parameters.
221     * @return Google_Tag
222     */
223    public function insert($seriesId, $submissionId, Google_Tag $postBody, $optParams = array()) {
224      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
225      $params = array_merge($params, $optParams);
226      $data = $this->__call('insert', array($params));
227      if ($this->useObjects()) {
228        return new Google_Tag($data);
229      } else {
230        return $data;
231      }
232    }
233    /**
234     * Lists all tags for the specified submission within the specified series. (tags.list)
235     *
236     * @param string $seriesId The decimal ID of the Series.
237     * @param string $submissionId The decimal ID of the Submission within the Series.
238     * @param array $optParams Optional parameters.
239     * @return Google_TagList
240     */
241    public function listTags($seriesId, $submissionId, $optParams = array()) {
242      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
243      $params = array_merge($params, $optParams);
244      $data = $this->__call('list', array($params));
245      if ($this->useObjects()) {
246        return new Google_TagList($data);
247      } else {
248        return $data;
249      }
250    }
251    /**
252     * Deletes the specified tag from the specified submission within the specified series.
253     * (tags.delete)
254     *
255     * @param string $seriesId The decimal ID of the Series.
256     * @param string $submissionId The decimal ID of the Submission within the Series.
257     * @param string $tagId
258     * @param array $optParams Optional parameters.
259     */
260    public function delete($seriesId, $submissionId, $tagId, $optParams = array()) {
261      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'tagId' => $tagId);
262      $params = array_merge($params, $optParams);
263      $data = $this->__call('delete', array($params));
264      return $data;
265    }
266  }
267
268  /**
269   * The "series" collection of methods.
270   * Typical usage is:
271   *  <code>
272   *   $moderatorService = new Google_ModeratorService(...);
273   *   $series = $moderatorService->series;
274   *  </code>
275   */
276  class Google_SeriesServiceResource extends Google_ServiceResource {
277
278
279    /**
280     * Inserts a new series. (series.insert)
281     *
282     * @param Google_Series $postBody
283     * @param array $optParams Optional parameters.
284     * @return Google_Series
285     */
286    public function insert(Google_Series $postBody, $optParams = array()) {
287      $params = array('postBody' => $postBody);
288      $params = array_merge($params, $optParams);
289      $data = $this->__call('insert', array($params));
290      if ($this->useObjects()) {
291        return new Google_Series($data);
292      } else {
293        return $data;
294      }
295    }
296    /**
297     * Updates the specified series. This method supports patch semantics. (series.patch)
298     *
299     * @param string $seriesId The decimal ID of the Series.
300     * @param Google_Series $postBody
301     * @param array $optParams Optional parameters.
302     * @return Google_Series
303     */
304    public function patch($seriesId, Google_Series $postBody, $optParams = array()) {
305      $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
306      $params = array_merge($params, $optParams);
307      $data = $this->__call('patch', array($params));
308      if ($this->useObjects()) {
309        return new Google_Series($data);
310      } else {
311        return $data;
312      }
313    }
314    /**
315     * Searches the series and returns the search results. (series.list)
316     *
317     * @param array $optParams Optional parameters.
318     *
319     * @opt_param string max-results Maximum number of results to return.
320     * @opt_param string q Search query.
321     * @opt_param string start-index Index of the first result to be retrieved.
322     * @return Google_SeriesList
323     */
324    public function listSeries($optParams = array()) {
325      $params = array();
326      $params = array_merge($params, $optParams);
327      $data = $this->__call('list', array($params));
328      if ($this->useObjects()) {
329        return new Google_SeriesList($data);
330      } else {
331        return $data;
332      }
333    }
334    /**
335     * Updates the specified series. (series.update)
336     *
337     * @param string $seriesId The decimal ID of the Series.
338     * @param Google_Series $postBody
339     * @param array $optParams Optional parameters.
340     * @return Google_Series
341     */
342    public function update($seriesId, Google_Series $postBody, $optParams = array()) {
343      $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
344      $params = array_merge($params, $optParams);
345      $data = $this->__call('update', array($params));
346      if ($this->useObjects()) {
347        return new Google_Series($data);
348      } else {
349        return $data;
350      }
351    }
352    /**
353     * Returns the specified series. (series.get)
354     *
355     * @param string $seriesId The decimal ID of the Series.
356     * @param array $optParams Optional parameters.
357     * @return Google_Series
358     */
359    public function get($seriesId, $optParams = array()) {
360      $params = array('seriesId' => $seriesId);
361      $params = array_merge($params, $optParams);
362      $data = $this->__call('get', array($params));
363      if ($this->useObjects()) {
364        return new Google_Series($data);
365      } else {
366        return $data;
367      }
368    }
369  }
370
371  /**
372   * The "submissions" collection of methods.
373   * Typical usage is:
374   *  <code>
375   *   $moderatorService = new Google_ModeratorService(...);
376   *   $submissions = $moderatorService->submissions;
377   *  </code>
378   */
379  class Google_SeriesSubmissionsServiceResource extends Google_ServiceResource {
380
381
382    /**
383     * Searches the submissions for the specified series and returns the search results.
384     * (submissions.list)
385     *
386     * @param string $seriesId The decimal ID of the Series.
387     * @param array $optParams Optional parameters.
388     *
389     * @opt_param string lang The language code for the language the client prefers results in.
390     * @opt_param string max-results Maximum number of results to return.
391     * @opt_param bool includeVotes Specifies whether to include the current user's vote
392     * @opt_param string start-index Index of the first result to be retrieved.
393     * @opt_param string author Restricts the results to submissions by a specific author.
394     * @opt_param string sort Sort order.
395     * @opt_param string q Search query.
396     * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
397     * @return Google_SubmissionList
398     */
399    public function listSeriesSubmissions($seriesId, $optParams = array()) {
400      $params = array('seriesId' => $seriesId);
401      $params = array_merge($params, $optParams);
402      $data = $this->__call('list', array($params));
403      if ($this->useObjects()) {
404        return new Google_SubmissionList($data);
405      } else {
406        return $data;
407      }
408    }
409  }
410  /**
411   * The "responses" collection of methods.
412   * Typical usage is:
413   *  <code>
414   *   $moderatorService = new Google_ModeratorService(...);
415   *   $responses = $moderatorService->responses;
416   *  </code>
417   */
418  class Google_SeriesResponsesServiceResource extends Google_ServiceResource {
419
420
421    /**
422     * Searches the responses for the specified series and returns the search results. (responses.list)
423     *
424     * @param string $seriesId The decimal ID of the Series.
425     * @param array $optParams Optional parameters.
426     *
427     * @opt_param string max-results Maximum number of results to return.
428     * @opt_param string sort Sort order.
429     * @opt_param string author Restricts the results to submissions by a specific author.
430     * @opt_param string start-index Index of the first result to be retrieved.
431     * @opt_param string q Search query.
432     * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
433     * @return Google_SeriesList
434     */
435    public function listSeriesResponses($seriesId, $optParams = array()) {
436      $params = array('seriesId' => $seriesId);
437      $params = array_merge($params, $optParams);
438      $data = $this->__call('list', array($params));
439      if ($this->useObjects()) {
440        return new Google_SeriesList($data);
441      } else {
442        return $data;
443      }
444    }
445  }
446
447  /**
448   * The "topics" collection of methods.
449   * Typical usage is:
450   *  <code>
451   *   $moderatorService = new Google_ModeratorService(...);
452   *   $topics = $moderatorService->topics;
453   *  </code>
454   */
455  class Google_TopicsServiceResource extends Google_ServiceResource {
456
457
458    /**
459     * Inserts a new topic into the specified series. (topics.insert)
460     *
461     * @param string $seriesId The decimal ID of the Series.
462     * @param Google_Topic $postBody
463     * @param array $optParams Optional parameters.
464     * @return Google_Topic
465     */
466    public function insert($seriesId, Google_Topic $postBody, $optParams = array()) {
467      $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
468      $params = array_merge($params, $optParams);
469      $data = $this->__call('insert', array($params));
470      if ($this->useObjects()) {
471        return new Google_Topic($data);
472      } else {
473        return $data;
474      }
475    }
476    /**
477     * Searches the topics within the specified series and returns the search results. (topics.list)
478     *
479     * @param string $seriesId The decimal ID of the Series.
480     * @param array $optParams Optional parameters.
481     *
482     * @opt_param string max-results Maximum number of results to return.
483     * @opt_param string q Search query.
484     * @opt_param string start-index Index of the first result to be retrieved.
485     * @opt_param string mode
486     * @return Google_TopicList
487     */
488    public function listTopics($seriesId, $optParams = array()) {
489      $params = array('seriesId' => $seriesId);
490      $params = array_merge($params, $optParams);
491      $data = $this->__call('list', array($params));
492      if ($this->useObjects()) {
493        return new Google_TopicList($data);
494      } else {
495        return $data;
496      }
497    }
498    /**
499     * Updates the specified topic within the specified series. (topics.update)
500     *
501     * @param string $seriesId The decimal ID of the Series.
502     * @param string $topicId The decimal ID of the Topic within the Series.
503     * @param Google_Topic $postBody
504     * @param array $optParams Optional parameters.
505     * @return Google_Topic
506     */
507    public function update($seriesId, $topicId, Google_Topic $postBody, $optParams = array()) {
508      $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
509      $params = array_merge($params, $optParams);
510      $data = $this->__call('update', array($params));
511      if ($this->useObjects()) {
512        return new Google_Topic($data);
513      } else {
514        return $data;
515      }
516    }
517    /**
518     * Returns the specified topic from the specified series. (topics.get)
519     *
520     * @param string $seriesId The decimal ID of the Series.
521     * @param string $topicId The decimal ID of the Topic within the Series.
522     * @param array $optParams Optional parameters.
523     * @return Google_Topic
524     */
525    public function get($seriesId, $topicId, $optParams = array()) {
526      $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
527      $params = array_merge($params, $optParams);
528      $data = $this->__call('get', array($params));
529      if ($this->useObjects()) {
530        return new Google_Topic($data);
531      } else {
532        return $data;
533      }
534    }
535  }
536
537  /**
538   * The "submissions" collection of methods.
539   * Typical usage is:
540   *  <code>
541   *   $moderatorService = new Google_ModeratorService(...);
542   *   $submissions = $moderatorService->submissions;
543   *  </code>
544   */
545  class Google_TopicsSubmissionsServiceResource extends Google_ServiceResource {
546
547
548    /**
549     * Searches the submissions for the specified topic within the specified series and returns the
550     * search results. (submissions.list)
551     *
552     * @param string $seriesId The decimal ID of the Series.
553     * @param string $topicId The decimal ID of the Topic within the Series.
554     * @param array $optParams Optional parameters.
555     *
556     * @opt_param string max-results Maximum number of results to return.
557     * @opt_param bool includeVotes Specifies whether to include the current user's vote
558     * @opt_param string start-index Index of the first result to be retrieved.
559     * @opt_param string author Restricts the results to submissions by a specific author.
560     * @opt_param string sort Sort order.
561     * @opt_param string q Search query.
562     * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
563     * @return Google_SubmissionList
564     */
565    public function listTopicsSubmissions($seriesId, $topicId, $optParams = array()) {
566      $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
567      $params = array_merge($params, $optParams);
568      $data = $this->__call('list', array($params));
569      if ($this->useObjects()) {
570        return new Google_SubmissionList($data);
571      } else {
572        return $data;
573      }
574    }
575  }
576
577  /**
578   * The "global" collection of methods.
579   * Typical usage is:
580   *  <code>
581   *   $moderatorService = new Google_ModeratorService(...);
582   *   $global = $moderatorService->global;
583   *  </code>
584   */
585  class Google_ModeratorGlobalServiceResource extends Google_ServiceResource {
586
587
588  }
589
590  /**
591   * The "series" collection of methods.
592   * Typical usage is:
593   *  <code>
594   *   $moderatorService = new Google_ModeratorService(...);
595   *   $series = $moderatorService->series;
596   *  </code>
597   */
598  class Google_ModeratorGlobalSeriesServiceResource extends Google_ServiceResource {
599
600
601    /**
602     * Searches the public series and returns the search results. (series.list)
603     *
604     * @param array $optParams Optional parameters.
605     *
606     * @opt_param string max-results Maximum number of results to return.
607     * @opt_param string q Search query.
608     * @opt_param string start-index Index of the first result to be retrieved.
609     * @return Google_SeriesList
610     */
611    public function listModeratorGlobalSeries($optParams = array()) {
612      $params = array();
613      $params = array_merge($params, $optParams);
614      $data = $this->__call('list', array($params));
615      if ($this->useObjects()) {
616        return new Google_SeriesList($data);
617      } else {
618        return $data;
619      }
620    }
621  }
622
623  /**
624   * The "profiles" collection of methods.
625   * Typical usage is:
626   *  <code>
627   *   $moderatorService = new Google_ModeratorService(...);
628   *   $profiles = $moderatorService->profiles;
629   *  </code>
630   */
631  class Google_ProfilesServiceResource extends Google_ServiceResource {
632
633
634    /**
635     * Updates the profile information for the authenticated user. This method supports patch semantics.
636     * (profiles.patch)
637     *
638     * @param Google_Profile $postBody
639     * @param array $optParams Optional parameters.
640     * @return Google_Profile
641     */
642    public function patch(Google_Profile $postBody, $optParams = array()) {
643      $params = array('postBody' => $postBody);
644      $params = array_merge($params, $optParams);
645      $data = $this->__call('patch', array($params));
646      if ($this->useObjects()) {
647        return new Google_Profile($data);
648      } else {
649        return $data;
650      }
651    }
652    /**
653     * Updates the profile information for the authenticated user. (profiles.update)
654     *
655     * @param Google_Profile $postBody
656     * @param array $optParams Optional parameters.
657     * @return Google_Profile
658     */
659    public function update(Google_Profile $postBody, $optParams = array()) {
660      $params = array('postBody' => $postBody);
661      $params = array_merge($params, $optParams);
662      $data = $this->__call('update', array($params));
663      if ($this->useObjects()) {
664        return new Google_Profile($data);
665      } else {
666        return $data;
667      }
668    }
669    /**
670     * Returns the profile information for the authenticated user. (profiles.get)
671     *
672     * @param array $optParams Optional parameters.
673     * @return Google_Profile
674     */
675    public function get($optParams = array()) {
676      $params = array();
677      $params = array_merge($params, $optParams);
678      $data = $this->__call('get', array($params));
679      if ($this->useObjects()) {
680        return new Google_Profile($data);
681      } else {
682        return $data;
683      }
684    }
685  }
686
687  /**
688   * The "featured" collection of methods.
689   * Typical usage is:
690   *  <code>
691   *   $moderatorService = new Google_ModeratorService(...);
692   *   $featured = $moderatorService->featured;
693   *  </code>
694   */
695  class Google_FeaturedServiceResource extends Google_ServiceResource {
696
697
698  }
699
700  /**
701   * The "series" collection of methods.
702   * Typical usage is:
703   *  <code>
704   *   $moderatorService = new Google_ModeratorService(...);
705   *   $series = $moderatorService->series;
706   *  </code>
707   */
708  class Google_FeaturedSeriesServiceResource extends Google_ServiceResource {
709
710
711    /**
712     * Lists the featured series. (series.list)
713     *
714     * @param array $optParams Optional parameters.
715     * @return Google_SeriesList
716     */
717    public function listFeaturedSeries($optParams = array()) {
718      $params = array();
719      $params = array_merge($params, $optParams);
720      $data = $this->__call('list', array($params));
721      if ($this->useObjects()) {
722        return new Google_SeriesList($data);
723      } else {
724        return $data;
725      }
726    }
727  }
728
729  /**
730   * The "myrecent" collection of methods.
731   * Typical usage is:
732   *  <code>
733   *   $moderatorService = new Google_ModeratorService(...);
734   *   $myrecent = $moderatorService->myrecent;
735   *  </code>
736   */
737  class Google_MyrecentServiceResource extends Google_ServiceResource {
738
739
740  }
741
742  /**
743   * The "series" collection of methods.
744   * Typical usage is:
745   *  <code>
746   *   $moderatorService = new Google_ModeratorService(...);
747   *   $series = $moderatorService->series;
748   *  </code>
749   */
750  class Google_MyrecentSeriesServiceResource extends Google_ServiceResource {
751
752
753    /**
754     * Lists the series the authenticated user has visited. (series.list)
755     *
756     * @param array $optParams Optional parameters.
757     * @return Google_SeriesList
758     */
759    public function listMyrecentSeries($optParams = array()) {
760      $params = array();
761      $params = array_merge($params, $optParams);
762      $data = $this->__call('list', array($params));
763      if ($this->useObjects()) {
764        return new Google_SeriesList($data);
765      } else {
766        return $data;
767      }
768    }
769  }
770
771  /**
772   * The "my" collection of methods.
773   * Typical usage is:
774   *  <code>
775   *   $moderatorService = new Google_ModeratorService(...);
776   *   $my = $moderatorService->my;
777   *  </code>
778   */
779  class Google_MyServiceResource extends Google_ServiceResource {
780
781
782  }
783
784  /**
785   * The "series" collection of methods.
786   * Typical usage is:
787   *  <code>
788   *   $moderatorService = new Google_ModeratorService(...);
789   *   $series = $moderatorService->series;
790   *  </code>
791   */
792  class Google_MySeriesServiceResource extends Google_ServiceResource {
793
794
795    /**
796     * Lists all series created by the authenticated user. (series.list)
797     *
798     * @param array $optParams Optional parameters.
799     * @return Google_SeriesList
800     */
801    public function listMySeries($optParams = array()) {
802      $params = array();
803      $params = array_merge($params, $optParams);
804      $data = $this->__call('list', array($params));
805      if ($this->useObjects()) {
806        return new Google_SeriesList($data);
807      } else {
808        return $data;
809      }
810    }
811  }
812
813  /**
814   * The "submissions" collection of methods.
815   * Typical usage is:
816   *  <code>
817   *   $moderatorService = new Google_ModeratorService(...);
818   *   $submissions = $moderatorService->submissions;
819   *  </code>
820   */
821  class Google_SubmissionsServiceResource extends Google_ServiceResource {
822
823
824    /**
825     * Inserts a new submission in the specified topic within the specified series. (submissions.insert)
826     *
827     * @param string $seriesId The decimal ID of the Series.
828     * @param string $topicId The decimal ID of the Topic within the Series.
829     * @param Google_Submission $postBody
830     * @param array $optParams Optional parameters.
831     *
832     * @opt_param string unauthToken User identifier for unauthenticated usage mode
833     * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
834     * @return Google_Submission
835     */
836    public function insert($seriesId, $topicId, Google_Submission $postBody, $optParams = array()) {
837      $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
838      $params = array_merge($params, $optParams);
839      $data = $this->__call('insert', array($params));
840      if ($this->useObjects()) {
841        return new Google_Submission($data);
842      } else {
843        return $data;
844      }
845    }
846    /**
847     * Returns the specified submission within the specified series. (submissions.get)
848     *
849     * @param string $seriesId The decimal ID of the Series.
850     * @param string $submissionId The decimal ID of the Submission within the Series.
851     * @param array $optParams Optional parameters.
852     *
853     * @opt_param string lang The language code for the language the client prefers results in.
854     * @opt_param bool includeVotes Specifies whether to include the current user's vote
855     * @return Google_Submission
856     */
857    public function get($seriesId, $submissionId, $optParams = array()) {
858      $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
859      $params = array_merge($params, $optParams);
860      $data = $this->__call('get', array($params));
861      if ($this->useObjects()) {
862        return new Google_Submission($data);
863      } else {
864        return $data;
865      }
866    }
867  }
868
869/**
870 * Service definition for Google_Moderator (v1).
871 *
872 * <p>
873 * Moderator API
874 * </p>
875 *
876 * <p>
877 * For more information about this service, see the
878 * <a href="http://code.google.com/apis/moderator/v1/using_rest.html" target="_blank">API Documentation</a>
879 * </p>
880 *
881 * @author Google, Inc.
882 */
883class Google_ModeratorService extends Google_Service {
884  public $votes;
885  public $responses;
886  public $tags;
887  public $series;
888  public $series_submissions;
889  public $series_responses;
890  public $topics;
891  public $topics_submissions;
892  public $global_series;
893  public $profiles;
894  public $featured_series;
895  public $myrecent_series;
896  public $my_series;
897  public $submissions;
898  /**
899   * Constructs the internal representation of the Moderator service.
900   *
901   * @param Google_Client $client
902   */
903  public function __construct(Google_Client $client) {
904    $this->servicePath = 'moderator/v1/';
905    $this->version = 'v1';
906    $this->serviceName = 'moderator';
907
908    $client->addService($this->serviceName, $this->version);
909    $this->votes = new Google_VotesServiceResource($this, $this->serviceName, 'votes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.insert"}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "PATCH", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.patch"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "moderator.votes.list", "httpMethod": "GET", "path": "series/{seriesId}/votes/@me", "response": {"$ref": "VoteList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "PUT", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.votes.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}}}', true));
910    $this->responses = new Google_ResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "parentSubmissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Submission"}, "response": {"$ref": "Submission"}, "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions/{parentSubmissionId}/responses", "id": "moderator.responses.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/responses", "response": {"$ref": "SubmissionList"}}}}', true));
911    $this->tags = new Google_TagsServiceResource($this, $this->serviceName, 'tags', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Tag"}, "response": {"$ref": "Tag"}, "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/tags", "id": "moderator.tags.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.tags.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/tags", "response": {"$ref": "TagList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/{seriesId}/submissions/{submissionId}/tags/{tagId}", "id": "moderator.tags.delete", "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "tagId": {"required": true, "type": "string", "location": "path"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "httpMethod": "DELETE"}}}', true));
912    $this->series = new Google_SeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "POST", "path": "series", "id": "moderator.series.insert"}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "PATCH", "path": "series/{seriesId}", "id": "moderator.series.patch"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "series", "id": "moderator.series.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "PUT", "path": "series/{seriesId}", "id": "moderator.series.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.series.get", "httpMethod": "GET", "path": "series/{seriesId}", "response": {"$ref": "Series"}}}}', true));
913    $this->series_submissions = new Google_SeriesSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "max-results": {"type": "integer", "location": "query", "format": "uint32"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "includeVotes": {"type": "boolean", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
914    $this->series_responses = new Google_SeriesResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/responses", "response": {"$ref": "SeriesList"}}}}', true));
915    $this->topics = new Google_TopicsServiceResource($this, $this->serviceName, 'topics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Topic"}, "response": {"$ref": "Topic"}, "httpMethod": "POST", "path": "series/{seriesId}/topics", "id": "moderator.topics.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "mode": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.topics.list", "httpMethod": "GET", "path": "series/{seriesId}/topics", "response": {"$ref": "TopicList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Topic"}, "response": {"$ref": "Topic"}, "httpMethod": "PUT", "path": "series/{seriesId}/topics/{topicId}", "id": "moderator.topics.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.topics.get", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}", "response": {"$ref": "Topic"}}}}', true));
916    $this->topics_submissions = new Google_TopicsSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "includeVotes": {"type": "boolean", "location": "query"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.topics.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
917    $this->global_series = new Google_ModeratorGlobalSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "search", "id": "moderator.global.series.list"}}}', true));
918    $this->profiles = new Google_ProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PATCH", "path": "profiles/@me", "id": "moderator.profiles.patch"}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PUT", "path": "profiles/@me", "id": "moderator.profiles.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "profiles/@me", "response": {"$ref": "Profile"}, "id": "moderator.profiles.get", "httpMethod": "GET"}}}', true));
919    $this->featured_series = new Google_FeaturedSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/featured", "response": {"$ref": "SeriesList"}, "id": "moderator.featured.series.list", "httpMethod": "GET"}}}', true));
920    $this->myrecent_series = new Google_MyrecentSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/@me/recent", "response": {"$ref": "SeriesList"}, "id": "moderator.myrecent.series.list", "httpMethod": "GET"}}}', true));
921    $this->my_series = new Google_MySeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/@me/mine", "response": {"$ref": "SeriesList"}, "id": "moderator.my.series.list", "httpMethod": "GET"}}}', true));
922    $this->submissions = new Google_SubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Submission"}, "response": {"$ref": "Submission"}, "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions", "id": "moderator.submissions.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "includeVotes": {"type": "boolean", "location": "query"}}, "id": "moderator.submissions.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}", "response": {"$ref": "Submission"}}}}', true));
923
924  }
925}
926
927class Google_ModeratorTopicsResourcePartial extends Google_Model {
928  protected $__idType = 'Google_ModeratorTopicsResourcePartialId';
929  protected $__idDataType = '';
930  public $id;
931  public function setId(Google_ModeratorTopicsResourcePartialId $id) {
932    $this->id = $id;
933  }
934  public function getId() {
935    return $this->id;
936  }
937}
938
939class Google_ModeratorTopicsResourcePartialId extends Google_Model {
940  public $seriesId;
941  public $topicId;
942  public function setSeriesId($seriesId) {
943    $this->seriesId = $seriesId;
944  }
945  public function getSeriesId() {
946    return $this->seriesId;
947  }
948  public function setTopicId($topicId) {
949    $this->topicId = $topicId;
950  }
951  public function getTopicId() {
952    return $this->topicId;
953  }
954}
955
956class Google_ModeratorVotesResourcePartial extends Google_Model {
957  public $vote;
958  public $flag;
959  public function setVote($vote) {
960    $this->vote = $vote;
961  }
962  public function getVote() {
963    return $this->vote;
964  }
965  public function setFlag($flag) {
966    $this->flag = $flag;
967  }
968  public function getFlag() {
969    return $this->flag;
970  }
971}
972
973class Google_Profile extends Google_Model {
974  public $kind;
975  protected $__attributionType = 'Google_ProfileAttribution';
976  protected $__attributionDataType = '';
977  public $attribution;
978  protected $__idType = 'Google_ProfileId';
979  protected $__idDataType = '';
980  public $id;
981  public function setKind($kind) {
982    $this->kind = $kind;
983  }
984  public function getKind() {
985    return $this->kind;
986  }
987  public function setAttribution(Google_ProfileAttribution $attribution) {
988    $this->attribution = $attribution;
989  }
990  public function getAttribution() {
991    return $this->attribution;
992  }
993  public function setId(Google_ProfileId $id) {
994    $this->id = $id;
995  }
996  public function getId() {
997    return $this->id;
998  }
999}
1000
1001class Google_ProfileAttribution extends Google_Model {
1002  protected $__geoType = 'Google_ProfileAttributionGeo';
1003  protected $__geoDataType = '';
1004  public $geo;
1005  public $displayName;
1006  public $location;
1007  public $avatarUrl;
1008  public function setGeo(Google_ProfileAttributionGeo $geo) {
1009    $this->geo = $geo;
1010  }
1011  public function getGeo() {
1012    return $this->geo;
1013  }
1014  public function setDisplayName($displayName) {
1015    $this->displayName = $displayName;
1016  }
1017  public function getDisplayName() {
1018    return $this->displayName;
1019  }
1020  public function setLocation($location) {
1021    $this->location = $location;
1022  }
1023  public function getLocation() {
1024    return $this->location;
1025  }
1026  public function setAvatarUrl($avatarUrl) {
1027    $this->avatarUrl = $avatarUrl;
1028  }
1029  public function getAvatarUrl() {
1030    return $this->avatarUrl;
1031  }
1032}
1033
1034class Google_ProfileAttributionGeo extends Google_Model {
1035  public $latitude;
1036  public $location;
1037  public $longitude;
1038  public function setLatitude($latitude) {
1039    $this->latitude = $latitude;
1040  }
1041  public function getLatitude() {
1042    return $this->latitude;
1043  }
1044  public function setLocation($location) {
1045    $this->location = $location;
1046  }
1047  public function getLocation() {
1048    return $this->location;
1049  }
1050  public function setLongitude($longitude) {
1051    $this->longitude = $longitude;
1052  }
1053  public function getLongitude() {
1054    return $this->longitude;
1055  }
1056}
1057
1058class Google_ProfileId extends Google_Model {
1059  public $user;
1060  public function setUser($user) {
1061    $this->user = $user;
1062  }
1063  public function getUser() {
1064    return $this->user;
1065  }
1066}
1067
1068class Google_Series extends Google_Model {
1069  public $kind;
1070  public $description;
1071  protected $__rulesType = 'Google_SeriesRules';
1072  protected $__rulesDataType = '';
1073  public $rules;
1074  public $unauthVotingAllowed;
1075  public $videoSubmissionAllowed;
1076  public $name;
1077  public $numTopics;
1078  public $anonymousSubmissionAllowed;
1079  public $unauthSubmissionAllowed;
1080  protected $__idType = 'Google_SeriesId';
1081  protected $__idDataType = '';
1082  public $id;
1083  protected $__countersType = 'Google_SeriesCounters';
1084  protected $__countersDataType = '';
1085  public $counters;
1086  public function setKind($kind) {
1087    $this->kind = $kind;
1088  }
1089  public function getKind() {
1090    return $this->kind;
1091  }
1092  public function setDescription($description) {
1093    $this->description = $description;
1094  }
1095  public function getDescription() {
1096    return $this->description;
1097  }
1098  public function setRules(Google_SeriesRules $rules) {
1099    $this->rules = $rules;
1100  }
1101  public function getRules() {
1102    return $this->rules;
1103  }
1104  public function setUnauthVotingAllowed($unauthVotingAllowed) {
1105    $this->unauthVotingAllowed = $unauthVotingAllowed;
1106  }
1107  public function getUnauthVotingAllowed() {
1108    return $this->unauthVotingAllowed;
1109  }
1110  public function setVideoSubmissionAllowed($videoSubmissionAllowed) {
1111    $this->videoSubmissionAllowed = $videoSubmissionAllowed;
1112  }
1113  public function getVideoSubmissionAllowed() {
1114    return $this->videoSubmissionAllowed;
1115  }
1116  public function setName($name) {
1117    $this->name = $name;
1118  }
1119  public function getName() {
1120    return $this->name;
1121  }
1122  public function setNumTopics($numTopics) {
1123    $this->numTopics = $numTopics;
1124  }
1125  public function getNumTopics() {
1126    return $this->numTopics;
1127  }
1128  public function setAnonymousSubmissionAllowed($anonymousSubmissionAllowed) {
1129    $this->anonymousSubmissionAllowed = $anonymousSubmissionAllowed;
1130  }
1131  public function getAnonymousSubmissionAllowed() {
1132    return $this->anonymousSubmissionAllowed;
1133  }
1134  public function setUnauthSubmissionAllowed($unauthSubmissionAllowed) {
1135    $this->unauthSubmissionAllowed = $unauthSubmissionAllowed;
1136  }
1137  public function getUnauthSubmissionAllowed() {
1138    return $this->unauthSubmissionAllowed;
1139  }
1140  public function setId(Google_SeriesId $id) {
1141    $this->id = $id;
1142  }
1143  public function getId() {
1144    return $this->id;
1145  }
1146  public function setCounters(Google_SeriesCounters $counters) {
1147    $this->counters = $counters;
1148  }
1149  public function getCounters() {
1150    return $this->counters;
1151  }
1152}
1153
1154class Google_SeriesCounters extends Google_Model {
1155  public $users;
1156  public $noneVotes;
1157  public $videoSubmissions;
1158  public $minusVotes;
1159  public $anonymousSubmissions;
1160  public $submissions;
1161  public $plusVotes;
1162  public function setUsers($users) {
1163    $this->users = $users;
1164  }
1165  public function getUsers() {
1166    return $this->users;
1167  }
1168  public function setNoneVotes($noneVotes) {
1169    $this->noneVotes = $noneVotes;
1170  }
1171  public function getNoneVotes() {
1172    return $this->noneVotes;
1173  }
1174  public function setVideoSubmissions($videoSubmissions) {
1175    $this->videoSubmissions = $videoSubmissions;
1176  }
1177  public function getVideoSubmissions() {
1178    return $this->videoSubmissions;
1179  }
1180  public function setMinusVotes($minusVotes) {
1181    $this->minusVotes = $minusVotes;
1182  }
1183  public function getMinusVotes() {
1184    return $this->minusVotes;
1185  }
1186  public function setAnonymousSubmissions($anonymousSubmissions) {
1187    $this->anonymousSubmissions = $anonymousSubmissions;
1188  }
1189  public function getAnonymousSubmissions() {
1190    return $this->anonymousSubmissions;
1191  }
1192  public function setSubmissions($submissions) {
1193    $this->submissions = $submissions;
1194  }
1195  public function getSubmissions() {
1196    return $this->submissions;
1197  }
1198  public function setPlusVotes($plusVotes) {
1199    $this->plusVotes = $plusVotes;
1200  }
1201  public function getPlusVotes() {
1202    return $this->plusVotes;
1203  }
1204}
1205
1206class Google_SeriesId extends Google_Model {
1207  public $seriesId;
1208  public function setSeriesId($seriesId) {
1209    $this->seriesId = $seriesId;
1210  }
1211  public function getSeriesId() {
1212    return $this->seriesId;
1213  }
1214}
1215
1216class Google_SeriesList extends Google_Model {
1217  protected $__itemsType = 'Google_Series';
1218  protected $__itemsDataType = 'array';
1219  public $items;
1220  public $kind;
1221  public function setItems(/* array(Google_Series) */ $items) {
1222    $this->assertIsArray($items, 'Google_Series', __METHOD__);
1223    $this->items = $items;
1224  }
1225  public function getItems() {
1226    return $this->items;
1227  }
1228  public function setKind($kind) {
1229    $this->kind = $kind;
1230  }
1231  public function getKind() {
1232    return $this->kind;
1233  }
1234}
1235
1236class Google_SeriesRules extends Google_Model {
1237  protected $__votesType = 'Google_SeriesRulesVotes';
1238  protected $__votesDataType = '';
1239  public $votes;
1240  protected $__submissionsType = 'Google_SeriesRulesSubmissions';
1241  protected $__submissionsDataType = '';
1242  public $submissions;
1243  public function setVotes(Google_SeriesRulesVotes $votes) {
1244    $this->votes = $votes;
1245  }
1246  public function getVotes() {
1247    return $this->votes;
1248  }
1249  public function setSubmissions(Google_SeriesRulesSubmissions $submissions) {
1250    $this->submissions = $submissions;
1251  }
1252  public function getSubmissions() {
1253    return $this->submissions;
1254  }
1255}
1256
1257class Google_SeriesRulesSubmissions extends Google_Model {
1258  public $close;
1259  public $open;
1260  public function setClose($close) {
1261    $this->close = $close;
1262  }
1263  public function getClose() {
1264    return $this->close;
1265  }
1266  public function setOpen($open) {
1267    $this->open = $open;
1268  }
1269  public function getOpen() {
1270    return $this->open;
1271  }
1272}
1273
1274class Google_SeriesRulesVotes extends Google_Model {
1275  public $close;
1276  public $open;
1277  public function setClose($close) {
1278    $this->close = $close;
1279  }
1280  public function getClose() {
1281    return $this->close;
1282  }
1283  public function setOpen($open) {
1284    $this->open = $open;
1285  }
1286  public function getOpen() {
1287    return $this->open;
1288  }
1289}
1290
1291class Google_Submission extends Google_Model {
1292  public $kind;
1293  protected $__attributionType = 'Google_SubmissionAttribution';
1294  protected $__attributionDataType = '';
1295  public $attribution;
1296  public $created;
1297  public $text;
1298  protected $__topicsType = 'Google_ModeratorTopicsResourcePartial';
1299  protected $__topicsDataType = 'array';
1300  public $topics;
1301  public $author;
1302  protected $__translationsType = 'Google_SubmissionTranslations';
1303  protected $__translationsDataType = 'array';
1304  public $translations;
1305  protected $__parentSubmissionIdType = 'Google_SubmissionParentSubmissionId';
1306  protected $__parentSubmissionIdDataType = '';
1307  public $parentSubmissionId;
1308  protected $__voteType = 'Google_ModeratorVotesResourcePartial';
1309  protected $__voteDataType = '';
1310  public $vote;
1311  public $attachmentUrl;
1312  protected $__geoType = 'Google_SubmissionGeo';
1313  protected $__geoDataType = '';
1314  public $geo;
1315  protected $__idType = 'Google_SubmissionId';
1316  protected $__idDataType = '';
1317  public $id;
1318  protected $__countersType = 'Google_SubmissionCounters';
1319  protected $__countersDataType = '';
1320  public $counters;
1321  public function setKind($kind) {
1322    $this->kind = $kind;
1323  }
1324  public function getKind() {
1325    return $this->kind;
1326  }
1327  public function setAttribution(Google_SubmissionAttribution $attribution) {
1328    $this->attribution = $attribution;
1329  }
1330  public function getAttribution() {
1331    return $this->attribution;
1332  }
1333  public function setCreated($created) {
1334    $this->created = $created;
1335  }
1336  public function getCreated() {
1337    return $this->created;
1338  }
1339  public function setText($text) {
1340    $this->text = $text;
1341  }
1342  public function getText() {
1343    return $this->text;
1344  }
1345  public function setTopics(/* array(Google_ModeratorTopicsResourcePartial) */ $topics) {
1346    $this->assertIsArray($topics, 'Google_ModeratorTopicsResourcePartial', __METHOD__);
1347    $this->topics = $topics;
1348  }
1349  public function getTopics() {
1350    return $this->topics;
1351  }
1352  public function setAuthor($author) {
1353    $this->author = $author;
1354  }
1355  public function getAuthor() {
1356    return $this->author;
1357  }
1358  public function setTranslations(/* array(Google_SubmissionTranslations) */ $translations) {
1359    $this->assertIsArray($translations, 'Google_SubmissionTranslations', __METHOD__);
1360    $this->translations = $translations;
1361  }
1362  public function getTranslations() {
1363    return $this->translations;
1364  }
1365  public function setParentSubmissionId(Google_SubmissionParentSubmissionId $parentSubmissionId) {
1366    $this->parentSubmissionId = $parentSubmissionId;
1367  }
1368  public function getParentSubmissionId() {
1369    return $this->parentSubmissionId;
1370  }
1371  public function setVote(Google_ModeratorVotesResourcePartial $vote) {
1372    $this->vote = $vote;
1373  }
1374  public function getVote() {
1375    return $this->vote;
1376  }
1377  public function setAttachmentUrl($attachmentUrl) {
1378    $this->attachmentUrl = $attachmentUrl;
1379  }
1380  public function getAttachmentUrl() {
1381    return $this->attachmentUrl;
1382  }
1383  public function setGeo(Google_SubmissionGeo $geo) {
1384    $this->geo = $geo;
1385  }
1386  public function getGeo() {
1387    return $this->geo;
1388  }
1389  public function setId(Google_SubmissionId $id) {
1390    $this->id = $id;
1391  }
1392  public function getId() {
1393    return $this->id;
1394  }
1395  public function setCounters(Google_SubmissionCounters $counters) {
1396    $this->counters = $counters;
1397  }
1398  public function getCounters() {
1399    return $this->counters;
1400  }
1401}
1402
1403class Google_SubmissionAttribution extends Google_Model {
1404  public $displayName;
1405  public $location;
1406  public $avatarUrl;
1407  public function setDisplayName($displayName) {
1408    $this->displayName = $displayName;
1409  }
1410  public function getDisplayName() {
1411    return $this->displayName;
1412  }
1413  public function setLocation($location) {
1414    $this->location = $location;
1415  }
1416  public function getLocation() {
1417    return $this->location;
1418  }
1419  public function setAvatarUrl($avatarUrl) {
1420    $this->avatarUrl = $avatarUrl;
1421  }
1422  public function getAvatarUrl() {
1423    return $this->avatarUrl;
1424  }
1425}
1426
1427class Google_SubmissionCounters extends Google_Model {
1428  public $noneVotes;
1429  public $minusVotes;
1430  public $plusVotes;
1431  public function setNoneVotes($noneVotes) {
1432    $this->noneVotes = $noneVotes;
1433  }
1434  public function getNoneVotes() {
1435    return $this->noneVotes;
1436  }
1437  public function setMinusVotes($minusVotes) {
1438    $this->minusVotes = $minusVotes;
1439  }
1440  public function getMinusVotes() {
1441    return $this->minusVotes;
1442  }
1443  public function setPlusVotes($plusVotes) {
1444    $this->plusVotes = $plusVotes;
1445  }
1446  public function getPlusVotes() {
1447    return $this->plusVotes;
1448  }
1449}
1450
1451class Google_SubmissionGeo extends Google_Model {
1452  public $latitude;
1453  public $location;
1454  public $longitude;
1455  public function setLatitude($latitude) {
1456    $this->latitude = $latitude;
1457  }
1458  public function getLatitude() {
1459    return $this->latitude;
1460  }
1461  public function setLocation($location) {
1462    $this->location = $location;
1463  }
1464  public function getLocation() {
1465    return $this->location;
1466  }
1467  public function setLongitude($longitude) {
1468    $this->longitude = $longitude;
1469  }
1470  public function getLongitude() {
1471    return $this->longitude;
1472  }
1473}
1474
1475class Google_SubmissionId extends Google_Model {
1476  public $seriesId;
1477  public $submissionId;
1478  public function setSeriesId($seriesId) {
1479    $this->seriesId = $seriesId;
1480  }
1481  public function getSeriesId() {
1482    return $this->seriesId;
1483  }
1484  public function setSubmissionId($submissionId) {
1485    $this->submissionId = $submissionId;
1486  }
1487  public function getSubmissionId() {
1488    return $this->submissionId;
1489  }
1490}
1491
1492class Google_SubmissionList extends Google_Model {
1493  protected $__itemsType = 'Google_Submission';
1494  protected $__itemsDataType = 'array';
1495  public $items;
1496  public $kind;
1497  public function setItems(/* array(Google_Submission) */ $items) {
1498    $this->assertIsArray($items, 'Google_Submission', __METHOD__);
1499    $this->items = $items;
1500  }
1501  public function getItems() {
1502    return $this->items;
1503  }
1504  public function setKind($kind) {
1505    $this->kind = $kind;
1506  }
1507  public function getKind() {
1508    return $this->kind;
1509  }
1510}
1511
1512class Google_SubmissionParentSubmissionId extends Google_Model {
1513  public $seriesId;
1514  public $submissionId;
1515  public function setSeriesId($seriesId) {
1516    $this->seriesId = $seriesId;
1517  }
1518  public function getSeriesId() {
1519    return $this->seriesId;
1520  }
1521  public function setSubmissionId($submissionId) {
1522    $this->submissionId = $submissionId;
1523  }
1524  public function getSubmissionId() {
1525    return $this->submissionId;
1526  }
1527}
1528
1529class Google_SubmissionTranslations extends Google_Model {
1530  public $lang;
1531  public $text;
1532  public function setLang($lang) {
1533    $this->lang = $lang;
1534  }
1535  public function getLang() {
1536    return $this->lang;
1537  }
1538  public function setText($text) {
1539    $this->text = $text;
1540  }
1541  public function getText() {
1542    return $this->text;
1543  }
1544}
1545
1546class Google_Tag extends Google_Model {
1547  public $text;
1548  public $kind;
1549  protected $__idType = 'Google_TagId';
1550  protected $__idDataType = '';
1551  public $id;
1552  public function setText($text) {
1553    $this->text = $text;
1554  }
1555  public function getText() {
1556    return $this->text;
1557  }
1558  public function setKind($kind) {
1559    $this->kind = $kind;
1560  }
1561  public function getKind() {
1562    return $this->kind;
1563  }
1564  public function setId(Google_TagId $id) {
1565    $this->id = $id;
1566  }
1567  public function getId() {
1568    return $this->id;
1569  }
1570}
1571
1572class Google_TagId extends Google_Model {
1573  public $seriesId;
1574  public $tagId;
1575  public $submissionId;
1576  public function setSeriesId($seriesId) {
1577    $this->seriesId = $seriesId;
1578  }
1579  public function getSeriesId() {
1580    return $this->seriesId;
1581  }
1582  public function setTagId($tagId) {
1583    $this->tagId = $tagId;
1584  }
1585  public function getTagId() {
1586    return $this->tagId;
1587  }
1588  public function setSubmissionId($submissionId) {
1589    $this->submissionId = $submissionId;
1590  }
1591  public function getSubmissionId() {
1592    return $this->submissionId;
1593  }
1594}
1595
1596class Google_TagList extends Google_Model {
1597  protected $__itemsType = 'Google_Tag';
1598  protected $__itemsDataType = 'array';
1599  public $items;
1600  public $kind;
1601  public function setItems(/* array(Google_Tag) */ $items) {
1602    $this->assertIsArray($items, 'Google_Tag', __METHOD__);
1603    $this->items = $items;
1604  }
1605  public function getItems() {
1606    return $this->items;
1607  }
1608  public function setKind($kind) {
1609    $this->kind = $kind;
1610  }
1611  public function getKind() {
1612    return $this->kind;
1613  }
1614}
1615
1616class Google_Topic extends Google_Model {
1617  public $kind;
1618  public $description;
1619  protected $__rulesType = 'Google_TopicRules';
1620  protected $__rulesDataType = '';
1621  public $rules;
1622  protected $__featuredSubmissionType = 'Google_Submission';
1623  protected $__featuredSubmissionDataType = '';
1624  public $featuredSubmission;
1625  public $presenter;
1626  protected $__countersType = 'Google_TopicCounters';
1627  protected $__countersDataType = '';
1628  public $counters;
1629  protected $__idType = 'Google_TopicId';
1630  protected $__idDataType = '';
1631  public $id;
1632  public $name;
1633  public function setKind($kind) {
1634    $this->kind = $kind;
1635  }
1636  public function getKind() {
1637    return $this->kind;
1638  }
1639  public function setDescription($description) {
1640    $this->description = $description;
1641  }
1642  public function getDescription() {
1643    return $this->description;
1644  }
1645  public function setRules(Google_TopicRules $rules) {
1646    $this->rules = $rules;
1647  }
1648  public function getRules() {
1649    return $this->rules;
1650  }
1651  public function setFeaturedSubmission(Google_Submission $featuredSubmission) {
1652    $this->featuredSubmission = $featuredSubmission;
1653  }
1654  public function getFeaturedSubmission() {
1655    return $this->featuredSubmission;
1656  }
1657  public function setPresenter($presenter) {
1658    $this->presenter = $presenter;
1659  }
1660  public function getPresenter() {
1661    return $this->presenter;
1662  }
1663  public function setCounters(Google_TopicCounters $counters) {
1664    $this->counters = $counters;
1665  }
1666  public function getCounters() {
1667    return $this->counters;
1668  }
1669  public function setId(Google_TopicId $id) {
1670    $this->id = $id;
1671  }
1672  public function getId() {
1673    return $this->id;
1674  }
1675  public function setName($name) {
1676    $this->name = $name;
1677  }
1678  public function getName() {
1679    return $this->name;
1680  }
1681}
1682
1683class Google_TopicCounters extends Google_Model {
1684  public $users;
1685  public $noneVotes;
1686  public $videoSubmissions;
1687  public $minusVotes;
1688  public $submissions;
1689  public $plusVotes;
1690  public function setUsers($users) {
1691    $this->users = $users;
1692  }
1693  public function getUsers() {
1694    return $this->users;
1695  }
1696  public function setNoneVotes($noneVotes) {
1697    $this->noneVotes = $noneVotes;
1698  }
1699  public function getNoneVotes() {
1700    return $this->noneVotes;
1701  }
1702  public function setVideoSubmissions($videoSubmissions) {
1703    $this->videoSubmissions = $videoSubmissions;
1704  }
1705  public function getVideoSubmissions() {
1706    return $this->videoSubmissions;
1707  }
1708  public function setMinusVotes($minusVotes) {
1709    $this->minusVotes = $minusVotes;
1710  }
1711  public function getMinusVotes() {
1712    return $this->minusVotes;
1713  }
1714  public function setSubmissions($submissions) {
1715    $this->submissions = $submissions;
1716  }
1717  public function getSubmissions() {
1718    return $this->submissions;
1719  }
1720  public function setPlusVotes($plusVotes) {
1721    $this->plusVotes = $plusVotes;
1722  }
1723  public function getPlusVotes() {
1724    return $this->plusVotes;
1725  }
1726}
1727
1728class Google_TopicId extends Google_Model {
1729  public $seriesId;
1730  public $topicId;
1731  public function setSeriesId($seriesId) {
1732    $this->seriesId = $seriesId;
1733  }
1734  public function getSeriesId() {
1735    return $this->seriesId;
1736  }
1737  public function setTopicId($topicId) {
1738    $this->topicId = $topicId;
1739  }
1740  public function getTopicId() {
1741    return $this->topicId;
1742  }
1743}
1744
1745class Google_TopicList extends Google_Model {
1746  protected $__itemsType = 'Google_Topic';
1747  protected $__itemsDataType = 'array';
1748  public $items;
1749  public $kind;
1750  public function setItems(/* array(Google_Topic) */ $items) {
1751    $this->assertIsArray($items, 'Google_Topic', __METHOD__);
1752    $this->items = $items;
1753  }
1754  public function getItems() {
1755    return $this->items;
1756  }
1757  public function setKind($kind) {
1758    $this->kind = $kind;
1759  }
1760  public function getKind() {
1761    return $this->kind;
1762  }
1763}
1764
1765class Google_TopicRules extends Google_Model {
1766  protected $__votesType = 'Google_TopicRulesVotes';
1767  protected $__votesDataType = '';
1768  public $votes;
1769  protected $__submissionsType = 'Google_TopicRulesSubmissions';
1770  protected $__submissionsDataType = '';
1771  public $submissions;
1772  public function setVotes(Google_TopicRulesVotes $votes) {
1773    $this->votes = $votes;
1774  }
1775  public function getVotes() {
1776    return $this->votes;
1777  }
1778  public function setSubmissions(Google_TopicRulesSubmissions $submissions) {
1779    $this->submissions = $submissions;
1780  }
1781  public function getSubmissions() {
1782    return $this->submissions;
1783  }
1784}
1785
1786class Google_TopicRulesSubmissions extends Google_Model {
1787  public $close;
1788  public $open;
1789  public function setClose($close) {
1790    $this->close = $close;
1791  }
1792  public function getClose() {
1793    return $this->close;
1794  }
1795  public function setOpen($open) {
1796    $this->open = $open;
1797  }
1798  public function getOpen() {
1799    return $this->open;
1800  }
1801}
1802
1803class Google_TopicRulesVotes extends Google_Model {
1804  public $close;
1805  public $open;
1806  public function setClose($close) {
1807    $this->close = $close;
1808  }
1809  public function getClose() {
1810    return $this->close;
1811  }
1812  public function setOpen($open) {
1813    $this->open = $open;
1814  }
1815  public function getOpen() {
1816    return $this->open;
1817  }
1818}
1819
1820class Google_Vote extends Google_Model {
1821  public $vote;
1822  public $flag;
1823  protected $__idType = 'Google_VoteId';
1824  protected $__idDataType = '';
1825  public $id;
1826  public $kind;
1827  public function setVote($vote) {
1828    $this->vote = $vote;
1829  }
1830  public function getVote() {
1831    return $this->vote;
1832  }
1833  public function setFlag($flag) {
1834    $this->flag = $flag;
1835  }
1836  public function getFlag() {
1837    return $this->flag;
1838  }
1839  public function setId(Google_VoteId $id) {
1840    $this->id = $id;
1841  }
1842  public function getId() {
1843    return $this->id;
1844  }
1845  public function setKind($kind) {
1846    $this->kind = $kind;
1847  }
1848  public function getKind() {
1849    return $this->kind;
1850  }
1851}
1852
1853class Google_VoteId extends Google_Model {
1854  public $seriesId;
1855  public $submissionId;
1856  public function setSeriesId($seriesId) {
1857    $this->seriesId = $seriesId;
1858  }
1859  public function getSeriesId() {
1860    return $this->seriesId;
1861  }
1862  public function setSubmissionId($submissionId) {
1863    $this->submissionId = $submissionId;
1864  }
1865  public function getSubmissionId() {
1866    return $this->submissionId;
1867  }
1868}
1869
1870class Google_VoteList extends Google_Model {
1871  protected $__itemsType = 'Google_Vote';
1872  protected $__itemsDataType = 'array';
1873  public $items;
1874  public $kind;
1875  public function setItems(/* array(Google_Vote) */ $items) {
1876    $this->assertIsArray($items, 'Google_Vote', __METHOD__);
1877    $this->items = $items;
1878  }
1879  public function getItems() {
1880    return $this->items;
1881  }
1882  public function setKind($kind) {
1883    $this->kind = $kind;
1884  }
1885  public function getKind() {
1886    return $this->kind;
1887  }
1888}
1889