Google Analyticator - Version 6.4

Version Description

  • Added better caching of dashboard widget.
  • Added better error handling with Google API calls. Prevents breaking widget section if an error is found.
  • Updated Google API files to latest version (0.6.0)
  • Added filter to prevent IDs being passed to google with 'ga:' appended twice (legacy user bug)
  • Removed SiteSpeed option - done automatically with Google Analytics now.
  • Changed some config options with Google API to try help any prev users with re-auth issues.
Download this release

Release Info

Developer VideoUserManuals
Plugin Icon 128x128 Google Analyticator
Version 6.4
Comparing to
See all releases

Code changes from version 6.3.4 to 6.4

Files changed (27) hide show
  1. class.analytics.stats.php +82 -66
  2. google-analyticator.php +68 -65
  3. google-analytics-stats-widget.php +35 -47
  4. google-analytics-summary-widget.php +618 -553
  5. google-api-php-client/src/Google_Client.php +4 -16
  6. google-api-php-client/src/auth/Google_P12Signer.php +4 -0
  7. google-api-php-client/src/contrib/Google_AdexchangebuyerService.php +567 -0
  8. google-api-php-client/src/contrib/Google_AdsenseService.php +12 -16
  9. google-api-php-client/src/contrib/Google_AdsensehostService.php +1378 -0
  10. google-api-php-client/src/contrib/Google_BigqueryService.php +1821 -0
  11. google-api-php-client/src/contrib/Google_BloggerService.php +1301 -0
  12. google-api-php-client/src/contrib/Google_BooksService.php +2793 -0
  13. google-api-php-client/src/contrib/Google_CalendarService.php +1931 -0
  14. google-api-php-client/src/contrib/Google_ComputeService.php +2629 -0
  15. google-api-php-client/src/contrib/Google_CustomsearchService.php +836 -0
  16. google-api-php-client/src/contrib/Google_DriveService.php +2157 -0
  17. google-api-php-client/src/contrib/Google_FreebaseService.php +89 -0
  18. google-api-php-client/src/contrib/Google_FusiontablesService.php +1326 -0
  19. google-api-php-client/src/contrib/Google_GanService.php +1605 -0
  20. google-api-php-client/src/contrib/Google_LatitudeService.php +283 -0
  21. google-api-php-client/src/contrib/Google_LicensingService.php +285 -0
  22. google-api-php-client/src/contrib/Google_ModeratorService.php +1888 -0
  23. google-api-php-client/src/contrib/Google_OrkutService.php +2554 -0
  24. google-api-php-client/src/contrib/Google_PagespeedonlineService.php +474 -0
  25. google-api-php-client/src/contrib/Google_PlusMomentsService.php +567 -0
  26. google-api-php-client/src/contrib/Google_PlusService.php +1525 -0
  27. google-api-php-client/src/contrib/Google_PredictionService.php +47 -0
class.analytics.stats.php CHANGED
@@ -11,7 +11,6 @@ require_once 'google-api-php-client/src/contrib/Google_AnalyticsService.php';
11
  /**
12
  * Handles interactions with Google Analytics' Stat API
13
  *
14
- * @author http://www.codebyjeff.com
15
  **/
16
  class GoogleAnalyticsStats
17
  {
@@ -29,90 +28,99 @@ class GoogleAnalyticsStats
29
  **/
30
  function GoogleAnalyticsStats()
31
  {
 
 
 
 
 
 
 
32
 
33
- $this->client = new Google_Client();
 
34
 
35
- $this->client->setClientId(GOOGLE_ANALYTICATOR_CLIENTID);
36
- $this->client->setClientSecret(GOOGLE_ANALYTICATOR_CLIENTSECRET);
37
- $this->client->setRedirectUri(GOOGLE_ANALYTICATOR_REDIRECT);
38
- $this->client->setScopes(array(GOOGLE_ANALYTICATOR_SCOPE));
 
 
 
 
39
 
40
- // Magic. Returns objects from the Analytics Service instead of associative arrays.
41
- $this->client->setUseObjects(true);
 
42
 
43
- try {
44
- $this->analytics = new Google_AnalyticsService($this->client);
45
- }
46
- catch (Google_ServiceException $e)
47
- {
48
- print 'There was an Analytics API service error ' . $e->getCode() . ':' . $e->getMessage();
 
49
 
50
- }
51
 
52
- }
 
 
 
 
 
 
 
 
 
 
 
53
 
54
- function checkLogin()
55
- {
56
- $ga_google_authtoken = get_option('ga_google_authtoken');
57
 
58
- if (!empty($ga_google_authtoken))
59
- {
60
- $this->client->setAccessToken($ga_google_authtoken);
61
- }
62
- else
63
- {
64
- $authCode = get_option('ga_google_token');
65
-
66
- if (empty($authCode)) return false;
67
-
68
-
69
- $accessToken = $this->client->authenticate($authCode);
70
-
71
- if($accessToken)
72
- {
73
- $this->client->setAccessToken($accessToken);
74
- update_option('ga_google_authtoken', $accessToken);
75
- }
76
- else
77
- {
78
- return false;
79
- }
80
- }
81
 
82
- $this->token = $this->client->getAccessToken();
83
- return true;
84
  }
85
 
86
  function deauthorize()
87
  {
88
- update_option('ga_google_token', '');
89
- update_option('ga_google_authtoken', '');
90
  }
91
 
92
  function getSingleProfile()
93
  {
 
 
94
 
95
- $webproperty_id = get_option('ga_uid');
96
- list($pre, $account_id, $post) = explode('-',$webproperty_id);
97
-
98
- if (empty($webproperty_id)) return false;
99
 
100
- try {
101
- $profiles = $this->analytics->management_profiles->listManagementProfiles($account_id, $webproperty_id);
102
- }
103
- catch (Google_ServiceException $e)
104
- {
105
- print 'There was an Analytics API service error ' . $e->getCode() . ': ' . $e->getMessage();
106
- return false;
107
- }
108
-
109
- $profile_id = $profiles->items[0]->id;
110
- if (empty($profile_id)) return false;
111
 
112
- $account_array = array();
113
- array_push($account_array, array('id'=>$profile_id, 'ga:webPropertyId'=>$webproperty_id));
114
- return $account_array;
115
 
 
 
 
116
  }
117
 
118
  function getAllProfiles()
@@ -218,9 +226,17 @@ class GoogleAnalyticsStats
218
  {
219
  $params['max-results'] = $limit;
220
  }
221
-
 
 
 
 
 
 
 
 
222
  return $analytics->data_ga->get(
223
- 'ga:' . $this->accountId,
224
  $startDate,
225
  $endDate,
226
  $metric,
11
  /**
12
  * Handles interactions with Google Analytics' Stat API
13
  *
 
14
  **/
15
  class GoogleAnalyticsStats
16
  {
28
  **/
29
  function GoogleAnalyticsStats()
30
  {
31
+ $this->client = new Google_Client();
32
+ $this->client->setApprovalPrompt("force");
33
+ $this->client->setAccessType('offline');
34
+ $this->client->setClientId(GOOGLE_ANALYTICATOR_CLIENTID);
35
+ $this->client->setClientSecret(GOOGLE_ANALYTICATOR_CLIENTSECRET);
36
+ $this->client->setRedirectUri(GOOGLE_ANALYTICATOR_REDIRECT);
37
+ $this->client->setScopes(array(GOOGLE_ANALYTICATOR_SCOPE));
38
 
39
+ // Magic. Returns objects from the Analytics Service instead of associative arrays.
40
+ $this->client->setUseObjects(true);
41
 
42
+ try {
43
+ $this->analytics = new Google_AnalyticsService($this->client);
44
+ }
45
+ catch (Google_ServiceException $e)
46
+ {
47
+ print '(cas:48) There was an Analytics API service error ' . $e->getCode() . ':' . $e->getMessage();
48
+ }
49
+ }
50
 
51
+ function checkLogin()
52
+ {
53
+ $ga_google_authtoken = get_option('ga_google_authtoken');
54
 
55
+ if (!empty($ga_google_authtoken))
56
+ {
57
+ $this->client->setAccessToken($ga_google_authtoken);
58
+ }
59
+ else
60
+ {
61
+ $authCode = get_option('ga_google_token');
62
 
63
+ if (empty($authCode)) return false;
64
 
65
+ try
66
+ {
67
+ $accessToken = $this->client->authenticate($authCode);
68
+ }
69
+ catch( Exception $e )
70
+ {
71
+ print '(cas:72) Google Analyticator was unable to authenticate you with
72
+ Google using the Auth Token you pasted into the input box on the previous step. <br><br>
73
+ This could mean either you pasted the token wrong, or the time/date on your server is wrong,
74
+ or an SSL issue preventing Google from Authenticating. <br><br>
75
+ <a href="' . admin_url('/options-general.php?page=ga_reset').'"> Try Deauthorizing &amp; Resetting Google Analyticator.</a>
76
+ <br><br><strong>Tech Info </strong> ' . $e->getCode() . ':' . $e->getMessage();
77
 
78
+ return false;
79
+ }
 
80
 
81
+ if($accessToken)
82
+ {
83
+ $this->client->setAccessToken($accessToken);
84
+ update_option('ga_google_authtoken', $accessToken);
85
+ }
86
+ else
87
+ {
88
+ return false;
89
+ }
90
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
+ $this->token = $this->client->getAccessToken();
93
+ return true;
94
  }
95
 
96
  function deauthorize()
97
  {
98
+ update_option('ga_google_token', '');
99
+ update_option('ga_google_authtoken', '');
100
  }
101
 
102
  function getSingleProfile()
103
  {
104
+ $webproperty_id = get_option('ga_uid');
105
+ list($pre, $account_id, $post) = explode('-',$webproperty_id);
106
 
107
+ if (empty($webproperty_id)) return false;
 
 
 
108
 
109
+ try {
110
+ $profiles = $this->analytics->management_profiles->listManagementProfiles($account_id, $webproperty_id);
111
+ }
112
+ catch (Google_ServiceException $e)
113
+ {
114
+ print 'There was an Analytics API service error ' . $e->getCode() . ': ' . $e->getMessage();
115
+ return false;
116
+ }
 
 
 
117
 
118
+ $profile_id = $profiles->items[0]->id;
119
+ if (empty($profile_id)) return false;
 
120
 
121
+ $account_array = array();
122
+ array_push($account_array, array('id'=>$profile_id, 'ga:webPropertyId'=>$webproperty_id));
123
+ return $account_array;
124
  }
125
 
126
  function getAllProfiles()
226
  {
227
  $params['max-results'] = $limit;
228
  }
229
+
230
+ // Just incase, the ga: is still used in the account id, strip it out to prevent it breaking
231
+ $filtered_id = str_replace( 'ga:', '', $this->accountId );
232
+
233
+ if(!$filtered_id){
234
+ echo 'Error - Account ID is blank';
235
+ return false;
236
+ }
237
+
238
  return $analytics->data_ga->get(
239
+ 'ga:'.$filtered_id,
240
  $startDate,
241
  $endDate,
242
  $metric,
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
- * Version: 6.3.4
5
  * Plugin URI: http://wordpress.org/extend/plugins/google-analyticator/
6
  * Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
  * Author: Video User Manuals
@@ -9,7 +9,7 @@
9
  * Text Domain: google-analyticator
10
  */
11
 
12
- define('GOOGLE_ANALYTICATOR_VERSION', '6.3.4');
13
 
14
  define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
15
  define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
@@ -36,7 +36,7 @@ define("key_ga_outbound_prefix", "ga_outbound_prefix", true);
36
  define("key_ga_downloads", "ga_downloads", true);
37
  define("key_ga_downloads_prefix", "ga_downloads_prefix", true);
38
  define("key_ga_widgets", "ga_widgets", true);
39
- define("key_ga_sitespeed", "ga_sitespeed", true);
40
 
41
  define("ga_uid_default", "UA-XXXXXXXX-X", true);
42
  define("ga_google_token_default", "", true);
@@ -52,9 +52,9 @@ define("ga_outbound_prefix_default", 'outgoing', true);
52
  define("ga_downloads_default", "", true);
53
  define("ga_downloads_prefix_default", "download", true);
54
  define("ga_widgets_default", ga_enabled, true);
55
- define("ga_sitespeed_default", ga_enabled, true);
56
 
57
  // Create the default key and status
 
58
  add_option(key_ga_status, ga_status_default, '');
59
  add_option(key_ga_uid, ga_uid_default, '');
60
  add_option(key_ga_admin, ga_admin_default, '');
@@ -69,12 +69,11 @@ add_option(key_ga_outbound, ga_outbound_default, '');
69
  add_option(key_ga_outbound_prefix, ga_outbound_prefix_default, '');
70
  add_option(key_ga_downloads, ga_downloads_default, '');
71
  add_option(key_ga_downloads_prefix, ga_downloads_prefix_default, '');
72
- add_option(key_ga_sitespeed, ga_sitespeed_default, '');
73
  add_option(key_ga_widgets, ga_widgets_default, '');
 
74
  add_option('ga_defaults', 'yes' );
75
  add_option('ga_google_token', '', '');
76
 
77
-
78
  $useAuth = ( get_option( 'ga_google_token' ) == '' ? false : true );
79
 
80
 
@@ -238,6 +237,8 @@ function ga_filter_plugin_actions($links) {
238
 
239
  function ga_do_reset()
240
  {
 
 
241
  // Delete all GA options.
242
  delete_option(key_ga_status);
243
  delete_option(key_ga_uid);
@@ -253,15 +254,17 @@ function ga_do_reset()
253
  delete_option(key_ga_outbound_prefix);
254
  delete_option(key_ga_downloads);
255
  delete_option(key_ga_downloads_prefix);
256
- delete_option(key_ga_sitespeed);
257
  delete_option(key_ga_widgets);
 
258
  delete_option('ga_defaults');
259
  delete_option('ga_google_token');
260
  delete_option('ga_google_authtoken');
261
  delete_option('ga_profileid');
262
-
263
-
264
-
 
 
265
  wp_redirect( admin_url( 'options-general.php?page=ga_activate' ) );
266
  exit;
267
  }
@@ -365,13 +368,10 @@ function ga_options_page() {
365
  $ga_widgets = ga_widgets_default;
366
  update_option(key_ga_widgets, $ga_widgets);
367
 
 
 
368
 
369
- // Update the sitespeed option
370
- $ga_sitespeed = $_POST[key_ga_sitespeed];
371
- if (($ga_sitespeed != ga_enabled) && ($ga_sitespeed != ga_disabled))
372
- $ga_sitespeed = ga_widgets_default;
373
- update_option(key_ga_sitespeed, $ga_sitespeed);
374
-
375
  // Give an updated message
376
  echo "<div class='updated fade'><p><strong>" . __('Google Analyticator settings saved.', 'google-analyticator') . "</strong></p></div>";
377
  }
@@ -447,13 +447,15 @@ function ga_options_page() {
447
 
448
  echo "<select name='".key_ga_uid."'> ";
449
 
 
 
450
  foreach($uids as $id=>$domain):
451
 
452
  echo '<option value="'.$id.'"';
453
  // If set in DB.
454
- if( get_option(key_ga_uid) == $id ) { echo ' selected="selected"'; }
455
  // Else if the domain matches the current domain & nothing set in DB.
456
- elseif( $_SERVER['HTTP_HOST'] == $domain && ( get_option(key_ga_uid) != '' ) ) { echo ' selected="selected"'; }
457
  echo '>'.$domain.'</option>';
458
 
459
  endforeach;
@@ -497,6 +499,30 @@ function ga_options_page() {
497
  <p class="setting-description"><?php _e('Selecting "no" to this option will prevent logged in WordPress users from showing up on your Google Analytics reports. This setting will prevent yourself or other users from showing up in your Analytics reports. Use the next setting to determine what user groups to exclude.', 'google-analyticator'); ?></p>
498
  </td>
499
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
500
  <tr>
501
  <th width="30%" valign="top" style="padding-top: 10px;">
502
  <label for="<?php echo key_ga_admin_role ?>"><?php _e('User roles to not track', 'google-analyticator'); ?>:</label>
@@ -544,29 +570,6 @@ function ga_options_page() {
544
  <p class="setting-description"><?php _e('Selecting the "Remove" option will physically remove the tracking code from logged in users. Selecting the "Use \'admin\' variable" option will assign a variable called \'admin\' to logged in users. This option will allow Google Analytics\' site overlay feature to work, but you will have to manually configure Google Analytics to exclude tracking from pageviews with the \'admin\' variable.', 'google-analyticator'); ?></p>
545
  </td>
546
  </tr>
547
- <tr>
548
- <th width="30%" valign="top" style="padding-top: 10px;">
549
- <label for="<?php echo key_ga_sitespeed ?>"><?php _e('Site speed tracking', 'google-analyticator'); ?>:</label>
550
- </th>
551
- <td>
552
- <?php
553
- echo "<select name='".key_ga_sitespeed."' id='".key_ga_sitespeed."'>\n";
554
-
555
- echo "<option value='".ga_enabled."'";
556
- if(get_option(key_ga_sitespeed) == ga_enabled)
557
- echo " selected='selected'";
558
- echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
559
-
560
- echo "<option value='".ga_disabled."'";
561
- if(get_option(key_ga_sitespeed) == ga_disabled)
562
- echo" selected='selected'";
563
- echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
564
-
565
- echo "</select>\n";
566
- ?>
567
- <p class="setting-description"><?php _e('Disabling this option will turn off the tracking required for <a href="http://www.google.com/support/analyticshelp/bin/answer.py?hl=en&answer=1205784&topic=1120718&utm_source=gablog&utm_medium=blog&utm_campaign=newga-blog&utm_content=sitespeed">Google Analytics\' Site Speed tracking report</a>.', 'google-analyticator'); ?></p>
568
- </td>
569
- </tr>
570
  <tr>
571
  <td colspan="2">
572
  <h3>Link Tracking Settings</h3>
@@ -767,7 +770,7 @@ function ga_options_page() {
767
 
768
  </table>
769
  <p class="submit">
770
- <input type="submit" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" />
771
  </p>
772
 
773
  <a href="<?php echo admin_url('/options-general.php?page=ga_reset'); ?>"><?php _e('Deauthorize &amp; Reset Google Analyticator.', 'google-analyticator'); ?></a>
@@ -930,7 +933,11 @@ function add_google_analytics()
930
  $outbound_prefix = stripslashes(get_option(key_ga_outbound_prefix));
931
  $downloads_prefix = stripslashes(get_option(key_ga_downloads_prefix));
932
  $event_tracking = get_option(key_ga_event);
933
-
 
 
 
 
934
  ?>
935
  <script type="text/javascript">
936
  var analyticsFileTypes = [<?php echo strtolower($ext); ?>];
@@ -947,31 +954,30 @@ function add_google_analytics()
947
  var _gaq = _gaq || [];
948
  _gaq.push(['_setAccount', '<?php echo $uid; ?>']);
949
  _gaq.push(['_addDevId', 'i9k95']); // Google Analyticator App ID with Google
 
 
 
950
  <?php
951
 
952
- # Add any tracking code before the trackPageview
953
- do_action('google_analyticator_extra_js_before');
954
- if ( '' != $extra )
955
- echo " $extra\n";
956
 
957
- # Add the track pageview function
958
- echo " _gaq.push(['_trackPageview']);\n";
959
 
960
- # Add the site speed tracking
961
- if ( get_option(key_ga_sitespeed) == ga_enabled )
962
- echo " _gaq.push(['_trackPageLoadTime']);\n";
963
 
964
- # Disable page tracking if admin is logged in
965
- if ( ( get_option(key_ga_admin) == ga_disabled ) && ( ga_current_user_is(get_option(key_ga_admin_role)) ) )
966
- echo " _gaq.push(['_setCustomVar', 'admin']);\n";
 
967
 
968
- # Add any tracking code after the trackPageview
969
- do_action('google_analyticator_extra_js_after');
970
- if ( '' != $extra_after )
971
- echo " $extra_after\n";
972
-
973
- # Add the final section of the tracking code
974
- ?>
975
 
976
  (function() {
977
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
@@ -1045,6 +1051,3 @@ function ga_current_user_is($roles)
1045
 
1046
  return false;
1047
  }
1048
-
1049
-
1050
- ?>
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
+ * Version: 6.4
5
  * Plugin URI: http://wordpress.org/extend/plugins/google-analyticator/
6
  * Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
  * Author: Video User Manuals
9
  * Text Domain: google-analyticator
10
  */
11
 
12
+ define('GOOGLE_ANALYTICATOR_VERSION', '6.4');
13
 
14
  define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
15
  define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
36
  define("key_ga_downloads", "ga_downloads", true);
37
  define("key_ga_downloads_prefix", "ga_downloads_prefix", true);
38
  define("key_ga_widgets", "ga_widgets", true);
39
+ define("key_ga_annon", "ga_annon", true);
40
 
41
  define("ga_uid_default", "UA-XXXXXXXX-X", true);
42
  define("ga_google_token_default", "", true);
52
  define("ga_downloads_default", "", true);
53
  define("ga_downloads_prefix_default", "download", true);
54
  define("ga_widgets_default", ga_enabled, true);
 
55
 
56
  // Create the default key and status
57
+ add_option( 'ga_version', GOOGLE_ANALYTICATOR_VERSION );
58
  add_option(key_ga_status, ga_status_default, '');
59
  add_option(key_ga_uid, ga_uid_default, '');
60
  add_option(key_ga_admin, ga_admin_default, '');
69
  add_option(key_ga_outbound_prefix, ga_outbound_prefix_default, '');
70
  add_option(key_ga_downloads, ga_downloads_default, '');
71
  add_option(key_ga_downloads_prefix, ga_downloads_prefix_default, '');
 
72
  add_option(key_ga_widgets, ga_widgets_default, '');
73
+ add_option(key_ga_annon, false );
74
  add_option('ga_defaults', 'yes' );
75
  add_option('ga_google_token', '', '');
76
 
 
77
  $useAuth = ( get_option( 'ga_google_token' ) == '' ? false : true );
78
 
79
 
237
 
238
  function ga_do_reset()
239
  {
240
+ global $wpdb;
241
+
242
  // Delete all GA options.
243
  delete_option(key_ga_status);
244
  delete_option(key_ga_uid);
254
  delete_option(key_ga_outbound_prefix);
255
  delete_option(key_ga_downloads);
256
  delete_option(key_ga_downloads_prefix);
 
257
  delete_option(key_ga_widgets);
258
+ delete_option(key_ga_annon);
259
  delete_option('ga_defaults');
260
  delete_option('ga_google_token');
261
  delete_option('ga_google_authtoken');
262
  delete_option('ga_profileid');
263
+ delete_transient('ga_admin_stats_widget');
264
+
265
+ // Need to remove cached items from GA widgets
266
+ $wpdb->query( "delete from $wpdb->options where `option_name` like 'google_stats_visitsGraph_%'");
267
+
268
  wp_redirect( admin_url( 'options-general.php?page=ga_activate' ) );
269
  exit;
270
  }
368
  $ga_widgets = ga_widgets_default;
369
  update_option(key_ga_widgets, $ga_widgets);
370
 
371
+ // Update the widgets option
372
+ update_option(key_ga_annon, $_POST[key_ga_annon] );
373
 
374
+
 
 
 
 
 
375
  // Give an updated message
376
  echo "<div class='updated fade'><p><strong>" . __('Google Analyticator settings saved.', 'google-analyticator') . "</strong></p></div>";
377
  }
447
 
448
  echo "<select name='".key_ga_uid."'> ";
449
 
450
+ $hasSelected = false; // Will be set to true once a match is found. Cant echo selected twice.
451
+
452
  foreach($uids as $id=>$domain):
453
 
454
  echo '<option value="'.$id.'"';
455
  // If set in DB.
456
+ if( get_option(key_ga_uid) == $id ) { $hasSelected=true; echo ' selected="selected"'; }
457
  // Else if the domain matches the current domain & nothing set in DB.
458
+ elseif( ( $_SERVER['HTTP_HOST'] == $domain ) && ( ! $hasSelected ) ) { $hasSelected=true; echo ' selected="selected"'; }
459
  echo '>'.$domain.'</option>';
460
 
461
  endforeach;
499
  <p class="setting-description"><?php _e('Selecting "no" to this option will prevent logged in WordPress users from showing up on your Google Analytics reports. This setting will prevent yourself or other users from showing up in your Analytics reports. Use the next setting to determine what user groups to exclude.', 'google-analyticator'); ?></p>
500
  </td>
501
  </tr>
502
+ <tr>
503
+ <th width="30%" valign="top" style="padding-top: 10px;">
504
+ <label><?php _e('Anonymize IP Addresses', 'google-analyticator'); ?>:</label>
505
+ </th>
506
+ <td>
507
+ <?php
508
+ echo "<select name='".key_ga_annon."' id='".key_ga_annon."'>\n";
509
+
510
+ echo "<option value='0'";
511
+ if(get_option(key_ga_annon) == false )
512
+ echo " selected='selected'";
513
+ echo ">" . __('No', 'google-analyticator') . "</option>\n";
514
+
515
+ echo "<option value='1'";
516
+ if(get_option(key_ga_annon) == true)
517
+ echo" selected='selected'";
518
+ echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
519
+
520
+ echo "</select>\n";
521
+
522
+ ?>
523
+ <p class="setting-description"><?php _e('By selecting "Yes", This tells Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage. Note that this will slightly reduce the accuracy of geographic reporting.', 'google-analyticator'); ?></p>
524
+ </td>
525
+ </tr>
526
  <tr>
527
  <th width="30%" valign="top" style="padding-top: 10px;">
528
  <label for="<?php echo key_ga_admin_role ?>"><?php _e('User roles to not track', 'google-analyticator'); ?>:</label>
570
  <p class="setting-description"><?php _e('Selecting the "Remove" option will physically remove the tracking code from logged in users. Selecting the "Use \'admin\' variable" option will assign a variable called \'admin\' to logged in users. This option will allow Google Analytics\' site overlay feature to work, but you will have to manually configure Google Analytics to exclude tracking from pageviews with the \'admin\' variable.', 'google-analyticator'); ?></p>
571
  </td>
572
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
573
  <tr>
574
  <td colspan="2">
575
  <h3>Link Tracking Settings</h3>
770
 
771
  </table>
772
  <p class="submit">
773
+ <input type="submit" class="button button-primary" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" />
774
  </p>
775
 
776
  <a href="<?php echo admin_url('/options-general.php?page=ga_reset'); ?>"><?php _e('Deauthorize &amp; Reset Google Analyticator.', 'google-analyticator'); ?></a>
933
  $outbound_prefix = stripslashes(get_option(key_ga_outbound_prefix));
934
  $downloads_prefix = stripslashes(get_option(key_ga_downloads_prefix));
935
  $event_tracking = get_option(key_ga_event);
936
+
937
+
938
+ $need_to_annon = get_option(key_ga_annon);
939
+
940
+
941
  ?>
942
  <script type="text/javascript">
943
  var analyticsFileTypes = [<?php echo strtolower($ext); ?>];
954
  var _gaq = _gaq || [];
955
  _gaq.push(['_setAccount', '<?php echo $uid; ?>']);
956
  _gaq.push(['_addDevId', 'i9k95']); // Google Analyticator App ID with Google
957
+ <?php if ($need_to_annon == '1' ): ?>
958
+ _gaq.push(['_gat._anonymizeIp']);
959
+ <?php endif; ?>
960
  <?php
961
 
962
+ # Add any tracking code before the trackPageview
963
+ do_action('google_analyticator_extra_js_before');
964
+ if ( '' != $extra )
965
+ echo " $extra\n";
966
 
967
+ # Add the track pageview function
968
+ echo " _gaq.push(['_trackPageview']);\n";
969
 
970
+ # Disable page tracking if admin is logged in
971
+ if ( ( get_option(key_ga_admin) == ga_disabled ) && ( ga_current_user_is(get_option(key_ga_admin_role)) ) )
972
+ echo " _gaq.push(['_setCustomVar', 'admin']);\n";
973
 
974
+ # Add any tracking code after the trackPageview
975
+ do_action('google_analyticator_extra_js_after');
976
+ if ( '' != $extra_after )
977
+ echo " $extra_after\n";
978
 
979
+ # Add the final section of the tracking code
980
+ ?>
 
 
 
 
 
981
 
982
  (function() {
983
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
1051
 
1052
  return false;
1053
  }
 
 
 
google-analytics-stats-widget.php CHANGED
@@ -17,7 +17,7 @@ class GoogleStatsWidget extends WP_Widget
17
  function widget($args, $instance) {
18
  extract($args);
19
  $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title']);
20
- $acnt = $instance['account'];
21
  $timeFrame = empty($instance['timeFrame']) ? '1' : $instance['timeFrame'];
22
  $pageBg = empty($instance['pageBg']) ? 'fff' : $instance['pageBg'];
23
  $widgetBg = empty($instance['widgetBg']) ? '999' : $instance['widgetBg'];
@@ -86,16 +86,21 @@ class GoogleStatsWidget extends WP_Widget
86
 
87
  # Get the class for interacting with the Google Analytics
88
  require_once('class.analytics.stats.php');
89
-
90
  # Create a new Gdata call
91
  $stats = new GoogleAnalyticsStats();
92
 
93
  # Check if Google sucessfully logged in
94
  $login = $stats->checkLogin();
95
 
 
 
 
96
  # Get a list of accounts
97
  //$accounts = $stats->getAnalyticsAccounts();
98
  $accounts = $stats->getSingleProfile();
 
 
99
 
100
  # Output the options
101
  echo '<p style="text-align:right;"><label for="' . $this->get_field_name('title') . '">' . __('Title', 'google-analyticator') . ': <input style="width: 250px;" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" type="text" value="' . $title . '" /></label></p>';
@@ -186,60 +191,44 @@ class GoogleStatsWidget extends WP_Widget
186
  **/
187
  function getUniqueVisitors($account, $time = 1)
188
  {
189
- # Get the value from the database
190
- $visits = maybe_unserialize(get_option('google_stats_visits_' . $account));
 
191
 
192
- # Check to make sure the timeframe is an int and greater than one
193
- $time = (int) $time;
194
- if ( $time < 1 )
195
- $time = 1;
196
 
197
- # Check if the call has been made before
198
- if ( is_array($visits) ) {
199
 
200
- # Check if the last time called was within two hours, if so, return that
201
- if ( $visits['lastcalled'] > ( time() - 7200 ) )
202
- return $visits['unique'];
203
-
204
- }
205
 
206
- # If here, the call has not been made or it is expired
207
-
208
- # Get the current memory limit
209
- $current_mem_limit = substr(ini_get('memory_limit'), 0, -1);
210
 
211
- # Check if this limit is less than 96M, if so, increase it
212
- if ( $current_mem_limit < 96 || $current_mem_limit == '' ) {
213
- if ( function_exists('memory_get_usage') )
214
- @ini_set('memory_limit', '96M');
215
- }
216
 
217
- # Get the class for interacting with the Google Analytics
218
- require_once('class.analytics.stats.php');
 
219
 
220
- # Create a new Gdata call
221
- $stats = new GoogleAnalyticsStats();
222
-
223
- # Set the account to the one requested
224
- $stats->setAccount($account);
225
-
226
- # Get the latest stats
227
- $before = date('Y-m-d', strtotime('-' . $time . ' days'));
228
- $yesterday = date('Y-m-d', strtotime('-1 day'));
229
-
230
- # Check if Google sucessfully logged in
231
- if ( ! $stats->checkLogin() )
232
- return false;
233
 
234
- // may need to parse this still
235
- $result = $stats->getMetrics('ga:visitors', $before, $yesterday);
236
- $uniques = number_format($result->totalsForAllResults['ga:visitors']);
237
 
238
- # Store the array
239
- update_option('google_stats_visits_' . $account, array('unique'=>$uniques, 'lastcalled'=>time()));
240
 
241
- # Return the visits
242
- return $uniques;
243
  }
244
 
245
  }// END class
@@ -252,4 +241,3 @@ function GoogleStatsWidget_init() {
252
  }
253
 
254
  add_action('widgets_init', 'GoogleStatsWidget_init');
255
- ?>
17
  function widget($args, $instance) {
18
  extract($args);
19
  $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title']);
20
+ $acnt = false;
21
  $timeFrame = empty($instance['timeFrame']) ? '1' : $instance['timeFrame'];
22
  $pageBg = empty($instance['pageBg']) ? 'fff' : $instance['pageBg'];
23
  $widgetBg = empty($instance['widgetBg']) ? '999' : $instance['widgetBg'];
86
 
87
  # Get the class for interacting with the Google Analytics
88
  require_once('class.analytics.stats.php');
89
+
90
  # Create a new Gdata call
91
  $stats = new GoogleAnalyticsStats();
92
 
93
  # Check if Google sucessfully logged in
94
  $login = $stats->checkLogin();
95
 
96
+ if( !$login )
97
+ return false;
98
+
99
  # Get a list of accounts
100
  //$accounts = $stats->getAnalyticsAccounts();
101
  $accounts = $stats->getSingleProfile();
102
+
103
+
104
 
105
  # Output the options
106
  echo '<p style="text-align:right;"><label for="' . $this->get_field_name('title') . '">' . __('Title', 'google-analyticator') . ': <input style="width: 250px;" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" type="text" value="' . $title . '" /></label></p>';
191
  **/
192
  function getUniqueVisitors($account, $time = 1)
193
  {
194
+ // IF we have a cached version, return that, if not, continue on.
195
+ if ( get_transient( 'google_stats_uniques' ) )
196
+ return get_transient( 'google_stats_uniques' );
197
 
198
+ # Get the class for interacting with the Google Analytics
199
+ require_once('class.analytics.stats.php');
 
 
200
 
201
+ # Create a new Gdata call
202
+ $stats = new GoogleAnalyticsStats();
203
 
204
+ # Check if Google sucessfully logged in
205
+ if ( ! $stats->checkLogin() )
206
+ return false;
 
 
207
 
208
+ $account = $stats->getSingleProfile();
209
+ $account = $account[0]['id'];
 
 
210
 
211
+ # Set the account to the one requested
212
+ $stats->setAccount($account);
 
 
 
213
 
214
+ # Get the latest stats
215
+ $before = date('Y-m-d', strtotime('-' . $time . ' days'));
216
+ $yesterday = date('Y-m-d', strtotime('-1 day'));
217
 
218
+ try{
219
+ $result = $stats->getMetrics('ga:visitors', $before, $yesterday);
220
+ }
221
+ catch(Exception $e){
222
+ print 'GA Widget - there was a service error ' . $e->getCode() . ':' . $e->getMessage();
223
+ }
 
 
 
 
 
 
 
224
 
225
+ $uniques = number_format($result->totalsForAllResults['ga:visitors']);
 
 
226
 
227
+ # Store the array
228
+ set_transient( 'google_stats_uniques', $uniques, 60*60*12 );
229
 
230
+ # Return the visits
231
+ return $uniques;
232
  }
233
 
234
  }// END class
241
  }
242
 
243
  add_action('widgets_init', 'GoogleStatsWidget_init');
 
google-analytics-summary-widget.php CHANGED
@@ -7,52 +7,71 @@
7
  **/
8
  class GoogleAnalyticsSummary
9
  {
10
- var $api = false;
11
- var $id = false;
12
-
13
- /**
14
- * Start the process of including the widget
15
- **/
16
- function GoogleAnalyticsSummary()
17
- {
18
- add_action('wp_dashboard_setup', array($this, 'addDashboardWidget'));
19
- add_action('admin_print_scripts-index.php', array($this, 'addJavascript'));
20
- add_action('admin_head-index.php', array($this, 'addTopJs'));
21
- add_action('wp_ajax_ga_stats_widget', array($this, 'ajaxWidget'));
22
- }
23
-
24
- /**
25
- * Add the widget to the dashboard
26
- **/
27
- function addDashboardWidget()
28
- {
29
- # Check if the user is an admin
30
- if ( ga_current_user_is(get_option(key_ga_dashboard_role)) ) {
31
- wp_add_dashboard_widget('google-analytics-summary', __('Google Analytics Summary', 'google-analyticator'), array($this, 'widget'));
32
- }
33
- }
34
-
35
- /**
36
- * Add the scripts to the admin
37
- **/
38
- function addJavascript()
39
- {
40
- # Include the Sparklines graphing library
41
- wp_enqueue_script('jquery-sparklines', plugins_url('/google-analyticator/jquery.sparkline.min.js'), array('jquery'), '1.5.1');
42
- }
43
-
44
- /**
45
- * Add the Javascript to the top
46
- **/
47
- function addTopJs()
48
- {
49
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  <script type="text/javascript">
51
 
52
  jQuery(document).ready(function(){
53
 
54
  // Add a link to see full stats on the Analytics website
55
- jQuery('#google-analytics-summary h3.hndle span').append('<span class="postbox-title-action"><a href="http://google.com/analytics/" class="edit-box open-box"><?php _e('View Full Stat Report', 'google-analyticator'); ?></a></span>');
 
 
56
 
57
  // Grab the widget data
58
  jQuery.ajax({
@@ -60,7 +79,9 @@ class GoogleAnalyticsSummary
60
  url: 'admin-ajax.php',
61
  data: {
62
  action: 'ga_stats_widget',
63
- _ajax_nonce: '<?php echo wp_create_nonce("google-analyticator-statsWidget_get"); ?>'
 
 
64
  },
65
  success: function(html) {
66
  // Hide the loading message
@@ -81,528 +102,572 @@ class GoogleAnalyticsSummary
81
 
82
  </script>
83
  <?php
84
- }
85
-
86
- /**
87
- * The widget display
88
- **/
89
- function widget()
90
- {
91
- echo '<small>' . __('Loading', 'google-analyticator') . '...</small>';
92
- echo '<div class="target" style="display: none;"></div>';
93
- }
94
-
95
- /**
96
- * AJAX data for the widget
97
- **/
98
- function ajaxWidget()
99
- {
100
- # Check the ajax widget
101
- check_ajax_referer('google-analyticator-statsWidget_get');
102
-
103
- # Attempt to login and get the current account
104
- $account = $this->getAnalyticsAccount();
105
-
106
- $this->id = $account;
107
-
108
- $this->api->setAccount($this->id);
109
-
110
- # Check that we can display the widget before continuing
111
- if ( $account == false || $this->id == false ) {
112
- # Output error message
113
- echo '<p style="margin: 0;">' . __('No Analytics account selected. Double check you are authenticated with Google on Google Analyticator\'s settings page and make sure an account is selected.', 'google-analyticator') . '</p>';
114
-
115
- # Add Javascript variable to prevent breaking the Javascript
116
- echo '<script type="text/javascript">var ga_visits = [];</script>';
117
-
118
- die();
119
- }
120
-
121
- # Add the header information for the visits graph
122
- echo '<p class="ga_visits_title" style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; margin-top: 0px; color: #777; font-size: 13px;">' . __('Visits Over the Past 30 Days', 'google-analyticator') . '</p>';
123
-
124
- # Add the sparkline for the past 30 days
125
- $this->getVisitsGraph();
126
-
127
- # Add the summary header
128
- echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Site Usage', 'google-analyticator') . '</p>';
129
-
130
- # Add the visitor summary
131
- $this->getSiteUsage();
132
-
133
- # Add the top 5 posts header
134
- echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Top Pages', 'google-analyticator') . '</p>';
135
-
136
- # Add the top 5 posts
137
- $this->getTopPages();
138
-
139
- # Add the tab information
140
- echo '<table width="100%"><tr><td width="50%" valign="top">';
141
-
142
- # Add the top 5 referrers header
143
- echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Top Referrers', 'google-analyticator') . '</p>';
144
-
145
- # Add the referrer information
146
- $this->getTopReferrers();
147
-
148
- # Add the second column
149
- echo '</td><td valign="top">';
150
-
151
- # Add the top 5 search header
152
- echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Top Searches', 'google-analyticator') . '</p>';
153
-
154
- # Add the search information
155
- $this->getTopSearches();
156
-
157
- # Close the table
158
- echo '</td></tr></table>';
159
-
160
- die();
161
- }
162
-
163
- /**
164
- * Get the current analytics account
165
- *
166
- * @return the analytics account
167
- **/
168
- function getAnalyticsAccount()
169
- {
170
- $accounts = array();
171
-
172
- # Get the class for interacting with the Google Analytics
173
- require_once('class.analytics.stats.php');
174
-
175
- # Create a new Gdata call
176
- $this->api = new GoogleAnalyticsStats();
177
-
178
- # Check if Google sucessfully logged in
179
- if ( ! $this->api->checkLogin() )
180
- return false;
181
-
182
- # Get a list of accounts
183
- //$accounts = $this->api->getAnalyticsAccounts();
184
- $accounts = $this->api->getSingleProfile();
185
-
186
- # Check if we actually have accounts
187
- if ( !is_array($accounts) )
188
- return false;
189
-
190
- # Check if we have a list of accounts
191
- if ( count($accounts) <= 0 )
192
- return false;
193
-
194
- # Loop throught the account and return the current account
195
- foreach ( $accounts AS $account ) {
196
- # Check if the UID matches the selected UID
197
- if ( $account['ga:webPropertyId'] == get_option('ga_uid') )
198
- return $account['id'];
199
- }
200
-
201
- return false;
202
- }
203
-
204
- /**
205
- * Get the visitors graph
206
- **/
207
- function getVisitsGraph()
208
- {
209
- # Get the value from the database
210
- $cached = maybe_unserialize(get_option('google_stats_visitsGraph_' . $this->id));
211
- $updated = false;
212
-
213
- # Check if the call has been made before
214
- if ( is_array($cached) ) {
215
-
216
- # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
217
- if ( $cached['lastcalled'] > ( time() - 7200 ) ) {
218
- $updated = true;
219
- $stats = $cached['stats'];
220
- }
221
-
222
- }
223
-
224
- # If the stats need to be updated
225
- if ( ! $updated ) {
226
-
227
- # Get the metrics needed to build the visits graph
228
- $before = date('Y-m-d', strtotime('-31 days'));
229
- $yesterday = date('Y-m-d', strtotime('-1 day'));
230
-
231
- $stats = $this->api->getMetrics('ga:visits', $before, $yesterday, 'ga:date', 'ga:date');
232
-
233
- # Store the serialized stats in the database
234
- update_option('google_stats_visitsGraph_' . $this->id, array('stats'=>$stats, 'lastcalled'=>time()));
235
-
236
- }
237
-
238
- # Create a list of the data points for graphing
239
- $data = '';
240
- $max = 0;
241
-
242
- $rows = $stats->getRows();
243
-
244
- # Check the size of the stats array
245
- if ( !isset($rows) || !is_array($rows) || count($rows) <= 0 ) {
246
- $data = '0,0';
247
- } else {
248
- foreach ( $rows AS $stat ) {
249
- # Verify the number is numeric
250
- if ( is_numeric($stat[1]) )
251
- $data .= $stat[1] . ',';
252
- else
253
- $data .= '0,';
254
-
255
- # Update the max value if greater
256
- if ( $max < $stat[1] )
257
- $max = $stat[1];
258
-
259
- }
260
-
261
- $yesterday_count = $rows[count($rows)-1][1];
262
-
263
- # Shorten the string to remove the last comma
264
- $data = substr($data, 0, -1);
265
- }
266
-
267
- # Add a fake stat if need be
268
- if ( !isset($stat[1]) )
269
- $stat[1] = 0;
270
-
271
- # Output the graph
272
- echo '<script type="text/javascript">var ga_visits = [' . $data . '];</script>';
273
- echo '<span class="ga_visits" title="' . sprintf(__('The most visits on a single day was %d. Yesterday there were %d visits.', 'google-analyticator'), $max, $yesterday_count) . '"></span>';
274
- }
275
-
276
- /**
277
- * Get the site usage
278
- **/
279
- function getSiteUsage()
280
- {
281
- # Get the value from the database
282
- $cached = maybe_unserialize(get_option('google_stats_siteUsage_' . $this->id));
283
- $updated = false;
284
-
285
- # Check if the call has been made before
286
- if ( is_array($cached) ) {
287
-
288
- # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
289
- if ( $cached['lastcalled'] > ( time() - 7200 ) ) {
290
- $updated = true;
291
- $stats = $cached['stats'];
292
- }
293
-
294
- }
295
-
296
- # If the stats need to be updated
297
- if ( ! $updated ) {
298
-
299
- # Get the metrics needed to build the usage table
300
- $before = date('Y-m-d', strtotime('-31 days'));
301
- $yesterday = date('Y-m-d', strtotime('-1 day'));
302
- $stats = $this->api->getMetrics('ga:visits,ga:bounces,ga:entrances,ga:pageviews,ga:timeOnSite,ga:newVisits', $before, $yesterday);
303
-
304
- # Store the serialized stats in the database
305
- update_option('google_stats_siteUsage_' . $this->id, array('stats'=>$stats, 'lastcalled'=>time()));
306
-
307
- }
308
-
309
- # Create the site usage table
310
- if ( isset($stats->totalsForAllResults) ) {
311
- ?>
312
  <table width="100%">
313
  <tr>
314
- <td width=""><strong><?php echo number_format($stats->totalsForAllResults['ga:visits']); ?></strong></td>
315
- <td width=""><?php _e('Visits', 'google-analyticator'); ?></td>
316
- <?php if ( $stats->totalsForAllResults['ga:entrances'] <= 0 ) { ?>
 
 
 
 
 
 
317
  <td width="20%"><strong>0.00%</strong></td>
318
- <?php } else { ?>
319
- <td width="20%"><strong><?php echo number_format(round(($stats->totalsForAllResults['ga:bounces']/$stats->totalsForAllResults['ga:entrances'])*100, 2), 2); ?>%</strong></td>
320
- <?php } ?>
321
- <td width="30%"><?php _e('Bounce Rate', 'google-analyticator'); ?></td>
 
 
 
 
 
 
 
 
322
  </tr>
323
  <tr>
324
- <td><strong><?php echo number_format($stats->totalsForAllResults['ga:pageviews']); ?></strong></td>
325
- <td><?php _e('Pageviews', 'google-analyticator'); ?></td>
326
- <?php if ( $stats->totalsForAllResults['ga:visits'] <= 0 ) { ?>
 
 
 
 
 
 
327
  <td><strong>00:00:00</strong></td>
328
- <?php } else { ?>
329
- <td><strong><?php echo $this->sec2Time($stats->totalsForAllResults['ga:timeOnSite']/$stats->totalsForAllResults['ga:visits']); ?></strong></td>
330
- <?php } ?>
331
- <td><?php _e('Avg. Time on Site', 'google-analyticator'); ?></td>
 
 
 
 
 
 
 
 
332
  </tr>
333
  <tr>
334
- <?php if ( $stats->totalsForAllResults['ga:visits'] <= 0 ) { ?>
 
 
335
  <td><strong>0.00</strong></td>
336
- <?php } else { ?>
337
- <td><strong><?php echo number_format(round($stats->totalsForAllResults['ga:pageviews']/$stats->totalsForAllResults['ga:visits'], 2), 2); ?></strong></td>
338
- <?php } ?>
339
- <td><?php _e('Pages/Visit', 'google-analyticator'); ?></td>
340
- <?php if ( $stats->totalsForAllResults['ga:visits'] <= 0 ) { ?>
 
 
 
 
 
 
 
 
 
 
341
  <td><strong>0.00%</strong></td>
342
- <?php } else { ?>
343
- <td><strong><?php echo number_format(round(($stats->totalsForAllResults['ga:newVisits']/$stats->totalsForAllResults['ga:visits'])*100, 2), 2); ?>%</strong></td>
344
- <?php } ?>
345
- <td><?php _e('% New Visits', 'google-analyticator'); ?></td>
 
 
 
 
 
 
 
 
346
  </tr>
347
  </table>
348
  <?php
349
- }
350
- }
351
-
352
- /**
353
- * Get the top pages
354
- **/
355
- function getTopPages()
356
- {
357
- # Get the value from the database
358
- $cached = maybe_unserialize(get_option('google_stats_topPages_' . $this->id));
359
- $updated = false;
360
-
361
- # Check if the call has been made before
362
- if ( is_array($cached) ) {
363
-
364
- # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
365
- if ( $cached['lastcalled'] > ( time() - 7200 ) ) {
366
- $updated = true;
367
- $stats = $cached['stats'];
368
- }
369
-
370
- }
371
-
372
- # If the stats need to be updated
373
- if ( ! $updated ) {
374
-
375
- # Get the metrics needed to build the top pages
376
- $before = date('Y-m-d', strtotime('-31 days'));
377
- $yesterday = date('Y-m-d', strtotime('-1 day'));
378
- $stats = $this->api->getMetrics('ga:pageviews', $before, $yesterday, 'ga:pageTitle,ga:pagePath', '-ga:pageviews', 'ga:pagePath!=/', 10); //'ga:pagePath!%3D%2F'
379
-
380
- # Store the serialized stats in the database
381
- update_option('google_stats_topPages_' . $this->id, array('stats'=>$stats, 'lastcalled'=>time()));
382
-
383
- }
384
-
385
- $rows = $stats->getRows();
386
-
387
- # Check the size of the stats array
388
- if ( count($rows) <= 0 || !is_array($rows) ) {
389
- echo '<p>' . __('There is no data for view.', 'google-analyticator') . '</p>';
390
- } else {
391
- # Build the top pages list
392
- echo '<ol>';
393
-
394
- # Set variables needed to correct (not set) bug
395
- $new_stats = array();
396
- $notset_stats = array();
397
-
398
- # Loop through each stat and create a new array
399
- foreach ( $rows AS $stat ) {
400
- # If the stat is not set
401
- if ( $stat[0] == '(not set)' ) {
402
- # Add it to separate array
403
- $notset_stats[] = $stat;
404
- } else {
405
- # Add it to new array with index set
406
- $new_stats[$stat[1]] = $stat;
407
- }
408
- }
409
-
410
- # Loop through all the (not set) stats and attempt to add them to their correct stat
411
- foreach ( $notset_stats AS $stat ) {
412
- # If the stat has a "partner"
413
- if ( $new_stats[$stat[1]] != NULL ) {
414
- # Add the pageviews to the stat
415
- $new_stats[$stat[1]][2] = $new_stats[$stat[1]][2] + $stat[2];
416
- } else {
417
- # Stat goes to the ether since we couldn't find a partner (if anyone reads this and has a suggestion to improve, let me know)
418
- }
419
- }
420
-
421
- # Renew new_stats back to stats
422
- $stats = $new_stats;
423
-
424
- # Sort the stats array, since adding the (not set) items may have changed the order
425
- usort($stats, array($this, 'statSort'));
426
-
427
- # Since we can no longer rely on the API as a limiter, we need to keep track of this ourselves
428
- $stat_count = 0;
429
-
430
- # Loop through each stat for display
431
- foreach ( $stats AS $stat ) {
432
- echo '<li><a href="' . esc_url($stat[1]) . '">' . esc_html($stat[0]) . '</a> - ' . number_format($stat[2]) . ' ' . __('Views', 'google-analyticator') . '</li>';
433
-
434
- # Increase the stat counter
435
- $stat_count++;
436
-
437
- # Stop at 5
438
- if ( $stat_count >= 5 )
439
- break;
440
- }
441
-
442
- # Finish the list
443
- echo '</ol>';
444
- }
445
- }
446
-
447
- /**
448
- * Get the top referrers
449
- **/
450
- function getTopReferrers()
451
- {
452
- # Get the value from the database
453
- $cached = maybe_unserialize(get_option('google_stats_topReferrers_' . $this->id));
454
- $updated = false;
455
-
456
- # Check if the call has been made before
457
- if ( is_array($cached) ) {
458
-
459
- # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
460
- if ( $cached['lastcalled'] > ( time() - 7200 ) ) {
461
- $updated = true;
462
- $stats = $cached['stats'];
463
- }
464
-
465
- }
466
-
467
- # If the stats need to be updated
468
- if ( ! $updated ) {
469
-
470
- # Get the metrics needed to build the top referrers
471
- $before = date('Y-m-d', strtotime('-31 days'));
472
- $yesterday = date('Y-m-d', strtotime('-1 day'));
473
- $stats = $this->api->getMetrics('ga:visits', $before, $yesterday, 'ga:source,ga:medium', '-ga:visits', 'ga:medium==referral', '5');
474
-
475
- # Store the serialized stats in the database
476
- update_option('google_stats_topReferrers_' . $this->id, array('stats'=>$stats, 'lastcalled'=>time()));
477
-
478
- }
479
-
480
- $rows = $stats->getRows();
481
-
482
- # Check the size of the stats array
483
- if ( count($rows) <= 0 || !is_array($rows) ) {
484
- echo '<p>' . __('There is no data for view.', 'google-analyticator') . '</p>';
485
- } else {
486
- # Build the top pages list
487
- echo '<ol>';
488
-
489
- # Loop through each stat
490
- foreach ( $rows AS $stat ) {
491
- echo '<li><strong>' . esc_html($stat[0]) . '</strong> - ' . number_format($stat[2]) . ' ' . __('Visits', 'google-analyticator') . '</li>';
492
- }
493
-
494
- # Finish the list
495
- echo '</ol>';
496
- }
497
- }
498
-
499
- /**
500
- * Get the top searches
501
- **/
502
- function getTopSearches()
503
- {
504
- # Get the value from the database
505
- $cached = maybe_unserialize(get_option('google_stats_topSearches_' . $this->id));
506
- $updated = false;
507
-
508
- # Check if the call has been made before
509
- if ( is_array($cached) ) {
510
-
511
- # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
512
- if ( $cached['lastcalled'] > ( time() - 7200 ) ) {
513
- $updated = true;
514
- $stats = $cached['stats'];
515
- }
516
-
517
- }
518
-
519
- # If the stats need to be updated
520
- if ( ! $updated ) {
521
-
522
- # Get the metrics needed to build the top searches
523
- $before = date('Y-m-d', strtotime('-31 days'));
524
- $yesterday = date('Y-m-d', strtotime('-1 day'));
525
- $stats = $this->api->getMetrics('ga:visits', $before, $yesterday, 'ga:keyword', '-ga:visits', 'ga:keyword!=(not set)', '5'); //'ga:keyword!=(not_set)'
526
-
527
- # Store the serialized stats in the database
528
- update_option('google_stats_topSearches_' . $this->id, array('stats'=>$stats, 'lastcalled'=>time()));
529
-
530
- }
531
-
532
- $rows = $stats->getRows();
533
-
534
- # Check the size of the stats array
535
- if ( count($rows) <= 0 || !is_array($rows) ) {
536
- echo '<p>' . __('There is no data for view.', 'google-analyticator') . '</p>';
537
- } else {
538
- # Build the top pages list
539
- echo '<ol>';
540
-
541
- # Loop through each stat
542
- foreach ( $rows AS $stat ) {
543
- echo '<li><strong>' . esc_html($stat[0]) . '</strong> - ' . number_format($stat[1]) . ' ' . __('Visits', 'google-analyticator') . '</li>';
544
- }
545
-
546
- # Finish the list
547
- echo '</ol>';
548
- }
549
- }
550
-
551
- /**
552
- * Sort a set of stats in descending order
553
- *
554
- * @return how the stat should be sorted
555
- **/
556
- function statSort($x, $y)
557
- {
558
- if ( $x[2] == $y[2] )
559
- return 0;
560
- elseif ( $x[2] < $y[2] )
561
- return 1;
562
- else
563
- return -1;
564
- }
565
-
566
- /**
567
- * Convert second to a time format
568
- **/
569
- function sec2Time($time)
570
- {
571
- # Check if numeric
572
- if ( is_numeric($time) ) {
573
- $value = array(
574
- "years" => '00',
575
- "days" => '00',
576
- "hours" => '00',
577
- "minutes" => '00',
578
- "seconds" => '00'
579
- );
580
- if ( $time >= 31556926 ) {
581
- $value["years"] = floor($time/31556926);
582
- $time = ($time%31556926);
583
- }
584
- if ( $time >= 86400 ) {
585
- $value["days"] = floor($time/86400);
586
- $time = ($time%86400);
587
- }
588
- if ( $time >= 3600 ) {
589
- $value["hours"] = str_pad(floor($time/3600), 2, 0, STR_PAD_LEFT);
590
- $time = ($time%3600);
591
- }
592
- if ( $time >= 60 ) {
593
- $value["minutes"] = str_pad(floor($time/60), 2, 0, STR_PAD_LEFT);
594
- $time = ($time%60);
595
- }
596
- $value["seconds"] = str_pad(floor($time), 2, 0, STR_PAD_LEFT);
597
-
598
- # Get the hour:minute:second version
599
- return $value['hours'] . ':' . $value['minutes'] . ':' . $value['seconds'];
600
- } else {
601
- return false;
602
- }
603
- }
604
-
605
-
606
-
607
-
 
 
 
 
 
 
608
  } // END class
7
  **/
8
  class GoogleAnalyticsSummary
9
  {
10
+ var $api = false;
11
+ var $id = false;
12
+
13
+ /**
14
+ * Start the process of including the widget
15
+ **/
16
+ function GoogleAnalyticsSummary()
17
+ {
18
+ add_action('wp_dashboard_setup', array(
19
+ $this,
20
+ 'addDashboardWidget'
21
+ ));
22
+ add_action('admin_print_scripts-index.php', array(
23
+ $this,
24
+ 'addJavascript'
25
+ ));
26
+ add_action('admin_head-index.php', array(
27
+ $this,
28
+ 'addTopJs'
29
+ ));
30
+ add_action('wp_ajax_ga_stats_widget', array(
31
+ $this,
32
+ 'ajaxWidget'
33
+ ));
34
+ }
35
+
36
+ /**
37
+ * Add the widget to the dashboard
38
+ **/
39
+ function addDashboardWidget()
40
+ {
41
+ # Check if the user is an admin
42
+ if (ga_current_user_is(get_option(key_ga_dashboard_role))) {
43
+ wp_add_dashboard_widget('google-analytics-summary', __('Google Analytics Summary', 'google-analyticator'), array(
44
+ $this,
45
+ 'widget'
46
+ ));
47
+ }
48
+ }
49
+
50
+ /**
51
+ * Add the scripts to the admin
52
+ **/
53
+ function addJavascript()
54
+ {
55
+ # Include the Sparklines graphing library
56
+ wp_enqueue_script('jquery-sparklines', plugins_url('/google-analyticator/jquery.sparkline.min.js'), array(
57
+ 'jquery'
58
+ ), '1.5.1');
59
+ }
60
+
61
+ /**
62
+ * Add the Javascript to the top
63
+ **/
64
+ function addTopJs()
65
+ {
66
+ ?>
67
  <script type="text/javascript">
68
 
69
  jQuery(document).ready(function(){
70
 
71
  // Add a link to see full stats on the Analytics website
72
+ jQuery('#google-analytics-summary h3.hndle span').append('<span class="postbox-title-action"><a href="http://google.com/analytics/" class="edit-box open-box"><?php
73
+ _e('View Full Stat Report', 'google-analyticator');
74
+ ?></a></span>');
75
 
76
  // Grab the widget data
77
  jQuery.ajax({
79
  url: 'admin-ajax.php',
80
  data: {
81
  action: 'ga_stats_widget',
82
+ _ajax_nonce: '<?php
83
+ echo wp_create_nonce("google-analyticator-statsWidget_get");
84
+ ?>'
85
  },
86
  success: function(html) {
87
  // Hide the loading message
102
 
103
  </script>
104
  <?php
105
+ }
106
+
107
+ /**
108
+ * The widget display
109
+ **/
110
+ function widget()
111
+ {
112
+ echo '<small>' . __('Loading', 'google-analyticator') . '...</small>';
113
+ echo '<div class="target" style="display: none;"></div>';
114
+ }
115
+
116
+ /**
117
+ * AJAX data for the widget
118
+ **/
119
+ function ajaxWidget()
120
+ {
121
+ # Check the ajax widget
122
+ check_ajax_referer('google-analyticator-statsWidget_get');
123
+
124
+ # Attempt to login and get the current account
125
+ $account = $this->getAnalyticsAccount();
126
+
127
+ $this->id = $account;
128
+
129
+ $this->api->setAccount($this->id);
130
+
131
+ # Check that we can display the widget before continuing
132
+ if ($account == false || $this->id == false) {
133
+ # Output error message
134
+ echo '<p style="margin: 0;">' . __('No Analytics account selected. Double check you are authenticated with Google on Google Analyticator\'s settings page and make sure an account is selected.', 'google-analyticator') . '</p>';
135
+
136
+ # Add Javascript variable to prevent breaking the Javascript
137
+ echo '<script type="text/javascript">var ga_visits = [];</script>';
138
+
139
+ die();
140
+ }
141
+
142
+ # Add the header information for the visits graph
143
+ echo '<p class="ga_visits_title" style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; margin-top: 0px; color: #777; font-size: 13px;">' . __('Visits Over the Past 30 Days', 'google-analyticator') . '</p>';
144
+
145
+ # Add the sparkline for the past 30 days
146
+ $this->getVisitsGraph();
147
+
148
+ # Add the summary header
149
+ echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Site Usage', 'google-analyticator') . '</p>';
150
+
151
+ # Add the visitor summary
152
+ $this->getSiteUsage();
153
+
154
+ # Add the top 5 posts header
155
+ echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Top Pages', 'google-analyticator') . '</p>';
156
+
157
+ # Add the top 5 posts
158
+ $this->getTopPages();
159
+
160
+ # Add the tab information
161
+ echo '<table width="100%"><tr><td width="50%" valign="top">';
162
+
163
+ # Add the top 5 referrers header
164
+ echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Top Referrers', 'google-analyticator') . '</p>';
165
+
166
+ # Add the referrer information
167
+ $this->getTopReferrers();
168
+
169
+ # Add the second column
170
+ echo '</td><td valign="top">';
171
+
172
+ # Add the top 5 search header
173
+ echo '<p style="font-style: italic; font-family: Georgia, \'Times New Roman\', \'Bitstream Charter\', Times, serif; color: #777; font-size: 13px;">' . __('Top Searches', 'google-analyticator') . '</p>';
174
+
175
+ # Add the search information
176
+ $this->getTopSearches();
177
+
178
+ # Close the table
179
+ echo '</td></tr></table>';
180
+
181
+ die();
182
+ }
183
+
184
+ /**
185
+ * Get the current analytics account
186
+ *
187
+ * @return the analytics account
188
+ **/
189
+ function getAnalyticsAccount()
190
+ {
191
+ $accounts = array();
192
+
193
+ # Get the class for interacting with the Google Analytics
194
+ require_once('class.analytics.stats.php');
195
+
196
+ # Create a new Gdata call
197
+ $this->api = new GoogleAnalyticsStats();
198
+
199
+ # Check if Google sucessfully logged in
200
+ if (!$this->api->checkLogin())
201
+ return false;
202
+
203
+ # Get a list of accounts
204
+ //$accounts = $this->api->getAnalyticsAccounts();
205
+ $accounts = $this->api->getSingleProfile();
206
+
207
+ # Check if we actually have accounts
208
+ if (!is_array($accounts))
209
+ return false;
210
+
211
+ # Check if we have a list of accounts
212
+ if (count($accounts) <= 0)
213
+ return false;
214
+
215
+ # Loop throught the account and return the current account
216
+ foreach ($accounts AS $account) {
217
+ # Check if the UID matches the selected UID
218
+ if ($account['ga:webPropertyId'] == get_option('ga_uid'))
219
+ return $account['id'];
220
+ }
221
+
222
+ return false;
223
+ }
224
+
225
+ /**
226
+ * Get the visitors graph
227
+ **/
228
+ function getVisitsGraph()
229
+ {
230
+ if (false === ($output = get_transient('ga_admin_stats_widget')) || ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) {
231
+ # Get the metrics needed to build the visits graph
232
+ $before = date('Y-m-d', strtotime('-31 days'));
233
+ $yesterday = date('Y-m-d', strtotime('-1 day'));
234
+
235
+ try {
236
+ $stats = $this->api->getMetrics('ga:visits', $before, $yesterday, 'ga:date', 'ga:date');
237
+ }
238
+ catch (Exception $e) {
239
+ print 'GA Summary Widget - there was a service error ' . $e->getCode() . ':' . $e->getMessage();
240
+ }
241
+
242
+ # Create a list of the data points for graphing
243
+ $data = '';
244
+ $max = 0;
245
+
246
+ $rows = $stats->getRows();
247
+
248
+ # Check the size of the stats array
249
+ if (!isset($rows) || !is_array($rows) || count($rows) <= 0) {
250
+ $data = '0,0';
251
+ } else {
252
+ foreach ($rows AS $stat) {
253
+ # Verify the number is numeric
254
+ if (is_numeric($stat[1]))
255
+ $data .= $stat[1] . ',';
256
+ else
257
+ $data .= '0,';
258
+
259
+ # Update the max value if greater
260
+ if ($max < $stat[1])
261
+ $max = $stat[1];
262
+
263
+ }
264
+
265
+ $yesterday_count = $rows[count($rows) - 1][1];
266
+
267
+ # Shorten the string to remove the last comma
268
+ $data = substr($data, 0, -1);
269
+ }
270
+
271
+ # Add a fake stat if need be
272
+ if (!isset($stat[1]))
273
+ $stat[1] = 0;
274
+
275
+ # Output the graph
276
+ $output = '<script type="text/javascript">var ga_visits = [' . $data . '];</script>';
277
+ $output .= '<span class="ga_visits" title="' . sprintf(__('The most visits on a single day was %d. Yesterday there were %d visits.', 'google-analyticator'), $max, $yesterday_count) . '"></span>';
278
+
279
+ # Save output for 12 hours.
280
+ set_transient('ga_admin_stats_widget', $output, 60 * 60 * 12);
281
+ }
282
+
283
+ echo $output;
284
+ }
285
+
286
+ /**
287
+ * Get the site usage
288
+ **/
289
+ function getSiteUsage()
290
+ {
291
+ # Get the value from the database
292
+ $cached = maybe_unserialize(get_option('google_stats_siteUsage_' . $this->id));
293
+ $updated = false;
294
+
295
+ # Check if the call has been made before
296
+ if (is_array($cached)) {
297
+ # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
298
+ if ($cached['lastcalled'] > (time() - 7200)) {
299
+ $updated = true;
300
+ $stats = $cached['stats'];
301
+ }
302
+
303
+ }
304
+
305
+ # If the stats need to be updated
306
+ if (!$updated) {
307
+ # Get the metrics needed to build the usage table
308
+ $before = date('Y-m-d', strtotime('-31 days'));
309
+ $yesterday = date('Y-m-d', strtotime('-1 day'));
310
+ $stats = $this->api->getMetrics('ga:visits,ga:bounces,ga:entrances,ga:pageviews,ga:timeOnSite,ga:newVisits', $before, $yesterday);
311
+
312
+ # Store the serialized stats in the database
313
+ update_option('google_stats_siteUsage_' . $this->id, array(
314
+ 'stats' => $stats,
315
+ 'lastcalled' => time()
316
+ ));
317
+
318
+ }
319
+
320
+ # Create the site usage table
321
+ if (isset($stats->totalsForAllResults)) {
322
+ ?>
 
 
 
 
 
 
 
 
 
 
323
  <table width="100%">
324
  <tr>
325
+ <td width=""><strong><?php
326
+ echo number_format($stats->totalsForAllResults['ga:visits']);
327
+ ?></strong></td>
328
+ <td width=""><?php
329
+ _e('Visits', 'google-analyticator');
330
+ ?></td>
331
+ <?php
332
+ if ($stats->totalsForAllResults['ga:entrances'] <= 0) {
333
+ ?>
334
  <td width="20%"><strong>0.00%</strong></td>
335
+ <?php
336
+ } else {
337
+ ?>
338
+ <td width="20%"><strong><?php
339
+ echo number_format(round(($stats->totalsForAllResults['ga:bounces'] / $stats->totalsForAllResults['ga:entrances']) * 100, 2), 2);
340
+ ?>%</strong></td>
341
+ <?php
342
+ }
343
+ ?>
344
+ <td width="30%"><?php
345
+ _e('Bounce Rate', 'google-analyticator');
346
+ ?></td>
347
  </tr>
348
  <tr>
349
+ <td><strong><?php
350
+ echo number_format($stats->totalsForAllResults['ga:pageviews']);
351
+ ?></strong></td>
352
+ <td><?php
353
+ _e('Pageviews', 'google-analyticator');
354
+ ?></td>
355
+ <?php
356
+ if ($stats->totalsForAllResults['ga:visits'] <= 0) {
357
+ ?>
358
  <td><strong>00:00:00</strong></td>
359
+ <?php
360
+ } else {
361
+ ?>
362
+ <td><strong><?php
363
+ echo $this->sec2Time($stats->totalsForAllResults['ga:timeOnSite'] / $stats->totalsForAllResults['ga:visits']);
364
+ ?></strong></td>
365
+ <?php
366
+ }
367
+ ?>
368
+ <td><?php
369
+ _e('Avg. Time on Site', 'google-analyticator');
370
+ ?></td>
371
  </tr>
372
  <tr>
373
+ <?php
374
+ if ($stats->totalsForAllResults['ga:visits'] <= 0) {
375
+ ?>
376
  <td><strong>0.00</strong></td>
377
+ <?php
378
+ } else {
379
+ ?>
380
+ <td><strong><?php
381
+ echo number_format(round($stats->totalsForAllResults['ga:pageviews'] / $stats->totalsForAllResults['ga:visits'], 2), 2);
382
+ ?></strong></td>
383
+ <?php
384
+ }
385
+ ?>
386
+ <td><?php
387
+ _e('Pages/Visit', 'google-analyticator');
388
+ ?></td>
389
+ <?php
390
+ if ($stats->totalsForAllResults['ga:visits'] <= 0) {
391
+ ?>
392
  <td><strong>0.00%</strong></td>
393
+ <?php
394
+ } else {
395
+ ?>
396
+ <td><strong><?php
397
+ echo number_format(round(($stats->totalsForAllResults['ga:newVisits'] / $stats->totalsForAllResults['ga:visits']) * 100, 2), 2);
398
+ ?>%</strong></td>
399
+ <?php
400
+ }
401
+ ?>
402
+ <td><?php
403
+ _e('% New Visits', 'google-analyticator');
404
+ ?></td>
405
  </tr>
406
  </table>
407
  <?php
408
+ }
409
+ }
410
+
411
+ /**
412
+ * Get the top pages
413
+ **/
414
+ function getTopPages()
415
+ {
416
+ # Get the value from the database
417
+ $cached = maybe_unserialize(get_option('google_stats_topPages_' . $this->id));
418
+ $updated = false;
419
+
420
+ # Check if the call has been made before
421
+ if (is_array($cached)) {
422
+ # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
423
+ if ($cached['lastcalled'] > (time() - 7200)) {
424
+ $updated = true;
425
+ $stats = $cached['stats'];
426
+ }
427
+
428
+ }
429
+
430
+ # If the stats need to be updated
431
+ if (!$updated) {
432
+ # Get the metrics needed to build the top pages
433
+ $before = date('Y-m-d', strtotime('-31 days'));
434
+ $yesterday = date('Y-m-d', strtotime('-1 day'));
435
+ $stats = $this->api->getMetrics('ga:pageviews', $before, $yesterday, 'ga:pageTitle,ga:pagePath', '-ga:pageviews', 'ga:pagePath!=/', 10); //'ga:pagePath!%3D%2F'
436
+
437
+ # Store the serialized stats in the database
438
+ update_option('google_stats_topPages_' . $this->id, array(
439
+ 'stats' => $stats,
440
+ 'lastcalled' => time()
441
+ ));
442
+
443
+ }
444
+
445
+ $rows = $stats->getRows();
446
+
447
+ # Check the size of the stats array
448
+ if (count($rows) <= 0 || !is_array($rows)) {
449
+ echo '<p>' . __('There is no data for view.', 'google-analyticator') . '</p>';
450
+ } else {
451
+ # Build the top pages list
452
+ echo '<ol>';
453
+
454
+ # Set variables needed to correct (not set) bug
455
+ $new_stats = array();
456
+ $notset_stats = array();
457
+
458
+ # Loop through each stat and create a new array
459
+ foreach ($rows AS $stat) {
460
+ # If the stat is not set
461
+ if ($stat[0] == '(not set)') {
462
+ # Add it to separate array
463
+ $notset_stats[] = $stat;
464
+ } else {
465
+ # Add it to new array with index set
466
+ $new_stats[$stat[1]] = $stat;
467
+ }
468
+ }
469
+
470
+ # Loop through all the (not set) stats and attempt to add them to their correct stat
471
+ foreach ($notset_stats AS $stat) {
472
+ # If the stat has a "partner"
473
+ if ($new_stats[$stat[1]] != NULL) {
474
+ # Add the pageviews to the stat
475
+ $new_stats[$stat[1]][2] = $new_stats[$stat[1]][2] + $stat[2];
476
+ } else {
477
+ # Stat goes to the ether since we couldn't find a partner (if anyone reads this and has a suggestion to improve, let me know)
478
+ }
479
+ }
480
+
481
+ # Renew new_stats back to stats
482
+ $stats = $new_stats;
483
+
484
+ # Sort the stats array, since adding the (not set) items may have changed the order
485
+ usort($stats, array(
486
+ $this,
487
+ 'statSort'
488
+ ));
489
+
490
+ # Since we can no longer rely on the API as a limiter, we need to keep track of this ourselves
491
+ $stat_count = 0;
492
+
493
+ # Loop through each stat for display
494
+ foreach ($stats AS $stat) {
495
+ echo '<li><a href="' . esc_url($stat[1]) . '">' . esc_html($stat[0]) . '</a> - ' . number_format($stat[2]) . ' ' . __('Views', 'google-analyticator') . '</li>';
496
+
497
+ # Increase the stat counter
498
+ $stat_count++;
499
+
500
+ # Stop at 5
501
+ if ($stat_count >= 5)
502
+ break;
503
+ }
504
+
505
+ # Finish the list
506
+ echo '</ol>';
507
+ }
508
+ }
509
+
510
+ /**
511
+ * Get the top referrers
512
+ **/
513
+ function getTopReferrers()
514
+ {
515
+ # Get the value from the database
516
+ $cached = maybe_unserialize(get_option('google_stats_topReferrers_' . $this->id));
517
+ $updated = false;
518
+
519
+ # Check if the call has been made before
520
+ if (is_array($cached)) {
521
+ # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
522
+ if ($cached['lastcalled'] > (time() - 7200)) {
523
+ $updated = true;
524
+ $stats = $cached['stats'];
525
+ }
526
+
527
+ }
528
+
529
+ # If the stats need to be updated
530
+ if (!$updated) {
531
+ # Get the metrics needed to build the top referrers
532
+ $before = date('Y-m-d', strtotime('-31 days'));
533
+ $yesterday = date('Y-m-d', strtotime('-1 day'));
534
+ $stats = $this->api->getMetrics('ga:visits', $before, $yesterday, 'ga:source,ga:medium', '-ga:visits', 'ga:medium==referral', '5');
535
+
536
+ # Store the serialized stats in the database
537
+ update_option('google_stats_topReferrers_' . $this->id, array(
538
+ 'stats' => $stats,
539
+ 'lastcalled' => time()
540
+ ));
541
+
542
+ }
543
+
544
+ $rows = $stats->getRows();
545
+
546
+ # Check the size of the stats array
547
+ if (count($rows) <= 0 || !is_array($rows)) {
548
+ echo '<p>' . __('There is no data for view.', 'google-analyticator') . '</p>';
549
+ } else {
550
+ # Build the top pages list
551
+ echo '<ol>';
552
+
553
+ # Loop through each stat
554
+ foreach ($rows AS $stat) {
555
+ echo '<li><strong>' . esc_html($stat[0]) . '</strong> - ' . number_format($stat[2]) . ' ' . __('Visits', 'google-analyticator') . '</li>';
556
+ }
557
+
558
+ # Finish the list
559
+ echo '</ol>';
560
+ }
561
+ }
562
+
563
+ /**
564
+ * Get the top searches
565
+ **/
566
+ function getTopSearches()
567
+ {
568
+ # Get the value from the database
569
+ $cached = maybe_unserialize(get_option('google_stats_topSearches_' . $this->id));
570
+ $updated = false;
571
+
572
+ # Check if the call has been made before
573
+ if (is_array($cached)) {
574
+ # Check if the last time called was within two hours, if so, mark to not retrieve and grab the stats array
575
+ if ($cached['lastcalled'] > (time() - 7200)) {
576
+ $updated = true;
577
+ $stats = $cached['stats'];
578
+ }
579
+
580
+ }
581
+
582
+ # If the stats need to be updated
583
+ if (!$updated) {
584
+ # Get the metrics needed to build the top searches
585
+ $before = date('Y-m-d', strtotime('-31 days'));
586
+ $yesterday = date('Y-m-d', strtotime('-1 day'));
587
+ $stats = $this->api->getMetrics('ga:visits', $before, $yesterday, 'ga:keyword', '-ga:visits', 'ga:keyword!=(not set)', '5'); //'ga:keyword!=(not_set)'
588
+
589
+ # Store the serialized stats in the database
590
+ update_option('google_stats_topSearches_' . $this->id, array(
591
+ 'stats' => $stats,
592
+ 'lastcalled' => time()
593
+ ));
594
+
595
+ }
596
+
597
+ $rows = $stats->getRows();
598
+
599
+ # Check the size of the stats array
600
+ if (count($rows) <= 0 || !is_array($rows)) {
601
+ echo '<p>' . __('There is no data for view.', 'google-analyticator') . '</p>';
602
+ } else {
603
+ # Build the top pages list
604
+ echo '<ol>';
605
+
606
+ # Loop through each stat
607
+ foreach ($rows AS $stat) {
608
+ echo '<li><strong>' . esc_html($stat[0]) . '</strong> - ' . number_format($stat[1]) . ' ' . __('Visits', 'google-analyticator') . '</li>';
609
+ }
610
+
611
+ # Finish the list
612
+ echo '</ol>';
613
+ }
614
+ }
615
+
616
+ /**
617
+ * Sort a set of stats in descending order
618
+ *
619
+ * @return how the stat should be sorted
620
+ **/
621
+ function statSort($x, $y)
622
+ {
623
+ if ($x[2] == $y[2])
624
+ return 0;
625
+ elseif ($x[2] < $y[2])
626
+ return 1;
627
+ else
628
+ return -1;
629
+ }
630
+
631
+ /**
632
+ * Convert second to a time format
633
+ **/
634
+ function sec2Time($time)
635
+ {
636
+ # Check if numeric
637
+ if (is_numeric($time)) {
638
+ $value = array(
639
+ "years" => '00',
640
+ "days" => '00',
641
+ "hours" => '00',
642
+ "minutes" => '00',
643
+ "seconds" => '00'
644
+ );
645
+ if ($time >= 31556926) {
646
+ $value["years"] = floor($time / 31556926);
647
+ $time = ($time % 31556926);
648
+ }
649
+ if ($time >= 86400) {
650
+ $value["days"] = floor($time / 86400);
651
+ $time = ($time % 86400);
652
+ }
653
+ if ($time >= 3600) {
654
+ $value["hours"] = str_pad(floor($time / 3600), 2, 0, STR_PAD_LEFT);
655
+ $time = ($time % 3600);
656
+ }
657
+ if ($time >= 60) {
658
+ $value["minutes"] = str_pad(floor($time / 60), 2, 0, STR_PAD_LEFT);
659
+ $time = ($time % 60);
660
+ }
661
+ $value["seconds"] = str_pad(floor($time), 2, 0, STR_PAD_LEFT);
662
+
663
+ # Get the hour:minute:second version
664
+ return $value['hours'] . ':' . $value['minutes'] . ':' . $value['seconds'];
665
+ } else {
666
+ return false;
667
+ }
668
+ }
669
+
670
+
671
+
672
+
673
  } // END class
google-api-php-client/src/Google_Client.php CHANGED
@@ -126,21 +126,9 @@ class Google_Client {
126
  }
127
 
128
  public function authenticate($code = null) {
129
- $service = $this->prepareService();
130
  $this->authenticated = true;
131
-
132
- try {
133
- return self::$auth->authenticate($service, $code);
134
- }
135
- catch (Google_AuthException $e)
136
- {
137
- print 'There was an Analytics API service error ' . $e->getCode() . ':' . $e->getMessage();
138
- return false;
139
-
140
- }
141
-
142
-
143
-
144
  }
145
 
146
  /**
@@ -283,7 +271,7 @@ class Google_Client {
283
  public function getClientId() {
284
  return self::$auth->clientId;
285
  }
286
-
287
  /**
288
  * Set the OAuth 2.0 Client Secret.
289
  * @param string $clientSecret
@@ -442,7 +430,7 @@ class Google_ServiceException extends Google_Exception {
442
  } else {
443
  parent::__construct($message, $code);
444
  }
445
-
446
  $this->errors = $errors;
447
  }
448
 
126
  }
127
 
128
  public function authenticate($code = null) {
129
+ $service = $this->prepareService();
130
  $this->authenticated = true;
131
+ return self::$auth->authenticate($service, $code);
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
133
 
134
  /**
271
  public function getClientId() {
272
  return self::$auth->clientId;
273
  }
274
+
275
  /**
276
  * Set the OAuth 2.0 Client Secret.
277
  * @param string $clientSecret
430
  } else {
431
  parent::__construct($message, $code);
432
  }
433
+
434
  $this->errors = $errors;
435
  }
436
 
google-api-php-client/src/auth/Google_P12Signer.php CHANGED
@@ -58,6 +58,10 @@ class Google_P12Signer extends Google_Signer {
58
  }
59
 
60
  function sign($data) {
 
 
 
 
61
  if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) {
62
  throw new Google_AuthException("Unable to sign data");
63
  }
58
  }
59
 
60
  function sign($data) {
61
+ if(version_compare(PHP_VERSION, '5.3.0') < 0) {
62
+ throw new Google_AuthException(
63
+ "PHP 5.3.0 or higher is required to use service accounts.");
64
+ }
65
  if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) {
66
  throw new Google_AuthException("Unable to sign data");
67
  }
google-api-php-client/src/contrib/Google_AdexchangebuyerService.php ADDED
@@ -0,0 +1,567 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "directDeals" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
22
+ * $directDeals = $adexchangebuyerService->directDeals;
23
+ * </code>
24
+ */
25
+ class Google_DirectDealsServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Retrieves the authenticated user's list of direct deals. (directDeals.list)
30
+ *
31
+ * @param array $optParams Optional parameters.
32
+ * @return Google_DirectDealsList
33
+ */
34
+ public function listDirectDeals($optParams = array()) {
35
+ $params = array();
36
+ $params = array_merge($params, $optParams);
37
+ $data = $this->__call('list', array($params));
38
+ if ($this->useObjects()) {
39
+ return new Google_DirectDealsList($data);
40
+ } else {
41
+ return $data;
42
+ }
43
+ }
44
+ /**
45
+ * Gets one direct deal by ID. (directDeals.get)
46
+ *
47
+ * @param string $id The direct deal id
48
+ * @param array $optParams Optional parameters.
49
+ * @return Google_DirectDeal
50
+ */
51
+ public function get($id, $optParams = array()) {
52
+ $params = array('id' => $id);
53
+ $params = array_merge($params, $optParams);
54
+ $data = $this->__call('get', array($params));
55
+ if ($this->useObjects()) {
56
+ return new Google_DirectDeal($data);
57
+ } else {
58
+ return $data;
59
+ }
60
+ }
61
+ }
62
+
63
+ /**
64
+ * The "accounts" collection of methods.
65
+ * Typical usage is:
66
+ * <code>
67
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
68
+ * $accounts = $adexchangebuyerService->accounts;
69
+ * </code>
70
+ */
71
+ class Google_AccountsServiceResource extends Google_ServiceResource {
72
+
73
+
74
+ /**
75
+ * Updates an existing account. This method supports patch semantics. (accounts.patch)
76
+ *
77
+ * @param int $id The account id
78
+ * @param Google_Account $postBody
79
+ * @param array $optParams Optional parameters.
80
+ * @return Google_Account
81
+ */
82
+ public function patch($id, Google_Account $postBody, $optParams = array()) {
83
+ $params = array('id' => $id, 'postBody' => $postBody);
84
+ $params = array_merge($params, $optParams);
85
+ $data = $this->__call('patch', array($params));
86
+ if ($this->useObjects()) {
87
+ return new Google_Account($data);
88
+ } else {
89
+ return $data;
90
+ }
91
+ }
92
+ /**
93
+ * Retrieves the authenticated user's list of accounts. (accounts.list)
94
+ *
95
+ * @param array $optParams Optional parameters.
96
+ * @return Google_AccountsList
97
+ */
98
+ public function listAccounts($optParams = array()) {
99
+ $params = array();
100
+ $params = array_merge($params, $optParams);
101
+ $data = $this->__call('list', array($params));
102
+ if ($this->useObjects()) {
103
+ return new Google_AccountsList($data);
104
+ } else {
105
+ return $data;
106
+ }
107
+ }
108
+ /**
109
+ * Updates an existing account. (accounts.update)
110
+ *
111
+ * @param int $id The account id
112
+ * @param Google_Account $postBody
113
+ * @param array $optParams Optional parameters.
114
+ * @return Google_Account
115
+ */
116
+ public function update($id, Google_Account $postBody, $optParams = array()) {
117
+ $params = array('id' => $id, 'postBody' => $postBody);
118
+ $params = array_merge($params, $optParams);
119
+ $data = $this->__call('update', array($params));
120
+ if ($this->useObjects()) {
121
+ return new Google_Account($data);
122
+ } else {
123
+ return $data;
124
+ }
125
+ }
126
+ /**
127
+ * Gets one account by ID. (accounts.get)
128
+ *
129
+ * @param int $id The account id
130
+ * @param array $optParams Optional parameters.
131
+ * @return Google_Account
132
+ */
133
+ public function get($id, $optParams = array()) {
134
+ $params = array('id' => $id);
135
+ $params = array_merge($params, $optParams);
136
+ $data = $this->__call('get', array($params));
137
+ if ($this->useObjects()) {
138
+ return new Google_Account($data);
139
+ } else {
140
+ return $data;
141
+ }
142
+ }
143
+ }
144
+
145
+ /**
146
+ * The "creatives" collection of methods.
147
+ * Typical usage is:
148
+ * <code>
149
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
150
+ * $creatives = $adexchangebuyerService->creatives;
151
+ * </code>
152
+ */
153
+ class Google_CreativesServiceResource extends Google_ServiceResource {
154
+
155
+
156
+ /**
157
+ * Submit a new creative. (creatives.insert)
158
+ *
159
+ * @param Google_Creative $postBody
160
+ * @param array $optParams Optional parameters.
161
+ * @return Google_Creative
162
+ */
163
+ public function insert(Google_Creative $postBody, $optParams = array()) {
164
+ $params = array('postBody' => $postBody);
165
+ $params = array_merge($params, $optParams);
166
+ $data = $this->__call('insert', array($params));
167
+ if ($this->useObjects()) {
168
+ return new Google_Creative($data);
169
+ } else {
170
+ return $data;
171
+ }
172
+ }
173
+ /**
174
+ * Retrieves a list of the authenticated user's active creatives. (creatives.list)
175
+ *
176
+ * @param array $optParams Optional parameters.
177
+ *
178
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
179
+ * @opt_param string maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
180
+ * @return Google_CreativesList
181
+ */
182
+ public function listCreatives($optParams = array()) {
183
+ $params = array();
184
+ $params = array_merge($params, $optParams);
185
+ $data = $this->__call('list', array($params));
186
+ if ($this->useObjects()) {
187
+ return new Google_CreativesList($data);
188
+ } else {
189
+ return $data;
190
+ }
191
+ }
192
+ /**
193
+ * Gets the status for a single creative. (creatives.get)
194
+ *
195
+ * @param int $accountId The id for the account that will serve this creative.
196
+ * @param string $buyerCreativeId The buyer-specific id for this creative.
197
+ * @param string $adgroupId The adgroup this creative belongs to.
198
+ * @param array $optParams Optional parameters.
199
+ * @return Google_Creative
200
+ */
201
+ public function get($accountId, $buyerCreativeId, $adgroupId, $optParams = array()) {
202
+ $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'adgroupId' => $adgroupId);
203
+ $params = array_merge($params, $optParams);
204
+ $data = $this->__call('get', array($params));
205
+ if ($this->useObjects()) {
206
+ return new Google_Creative($data);
207
+ } else {
208
+ return $data;
209
+ }
210
+ }
211
+ }
212
+
213
+ /**
214
+ * Service definition for Google_Adexchangebuyer (v1).
215
+ *
216
+ * <p>
217
+ * Lets you manage your Ad Exchange Buyer account.
218
+ * </p>
219
+ *
220
+ * <p>
221
+ * For more information about this service, see the
222
+ * <a href="https://developers.google.com/ad-exchange/buyer-rest" target="_blank">API Documentation</a>
223
+ * </p>
224
+ *
225
+ * @author Google, Inc.
226
+ */
227
+ class Google_AdexchangebuyerService extends Google_Service {
228
+ public $directDeals;
229
+ public $accounts;
230
+ public $creatives;
231
+ /**
232
+ * Constructs the internal representation of the Adexchangebuyer service.
233
+ *
234
+ * @param Google_Client $client
235
+ */
236
+ public function __construct(Google_Client $client) {
237
+ $this->servicePath = 'adexchangebuyer/v1/';
238
+ $this->version = 'v1';
239
+ $this->serviceName = 'adexchangebuyer';
240
+
241
+ $client->addService($this->serviceName, $this->version);
242
+ $this->directDeals = new Google_DirectDealsServiceResource($this, $this->serviceName, 'directDeals', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "path": "directdeals", "response": {"$ref": "DirectDealsList"}, "id": "adexchangebuyer.directDeals.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "adexchangebuyer.directDeals.get", "httpMethod": "GET", "path": "directdeals/{id}", "response": {"$ref": "DirectDeal"}}}}', true));
243
+ $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "httpMethod": "PATCH", "path": "accounts/{id}", "id": "adexchangebuyer.accounts.patch"}, "list": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "path": "accounts", "response": {"$ref": "AccountsList"}, "id": "adexchangebuyer.accounts.list", "httpMethod": "GET"}, "update": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "httpMethod": "PUT", "path": "accounts/{id}", "id": "adexchangebuyer.accounts.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"id": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "adexchangebuyer.accounts.get", "httpMethod": "GET", "path": "accounts/{id}", "response": {"$ref": "Account"}}}}', true));
244
+ $this->creatives = new Google_CreativesServiceResource($this, $this->serviceName, 'creatives', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "request": {"$ref": "Creative"}, "response": {"$ref": "Creative"}, "httpMethod": "POST", "path": "creatives", "id": "adexchangebuyer.creatives.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "1000", "format": "uint32"}}, "response": {"$ref": "CreativesList"}, "httpMethod": "GET", "path": "creatives", "id": "adexchangebuyer.creatives.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adexchange.buyer"], "parameters": {"adgroupId": {"required": true, "type": "string", "location": "query", "format": "int64"}, "buyerCreativeId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "adexchangebuyer.creatives.get", "httpMethod": "GET", "path": "creatives/{accountId}/{buyerCreativeId}", "response": {"$ref": "Creative"}}}}', true));
245
+
246
+ }
247
+ }
248
+
249
+ class Google_Account extends Google_Model {
250
+ public $kind;
251
+ public $maximumTotalQps;
252
+ protected $__bidderLocationType = 'Google_AccountBidderLocation';
253
+ protected $__bidderLocationDataType = 'array';
254
+ public $bidderLocation;
255
+ public $cookieMatchingNid;
256
+ public $id;
257
+ public $cookieMatchingUrl;
258
+ public function setKind($kind) {
259
+ $this->kind = $kind;
260
+ }
261
+ public function getKind() {
262
+ return $this->kind;
263
+ }
264
+ public function setMaximumTotalQps($maximumTotalQps) {
265
+ $this->maximumTotalQps = $maximumTotalQps;
266
+ }
267
+ public function getMaximumTotalQps() {
268
+ return $this->maximumTotalQps;
269
+ }
270
+ public function setBidderLocation($bidderLocation) {
271
+ $this->assertIsArray($bidderLocation, 'Google_AccountBidderLocation', __METHOD__);
272
+ $this->bidderLocation = $bidderLocation;
273
+ }
274
+ public function getBidderLocation() {
275
+ return $this->bidderLocation;
276
+ }
277
+ public function setCookieMatchingNid($cookieMatchingNid) {
278
+ $this->cookieMatchingNid = $cookieMatchingNid;
279
+ }
280
+ public function getCookieMatchingNid() {
281
+ return $this->cookieMatchingNid;
282
+ }
283
+ public function setId($id) {
284
+ $this->id = $id;
285
+ }
286
+ public function getId() {
287
+ return $this->id;
288
+ }
289
+ public function setCookieMatchingUrl($cookieMatchingUrl) {
290
+ $this->cookieMatchingUrl = $cookieMatchingUrl;
291
+ }
292
+ public function getCookieMatchingUrl() {
293
+ return $this->cookieMatchingUrl;
294
+ }
295
+ }
296
+
297
+ class Google_AccountBidderLocation extends Google_Model {
298
+ public $url;
299
+ public $maximumQps;
300
+ public function setUrl($url) {
301
+ $this->url = $url;
302
+ }
303
+ public function getUrl() {
304
+ return $this->url;
305
+ }
306
+ public function setMaximumQps($maximumQps) {
307
+ $this->maximumQps = $maximumQps;
308
+ }
309
+ public function getMaximumQps() {
310
+ return $this->maximumQps;
311
+ }
312
+ }
313
+
314
+ class Google_AccountsList extends Google_Model {
315
+ protected $__itemsType = 'Google_Account';
316
+ protected $__itemsDataType = 'array';
317
+ public $items;
318
+ public $kind;
319
+ public function setItems($items) {
320
+ $this->assertIsArray($items, 'Google_Account', __METHOD__);
321
+ $this->items = $items;
322
+ }
323
+ public function getItems() {
324
+ return $this->items;
325
+ }
326
+ public function setKind($kind) {
327
+ $this->kind = $kind;
328
+ }
329
+ public function getKind() {
330
+ return $this->kind;
331
+ }
332
+ }
333
+
334
+ class Google_Creative extends Google_Model {
335
+ public $productCategories;
336
+ public $advertiserName;
337
+ public $adgroupId;
338
+ public $videoURL;
339
+ public $width;
340
+ public $attribute;
341
+ public $kind;
342
+ public $height;
343
+ public $advertiserId;
344
+ public $HTMLSnippet;
345
+ public $status;
346
+ public $buyerCreativeId;
347
+ public $clickThroughUrl;
348
+ public $vendorType;
349
+ public $disapprovalReasons;
350
+ public $sensitiveCategories;
351
+ public $accountId;
352
+ public function setProductCategories($productCategories) {
353
+ $this->productCategories = $productCategories;
354
+ }
355
+ public function getProductCategories() {
356
+ return $this->productCategories;
357
+ }
358
+ public function setAdvertiserName($advertiserName) {
359
+ $this->advertiserName = $advertiserName;
360
+ }
361
+ public function getAdvertiserName() {
362
+ return $this->advertiserName;
363
+ }
364
+ public function setAdgroupId($adgroupId) {
365
+ $this->adgroupId = $adgroupId;
366
+ }
367
+ public function getAdgroupId() {
368
+ return $this->adgroupId;
369
+ }
370
+ public function setVideoURL($videoURL) {
371
+ $this->videoURL = $videoURL;
372
+ }
373
+ public function getVideoURL() {
374
+ return $this->videoURL;
375
+ }
376
+ public function setWidth($width) {
377
+ $this->width = $width;
378
+ }
379
+ public function getWidth() {
380
+ return $this->width;
381
+ }
382
+ public function setAttribute($attribute) {
383
+ $this->attribute = $attribute;
384
+ }
385
+ public function getAttribute() {
386
+ return $this->attribute;
387
+ }
388
+ public function setKind($kind) {
389
+ $this->kind = $kind;
390
+ }
391
+ public function getKind() {
392
+ return $this->kind;
393
+ }
394
+ public function setHeight($height) {
395
+ $this->height = $height;
396
+ }
397
+ public function getHeight() {
398
+ return $this->height;
399
+ }
400
+ public function setAdvertiserId($advertiserId) {
401
+ $this->advertiserId = $advertiserId;
402
+ }
403
+ public function getAdvertiserId() {
404
+ return $this->advertiserId;
405
+ }
406
+ public function setHTMLSnippet($HTMLSnippet) {
407
+ $this->HTMLSnippet = $HTMLSnippet;
408
+ }
409
+ public function getHTMLSnippet() {
410
+ return $this->HTMLSnippet;
411
+ }
412
+ public function setStatus($status) {
413
+ $this->status = $status;
414
+ }
415
+ public function getStatus() {
416
+ return $this->status;
417
+ }
418
+ public function setBuyerCreativeId($buyerCreativeId) {
419
+ $this->buyerCreativeId = $buyerCreativeId;
420
+ }
421
+ public function getBuyerCreativeId() {
422
+ return $this->buyerCreativeId;
423
+ }
424
+ public function setClickThroughUrl($clickThroughUrl) {
425
+ $this->clickThroughUrl = $clickThroughUrl;
426
+ }
427
+ public function getClickThroughUrl() {
428
+ return $this->clickThroughUrl;
429
+ }
430
+ public function setVendorType($vendorType) {
431
+ $this->vendorType = $vendorType;
432
+ }
433
+ public function getVendorType() {
434
+ return $this->vendorType;
435
+ }
436
+ public function setDisapprovalReasons($disapprovalReasons) {
437
+ $this->disapprovalReasons = $disapprovalReasons;
438
+ }
439
+ public function getDisapprovalReasons() {
440
+ return $this->disapprovalReasons;
441
+ }
442
+ public function setSensitiveCategories($sensitiveCategories) {
443
+ $this->sensitiveCategories = $sensitiveCategories;
444
+ }
445
+ public function getSensitiveCategories() {
446
+ return $this->sensitiveCategories;
447
+ }
448
+ public function setAccountId($accountId) {
449
+ $this->accountId = $accountId;
450
+ }
451
+ public function getAccountId() {
452
+ return $this->accountId;
453
+ }
454
+ }
455
+
456
+ class Google_CreativesList extends Google_Model {
457
+ public $nextPageToken;
458
+ protected $__itemsType = 'Google_Creative';
459
+ protected $__itemsDataType = 'array';
460
+ public $items;
461
+ public $kind;
462
+ public function setNextPageToken($nextPageToken) {
463
+ $this->nextPageToken = $nextPageToken;
464
+ }
465
+ public function getNextPageToken() {
466
+ return $this->nextPageToken;
467
+ }
468
+ public function setItems($items) {
469
+ $this->assertIsArray($items, 'Google_Creative', __METHOD__);
470
+ $this->items = $items;
471
+ }
472
+ public function getItems() {
473
+ return $this->items;
474
+ }
475
+ public function setKind($kind) {
476
+ $this->kind = $kind;
477
+ }
478
+ public function getKind() {
479
+ return $this->kind;
480
+ }
481
+ }
482
+
483
+ class Google_DirectDeal extends Google_Model {
484
+ public $advertiser;
485
+ public $kind;
486
+ public $currencyCode;
487
+ public $fixedCpm;
488
+ public $startTime;
489
+ public $endTime;
490
+ public $sellerNetwork;
491
+ public $id;
492
+ public $accountId;
493
+ public function setAdvertiser($advertiser) {
494
+ $this->advertiser = $advertiser;
495
+ }
496
+ public function getAdvertiser() {
497
+ return $this->advertiser;
498
+ }
499
+ public function setKind($kind) {
500
+ $this->kind = $kind;
501
+ }
502
+ public function getKind() {
503
+ return $this->kind;
504
+ }
505
+ public function setCurrencyCode($currencyCode) {
506
+ $this->currencyCode = $currencyCode;
507
+ }
508
+ public function getCurrencyCode() {
509
+ return $this->currencyCode;
510
+ }
511
+ public function setFixedCpm($fixedCpm) {
512
+ $this->fixedCpm = $fixedCpm;
513
+ }
514
+ public function getFixedCpm() {
515
+ return $this->fixedCpm;
516
+ }
517
+ public function setStartTime($startTime) {
518
+ $this->startTime = $startTime;
519
+ }
520
+ public function getStartTime() {
521
+ return $this->startTime;
522
+ }
523
+ public function setEndTime($endTime) {
524
+ $this->endTime = $endTime;
525
+ }
526
+ public function getEndTime() {
527
+ return $this->endTime;
528
+ }
529
+ public function setSellerNetwork($sellerNetwork) {
530
+ $this->sellerNetwork = $sellerNetwork;
531
+ }
532
+ public function getSellerNetwork() {
533
+ return $this->sellerNetwork;
534
+ }
535
+ public function setId($id) {
536
+ $this->id = $id;
537
+ }
538
+ public function getId() {
539
+ return $this->id;
540
+ }
541
+ public function setAccountId($accountId) {
542
+ $this->accountId = $accountId;
543
+ }
544
+ public function getAccountId() {
545
+ return $this->accountId;
546
+ }
547
+ }
548
+
549
+ class Google_DirectDealsList extends Google_Model {
550
+ public $kind;
551
+ protected $__directDealsType = 'Google_DirectDeal';
552
+ protected $__directDealsDataType = 'array';
553
+ public $directDeals;
554
+ public function setKind($kind) {
555
+ $this->kind = $kind;
556
+ }
557
+ public function getKind() {
558
+ return $this->kind;
559
+ }
560
+ public function setDirectDeals($directDeals) {
561
+ $this->assertIsArray($directDeals, 'Google_DirectDeal', __METHOD__);
562
+ $this->directDeals = $directDeals;
563
+ }
564
+ public function getDirectDeals() {
565
+ return $this->directDeals;
566
+ }
567
+ }
google-api-php-client/src/contrib/Google_AdsenseService.php CHANGED
@@ -641,7 +641,7 @@
641
  *
642
  * <p>
643
  * For more information about this service, see the
644
- * <a href="https://code.google.com/apis/adsense/management/" target="_blank">API Documentation</a>
645
  * </p>
646
  *
647
  * @author Google, Inc.
@@ -711,7 +711,7 @@ class Google_Account extends Google_Model {
711
  public function getId() {
712
  return $this->id;
713
  }
714
- public function setSubAccounts(/* array(Google_Account) */ $subAccounts) {
715
  $this->assertIsArray($subAccounts, 'Google_Account', __METHOD__);
716
  $this->subAccounts = $subAccounts;
717
  }
@@ -739,7 +739,7 @@ class Google_Accounts extends Google_Model {
739
  public function getNextPageToken() {
740
  return $this->nextPageToken;
741
  }
742
- public function setItems(/* array(Google_Account) */ $items) {
743
  $this->assertIsArray($items, 'Google_Account', __METHOD__);
744
  $this->items = $items;
745
  }
@@ -804,7 +804,7 @@ class Google_AdClients extends Google_Model {
804
  public function getNextPageToken() {
805
  return $this->nextPageToken;
806
  }
807
- public function setItems(/* array(Google_AdClient) */ $items) {
808
  $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
809
  $this->items = $items;
810
  }
@@ -876,7 +876,7 @@ class Google_AdUnits extends Google_Model {
876
  public function getNextPageToken() {
877
  return $this->nextPageToken;
878
  }
879
- public function setItems(/* array(Google_AdUnit) */ $items) {
880
  $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
881
  $this->items = $items;
882
  }
@@ -913,28 +913,25 @@ class Google_AdsenseReportsGenerateResponse extends Google_Model {
913
  public function getKind() {
914
  return $this->kind;
915
  }
916
- public function setRows(/* array(Google_string) */ $rows) {
917
- $this->assertIsArray($rows, 'Google_string', __METHOD__);
918
  $this->rows = $rows;
919
  }
920
  public function getRows() {
921
  return $this->rows;
922
  }
923
- public function setWarnings(/* array(Google_string) */ $warnings) {
924
- $this->assertIsArray($warnings, 'Google_string', __METHOD__);
925
  $this->warnings = $warnings;
926
  }
927
  public function getWarnings() {
928
  return $this->warnings;
929
  }
930
- public function setTotals(/* array(Google_string) */ $totals) {
931
- $this->assertIsArray($totals, 'Google_string', __METHOD__);
932
  $this->totals = $totals;
933
  }
934
  public function getTotals() {
935
  return $this->totals;
936
  }
937
- public function setHeaders(/* array(Google_AdsenseReportsGenerateResponseHeaders) */ $headers) {
938
  $this->assertIsArray($headers, 'Google_AdsenseReportsGenerateResponseHeaders', __METHOD__);
939
  $this->headers = $headers;
940
  }
@@ -947,8 +944,7 @@ class Google_AdsenseReportsGenerateResponse extends Google_Model {
947
  public function getTotalMatchedRows() {
948
  return $this->totalMatchedRows;
949
  }
950
- public function setAverages(/* array(Google_string) */ $averages) {
951
- $this->assertIsArray($averages, 'Google_string', __METHOD__);
952
  $this->averages = $averages;
953
  }
954
  public function getAverages() {
@@ -1064,7 +1060,7 @@ class Google_CustomChannels extends Google_Model {
1064
  public function getNextPageToken() {
1065
  return $this->nextPageToken;
1066
  }
1067
- public function setItems(/* array(Google_CustomChannel) */ $items) {
1068
  $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1069
  $this->items = $items;
1070
  }
@@ -1122,7 +1118,7 @@ class Google_UrlChannels extends Google_Model {
1122
  public function getNextPageToken() {
1123
  return $this->nextPageToken;
1124
  }
1125
- public function setItems(/* array(Google_UrlChannel) */ $items) {
1126
  $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
1127
  $this->items = $items;
1128
  }
641
  *
642
  * <p>
643
  * For more information about this service, see the
644
+ * <a href="https://developers.google.com/adsense/management/" target="_blank">API Documentation</a>
645
  * </p>
646
  *
647
  * @author Google, Inc.
711
  public function getId() {
712
  return $this->id;
713
  }
714
+ public function setSubAccounts($subAccounts) {
715
  $this->assertIsArray($subAccounts, 'Google_Account', __METHOD__);
716
  $this->subAccounts = $subAccounts;
717
  }
739
  public function getNextPageToken() {
740
  return $this->nextPageToken;
741
  }
742
+ public function setItems($items) {
743
  $this->assertIsArray($items, 'Google_Account', __METHOD__);
744
  $this->items = $items;
745
  }
804
  public function getNextPageToken() {
805
  return $this->nextPageToken;
806
  }
807
+ public function setItems($items) {
808
  $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
809
  $this->items = $items;
810
  }
876
  public function getNextPageToken() {
877
  return $this->nextPageToken;
878
  }
879
+ public function setItems($items) {
880
  $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
881
  $this->items = $items;
882
  }
913
  public function getKind() {
914
  return $this->kind;
915
  }
916
+ public function setRows($rows) {
 
917
  $this->rows = $rows;
918
  }
919
  public function getRows() {
920
  return $this->rows;
921
  }
922
+ public function setWarnings($warnings) {
 
923
  $this->warnings = $warnings;
924
  }
925
  public function getWarnings() {
926
  return $this->warnings;
927
  }
928
+ public function setTotals($totals) {
 
929
  $this->totals = $totals;
930
  }
931
  public function getTotals() {
932
  return $this->totals;
933
  }
934
+ public function setHeaders($headers) {
935
  $this->assertIsArray($headers, 'Google_AdsenseReportsGenerateResponseHeaders', __METHOD__);
936
  $this->headers = $headers;
937
  }
944
  public function getTotalMatchedRows() {
945
  return $this->totalMatchedRows;
946
  }
947
+ public function setAverages($averages) {
 
948
  $this->averages = $averages;
949
  }
950
  public function getAverages() {
1060
  public function getNextPageToken() {
1061
  return $this->nextPageToken;
1062
  }
1063
+ public function setItems($items) {
1064
  $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1065
  $this->items = $items;
1066
  }
1118
  public function getNextPageToken() {
1119
  return $this->nextPageToken;
1120
  }
1121
+ public function setItems($items) {
1122
  $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
1123
  $this->items = $items;
1124
  }
google-api-php-client/src/contrib/Google_AdsensehostService.php ADDED
@@ -0,0 +1,1378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "urlchannels" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $adsensehostService = new Google_AdsensehostService(...);
22
+ * $urlchannels = $adsensehostService->urlchannels;
23
+ * </code>
24
+ */
25
+ class Google_UrlchannelsServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Add a new URL channel to the host AdSense account. (urlchannels.insert)
30
+ *
31
+ * @param string $adClientId Ad client to which the new URL channel will be added.
32
+ * @param Google_UrlChannel $postBody
33
+ * @param array $optParams Optional parameters.
34
+ * @return Google_UrlChannel
35
+ */
36
+ public function insert($adClientId, Google_UrlChannel $postBody, $optParams = array()) {
37
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
38
+ $params = array_merge($params, $optParams);
39
+ $data = $this->__call('insert', array($params));
40
+ if ($this->useObjects()) {
41
+ return new Google_UrlChannel($data);
42
+ } else {
43
+ return $data;
44
+ }
45
+ }
46
+ /**
47
+ * List all host URL channels in the host AdSense account. (urlchannels.list)
48
+ *
49
+ * @param string $adClientId Ad client for which to list URL channels.
50
+ * @param array $optParams Optional parameters.
51
+ *
52
+ * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
53
+ * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
54
+ * @return Google_UrlChannels
55
+ */
56
+ public function listUrlchannels($adClientId, $optParams = array()) {
57
+ $params = array('adClientId' => $adClientId);
58
+ $params = array_merge($params, $optParams);
59
+ $data = $this->__call('list', array($params));
60
+ if ($this->useObjects()) {
61
+ return new Google_UrlChannels($data);
62
+ } else {
63
+ return $data;
64
+ }
65
+ }
66
+ /**
67
+ * Delete a URL channel from the host AdSense account. (urlchannels.delete)
68
+ *
69
+ * @param string $adClientId Ad client from which to delete the URL channel.
70
+ * @param string $urlChannelId URL channel to delete.
71
+ * @param array $optParams Optional parameters.
72
+ * @return Google_UrlChannel
73
+ */
74
+ public function delete($adClientId, $urlChannelId, $optParams = array()) {
75
+ $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
76
+ $params = array_merge($params, $optParams);
77
+ $data = $this->__call('delete', array($params));
78
+ if ($this->useObjects()) {
79
+ return new Google_UrlChannel($data);
80
+ } else {
81
+ return $data;
82
+ }
83
+ }
84
+ }
85
+
86
+ /**
87
+ * The "adclients" collection of methods.
88
+ * Typical usage is:
89
+ * <code>
90
+ * $adsensehostService = new Google_AdsensehostService(...);
91
+ * $adclients = $adsensehostService->adclients;
92
+ * </code>
93
+ */
94
+ class Google_AdclientsServiceResource extends Google_ServiceResource {
95
+
96
+
97
+ /**
98
+ * List all host ad clients in this AdSense account. (adclients.list)
99
+ *
100
+ * @param array $optParams Optional parameters.
101
+ *
102
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
103
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
104
+ * @return Google_AdClients
105
+ */
106
+ public function listAdclients($optParams = array()) {
107
+ $params = array();
108
+ $params = array_merge($params, $optParams);
109
+ $data = $this->__call('list', array($params));
110
+ if ($this->useObjects()) {
111
+ return new Google_AdClients($data);
112
+ } else {
113
+ return $data;
114
+ }
115
+ }
116
+ /**
117
+ * Get information about one of the ad clients in the Host AdSense account. (adclients.get)
118
+ *
119
+ * @param string $adClientId Ad client to get.
120
+ * @param array $optParams Optional parameters.
121
+ * @return Google_AdClient
122
+ */
123
+ public function get($adClientId, $optParams = array()) {
124
+ $params = array('adClientId' => $adClientId);
125
+ $params = array_merge($params, $optParams);
126
+ $data = $this->__call('get', array($params));
127
+ if ($this->useObjects()) {
128
+ return new Google_AdClient($data);
129
+ } else {
130
+ return $data;
131
+ }
132
+ }
133
+ }
134
+
135
+ /**
136
+ * The "associationsessions" collection of methods.
137
+ * Typical usage is:
138
+ * <code>
139
+ * $adsensehostService = new Google_AdsensehostService(...);
140
+ * $associationsessions = $adsensehostService->associationsessions;
141
+ * </code>
142
+ */
143
+ class Google_AssociationsessionsServiceResource extends Google_ServiceResource {
144
+
145
+
146
+ /**
147
+ * Create an association session for initiating an association with an AdSense user.
148
+ * (associationsessions.start)
149
+ *
150
+ * @param string $productCode Products to associate with the user.
151
+ * @param string $websiteUrl The URL of the user's hosted website.
152
+ * @param array $optParams Optional parameters.
153
+ *
154
+ * @opt_param string websiteLocale The locale of the user's hosted website.
155
+ * @opt_param string userLocale The preferred locale of the user.
156
+ * @return Google_AssociationSession
157
+ */
158
+ public function start($productCode, $websiteUrl, $optParams = array()) {
159
+ $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
160
+ $params = array_merge($params, $optParams);
161
+ $data = $this->__call('start', array($params));
162
+ if ($this->useObjects()) {
163
+ return new Google_AssociationSession($data);
164
+ } else {
165
+ return $data;
166
+ }
167
+ }
168
+ /**
169
+ * Verify an association session after the association callback returns from AdSense signup.
170
+ * (associationsessions.verify)
171
+ *
172
+ * @param string $token The token returned to the association callback URL.
173
+ * @param array $optParams Optional parameters.
174
+ * @return Google_AssociationSession
175
+ */
176
+ public function verify($token, $optParams = array()) {
177
+ $params = array('token' => $token);
178
+ $params = array_merge($params, $optParams);
179
+ $data = $this->__call('verify', array($params));
180
+ if ($this->useObjects()) {
181
+ return new Google_AssociationSession($data);
182
+ } else {
183
+ return $data;
184
+ }
185
+ }
186
+ }
187
+
188
+ /**
189
+ * The "reports" collection of methods.
190
+ * Typical usage is:
191
+ * <code>
192
+ * $adsensehostService = new Google_AdsensehostService(...);
193
+ * $reports = $adsensehostService->reports;
194
+ * </code>
195
+ */
196
+ class Google_ReportsServiceResource extends Google_ServiceResource {
197
+
198
+
199
+ /**
200
+ * Generate an AdSense report based on the report request sent in the query parameters. Returns the
201
+ * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
202
+ * (reports.generate)
203
+ *
204
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
205
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
206
+ * @param array $optParams Optional parameters.
207
+ *
208
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
209
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
210
+ * @opt_param string metric Numeric columns to include in the report.
211
+ * @opt_param string maxResults The maximum number of rows of report data to return.
212
+ * @opt_param string filter Filters to be run on the report.
213
+ * @opt_param string startIndex Index of the first row of report data to return.
214
+ * @opt_param string dimension Dimensions to base the report on.
215
+ * @return Google_Report
216
+ */
217
+ public function generate($endDate, $startDate, $optParams = array()) {
218
+ $params = array('endDate' => $endDate, 'startDate' => $startDate);
219
+ $params = array_merge($params, $optParams);
220
+ $data = $this->__call('generate', array($params));
221
+ if ($this->useObjects()) {
222
+ return new Google_Report($data);
223
+ } else {
224
+ return $data;
225
+ }
226
+ }
227
+ }
228
+
229
+ /**
230
+ * The "accounts" collection of methods.
231
+ * Typical usage is:
232
+ * <code>
233
+ * $adsensehostService = new Google_AdsensehostService(...);
234
+ * $accounts = $adsensehostService->accounts;
235
+ * </code>
236
+ */
237
+ class Google_AccountsServiceResource extends Google_ServiceResource {
238
+
239
+
240
+ /**
241
+ * List hosted accounts associated with this AdSense account by ad client id. (accounts.list)
242
+ *
243
+ * @param string $filterAdClientId Ad clients to list accounts for.
244
+ * @param array $optParams Optional parameters.
245
+ * @return Google_Accounts
246
+ */
247
+ public function listAccounts($filterAdClientId, $optParams = array()) {
248
+ $params = array('filterAdClientId' => $filterAdClientId);
249
+ $params = array_merge($params, $optParams);
250
+ $data = $this->__call('list', array($params));
251
+ if ($this->useObjects()) {
252
+ return new Google_Accounts($data);
253
+ } else {
254
+ return $data;
255
+ }
256
+ }
257
+ /**
258
+ * Get information about the selected associated AdSense account. (accounts.get)
259
+ *
260
+ * @param string $accountId Account to get information about.
261
+ * @param array $optParams Optional parameters.
262
+ * @return Google_Account
263
+ */
264
+ public function get($accountId, $optParams = array()) {
265
+ $params = array('accountId' => $accountId);
266
+ $params = array_merge($params, $optParams);
267
+ $data = $this->__call('get', array($params));
268
+ if ($this->useObjects()) {
269
+ return new Google_Account($data);
270
+ } else {
271
+ return $data;
272
+ }
273
+ }
274
+ }
275
+
276
+ /**
277
+ * The "adunits" collection of methods.
278
+ * Typical usage is:
279
+ * <code>
280
+ * $adsensehostService = new Google_AdsensehostService(...);
281
+ * $adunits = $adsensehostService->adunits;
282
+ * </code>
283
+ */
284
+ class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
285
+
286
+
287
+ /**
288
+ * Insert the supplied ad unit into the specified publisher AdSense account. (adunits.insert)
289
+ *
290
+ * @param string $accountId Account which will contain the ad unit.
291
+ * @param string $adClientId Ad client into which to insert the ad unit.
292
+ * @param Google_AdUnit $postBody
293
+ * @param array $optParams Optional parameters.
294
+ * @return Google_AdUnit
295
+ */
296
+ public function insert($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
297
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
298
+ $params = array_merge($params, $optParams);
299
+ $data = $this->__call('insert', array($params));
300
+ if ($this->useObjects()) {
301
+ return new Google_AdUnit($data);
302
+ } else {
303
+ return $data;
304
+ }
305
+ }
306
+ /**
307
+ * Get the specified host ad unit in this AdSense account. (adunits.get)
308
+ *
309
+ * @param string $accountId Account which contains the ad unit.
310
+ * @param string $adClientId Ad client for which to get ad unit.
311
+ * @param string $adUnitId Ad unit to get.
312
+ * @param array $optParams Optional parameters.
313
+ * @return Google_AdUnit
314
+ */
315
+ public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
316
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
317
+ $params = array_merge($params, $optParams);
318
+ $data = $this->__call('get', array($params));
319
+ if ($this->useObjects()) {
320
+ return new Google_AdUnit($data);
321
+ } else {
322
+ return $data;
323
+ }
324
+ }
325
+ /**
326
+ * Get ad code for the specified ad unit, attaching the specified host custom channels.
327
+ * (adunits.getAdCode)
328
+ *
329
+ * @param string $accountId Account which contains the ad client.
330
+ * @param string $adClientId Ad client with contains the ad unit.
331
+ * @param string $adUnitId Ad unit to get the code for.
332
+ * @param array $optParams Optional parameters.
333
+ *
334
+ * @opt_param string hostCustomChannelId Host custom channel to attach to the ad code.
335
+ * @return Google_AdCode
336
+ */
337
+ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
338
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
339
+ $params = array_merge($params, $optParams);
340
+ $data = $this->__call('getAdCode', array($params));
341
+ if ($this->useObjects()) {
342
+ return new Google_AdCode($data);
343
+ } else {
344
+ return $data;
345
+ }
346
+ }
347
+ /**
348
+ * List all ad units in the specified publisher's AdSense account. (adunits.list)
349
+ *
350
+ * @param string $accountId Account which contains the ad client.
351
+ * @param string $adClientId Ad client for which to list ad units.
352
+ * @param array $optParams Optional parameters.
353
+ *
354
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
355
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
356
+ * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
357
+ * @return Google_AdUnits
358
+ */
359
+ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
360
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
361
+ $params = array_merge($params, $optParams);
362
+ $data = $this->__call('list', array($params));
363
+ if ($this->useObjects()) {
364
+ return new Google_AdUnits($data);
365
+ } else {
366
+ return $data;
367
+ }
368
+ }
369
+ /**
370
+ * Update the supplied ad unit in the specified publisher AdSense account. (adunits.update)
371
+ *
372
+ * @param string $accountId Account which contains the ad client.
373
+ * @param string $adClientId Ad client which contains the ad unit.
374
+ * @param Google_AdUnit $postBody
375
+ * @param array $optParams Optional parameters.
376
+ * @return Google_AdUnit
377
+ */
378
+ public function update($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
379
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
380
+ $params = array_merge($params, $optParams);
381
+ $data = $this->__call('update', array($params));
382
+ if ($this->useObjects()) {
383
+ return new Google_AdUnit($data);
384
+ } else {
385
+ return $data;
386
+ }
387
+ }
388
+ /**
389
+ * Update the supplied ad unit in the specified publisher AdSense account. This method supports
390
+ * patch semantics. (adunits.patch)
391
+ *
392
+ * @param string $accountId Account which contains the ad client.
393
+ * @param string $adClientId Ad client which contains the ad unit.
394
+ * @param string $adUnitId Ad unit to get.
395
+ * @param Google_AdUnit $postBody
396
+ * @param array $optParams Optional parameters.
397
+ * @return Google_AdUnit
398
+ */
399
+ public function patch($accountId, $adClientId, $adUnitId, Google_AdUnit $postBody, $optParams = array()) {
400
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
401
+ $params = array_merge($params, $optParams);
402
+ $data = $this->__call('patch', array($params));
403
+ if ($this->useObjects()) {
404
+ return new Google_AdUnit($data);
405
+ } else {
406
+ return $data;
407
+ }
408
+ }
409
+ /**
410
+ * Delete the specified ad unit from the specified publisher AdSense account. (adunits.delete)
411
+ *
412
+ * @param string $accountId Account which contains the ad unit.
413
+ * @param string $adClientId Ad client for which to get ad unit.
414
+ * @param string $adUnitId Ad unit to delete.
415
+ * @param array $optParams Optional parameters.
416
+ * @return Google_AdUnit
417
+ */
418
+ public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) {
419
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
420
+ $params = array_merge($params, $optParams);
421
+ $data = $this->__call('delete', array($params));
422
+ if ($this->useObjects()) {
423
+ return new Google_AdUnit($data);
424
+ } else {
425
+ return $data;
426
+ }
427
+ }
428
+ }
429
+ /**
430
+ * The "adclients" collection of methods.
431
+ * Typical usage is:
432
+ * <code>
433
+ * $adsensehostService = new Google_AdsensehostService(...);
434
+ * $adclients = $adsensehostService->adclients;
435
+ * </code>
436
+ */
437
+ class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
438
+
439
+
440
+ /**
441
+ * List all hosted ad clients in the specified hosted account. (adclients.list)
442
+ *
443
+ * @param string $accountId Account for which to list ad clients.
444
+ * @param array $optParams Optional parameters.
445
+ *
446
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
447
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
448
+ * @return Google_AdClients
449
+ */
450
+ public function listAccountsAdclients($accountId, $optParams = array()) {
451
+ $params = array('accountId' => $accountId);
452
+ $params = array_merge($params, $optParams);
453
+ $data = $this->__call('list', array($params));
454
+ if ($this->useObjects()) {
455
+ return new Google_AdClients($data);
456
+ } else {
457
+ return $data;
458
+ }
459
+ }
460
+ /**
461
+ * Get information about one of the ad clients in the specified publisher's AdSense account.
462
+ * (adclients.get)
463
+ *
464
+ * @param string $accountId Account which contains the ad client.
465
+ * @param string $adClientId Ad client to get.
466
+ * @param array $optParams Optional parameters.
467
+ * @return Google_AdClient
468
+ */
469
+ public function get($accountId, $adClientId, $optParams = array()) {
470
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
471
+ $params = array_merge($params, $optParams);
472
+ $data = $this->__call('get', array($params));
473
+ if ($this->useObjects()) {
474
+ return new Google_AdClient($data);
475
+ } else {
476
+ return $data;
477
+ }
478
+ }
479
+ }
480
+ /**
481
+ * The "reports" collection of methods.
482
+ * Typical usage is:
483
+ * <code>
484
+ * $adsensehostService = new Google_AdsensehostService(...);
485
+ * $reports = $adsensehostService->reports;
486
+ * </code>
487
+ */
488
+ class Google_AccountsReportsServiceResource extends Google_ServiceResource {
489
+
490
+
491
+ /**
492
+ * Generate an AdSense report based on the report request sent in the query parameters. Returns the
493
+ * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
494
+ * (reports.generate)
495
+ *
496
+ * @param string $accountId Hosted account upon which to report.
497
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
498
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
499
+ * @param array $optParams Optional parameters.
500
+ *
501
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
502
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
503
+ * @opt_param string metric Numeric columns to include in the report.
504
+ * @opt_param string maxResults The maximum number of rows of report data to return.
505
+ * @opt_param string filter Filters to be run on the report.
506
+ * @opt_param string startIndex Index of the first row of report data to return.
507
+ * @opt_param string dimension Dimensions to base the report on.
508
+ * @return Google_Report
509
+ */
510
+ public function generate($accountId, $startDate, $endDate, $optParams = array()) {
511
+ $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
512
+ $params = array_merge($params, $optParams);
513
+ $data = $this->__call('generate', array($params));
514
+ if ($this->useObjects()) {
515
+ return new Google_Report($data);
516
+ } else {
517
+ return $data;
518
+ }
519
+ }
520
+ }
521
+
522
+ /**
523
+ * The "customchannels" collection of methods.
524
+ * Typical usage is:
525
+ * <code>
526
+ * $adsensehostService = new Google_AdsensehostService(...);
527
+ * $customchannels = $adsensehostService->customchannels;
528
+ * </code>
529
+ */
530
+ class Google_CustomchannelsServiceResource extends Google_ServiceResource {
531
+
532
+
533
+ /**
534
+ * Add a new custom channel to the host AdSense account. (customchannels.insert)
535
+ *
536
+ * @param string $adClientId Ad client to which the new custom channel will be added.
537
+ * @param Google_CustomChannel $postBody
538
+ * @param array $optParams Optional parameters.
539
+ * @return Google_CustomChannel
540
+ */
541
+ public function insert($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
542
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
543
+ $params = array_merge($params, $optParams);
544
+ $data = $this->__call('insert', array($params));
545
+ if ($this->useObjects()) {
546
+ return new Google_CustomChannel($data);
547
+ } else {
548
+ return $data;
549
+ }
550
+ }
551
+ /**
552
+ * Get a specific custom channel from the host AdSense account. (customchannels.get)
553
+ *
554
+ * @param string $adClientId Ad client from which to get the custom channel.
555
+ * @param string $customChannelId Custom channel to get.
556
+ * @param array $optParams Optional parameters.
557
+ * @return Google_CustomChannel
558
+ */
559
+ public function get($adClientId, $customChannelId, $optParams = array()) {
560
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
561
+ $params = array_merge($params, $optParams);
562
+ $data = $this->__call('get', array($params));
563
+ if ($this->useObjects()) {
564
+ return new Google_CustomChannel($data);
565
+ } else {
566
+ return $data;
567
+ }
568
+ }
569
+ /**
570
+ * List all host custom channels in this AdSense account. (customchannels.list)
571
+ *
572
+ * @param string $adClientId Ad client for which to list custom channels.
573
+ * @param array $optParams Optional parameters.
574
+ *
575
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
576
+ * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
577
+ * @return Google_CustomChannels
578
+ */
579
+ public function listCustomchannels($adClientId, $optParams = array()) {
580
+ $params = array('adClientId' => $adClientId);
581
+ $params = array_merge($params, $optParams);
582
+ $data = $this->__call('list', array($params));
583
+ if ($this->useObjects()) {
584
+ return new Google_CustomChannels($data);
585
+ } else {
586
+ return $data;
587
+ }
588
+ }
589
+ /**
590
+ * Update a custom channel in the host AdSense account. (customchannels.update)
591
+ *
592
+ * @param string $adClientId Ad client in which the custom channel will be updated.
593
+ * @param Google_CustomChannel $postBody
594
+ * @param array $optParams Optional parameters.
595
+ * @return Google_CustomChannel
596
+ */
597
+ public function update($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
598
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
599
+ $params = array_merge($params, $optParams);
600
+ $data = $this->__call('update', array($params));
601
+ if ($this->useObjects()) {
602
+ return new Google_CustomChannel($data);
603
+ } else {
604
+ return $data;
605
+ }
606
+ }
607
+ /**
608
+ * Update a custom channel in the host AdSense account. This method supports patch semantics.
609
+ * (customchannels.patch)
610
+ *
611
+ * @param string $adClientId Ad client in which the custom channel will be updated.
612
+ * @param string $customChannelId Custom channel to get.
613
+ * @param Google_CustomChannel $postBody
614
+ * @param array $optParams Optional parameters.
615
+ * @return Google_CustomChannel
616
+ */
617
+ public function patch($adClientId, $customChannelId, Google_CustomChannel $postBody, $optParams = array()) {
618
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
619
+ $params = array_merge($params, $optParams);
620
+ $data = $this->__call('patch', array($params));
621
+ if ($this->useObjects()) {
622
+ return new Google_CustomChannel($data);
623
+ } else {
624
+ return $data;
625
+ }
626
+ }
627
+ /**
628
+ * Delete a specific custom channel from the host AdSense account. (customchannels.delete)
629
+ *
630
+ * @param string $adClientId Ad client from which to delete the custom channel.
631
+ * @param string $customChannelId Custom channel to delete.
632
+ * @param array $optParams Optional parameters.
633
+ * @return Google_CustomChannel
634
+ */
635
+ public function delete($adClientId, $customChannelId, $optParams = array()) {
636
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
637
+ $params = array_merge($params, $optParams);
638
+ $data = $this->__call('delete', array($params));
639
+ if ($this->useObjects()) {
640
+ return new Google_CustomChannel($data);
641
+ } else {
642
+ return $data;
643
+ }
644
+ }
645
+ }
646
+
647
+ /**
648
+ * Service definition for Google_Adsensehost (v4.1).
649
+ *
650
+ * <p>
651
+ * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
652
+ * </p>
653
+ *
654
+ * <p>
655
+ * For more information about this service, see the
656
+ * <a href="https://developers.google.com/adsense/host/" target="_blank">API Documentation</a>
657
+ * </p>
658
+ *
659
+ * @author Google, Inc.
660
+ */
661
+ class Google_AdsensehostService extends Google_Service {
662
+ public $urlchannels;
663
+ public $adclients;
664
+ public $associationsessions;
665
+ public $reports;
666
+ public $accounts;
667
+ public $accounts_adunits;
668
+ public $accounts_adclients;
669
+ public $accounts_reports;
670
+ public $customchannels;
671
+ /**
672
+ * Constructs the internal representation of the Adsensehost service.
673
+ *
674
+ * @param Google_Client $client
675
+ */
676
+ public function __construct(Google_Client $client) {
677
+ $this->servicePath = 'adsensehost/v4.1/';
678
+ $this->version = 'v4.1';
679
+ $this->serviceName = 'adsensehost';
680
+
681
+ $client->addService($this->serviceName, $this->version);
682
+ $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "UrlChannel"}, "response": {"$ref": "UrlChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/urlchannels", "id": "adsensehost.urlchannels.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "urlChannelId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.urlchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/urlchannels/{urlChannelId}", "response": {"$ref": "UrlChannel"}}}}', true));
683
+ $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsensehost.adclients.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.adclients.get", "httpMethod": "GET", "path": "adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
684
+ $this->associationsessions = new Google_AssociationsessionsServiceResource($this, $this->serviceName, 'associationsessions', json_decode('{"methods": {"start": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"websiteLocale": {"type": "string", "location": "query"}, "productCode": {"repeated": true, "required": true, "type": "string", "location": "query", "enum": ["AFC", "AFF", "AFMC", "AFS"]}, "userLocale": {"type": "string", "location": "query"}, "websiteUrl": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.start", "httpMethod": "GET", "path": "associationsessions/start", "response": {"$ref": "AssociationSession"}}, "verify": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"token": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.verify", "httpMethod": "GET", "path": "associationsessions/verify", "response": {"$ref": "AssociationSession"}}}}', true));
685
+ $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsensehost.reports.generate", "httpMethod": "GET", "path": "reports", "response": {"$ref": "Report"}}}}', true));
686
+ $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"filterAdClientId": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "adsensehost.accounts.list", "httpMethod": "GET", "path": "accounts", "response": {"$ref": "Accounts"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
687
+ $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "POST", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}, "getAdCode": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "hostCustomChannelId": {"repeated": true, "type": "string", "location": "query"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.getAdCode", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "response": {"$ref": "AdCode"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PUT", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PATCH", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.delete", "httpMethod": "DELETE", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
688
+ $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
689
+ $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.reports.generate", "httpMethod": "GET", "path": "accounts/{accountId}/reports", "response": {"$ref": "Report"}}}}', true));
690
+ $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PUT", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PATCH", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
691
+
692
+ }
693
+ }
694
+
695
+ class Google_Account extends Google_Model {
696
+ public $status;
697
+ public $kind;
698
+ public $id;
699
+ public $name;
700
+ public function setStatus($status) {
701
+ $this->status = $status;
702
+ }
703
+ public function getStatus() {
704
+ return $this->status;
705
+ }
706
+ public function setKind($kind) {
707
+ $this->kind = $kind;
708
+ }
709
+ public function getKind() {
710
+ return $this->kind;
711
+ }
712
+ public function setId($id) {
713
+ $this->id = $id;
714
+ }
715
+ public function getId() {
716
+ return $this->id;
717
+ }
718
+ public function setName($name) {
719
+ $this->name = $name;
720
+ }
721
+ public function getName() {
722
+ return $this->name;
723
+ }
724
+ }
725
+
726
+ class Google_Accounts extends Google_Model {
727
+ protected $__itemsType = 'Google_Account';
728
+ protected $__itemsDataType = 'array';
729
+ public $items;
730
+ public $kind;
731
+ public $etag;
732
+ public function setItems($items) {
733
+ $this->assertIsArray($items, 'Google_Account', __METHOD__);
734
+ $this->items = $items;
735
+ }
736
+ public function getItems() {
737
+ return $this->items;
738
+ }
739
+ public function setKind($kind) {
740
+ $this->kind = $kind;
741
+ }
742
+ public function getKind() {
743
+ return $this->kind;
744
+ }
745
+ public function setEtag($etag) {
746
+ $this->etag = $etag;
747
+ }
748
+ public function getEtag() {
749
+ return $this->etag;
750
+ }
751
+ }
752
+
753
+ class Google_AdClient extends Google_Model {
754
+ public $productCode;
755
+ public $kind;
756
+ public $id;
757
+ public $arcOptIn;
758
+ public $supportsReporting;
759
+ public function setProductCode($productCode) {
760
+ $this->productCode = $productCode;
761
+ }
762
+ public function getProductCode() {
763
+ return $this->productCode;
764
+ }
765
+ public function setKind($kind) {
766
+ $this->kind = $kind;
767
+ }
768
+ public function getKind() {
769
+ return $this->kind;
770
+ }
771
+ public function setId($id) {
772
+ $this->id = $id;
773
+ }
774
+ public function getId() {
775
+ return $this->id;
776
+ }
777
+ public function setArcOptIn($arcOptIn) {
778
+ $this->arcOptIn = $arcOptIn;
779
+ }
780
+ public function getArcOptIn() {
781
+ return $this->arcOptIn;
782
+ }
783
+ public function setSupportsReporting($supportsReporting) {
784
+ $this->supportsReporting = $supportsReporting;
785
+ }
786
+ public function getSupportsReporting() {
787
+ return $this->supportsReporting;
788
+ }
789
+ }
790
+
791
+ class Google_AdClients extends Google_Model {
792
+ public $nextPageToken;
793
+ protected $__itemsType = 'Google_AdClient';
794
+ protected $__itemsDataType = 'array';
795
+ public $items;
796
+ public $kind;
797
+ public $etag;
798
+ public function setNextPageToken($nextPageToken) {
799
+ $this->nextPageToken = $nextPageToken;
800
+ }
801
+ public function getNextPageToken() {
802
+ return $this->nextPageToken;
803
+ }
804
+ public function setItems($items) {
805
+ $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
806
+ $this->items = $items;
807
+ }
808
+ public function getItems() {
809
+ return $this->items;
810
+ }
811
+ public function setKind($kind) {
812
+ $this->kind = $kind;
813
+ }
814
+ public function getKind() {
815
+ return $this->kind;
816
+ }
817
+ public function setEtag($etag) {
818
+ $this->etag = $etag;
819
+ }
820
+ public function getEtag() {
821
+ return $this->etag;
822
+ }
823
+ }
824
+
825
+ class Google_AdCode extends Google_Model {
826
+ public $adCode;
827
+ public $kind;
828
+ public function setAdCode($adCode) {
829
+ $this->adCode = $adCode;
830
+ }
831
+ public function getAdCode() {
832
+ return $this->adCode;
833
+ }
834
+ public function setKind($kind) {
835
+ $this->kind = $kind;
836
+ }
837
+ public function getKind() {
838
+ return $this->kind;
839
+ }
840
+ }
841
+
842
+ class Google_AdStyle extends Google_Model {
843
+ public $corners;
844
+ protected $__colorsType = 'Google_AdStyleColors';
845
+ protected $__colorsDataType = '';
846
+ public $colors;
847
+ protected $__fontType = 'Google_AdStyleFont';
848
+ protected $__fontDataType = '';
849
+ public $font;
850
+ public $kind;
851
+ public function setCorners($corners) {
852
+ $this->corners = $corners;
853
+ }
854
+ public function getCorners() {
855
+ return $this->corners;
856
+ }
857
+ public function setColors(Google_AdStyleColors $colors) {
858
+ $this->colors = $colors;
859
+ }
860
+ public function getColors() {
861
+ return $this->colors;
862
+ }
863
+ public function setFont(Google_AdStyleFont $font) {
864
+ $this->font = $font;
865
+ }
866
+ public function getFont() {
867
+ return $this->font;
868
+ }
869
+ public function setKind($kind) {
870
+ $this->kind = $kind;
871
+ }
872
+ public function getKind() {
873
+ return $this->kind;
874
+ }
875
+ }
876
+
877
+ class Google_AdStyleColors extends Google_Model {
878
+ public $url;
879
+ public $text;
880
+ public $border;
881
+ public $background;
882
+ public $title;
883
+ public function setUrl($url) {
884
+ $this->url = $url;
885
+ }
886
+ public function getUrl() {
887
+ return $this->url;
888
+ }
889
+ public function setText($text) {
890
+ $this->text = $text;
891
+ }
892
+ public function getText() {
893
+ return $this->text;
894
+ }
895
+ public function setBorder($border) {
896
+ $this->border = $border;
897
+ }
898
+ public function getBorder() {
899
+ return $this->border;
900
+ }
901
+ public function setBackground($background) {
902
+ $this->background = $background;
903
+ }
904
+ public function getBackground() {
905
+ return $this->background;
906
+ }
907
+ public function setTitle($title) {
908
+ $this->title = $title;
909
+ }
910
+ public function getTitle() {
911
+ return $this->title;
912
+ }
913
+ }
914
+
915
+ class Google_AdStyleFont extends Google_Model {
916
+ public $family;
917
+ public $size;
918
+ public function setFamily($family) {
919
+ $this->family = $family;
920
+ }
921
+ public function getFamily() {
922
+ return $this->family;
923
+ }
924
+ public function setSize($size) {
925
+ $this->size = $size;
926
+ }
927
+ public function getSize() {
928
+ return $this->size;
929
+ }
930
+ }
931
+
932
+ class Google_AdUnit extends Google_Model {
933
+ public $status;
934
+ public $kind;
935
+ public $code;
936
+ public $name;
937
+ protected $__contentAdsSettingsType = 'Google_AdUnitContentAdsSettings';
938
+ protected $__contentAdsSettingsDataType = '';
939
+ public $contentAdsSettings;
940
+ public $id;
941
+ protected $__mobileContentAdsSettingsType = 'Google_AdUnitMobileContentAdsSettings';
942
+ protected $__mobileContentAdsSettingsDataType = '';
943
+ public $mobileContentAdsSettings;
944
+ protected $__customStyleType = 'Google_AdStyle';
945
+ protected $__customStyleDataType = '';
946
+ public $customStyle;
947
+ public function setStatus($status) {
948
+ $this->status = $status;
949
+ }
950
+ public function getStatus() {
951
+ return $this->status;
952
+ }
953
+ public function setKind($kind) {
954
+ $this->kind = $kind;
955
+ }
956
+ public function getKind() {
957
+ return $this->kind;
958
+ }
959
+ public function setCode($code) {
960
+ $this->code = $code;
961
+ }
962
+ public function getCode() {
963
+ return $this->code;
964
+ }
965
+ public function setName($name) {
966
+ $this->name = $name;
967
+ }
968
+ public function getName() {
969
+ return $this->name;
970
+ }
971
+ public function setContentAdsSettings(Google_AdUnitContentAdsSettings $contentAdsSettings) {
972
+ $this->contentAdsSettings = $contentAdsSettings;
973
+ }
974
+ public function getContentAdsSettings() {
975
+ return $this->contentAdsSettings;
976
+ }
977
+ public function setId($id) {
978
+ $this->id = $id;
979
+ }
980
+ public function getId() {
981
+ return $this->id;
982
+ }
983
+ public function setMobileContentAdsSettings(Google_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) {
984
+ $this->mobileContentAdsSettings = $mobileContentAdsSettings;
985
+ }
986
+ public function getMobileContentAdsSettings() {
987
+ return $this->mobileContentAdsSettings;
988
+ }
989
+ public function setCustomStyle(Google_AdStyle $customStyle) {
990
+ $this->customStyle = $customStyle;
991
+ }
992
+ public function getCustomStyle() {
993
+ return $this->customStyle;
994
+ }
995
+ }
996
+
997
+ class Google_AdUnitContentAdsSettings extends Google_Model {
998
+ public $type;
999
+ protected $__backupOptionType = 'Google_AdUnitContentAdsSettingsBackupOption';
1000
+ protected $__backupOptionDataType = '';
1001
+ public $backupOption;
1002
+ public $size;
1003
+ public function setType($type) {
1004
+ $this->type = $type;
1005
+ }
1006
+ public function getType() {
1007
+ return $this->type;
1008
+ }
1009
+ public function setBackupOption(Google_AdUnitContentAdsSettingsBackupOption $backupOption) {
1010
+ $this->backupOption = $backupOption;
1011
+ }
1012
+ public function getBackupOption() {
1013
+ return $this->backupOption;
1014
+ }
1015
+ public function setSize($size) {
1016
+ $this->size = $size;
1017
+ }
1018
+ public function getSize() {
1019
+ return $this->size;
1020
+ }
1021
+ }
1022
+
1023
+ class Google_AdUnitContentAdsSettingsBackupOption extends Google_Model {
1024
+ public $color;
1025
+ public $url;
1026
+ public $type;
1027
+ public function setColor($color) {
1028
+ $this->color = $color;
1029
+ }
1030
+ public function getColor() {
1031
+ return $this->color;
1032
+ }
1033
+ public function setUrl($url) {
1034
+ $this->url = $url;
1035
+ }
1036
+ public function getUrl() {
1037
+ return $this->url;
1038
+ }
1039
+ public function setType($type) {
1040
+ $this->type = $type;
1041
+ }
1042
+ public function getType() {
1043
+ return $this->type;
1044
+ }
1045
+ }
1046
+
1047
+ class Google_AdUnitMobileContentAdsSettings extends Google_Model {
1048
+ public $scriptingLanguage;
1049
+ public $type;
1050
+ public $markupLanguage;
1051
+ public $size;
1052
+ public function setScriptingLanguage($scriptingLanguage) {
1053
+ $this->scriptingLanguage = $scriptingLanguage;
1054
+ }
1055
+ public function getScriptingLanguage() {
1056
+ return $this->scriptingLanguage;
1057
+ }
1058
+ public function setType($type) {
1059
+ $this->type = $type;
1060
+ }
1061
+ public function getType() {
1062
+ return $this->type;
1063
+ }
1064
+ public function setMarkupLanguage($markupLanguage) {
1065
+ $this->markupLanguage = $markupLanguage;
1066
+ }
1067
+ public function getMarkupLanguage() {
1068
+ return $this->markupLanguage;
1069
+ }
1070
+ public function setSize($size) {
1071
+ $this->size = $size;
1072
+ }
1073
+ public function getSize() {
1074
+ return $this->size;
1075
+ }
1076
+ }
1077
+
1078
+ class Google_AdUnits extends Google_Model {
1079
+ public $nextPageToken;
1080
+ protected $__itemsType = 'Google_AdUnit';
1081
+ protected $__itemsDataType = 'array';
1082
+ public $items;
1083
+ public $kind;
1084
+ public $etag;
1085
+ public function setNextPageToken($nextPageToken) {
1086
+ $this->nextPageToken = $nextPageToken;
1087
+ }
1088
+ public function getNextPageToken() {
1089
+ return $this->nextPageToken;
1090
+ }
1091
+ public function setItems($items) {
1092
+ $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
1093
+ $this->items = $items;
1094
+ }
1095
+ public function getItems() {
1096
+ return $this->items;
1097
+ }
1098
+ public function setKind($kind) {
1099
+ $this->kind = $kind;
1100
+ }
1101
+ public function getKind() {
1102
+ return $this->kind;
1103
+ }
1104
+ public function setEtag($etag) {
1105
+ $this->etag = $etag;
1106
+ }
1107
+ public function getEtag() {
1108
+ return $this->etag;
1109
+ }
1110
+ }
1111
+
1112
+ class Google_AssociationSession extends Google_Model {
1113
+ public $status;
1114
+ public $productCodes;
1115
+ public $kind;
1116
+ public $userLocale;
1117
+ public $websiteLocale;
1118
+ public $redirectUrl;
1119
+ public $websiteUrl;
1120
+ public $id;
1121
+ public $accountId;
1122
+ public function setStatus($status) {
1123
+ $this->status = $status;
1124
+ }
1125
+ public function getStatus() {
1126
+ return $this->status;
1127
+ }
1128
+ public function setProductCodes($productCodes) {
1129
+ $this->productCodes = $productCodes;
1130
+ }
1131
+ public function getProductCodes() {
1132
+ return $this->productCodes;
1133
+ }
1134
+ public function setKind($kind) {
1135
+ $this->kind = $kind;
1136
+ }
1137
+ public function getKind() {
1138
+ return $this->kind;
1139
+ }
1140
+ public function setUserLocale($userLocale) {
1141
+ $this->userLocale = $userLocale;
1142
+ }
1143
+ public function getUserLocale() {
1144
+ return $this->userLocale;
1145
+ }
1146
+ public function setWebsiteLocale($websiteLocale) {
1147
+ $this->websiteLocale = $websiteLocale;
1148
+ }
1149
+ public function getWebsiteLocale() {
1150
+ return $this->websiteLocale;
1151
+ }
1152
+ public function setRedirectUrl($redirectUrl) {
1153
+ $this->redirectUrl = $redirectUrl;
1154
+ }
1155
+ public function getRedirectUrl() {
1156
+ return $this->redirectUrl;
1157
+ }
1158
+ public function setWebsiteUrl($websiteUrl) {
1159
+ $this->websiteUrl = $websiteUrl;
1160
+ }
1161
+ public function getWebsiteUrl() {
1162
+ return $this->websiteUrl;
1163
+ }
1164
+ public function setId($id) {
1165
+ $this->id = $id;
1166
+ }
1167
+ public function getId() {
1168
+ return $this->id;
1169
+ }
1170
+ public function setAccountId($accountId) {
1171
+ $this->accountId = $accountId;
1172
+ }
1173
+ public function getAccountId() {
1174
+ return $this->accountId;
1175
+ }
1176
+ }
1177
+
1178
+ class Google_CustomChannel extends Google_Model {
1179
+ public $kind;
1180
+ public $code;
1181
+ public $id;
1182
+ public $name;
1183
+ public function setKind($kind) {
1184
+ $this->kind = $kind;
1185
+ }
1186
+ public function getKind() {
1187
+ return $this->kind;
1188
+ }
1189
+ public function setCode($code) {
1190
+ $this->code = $code;
1191
+ }
1192
+ public function getCode() {
1193
+ return $this->code;
1194
+ }
1195
+ public function setId($id) {
1196
+ $this->id = $id;
1197
+ }
1198
+ public function getId() {
1199
+ return $this->id;
1200
+ }
1201
+ public function setName($name) {
1202
+ $this->name = $name;
1203
+ }
1204
+ public function getName() {
1205
+ return $this->name;
1206
+ }
1207
+ }
1208
+
1209
+ class Google_CustomChannels extends Google_Model {
1210
+ public $nextPageToken;
1211
+ protected $__itemsType = 'Google_CustomChannel';
1212
+ protected $__itemsDataType = 'array';
1213
+ public $items;
1214
+ public $kind;
1215
+ public $etag;
1216
+ public function setNextPageToken($nextPageToken) {
1217
+ $this->nextPageToken = $nextPageToken;
1218
+ }
1219
+ public function getNextPageToken() {
1220
+ return $this->nextPageToken;
1221
+ }
1222
+ public function setItems($items) {
1223
+ $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1224
+ $this->items = $items;
1225
+ }
1226
+ public function getItems() {
1227
+ return $this->items;
1228
+ }
1229
+ public function setKind($kind) {
1230
+ $this->kind = $kind;
1231
+ }
1232
+ public function getKind() {
1233
+ return $this->kind;
1234
+ }
1235
+ public function setEtag($etag) {
1236
+ $this->etag = $etag;
1237
+ }
1238
+ public function getEtag() {
1239
+ return $this->etag;
1240
+ }
1241
+ }
1242
+
1243
+ class Google_Report extends Google_Model {
1244
+ public $kind;
1245
+ public $rows;
1246
+ public $warnings;
1247
+ public $totals;
1248
+ protected $__headersType = 'Google_ReportHeaders';
1249
+ protected $__headersDataType = 'array';
1250
+ public $headers;
1251
+ public $totalMatchedRows;
1252
+ public $averages;
1253
+ public function setKind($kind) {
1254
+ $this->kind = $kind;
1255
+ }
1256
+ public function getKind() {
1257
+ return $this->kind;
1258
+ }
1259
+ public function setRows($rows) {
1260
+ $this->rows = $rows;
1261
+ }
1262
+ public function getRows() {
1263
+ return $this->rows;
1264
+ }
1265
+ public function setWarnings($warnings) {
1266
+ $this->warnings = $warnings;
1267
+ }
1268
+ public function getWarnings() {
1269
+ return $this->warnings;
1270
+ }
1271
+ public function setTotals($totals) {
1272
+ $this->totals = $totals;
1273
+ }
1274
+ public function getTotals() {
1275
+ return $this->totals;
1276
+ }
1277
+ public function setHeaders($headers) {
1278
+ $this->assertIsArray($headers, 'Google_ReportHeaders', __METHOD__);
1279
+ $this->headers = $headers;
1280
+ }
1281
+ public function getHeaders() {
1282
+ return $this->headers;
1283
+ }
1284
+ public function setTotalMatchedRows($totalMatchedRows) {
1285
+ $this->totalMatchedRows = $totalMatchedRows;
1286
+ }
1287
+ public function getTotalMatchedRows() {
1288
+ return $this->totalMatchedRows;
1289
+ }
1290
+ public function setAverages($averages) {
1291
+ $this->averages = $averages;
1292
+ }
1293
+ public function getAverages() {
1294
+ return $this->averages;
1295
+ }
1296
+ }
1297
+
1298
+ class Google_ReportHeaders extends Google_Model {
1299
+ public $currency;
1300
+ public $type;
1301
+ public $name;
1302
+ public function setCurrency($currency) {
1303
+ $this->currency = $currency;
1304
+ }
1305
+ public function getCurrency() {
1306
+ return $this->currency;
1307
+ }
1308
+ public function setType($type) {
1309
+ $this->type = $type;
1310
+ }
1311
+ public function getType() {
1312
+ return $this->type;
1313
+ }
1314
+ public function setName($name) {
1315
+ $this->name = $name;
1316
+ }
1317
+ public function getName() {
1318
+ return $this->name;
1319
+ }
1320
+ }
1321
+
1322
+ class Google_UrlChannel extends Google_Model {
1323
+ public $kind;
1324
+ public $id;
1325
+ public $urlPattern;
1326
+ public function setKind($kind) {
1327
+ $this->kind = $kind;
1328
+ }
1329
+ public function getKind() {
1330
+ return $this->kind;
1331
+ }
1332
+ public function setId($id) {
1333
+ $this->id = $id;
1334
+ }
1335
+ public function getId() {
1336
+ return $this->id;
1337
+ }
1338
+ public function setUrlPattern($urlPattern) {
1339
+ $this->urlPattern = $urlPattern;
1340
+ }
1341
+ public function getUrlPattern() {
1342
+ return $this->urlPattern;
1343
+ }
1344
+ }
1345
+
1346
+ class Google_UrlChannels extends Google_Model {
1347
+ public $nextPageToken;
1348
+ protected $__itemsType = 'Google_UrlChannel';
1349
+ protected $__itemsDataType = 'array';
1350
+ public $items;
1351
+ public $kind;
1352
+ public $etag;
1353
+ public function setNextPageToken($nextPageToken) {
1354
+ $this->nextPageToken = $nextPageToken;
1355
+ }
1356
+ public function getNextPageToken() {
1357
+ return $this->nextPageToken;
1358
+ }
1359
+ public function setItems($items) {
1360
+ $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
1361
+ $this->items = $items;
1362
+ }
1363
+ public function getItems() {
1364
+ return $this->items;
1365
+ }
1366
+ public function setKind($kind) {
1367
+ $this->kind = $kind;
1368
+ }
1369
+ public function getKind() {
1370
+ return $this->kind;
1371
+ }
1372
+ public function setEtag($etag) {
1373
+ $this->etag = $etag;
1374
+ }
1375
+ public function getEtag() {
1376
+ return $this->etag;
1377
+ }
1378
+ }
google-api-php-client/src/contrib/Google_BigqueryService.php ADDED
@@ -0,0 +1,1821 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "tables" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $bigqueryService = new Google_BigqueryService(...);
22
+ * $tables = $bigqueryService->tables;
23
+ * </code>
24
+ */
25
+ class Google_TablesServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Creates a new, empty table in the dataset. (tables.insert)
30
+ *
31
+ * @param string $projectId Project ID of the new table
32
+ * @param string $datasetId Dataset ID of the new table
33
+ * @param Google_Table $postBody
34
+ * @param array $optParams Optional parameters.
35
+ * @return Google_Table
36
+ */
37
+ public function insert($projectId, $datasetId, Google_Table $postBody, $optParams = array()) {
38
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
39
+ $params = array_merge($params, $optParams);
40
+ $data = $this->__call('insert', array($params));
41
+ if ($this->useObjects()) {
42
+ return new Google_Table($data);
43
+ } else {
44
+ return $data;
45
+ }
46
+ }
47
+ /**
48
+ * Gets the specified table resource by table ID. This method does not return the data in the table,
49
+ * it only returns the table resource, which describes the structure of this table. (tables.get)
50
+ *
51
+ * @param string $projectId Project ID of the requested table
52
+ * @param string $datasetId Dataset ID of the requested table
53
+ * @param string $tableId Table ID of the requested table
54
+ * @param array $optParams Optional parameters.
55
+ * @return Google_Table
56
+ */
57
+ public function get($projectId, $datasetId, $tableId, $optParams = array()) {
58
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
59
+ $params = array_merge($params, $optParams);
60
+ $data = $this->__call('get', array($params));
61
+ if ($this->useObjects()) {
62
+ return new Google_Table($data);
63
+ } else {
64
+ return $data;
65
+ }
66
+ }
67
+ /**
68
+ * Lists all tables in the specified dataset. (tables.list)
69
+ *
70
+ * @param string $projectId Project ID of the tables to list
71
+ * @param string $datasetId Dataset ID of the tables to list
72
+ * @param array $optParams Optional parameters.
73
+ *
74
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
75
+ * @opt_param string maxResults Maximum number of results to return
76
+ * @return Google_TableList
77
+ */
78
+ public function listTables($projectId, $datasetId, $optParams = array()) {
79
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
80
+ $params = array_merge($params, $optParams);
81
+ $data = $this->__call('list', array($params));
82
+ if ($this->useObjects()) {
83
+ return new Google_TableList($data);
84
+ } else {
85
+ return $data;
86
+ }
87
+ }
88
+ /**
89
+ * Updates information in an existing table, specified by tableId. (tables.update)
90
+ *
91
+ * @param string $projectId Project ID of the table to update
92
+ * @param string $datasetId Dataset ID of the table to update
93
+ * @param string $tableId Table ID of the table to update
94
+ * @param Google_Table $postBody
95
+ * @param array $optParams Optional parameters.
96
+ * @return Google_Table
97
+ */
98
+ public function update($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
99
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
100
+ $params = array_merge($params, $optParams);
101
+ $data = $this->__call('update', array($params));
102
+ if ($this->useObjects()) {
103
+ return new Google_Table($data);
104
+ } else {
105
+ return $data;
106
+ }
107
+ }
108
+ /**
109
+ * Updates information in an existing table, specified by tableId. This method supports patch
110
+ * semantics. (tables.patch)
111
+ *
112
+ * @param string $projectId Project ID of the table to update
113
+ * @param string $datasetId Dataset ID of the table to update
114
+ * @param string $tableId Table ID of the table to update
115
+ * @param Google_Table $postBody
116
+ * @param array $optParams Optional parameters.
117
+ * @return Google_Table
118
+ */
119
+ public function patch($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
120
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
121
+ $params = array_merge($params, $optParams);
122
+ $data = $this->__call('patch', array($params));
123
+ if ($this->useObjects()) {
124
+ return new Google_Table($data);
125
+ } else {
126
+ return $data;
127
+ }
128
+ }
129
+ /**
130
+ * Deletes the table specified by tableId from the dataset. If the table contains data, all the data
131
+ * will be deleted. (tables.delete)
132
+ *
133
+ * @param string $projectId Project ID of the table to delete
134
+ * @param string $datasetId Dataset ID of the table to delete
135
+ * @param string $tableId Table ID of the table to delete
136
+ * @param array $optParams Optional parameters.
137
+ */
138
+ public function delete($projectId, $datasetId, $tableId, $optParams = array()) {
139
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
140
+ $params = array_merge($params, $optParams);
141
+ $data = $this->__call('delete', array($params));
142
+ return $data;
143
+ }
144
+ }
145
+
146
+ /**
147
+ * The "datasets" collection of methods.
148
+ * Typical usage is:
149
+ * <code>
150
+ * $bigqueryService = new Google_BigqueryService(...);
151
+ * $datasets = $bigqueryService->datasets;
152
+ * </code>
153
+ */
154
+ class Google_DatasetsServiceResource extends Google_ServiceResource {
155
+
156
+
157
+ /**
158
+ * Creates a new empty dataset. (datasets.insert)
159
+ *
160
+ * @param string $projectId Project ID of the new dataset
161
+ * @param Google_Dataset $postBody
162
+ * @param array $optParams Optional parameters.
163
+ * @return Google_Dataset
164
+ */
165
+ public function insert($projectId, Google_Dataset $postBody, $optParams = array()) {
166
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
167
+ $params = array_merge($params, $optParams);
168
+ $data = $this->__call('insert', array($params));
169
+ if ($this->useObjects()) {
170
+ return new Google_Dataset($data);
171
+ } else {
172
+ return $data;
173
+ }
174
+ }
175
+ /**
176
+ * Returns the dataset specified by datasetID. (datasets.get)
177
+ *
178
+ * @param string $projectId Project ID of the requested dataset
179
+ * @param string $datasetId Dataset ID of the requested dataset
180
+ * @param array $optParams Optional parameters.
181
+ * @return Google_Dataset
182
+ */
183
+ public function get($projectId, $datasetId, $optParams = array()) {
184
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
185
+ $params = array_merge($params, $optParams);
186
+ $data = $this->__call('get', array($params));
187
+ if ($this->useObjects()) {
188
+ return new Google_Dataset($data);
189
+ } else {
190
+ return $data;
191
+ }
192
+ }
193
+ /**
194
+ * Lists all the datasets in the specified project to which the caller has read access; however, a
195
+ * project owner can list (but not necessarily get) all datasets in his project. (datasets.list)
196
+ *
197
+ * @param string $projectId Project ID of the datasets to be listed
198
+ * @param array $optParams Optional parameters.
199
+ *
200
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
201
+ * @opt_param string maxResults The maximum number of results to return
202
+ * @return Google_DatasetList
203
+ */
204
+ public function listDatasets($projectId, $optParams = array()) {
205
+ $params = array('projectId' => $projectId);
206
+ $params = array_merge($params, $optParams);
207
+ $data = $this->__call('list', array($params));
208
+ if ($this->useObjects()) {
209
+ return new Google_DatasetList($data);
210
+ } else {
211
+ return $data;
212
+ }
213
+ }
214
+ /**
215
+ * Updates information in an existing dataset, specified by datasetId. Properties not included in
216
+ * the submitted resource will not be changed. If you include the access property without any values
217
+ * assigned, the request will fail as you must specify at least one owner for a dataset.
218
+ * (datasets.update)
219
+ *
220
+ * @param string $projectId Project ID of the dataset being updated
221
+ * @param string $datasetId Dataset ID of the dataset being updated
222
+ * @param Google_Dataset $postBody
223
+ * @param array $optParams Optional parameters.
224
+ * @return Google_Dataset
225
+ */
226
+ public function update($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
227
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
228
+ $params = array_merge($params, $optParams);
229
+ $data = $this->__call('update', array($params));
230
+ if ($this->useObjects()) {
231
+ return new Google_Dataset($data);
232
+ } else {
233
+ return $data;
234
+ }
235
+ }
236
+ /**
237
+ * Updates information in an existing dataset, specified by datasetId. Properties not included in
238
+ * the submitted resource will not be changed. If you include the access property without any values
239
+ * assigned, the request will fail as you must specify at least one owner for a dataset. This method
240
+ * supports patch semantics. (datasets.patch)
241
+ *
242
+ * @param string $projectId Project ID of the dataset being updated
243
+ * @param string $datasetId Dataset ID of the dataset being updated
244
+ * @param Google_Dataset $postBody
245
+ * @param array $optParams Optional parameters.
246
+ * @return Google_Dataset
247
+ */
248
+ public function patch($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
249
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
250
+ $params = array_merge($params, $optParams);
251
+ $data = $this->__call('patch', array($params));
252
+ if ($this->useObjects()) {
253
+ return new Google_Dataset($data);
254
+ } else {
255
+ return $data;
256
+ }
257
+ }
258
+ /**
259
+ * Deletes the dataset specified by datasetId value. Before you can delete a dataset, you must
260
+ * delete all its tables, either manually or by specifying deleteContents. Immediately after
261
+ * deletion, you can create another dataset with the same name. (datasets.delete)
262
+ *
263
+ * @param string $projectId Project ID of the dataset being deleted
264
+ * @param string $datasetId Dataset ID of dataset being deleted
265
+ * @param array $optParams Optional parameters.
266
+ *
267
+ * @opt_param bool deleteContents If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False
268
+ */
269
+ public function delete($projectId, $datasetId, $optParams = array()) {
270
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
271
+ $params = array_merge($params, $optParams);
272
+ $data = $this->__call('delete', array($params));
273
+ return $data;
274
+ }
275
+ }
276
+
277
+ /**
278
+ * The "jobs" collection of methods.
279
+ * Typical usage is:
280
+ * <code>
281
+ * $bigqueryService = new Google_BigqueryService(...);
282
+ * $jobs = $bigqueryService->jobs;
283
+ * </code>
284
+ */
285
+ class Google_JobsServiceResource extends Google_ServiceResource {
286
+
287
+
288
+ /**
289
+ * Starts a new asynchronous job. (jobs.insert)
290
+ *
291
+ * @param string $projectId Project ID of the project that will be billed for the job
292
+ * @param Google_Job $postBody
293
+ * @param array $optParams Optional parameters.
294
+ * @return Google_Job
295
+ */
296
+ public function insert($projectId, Google_Job $postBody, $optParams = array()) {
297
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
298
+ $params = array_merge($params, $optParams);
299
+ $data = $this->__call('insert', array($params));
300
+ if ($this->useObjects()) {
301
+ return new Google_Job($data);
302
+ } else {
303
+ return $data;
304
+ }
305
+ }
306
+ /**
307
+ * Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
308
+ * specified timeout. (jobs.query)
309
+ *
310
+ * @param string $projectId Project ID of the project billed for the query
311
+ * @param Google_QueryRequest $postBody
312
+ * @param array $optParams Optional parameters.
313
+ * @return Google_QueryResponse
314
+ */
315
+ public function query($projectId, Google_QueryRequest $postBody, $optParams = array()) {
316
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
317
+ $params = array_merge($params, $optParams);
318
+ $data = $this->__call('query', array($params));
319
+ if ($this->useObjects()) {
320
+ return new Google_QueryResponse($data);
321
+ } else {
322
+ return $data;
323
+ }
324
+ }
325
+ /**
326
+ * Lists all the Jobs in the specified project that were started by the user. (jobs.list)
327
+ *
328
+ * @param string $projectId Project ID of the jobs to list
329
+ * @param array $optParams Optional parameters.
330
+ *
331
+ * @opt_param string projection Restrict information returned to a set of selected fields
332
+ * @opt_param string stateFilter Filter for job state
333
+ * @opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
334
+ * @opt_param string maxResults Maximum number of results to return
335
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
336
+ * @return Google_JobList
337
+ */
338
+ public function listJobs($projectId, $optParams = array()) {
339
+ $params = array('projectId' => $projectId);
340
+ $params = array_merge($params, $optParams);
341
+ $data = $this->__call('list', array($params));
342
+ if ($this->useObjects()) {
343
+ return new Google_JobList($data);
344
+ } else {
345
+ return $data;
346
+ }
347
+ }
348
+ /**
349
+ * Retrieves the results of a query job. (jobs.getQueryResults)
350
+ *
351
+ * @param string $projectId Project ID of the query job
352
+ * @param string $jobId Job ID of the query job
353
+ * @param array $optParams Optional parameters.
354
+ *
355
+ * @opt_param string timeoutMs How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error
356
+ * @opt_param string startIndex Zero-based index of the starting row
357
+ * @opt_param string maxResults Maximum number of results to read
358
+ * @return Google_GetQueryResultsResponse
359
+ */
360
+ public function getQueryResults($projectId, $jobId, $optParams = array()) {
361
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
362
+ $params = array_merge($params, $optParams);
363
+ $data = $this->__call('getQueryResults', array($params));
364
+ if ($this->useObjects()) {
365
+ return new Google_GetQueryResultsResponse($data);
366
+ } else {
367
+ return $data;
368
+ }
369
+ }
370
+ /**
371
+ * Retrieves the specified job by ID. (jobs.get)
372
+ *
373
+ * @param string $projectId Project ID of the requested job
374
+ * @param string $jobId Job ID of the requested job
375
+ * @param array $optParams Optional parameters.
376
+ * @return Google_Job
377
+ */
378
+ public function get($projectId, $jobId, $optParams = array()) {
379
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
380
+ $params = array_merge($params, $optParams);
381
+ $data = $this->__call('get', array($params));
382
+ if ($this->useObjects()) {
383
+ return new Google_Job($data);
384
+ } else {
385
+ return $data;
386
+ }
387
+ }
388
+ }
389
+
390
+ /**
391
+ * The "tabledata" collection of methods.
392
+ * Typical usage is:
393
+ * <code>
394
+ * $bigqueryService = new Google_BigqueryService(...);
395
+ * $tabledata = $bigqueryService->tabledata;
396
+ * </code>
397
+ */
398
+ class Google_TabledataServiceResource extends Google_ServiceResource {
399
+
400
+
401
+ /**
402
+ * Retrieves table data from a specified set of rows. (tabledata.list)
403
+ *
404
+ * @param string $projectId Project ID of the table to read
405
+ * @param string $datasetId Dataset ID of the table to read
406
+ * @param string $tableId Table ID of the table to read
407
+ * @param array $optParams Optional parameters.
408
+ *
409
+ * @opt_param string maxResults Maximum number of results to return
410
+ * @opt_param string pageToken Page token, returned by a previous call, identifying the result set
411
+ * @opt_param string startIndex Zero-based index of the starting row to read
412
+ * @return Google_TableDataList
413
+ */
414
+ public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) {
415
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
416
+ $params = array_merge($params, $optParams);
417
+ $data = $this->__call('list', array($params));
418
+ if ($this->useObjects()) {
419
+ return new Google_TableDataList($data);
420
+ } else {
421
+ return $data;
422
+ }
423
+ }
424
+ }
425
+
426
+ /**
427
+ * The "projects" collection of methods.
428
+ * Typical usage is:
429
+ * <code>
430
+ * $bigqueryService = new Google_BigqueryService(...);
431
+ * $projects = $bigqueryService->projects;
432
+ * </code>
433
+ */
434
+ class Google_ProjectsServiceResource extends Google_ServiceResource {
435
+
436
+
437
+ /**
438
+ * Lists the projects to which you have at least read access. (projects.list)
439
+ *
440
+ * @param array $optParams Optional parameters.
441
+ *
442
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
443
+ * @opt_param string maxResults Maximum number of results to return
444
+ * @return Google_ProjectList
445
+ */
446
+ public function listProjects($optParams = array()) {
447
+ $params = array();
448
+ $params = array_merge($params, $optParams);
449
+ $data = $this->__call('list', array($params));
450
+ if ($this->useObjects()) {
451
+ return new Google_ProjectList($data);
452
+ } else {
453
+ return $data;
454
+ }
455
+ }
456
+ }
457
+
458
+ /**
459
+ * Service definition for Google_Bigquery (v2).
460
+ *
461
+ * <p>
462
+ * A data platform for customers to create, manage, share and query data.
463
+ * </p>
464
+ *
465
+ * <p>
466
+ * For more information about this service, see the
467
+ * <a href="https://code.google.com/apis/bigquery/docs/v2/" target="_blank">API Documentation</a>
468
+ * </p>
469
+ *
470
+ * @author Google, Inc.
471
+ */
472
+ class Google_BigqueryService extends Google_Service {
473
+ public $tables;
474
+ public $datasets;
475
+ public $jobs;
476
+ public $tabledata;
477
+ public $projects;
478
+ /**
479
+ * Constructs the internal representation of the Bigquery service.
480
+ *
481
+ * @param Google_Client $client
482
+ */
483
+ public function __construct(Google_Client $client) {
484
+ $this->servicePath = 'bigquery/v2/';
485
+ $this->version = 'v2';
486
+ $this->serviceName = 'bigquery';
487
+
488
+ $client->addService($this->serviceName, $this->version);
489
+ $this->tables = new Google_TablesServiceResource($this, $this->serviceName, 'tables', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets/{datasetId}/tables", "id": "bigquery.tables.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables", "response": {"$ref": "TableList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.delete", "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
490
+ $this->datasets = new Google_DatasetsServiceResource($this, $this->serviceName, 'datasets', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets", "id": "bigquery.datasets.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}", "response": {"$ref": "Dataset"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets", "response": {"$ref": "DatasetList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.delete", "parameters": {"deleteContents": {"type": "boolean", "location": "query"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
491
+ $this->jobs = new Google_JobsServiceResource($this, $this->serviceName, 'jobs', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "Job"}, "mediaUpload": {"protocols": {"simple": {"path": "/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}, "resumable": {"path": "/resumable/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}}, "accept": ["application/octet-stream"]}, "response": {"$ref": "Job"}, "httpMethod": "POST", "path": "projects/{projectId}/jobs", "id": "bigquery.jobs.insert"}, "query": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "QueryRequest"}, "response": {"$ref": "QueryResponse"}, "httpMethod": "POST", "path": "projects/{projectId}/queries", "id": "bigquery.jobs.query"}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projection": {"enum": ["full", "minimal"], "type": "string", "location": "query"}, "stateFilter": {"repeated": true, "enum": ["done", "pending", "running"], "type": "string", "location": "query"}, "projectId": {"required": true, "type": "string", "location": "path"}, "allUsers": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}}, "id": "bigquery.jobs.list", "httpMethod": "GET", "path": "projects/{projectId}/jobs", "response": {"$ref": "JobList"}}, "getQueryResults": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"timeoutMs": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.getQueryResults", "httpMethod": "GET", "path": "projects/{projectId}/queries/{jobId}", "response": {"$ref": "GetQueryResultsResponse"}}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.get", "httpMethod": "GET", "path": "projects/{projectId}/jobs/{jobId}", "response": {"$ref": "Job"}}}}', true));
492
+ $this->tabledata = new Google_TabledataServiceResource($this, $this->serviceName, 'tabledata', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tabledata.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data", "response": {"$ref": "TableDataList"}}}}', true));
493
+ $this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "ProjectList"}, "httpMethod": "GET", "path": "projects", "id": "bigquery.projects.list"}}}', true));
494
+
495
+ }
496
+ }
497
+
498
+ class Google_Dataset extends Google_Model {
499
+ public $kind;
500
+ public $description;
501
+ protected $__datasetReferenceType = 'Google_DatasetReference';
502
+ protected $__datasetReferenceDataType = '';
503
+ public $datasetReference;
504
+ public $creationTime;
505
+ protected $__accessType = 'Google_DatasetAccess';
506
+ protected $__accessDataType = 'array';
507
+ public $access;
508
+ public $etag;
509
+ public $friendlyName;
510
+ public $lastModifiedTime;
511
+ public $id;
512
+ public $selfLink;
513
+ public function setKind($kind) {
514
+ $this->kind = $kind;
515
+ }
516
+ public function getKind() {
517
+ return $this->kind;
518
+ }
519
+ public function setDescription($description) {
520
+ $this->description = $description;
521
+ }
522
+ public function getDescription() {
523
+ return $this->description;
524
+ }
525
+ public function setDatasetReference(Google_DatasetReference $datasetReference) {
526
+ $this->datasetReference = $datasetReference;
527
+ }
528
+ public function getDatasetReference() {
529
+ return $this->datasetReference;
530
+ }
531
+ public function setCreationTime($creationTime) {
532
+ $this->creationTime = $creationTime;
533
+ }
534
+ public function getCreationTime() {
535
+ return $this->creationTime;
536
+ }
537
+ public function setAccess(/* array(Google_DatasetAccess) */ $access) {
538
+ $this->assertIsArray($access, 'Google_DatasetAccess', __METHOD__);
539
+ $this->access = $access;
540
+ }
541
+ public function getAccess() {
542
+ return $this->access;
543
+ }
544
+ public function setEtag($etag) {
545
+ $this->etag = $etag;
546
+ }
547
+ public function getEtag() {
548
+ return $this->etag;
549
+ }
550
+ public function setFriendlyName($friendlyName) {
551
+ $this->friendlyName = $friendlyName;
552
+ }
553
+ public function getFriendlyName() {
554
+ return $this->friendlyName;
555
+ }
556
+ public function setLastModifiedTime($lastModifiedTime) {
557
+ $this->lastModifiedTime = $lastModifiedTime;
558
+ }
559
+ public function getLastModifiedTime() {
560
+ return $this->lastModifiedTime;
561
+ }
562
+ public function setId($id) {
563
+ $this->id = $id;
564
+ }
565
+ public function getId() {
566
+ return $this->id;
567
+ }
568
+ public function setSelfLink($selfLink) {
569
+ $this->selfLink = $selfLink;
570
+ }
571
+ public function getSelfLink() {
572
+ return $this->selfLink;
573
+ }
574
+ }
575
+
576
+ class Google_DatasetAccess extends Google_Model {
577
+ public $specialGroup;
578
+ public $domain;
579
+ public $role;
580
+ public $groupByEmail;
581
+ public $userByEmail;
582
+ public function setSpecialGroup($specialGroup) {
583
+ $this->specialGroup = $specialGroup;
584
+ }
585
+ public function getSpecialGroup() {
586
+ return $this->specialGroup;
587
+ }
588
+ public function setDomain($domain) {
589
+ $this->domain = $domain;
590
+ }
591
+ public function getDomain() {
592
+ return $this->domain;
593
+ }
594
+ public function setRole($role) {
595
+ $this->role = $role;
596
+ }
597
+ public function getRole() {
598
+ return $this->role;
599
+ }
600
+ public function setGroupByEmail($groupByEmail) {
601
+ $this->groupByEmail = $groupByEmail;
602
+ }
603
+ public function getGroupByEmail() {
604
+ return $this->groupByEmail;
605
+ }
606
+ public function setUserByEmail($userByEmail) {
607
+ $this->userByEmail = $userByEmail;
608
+ }
609
+ public function getUserByEmail() {
610
+ return $this->userByEmail;
611
+ }
612
+ }
613
+
614
+ class Google_DatasetList extends Google_Model {
615
+ public $nextPageToken;
616
+ public $kind;
617
+ protected $__datasetsType = 'Google_DatasetListDatasets';
618
+ protected $__datasetsDataType = 'array';
619
+ public $datasets;
620
+ public $etag;
621
+ public function setNextPageToken($nextPageToken) {
622
+ $this->nextPageToken = $nextPageToken;
623
+ }
624
+ public function getNextPageToken() {
625
+ return $this->nextPageToken;
626
+ }
627
+ public function setKind($kind) {
628
+ $this->kind = $kind;
629
+ }
630
+ public function getKind() {
631
+ return $this->kind;
632
+ }
633
+ public function setDatasets(/* array(Google_DatasetListDatasets) */ $datasets) {
634
+ $this->assertIsArray($datasets, 'Google_DatasetListDatasets', __METHOD__);
635
+ $this->datasets = $datasets;
636
+ }
637
+ public function getDatasets() {
638
+ return $this->datasets;
639
+ }
640
+ public function setEtag($etag) {
641
+ $this->etag = $etag;
642
+ }
643
+ public function getEtag() {
644
+ return $this->etag;
645
+ }
646
+ }
647
+
648
+ class Google_DatasetListDatasets extends Google_Model {
649
+ public $friendlyName;
650
+ public $kind;
651
+ public $id;
652
+ protected $__datasetReferenceType = 'Google_DatasetReference';
653
+ protected $__datasetReferenceDataType = '';
654
+ public $datasetReference;
655
+ public function setFriendlyName($friendlyName) {
656
+ $this->friendlyName = $friendlyName;
657
+ }
658
+ public function getFriendlyName() {
659
+ return $this->friendlyName;
660
+ }
661
+ public function setKind($kind) {
662
+ $this->kind = $kind;
663
+ }
664
+ public function getKind() {
665
+ return $this->kind;
666
+ }
667
+ public function setId($id) {
668
+ $this->id = $id;
669
+ }
670
+ public function getId() {
671
+ return $this->id;
672
+ }
673
+ public function setDatasetReference(Google_DatasetReference $datasetReference) {
674
+ $this->datasetReference = $datasetReference;
675
+ }
676
+ public function getDatasetReference() {
677
+ return $this->datasetReference;
678
+ }
679
+ }
680
+
681
+ class Google_DatasetReference extends Google_Model {
682
+ public $projectId;
683
+ public $datasetId;
684
+ public function setProjectId($projectId) {
685
+ $this->projectId = $projectId;
686
+ }
687
+ public function getProjectId() {
688
+ return $this->projectId;
689
+ }
690
+ public function setDatasetId($datasetId) {
691
+ $this->datasetId = $datasetId;
692
+ }
693
+ public function getDatasetId() {
694
+ return $this->datasetId;
695
+ }
696
+ }
697
+
698
+ class Google_ErrorProto extends Google_Model {
699
+ public $debugInfo;
700
+ public $message;
701
+ public $reason;
702
+ public $location;
703
+ public function setDebugInfo($debugInfo) {
704
+ $this->debugInfo = $debugInfo;
705
+ }
706
+ public function getDebugInfo() {
707
+ return $this->debugInfo;
708
+ }
709
+ public function setMessage($message) {
710
+ $this->message = $message;
711
+ }
712
+ public function getMessage() {
713
+ return $this->message;
714
+ }
715
+ public function setReason($reason) {
716
+ $this->reason = $reason;
717
+ }
718
+ public function getReason() {
719
+ return $this->reason;
720
+ }
721
+ public function setLocation($location) {
722
+ $this->location = $location;
723
+ }
724
+ public function getLocation() {
725
+ return $this->location;
726
+ }
727
+ }
728
+
729
+ class Google_GetQueryResultsResponse extends Google_Model {
730
+ public $kind;
731
+ protected $__rowsType = 'Google_TableRow';
732
+ protected $__rowsDataType = 'array';
733
+ public $rows;
734
+ protected $__jobReferenceType = 'Google_JobReference';
735
+ protected $__jobReferenceDataType = '';
736
+ public $jobReference;
737
+ public $jobComplete;
738
+ public $totalRows;
739
+ public $etag;
740
+ protected $__schemaType = 'Google_TableSchema';
741
+ protected $__schemaDataType = '';
742
+ public $schema;
743
+ public function setKind($kind) {
744
+ $this->kind = $kind;
745
+ }
746
+ public function getKind() {
747
+ return $this->kind;
748
+ }
749
+ public function setRows(/* array(Google_TableRow) */ $rows) {
750
+ $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
751
+ $this->rows = $rows;
752
+ }
753
+ public function getRows() {
754
+ return $this->rows;
755
+ }
756
+ public function setJobReference(Google_JobReference $jobReference) {
757
+ $this->jobReference = $jobReference;
758
+ }
759
+ public function getJobReference() {
760
+ return $this->jobReference;
761
+ }
762
+ public function setJobComplete($jobComplete) {
763
+ $this->jobComplete = $jobComplete;
764
+ }
765
+ public function getJobComplete() {
766
+ return $this->jobComplete;
767
+ }
768
+ public function setTotalRows($totalRows) {
769
+ $this->totalRows = $totalRows;
770
+ }
771
+ public function getTotalRows() {
772
+ return $this->totalRows;
773
+ }
774
+ public function setEtag($etag) {
775
+ $this->etag = $etag;
776
+ }
777
+ public function getEtag() {
778
+ return $this->etag;
779
+ }
780
+ public function setSchema(Google_TableSchema $schema) {
781
+ $this->schema = $schema;
782
+ }
783
+ public function getSchema() {
784
+ return $this->schema;
785
+ }
786
+ }
787
+
788
+ class Google_Job extends Google_Model {
789
+ protected $__statusType = 'Google_JobStatus';
790
+ protected $__statusDataType = '';
791
+ public $status;
792
+ public $kind;
793
+ protected $__statisticsType = 'Google_JobStatistics';
794
+ protected $__statisticsDataType = '';
795
+ public $statistics;
796
+ protected $__jobReferenceType = 'Google_JobReference';
797
+ protected $__jobReferenceDataType = '';
798
+ public $jobReference;
799
+ public $etag;
800
+ protected $__configurationType = 'Google_JobConfiguration';
801
+ protected $__configurationDataType = '';
802
+ public $configuration;
803
+ public $id;
804
+ public $selfLink;
805
+ public function setStatus(Google_JobStatus $status) {
806
+ $this->status = $status;
807
+ }
808
+ public function getStatus() {
809
+ return $this->status;
810
+ }
811
+ public function setKind($kind) {
812
+ $this->kind = $kind;
813
+ }
814
+ public function getKind() {
815
+ return $this->kind;
816
+ }
817
+ public function setStatistics(Google_JobStatistics $statistics) {
818
+ $this->statistics = $statistics;
819
+ }
820
+ public function getStatistics() {
821
+ return $this->statistics;
822
+ }
823
+ public function setJobReference(Google_JobReference $jobReference) {
824
+ $this->jobReference = $jobReference;
825
+ }
826
+ public function getJobReference() {
827
+ return $this->jobReference;
828
+ }
829
+ public function setEtag($etag) {
830
+ $this->etag = $etag;
831
+ }
832
+ public function getEtag() {
833
+ return $this->etag;
834
+ }
835
+ public function setConfiguration(Google_JobConfiguration $configuration) {
836
+ $this->configuration = $configuration;
837
+ }
838
+ public function getConfiguration() {
839
+ return $this->configuration;
840
+ }
841
+ public function setId($id) {
842
+ $this->id = $id;
843
+ }
844
+ public function getId() {
845
+ return $this->id;
846
+ }
847
+ public function setSelfLink($selfLink) {
848
+ $this->selfLink = $selfLink;
849
+ }
850
+ public function getSelfLink() {
851
+ return $this->selfLink;
852
+ }
853
+ }
854
+
855
+ class Google_JobConfiguration extends Google_Model {
856
+ protected $__loadType = 'Google_JobConfigurationLoad';
857
+ protected $__loadDataType = '';
858
+ public $load;
859
+ protected $__linkType = 'Google_JobConfigurationLink';
860
+ protected $__linkDataType = '';
861
+ public $link;
862
+ protected $__queryType = 'Google_JobConfigurationQuery';
863
+ protected $__queryDataType = '';
864
+ public $query;
865
+ protected $__copyType = 'Google_JobConfigurationTableCopy';
866
+ protected $__copyDataType = '';
867
+ public $copy;
868
+ protected $__extractType = 'Google_JobConfigurationExtract';
869
+ protected $__extractDataType = '';
870
+ public $extract;
871
+ public $properties;
872
+ public function setLoad(Google_JobConfigurationLoad $load) {
873
+ $this->load = $load;
874
+ }
875
+ public function getLoad() {
876
+ return $this->load;
877
+ }
878
+ public function setLink(Google_JobConfigurationLink $link) {
879
+ $this->link = $link;
880
+ }
881
+ public function getLink() {
882
+ return $this->link;
883
+ }
884
+ public function setQuery(Google_JobConfigurationQuery $query) {
885
+ $this->query = $query;
886
+ }
887
+ public function getQuery() {
888
+ return $this->query;
889
+ }
890
+ public function setCopy(Google_JobConfigurationTableCopy $copy) {
891
+ $this->copy = $copy;
892
+ }
893
+ public function getCopy() {
894
+ return $this->copy;
895
+ }
896
+ public function setExtract(Google_JobConfigurationExtract $extract) {
897
+ $this->extract = $extract;
898
+ }
899
+ public function getExtract() {
900
+ return $this->extract;
901
+ }
902
+ public function setProperties($properties) {
903
+ $this->properties = $properties;
904
+ }
905
+ public function getProperties() {
906
+ return $this->properties;
907
+ }
908
+ }
909
+
910
+ class Google_JobConfigurationExtract extends Google_Model {
911
+ public $destinationUri;
912
+ public $fieldDelimiter;
913
+ protected $__sourceTableType = 'Google_TableReference';
914
+ protected $__sourceTableDataType = '';
915
+ public $sourceTable;
916
+ public $printHeader;
917
+ public function setDestinationUri($destinationUri) {
918
+ $this->destinationUri = $destinationUri;
919
+ }
920
+ public function getDestinationUri() {
921
+ return $this->destinationUri;
922
+ }
923
+ public function setFieldDelimiter($fieldDelimiter) {
924
+ $this->fieldDelimiter = $fieldDelimiter;
925
+ }
926
+ public function getFieldDelimiter() {
927
+ return $this->fieldDelimiter;
928
+ }
929
+ public function setSourceTable(Google_TableReference $sourceTable) {
930
+ $this->sourceTable = $sourceTable;
931
+ }
932
+ public function getSourceTable() {
933
+ return $this->sourceTable;
934
+ }
935
+ public function setPrintHeader($printHeader) {
936
+ $this->printHeader = $printHeader;
937
+ }
938
+ public function getPrintHeader() {
939
+ return $this->printHeader;
940
+ }
941
+ }
942
+
943
+ class Google_JobConfigurationLink extends Google_Model {
944
+ public $createDisposition;
945
+ public $writeDisposition;
946
+ protected $__destinationTableType = 'Google_TableReference';
947
+ protected $__destinationTableDataType = '';
948
+ public $destinationTable;
949
+ public $sourceUri;
950
+ public function setCreateDisposition($createDisposition) {
951
+ $this->createDisposition = $createDisposition;
952
+ }
953
+ public function getCreateDisposition() {
954
+ return $this->createDisposition;
955
+ }
956
+ public function setWriteDisposition($writeDisposition) {
957
+ $this->writeDisposition = $writeDisposition;
958
+ }
959
+ public function getWriteDisposition() {
960
+ return $this->writeDisposition;
961
+ }
962
+ public function setDestinationTable(Google_TableReference $destinationTable) {
963
+ $this->destinationTable = $destinationTable;
964
+ }
965
+ public function getDestinationTable() {
966
+ return $this->destinationTable;
967
+ }
968
+ public function setSourceUri(/* array(Google_string) */ $sourceUri) {
969
+ $this->assertIsArray($sourceUri, 'Google_string', __METHOD__);
970
+ $this->sourceUri = $sourceUri;
971
+ }
972
+ public function getSourceUri() {
973
+ return $this->sourceUri;
974
+ }
975
+ }
976
+
977
+ class Google_JobConfigurationLoad extends Google_Model {
978
+ public $encoding;
979
+ public $fieldDelimiter;
980
+ protected $__destinationTableType = 'Google_TableReference';
981
+ protected $__destinationTableDataType = '';
982
+ public $destinationTable;
983
+ public $writeDisposition;
984
+ public $maxBadRecords;
985
+ public $skipLeadingRows;
986
+ public $sourceUris;
987
+ public $quote;
988
+ public $createDisposition;
989
+ public $schemaInlineFormat;
990
+ public $schemaInline;
991
+ protected $__schemaType = 'Google_TableSchema';
992
+ protected $__schemaDataType = '';
993
+ public $schema;
994
+ public function setEncoding($encoding) {
995
+ $this->encoding = $encoding;
996
+ }
997
+ public function getEncoding() {
998
+ return $this->encoding;
999
+ }
1000
+ public function setFieldDelimiter($fieldDelimiter) {
1001
+ $this->fieldDelimiter = $fieldDelimiter;
1002
+ }
1003
+ public function getFieldDelimiter() {
1004
+ return $this->fieldDelimiter;
1005
+ }
1006
+ public function setDestinationTable(Google_TableReference $destinationTable) {
1007
+ $this->destinationTable = $destinationTable;
1008
+ }
1009
+ public function getDestinationTable() {
1010
+ return $this->destinationTable;
1011
+ }
1012
+ public function setWriteDisposition($writeDisposition) {
1013
+ $this->writeDisposition = $writeDisposition;
1014
+ }
1015
+ public function getWriteDisposition() {
1016
+ return $this->writeDisposition;
1017
+ }
1018
+ public function setMaxBadRecords($maxBadRecords) {
1019
+ $this->maxBadRecords = $maxBadRecords;
1020
+ }
1021
+ public function getMaxBadRecords() {
1022
+ return $this->maxBadRecords;
1023
+ }
1024
+ public function setSkipLeadingRows($skipLeadingRows) {
1025
+ $this->skipLeadingRows = $skipLeadingRows;
1026
+ }
1027
+ public function getSkipLeadingRows() {
1028
+ return $this->skipLeadingRows;
1029
+ }
1030
+ public function setSourceUris(/* array(Google_string) */ $sourceUris) {
1031
+ $this->assertIsArray($sourceUris, 'Google_string', __METHOD__);
1032
+ $this->sourceUris = $sourceUris;
1033
+ }
1034
+ public function getSourceUris() {
1035
+ return $this->sourceUris;
1036
+ }
1037
+ public function setQuote($quote) {
1038
+ $this->quote = $quote;
1039
+ }
1040
+ public function getQuote() {
1041
+ return $this->quote;
1042
+ }
1043
+ public function setCreateDisposition($createDisposition) {
1044
+ $this->createDisposition = $createDisposition;
1045
+ }
1046
+ public function getCreateDisposition() {
1047
+ return $this->createDisposition;
1048
+ }
1049
+ public function setSchemaInlineFormat($schemaInlineFormat) {
1050
+ $this->schemaInlineFormat = $schemaInlineFormat;
1051
+ }
1052
+ public function getSchemaInlineFormat() {
1053
+ return $this->schemaInlineFormat;
1054
+ }
1055
+ public function setSchemaInline($schemaInline) {
1056
+ $this->schemaInline = $schemaInline;
1057
+ }
1058
+ public function getSchemaInline() {
1059
+ return $this->schemaInline;
1060
+ }
1061
+ public function setSchema(Google_TableSchema $schema) {
1062
+ $this->schema = $schema;
1063
+ }
1064
+ public function getSchema() {
1065
+ return $this->schema;
1066
+ }
1067
+ }
1068
+
1069
+ class Google_JobConfigurationQuery extends Google_Model {
1070
+ protected $__defaultDatasetType = 'Google_DatasetReference';
1071
+ protected $__defaultDatasetDataType = '';
1072
+ public $defaultDataset;
1073
+ protected $__destinationTableType = 'Google_TableReference';
1074
+ protected $__destinationTableDataType = '';
1075
+ public $destinationTable;
1076
+ public $priority;
1077
+ public $writeDisposition;
1078
+ public $createDisposition;
1079
+ public $query;
1080
+ public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
1081
+ $this->defaultDataset = $defaultDataset;
1082
+ }
1083
+ public function getDefaultDataset() {
1084
+ return $this->defaultDataset;
1085
+ }
1086
+ public function setDestinationTable(Google_TableReference $destinationTable) {
1087
+ $this->destinationTable = $destinationTable;
1088
+ }
1089
+ public function getDestinationTable() {
1090
+ return $this->destinationTable;
1091
+ }
1092
+ public function setPriority($priority) {
1093
+ $this->priority = $priority;
1094
+ }
1095
+ public function getPriority() {
1096
+ return $this->priority;
1097
+ }
1098
+ public function setWriteDisposition($writeDisposition) {
1099
+ $this->writeDisposition = $writeDisposition;
1100
+ }
1101
+ public function getWriteDisposition() {
1102
+ return $this->writeDisposition;
1103
+ }
1104
+ public function setCreateDisposition($createDisposition) {
1105
+ $this->createDisposition = $createDisposition;
1106
+ }
1107
+ public function getCreateDisposition() {
1108
+ return $this->createDisposition;
1109
+ }
1110
+ public function setQuery($query) {
1111
+ $this->query = $query;
1112
+ }
1113
+ public function getQuery() {
1114
+ return $this->query;
1115
+ }
1116
+ }
1117
+
1118
+ class Google_JobConfigurationTableCopy extends Google_Model {
1119
+ public $createDisposition;
1120
+ public $writeDisposition;
1121
+ protected $__destinationTableType = 'Google_TableReference';
1122
+ protected $__destinationTableDataType = '';
1123
+ public $destinationTable;
1124
+ protected $__sourceTableType = 'Google_TableReference';
1125
+ protected $__sourceTableDataType = '';
1126
+ public $sourceTable;
1127
+ public function setCreateDisposition($createDisposition) {
1128
+ $this->createDisposition = $createDisposition;
1129
+ }
1130
+ public function getCreateDisposition() {
1131
+ return $this->createDisposition;
1132
+ }
1133
+ public function setWriteDisposition($writeDisposition) {
1134
+ $this->writeDisposition = $writeDisposition;
1135
+ }
1136
+ public function getWriteDisposition() {
1137
+ return $this->writeDisposition;
1138
+ }
1139
+ public function setDestinationTable(Google_TableReference $destinationTable) {
1140
+ $this->destinationTable = $destinationTable;
1141
+ }
1142
+ public function getDestinationTable() {
1143
+ return $this->destinationTable;
1144
+ }
1145
+ public function setSourceTable(Google_TableReference $sourceTable) {
1146
+ $this->sourceTable = $sourceTable;
1147
+ }
1148
+ public function getSourceTable() {
1149
+ return $this->sourceTable;
1150
+ }
1151
+ }
1152
+
1153
+ class Google_JobList extends Google_Model {
1154
+ public $nextPageToken;
1155
+ public $totalItems;
1156
+ public $kind;
1157
+ public $etag;
1158
+ protected $__jobsType = 'Google_JobListJobs';
1159
+ protected $__jobsDataType = 'array';
1160
+ public $jobs;
1161
+ public function setNextPageToken($nextPageToken) {
1162
+ $this->nextPageToken = $nextPageToken;
1163
+ }
1164
+ public function getNextPageToken() {
1165
+ return $this->nextPageToken;
1166
+ }
1167
+ public function setTotalItems($totalItems) {
1168
+ $this->totalItems = $totalItems;
1169
+ }
1170
+ public function getTotalItems() {
1171
+ return $this->totalItems;
1172
+ }
1173
+ public function setKind($kind) {
1174
+ $this->kind = $kind;
1175
+ }
1176
+ public function getKind() {
1177
+ return $this->kind;
1178
+ }
1179
+ public function setEtag($etag) {
1180
+ $this->etag = $etag;
1181
+ }
1182
+ public function getEtag() {
1183
+ return $this->etag;
1184
+ }
1185
+ public function setJobs(/* array(Google_JobListJobs) */ $jobs) {
1186
+ $this->assertIsArray($jobs, 'Google_JobListJobs', __METHOD__);
1187
+ $this->jobs = $jobs;
1188
+ }
1189
+ public function getJobs() {
1190
+ return $this->jobs;
1191
+ }
1192
+ }
1193
+
1194
+ class Google_JobListJobs extends Google_Model {
1195
+ protected $__statusType = 'Google_JobStatus';
1196
+ protected $__statusDataType = '';
1197
+ public $status;
1198
+ public $kind;
1199
+ protected $__statisticsType = 'Google_JobStatistics';
1200
+ protected $__statisticsDataType = '';
1201
+ public $statistics;
1202
+ protected $__jobReferenceType = 'Google_JobReference';
1203
+ protected $__jobReferenceDataType = '';
1204
+ public $jobReference;
1205
+ public $state;
1206
+ protected $__configurationType = 'Google_JobConfiguration';
1207
+ protected $__configurationDataType = '';
1208
+ public $configuration;
1209
+ public $id;
1210
+ protected $__errorResultType = 'Google_ErrorProto';
1211
+ protected $__errorResultDataType = '';
1212
+ public $errorResult;
1213
+ public function setStatus(Google_JobStatus $status) {
1214
+ $this->status = $status;
1215
+ }
1216
+ public function getStatus() {
1217
+ return $this->status;
1218
+ }
1219
+ public function setKind($kind) {
1220
+ $this->kind = $kind;
1221
+ }
1222
+ public function getKind() {
1223
+ return $this->kind;
1224
+ }
1225
+ public function setStatistics(Google_JobStatistics $statistics) {
1226
+ $this->statistics = $statistics;
1227
+ }
1228
+ public function getStatistics() {
1229
+ return $this->statistics;
1230
+ }
1231
+ public function setJobReference(Google_JobReference $jobReference) {
1232
+ $this->jobReference = $jobReference;
1233
+ }
1234
+ public function getJobReference() {
1235
+ return $this->jobReference;
1236
+ }
1237
+ public function setState($state) {
1238
+ $this->state = $state;
1239
+ }
1240
+ public function getState() {
1241
+ return $this->state;
1242
+ }
1243
+ public function setConfiguration(Google_JobConfiguration $configuration) {
1244
+ $this->configuration = $configuration;
1245
+ }
1246
+ public function getConfiguration() {
1247
+ return $this->configuration;
1248
+ }
1249
+ public function setId($id) {
1250
+ $this->id = $id;
1251
+ }
1252
+ public function getId() {
1253
+ return $this->id;
1254
+ }
1255
+ public function setErrorResult(Google_ErrorProto $errorResult) {
1256
+ $this->errorResult = $errorResult;
1257
+ }
1258
+ public function getErrorResult() {
1259
+ return $this->errorResult;
1260
+ }
1261
+ }
1262
+
1263
+ class Google_JobReference extends Google_Model {
1264
+ public $projectId;
1265
+ public $jobId;
1266
+ public function setProjectId($projectId) {
1267
+ $this->projectId = $projectId;
1268
+ }
1269
+ public function getProjectId() {
1270
+ return $this->projectId;
1271
+ }
1272
+ public function setJobId($jobId) {
1273
+ $this->jobId = $jobId;
1274
+ }
1275
+ public function getJobId() {
1276
+ return $this->jobId;
1277
+ }
1278
+ }
1279
+
1280
+ class Google_JobStatistics extends Google_Model {
1281
+ public $endTime;
1282
+ public $totalBytesProcessed;
1283
+ public $startTime;
1284
+ public function setEndTime($endTime) {
1285
+ $this->endTime = $endTime;
1286
+ }
1287
+ public function getEndTime() {
1288
+ return $this->endTime;
1289
+ }
1290
+ public function setTotalBytesProcessed($totalBytesProcessed) {
1291
+ $this->totalBytesProcessed = $totalBytesProcessed;
1292
+ }
1293
+ public function getTotalBytesProcessed() {
1294
+ return $this->totalBytesProcessed;
1295
+ }
1296
+ public function setStartTime($startTime) {
1297
+ $this->startTime = $startTime;
1298
+ }
1299
+ public function getStartTime() {
1300
+ return $this->startTime;
1301
+ }
1302
+ }
1303
+
1304
+ class Google_JobStatus extends Google_Model {
1305
+ public $state;
1306
+ protected $__errorsType = 'Google_ErrorProto';
1307
+ protected $__errorsDataType = 'array';
1308
+ public $errors;
1309
+ protected $__errorResultType = 'Google_ErrorProto';
1310
+ protected $__errorResultDataType = '';
1311
+ public $errorResult;
1312
+ public function setState($state) {
1313
+ $this->state = $state;
1314
+ }
1315
+ public function getState() {
1316
+ return $this->state;
1317
+ }
1318
+ public function setErrors(/* array(Google_ErrorProto) */ $errors) {
1319
+ $this->assertIsArray($errors, 'Google_ErrorProto', __METHOD__);
1320
+ $this->errors = $errors;
1321
+ }
1322
+ public function getErrors() {
1323
+ return $this->errors;
1324
+ }
1325
+ public function setErrorResult(Google_ErrorProto $errorResult) {
1326
+ $this->errorResult = $errorResult;
1327
+ }
1328
+ public function getErrorResult() {
1329
+ return $this->errorResult;
1330
+ }
1331
+ }
1332
+
1333
+ class Google_ProjectList extends Google_Model {
1334
+ public $nextPageToken;
1335
+ public $totalItems;
1336
+ public $kind;
1337
+ public $etag;
1338
+ protected $__projectsType = 'Google_ProjectListProjects';
1339
+ protected $__projectsDataType = 'array';
1340
+ public $projects;
1341
+ public function setNextPageToken($nextPageToken) {
1342
+ $this->nextPageToken = $nextPageToken;
1343
+ }
1344
+ public function getNextPageToken() {
1345
+ return $this->nextPageToken;
1346
+ }
1347
+ public function setTotalItems($totalItems) {
1348
+ $this->totalItems = $totalItems;
1349
+ }
1350
+ public function getTotalItems() {
1351
+ return $this->totalItems;
1352
+ }
1353
+ public function setKind($kind) {
1354
+ $this->kind = $kind;
1355
+ }
1356
+ public function getKind() {
1357
+ return $this->kind;
1358
+ }
1359
+ public function setEtag($etag) {
1360
+ $this->etag = $etag;
1361
+ }
1362
+ public function getEtag() {
1363
+ return $this->etag;
1364
+ }
1365
+ public function setProjects(/* array(Google_ProjectListProjects) */ $projects) {
1366
+ $this->assertIsArray($projects, 'Google_ProjectListProjects', __METHOD__);
1367
+ $this->projects = $projects;
1368
+ }
1369
+ public function getProjects() {
1370
+ return $this->projects;
1371
+ }
1372
+ }
1373
+
1374
+ class Google_ProjectListProjects extends Google_Model {
1375
+ public $friendlyName;
1376
+ public $kind;
1377
+ public $id;
1378
+ protected $__projectReferenceType = 'Google_ProjectReference';
1379
+ protected $__projectReferenceDataType = '';
1380
+ public $projectReference;
1381
+ public function setFriendlyName($friendlyName) {
1382
+ $this->friendlyName = $friendlyName;
1383
+ }
1384
+ public function getFriendlyName() {
1385
+ return $this->friendlyName;
1386
+ }
1387
+ public function setKind($kind) {
1388
+ $this->kind = $kind;
1389
+ }
1390
+ public function getKind() {
1391
+ return $this->kind;
1392
+ }
1393
+ public function setId($id) {
1394
+ $this->id = $id;
1395
+ }
1396
+ public function getId() {
1397
+ return $this->id;
1398
+ }
1399
+ public function setProjectReference(Google_ProjectReference $projectReference) {
1400
+ $this->projectReference = $projectReference;
1401
+ }
1402
+ public function getProjectReference() {
1403
+ return $this->projectReference;
1404
+ }
1405
+ }
1406
+
1407
+ class Google_ProjectReference extends Google_Model {
1408
+ public $projectId;
1409
+ public function setProjectId($projectId) {
1410
+ $this->projectId = $projectId;
1411
+ }
1412
+ public function getProjectId() {
1413
+ return $this->projectId;
1414
+ }
1415
+ }
1416
+
1417
+ class Google_QueryRequest extends Google_Model {
1418
+ public $timeoutMs;
1419
+ public $kind;
1420
+ public $dryRun;
1421
+ protected $__defaultDatasetType = 'Google_DatasetReference';
1422
+ protected $__defaultDatasetDataType = '';
1423
+ public $defaultDataset;
1424
+ public $maxResults;
1425
+ public $query;
1426
+ public function setTimeoutMs($timeoutMs) {
1427
+ $this->timeoutMs = $timeoutMs;
1428
+ }
1429
+ public function getTimeoutMs() {
1430
+ return $this->timeoutMs;
1431
+ }
1432
+ public function setKind($kind) {
1433
+ $this->kind = $kind;
1434
+ }
1435
+ public function getKind() {
1436
+ return $this->kind;
1437
+ }
1438
+ public function setDryRun($dryRun) {
1439
+ $this->dryRun = $dryRun;
1440
+ }
1441
+ public function getDryRun() {
1442
+ return $this->dryRun;
1443
+ }
1444
+ public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
1445
+ $this->defaultDataset = $defaultDataset;
1446
+ }
1447
+ public function getDefaultDataset() {
1448
+ return $this->defaultDataset;
1449
+ }
1450
+ public function setMaxResults($maxResults) {
1451
+ $this->maxResults = $maxResults;
1452
+ }
1453
+ public function getMaxResults() {
1454
+ return $this->maxResults;
1455
+ }
1456
+ public function setQuery($query) {
1457
+ $this->query = $query;
1458
+ }
1459
+ public function getQuery() {
1460
+ return $this->query;
1461
+ }
1462
+ }
1463
+
1464
+ class Google_QueryResponse extends Google_Model {
1465
+ public $kind;
1466
+ protected $__rowsType = 'Google_TableRow';
1467
+ protected $__rowsDataType = 'array';
1468
+ public $rows;
1469
+ protected $__jobReferenceType = 'Google_JobReference';
1470
+ protected $__jobReferenceDataType = '';
1471
+ public $jobReference;
1472
+ public $jobComplete;
1473
+ public $totalRows;
1474
+ protected $__schemaType = 'Google_TableSchema';
1475
+ protected $__schemaDataType = '';
1476
+ public $schema;
1477
+ public function setKind($kind) {
1478
+ $this->kind = $kind;
1479
+ }
1480
+ public function getKind() {
1481
+ return $this->kind;
1482
+ }
1483
+ public function setRows(/* array(Google_TableRow) */ $rows) {
1484
+ $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
1485
+ $this->rows = $rows;
1486
+ }
1487
+ public function getRows() {
1488
+ return $this->rows;
1489
+ }
1490
+ public function setJobReference(Google_JobReference $jobReference) {
1491
+ $this->jobReference = $jobReference;
1492
+ }
1493
+ public function getJobReference() {
1494
+ return $this->jobReference;
1495
+ }
1496
+ public function setJobComplete($jobComplete) {
1497
+ $this->jobComplete = $jobComplete;
1498
+ }
1499
+ public function getJobComplete() {
1500
+ return $this->jobComplete;
1501
+ }
1502
+ public function setTotalRows($totalRows) {
1503
+ $this->totalRows = $totalRows;
1504
+ }
1505
+ public function getTotalRows() {
1506
+ return $this->totalRows;
1507
+ }
1508
+ public function setSchema(Google_TableSchema $schema) {
1509
+ $this->schema = $schema;
1510
+ }
1511
+ public function getSchema() {
1512
+ return $this->schema;
1513
+ }
1514
+ }
1515
+
1516
+ class Google_Table extends Google_Model {
1517
+ public $kind;
1518
+ public $lastModifiedTime;
1519
+ public $description;
1520
+ public $creationTime;
1521
+ protected $__tableReferenceType = 'Google_TableReference';
1522
+ protected $__tableReferenceDataType = '';
1523
+ public $tableReference;
1524
+ public $numRows;
1525
+ public $numBytes;
1526
+ public $etag;
1527
+ public $friendlyName;
1528
+ public $expirationTime;
1529
+ public $id;
1530
+ public $selfLink;
1531
+ protected $__schemaType = 'Google_TableSchema';
1532
+ protected $__schemaDataType = '';
1533
+ public $schema;
1534
+ public function setKind($kind) {
1535
+ $this->kind = $kind;
1536
+ }
1537
+ public function getKind() {
1538
+ return $this->kind;
1539
+ }
1540
+ public function setLastModifiedTime($lastModifiedTime) {
1541
+ $this->lastModifiedTime = $lastModifiedTime;
1542
+ }
1543
+ public function getLastModifiedTime() {
1544
+ return $this->lastModifiedTime;
1545
+ }
1546
+ public function setDescription($description) {
1547
+ $this->description = $description;
1548
+ }
1549
+ public function getDescription() {
1550
+ return $this->description;
1551
+ }
1552
+ public function setCreationTime($creationTime) {
1553
+ $this->creationTime = $creationTime;
1554
+ }
1555
+ public function getCreationTime() {
1556
+ return $this->creationTime;
1557
+ }
1558
+ public function setTableReference(Google_TableReference $tableReference) {
1559
+ $this->tableReference = $tableReference;
1560
+ }
1561
+ public function getTableReference() {
1562
+ return $this->tableReference;
1563
+ }
1564
+ public function setNumRows($numRows) {
1565
+ $this->numRows = $numRows;
1566
+ }
1567
+ public function getNumRows() {
1568
+ return $this->numRows;
1569
+ }
1570
+ public function setNumBytes($numBytes) {
1571
+ $this->numBytes = $numBytes;
1572
+ }
1573
+ public function getNumBytes() {
1574
+ return $this->numBytes;
1575
+ }
1576
+ public function setEtag($etag) {
1577
+ $this->etag = $etag;
1578
+ }
1579
+ public function getEtag() {
1580
+ return $this->etag;
1581
+ }
1582
+ public function setFriendlyName($friendlyName) {
1583
+ $this->friendlyName = $friendlyName;
1584
+ }
1585
+ public function getFriendlyName() {
1586
+ return $this->friendlyName;
1587
+ }
1588
+ public function setExpirationTime($expirationTime) {
1589
+ $this->expirationTime = $expirationTime;
1590
+ }
1591
+ public function getExpirationTime() {
1592
+ return $this->expirationTime;
1593
+ }
1594
+ public function setId($id) {
1595
+ $this->id = $id;
1596
+ }
1597
+ public function getId() {
1598
+ return $this->id;
1599
+ }
1600
+ public function setSelfLink($selfLink) {
1601
+ $this->selfLink = $selfLink;
1602
+ }
1603
+ public function getSelfLink() {
1604
+ return $this->selfLink;
1605
+ }
1606
+ public function setSchema(Google_TableSchema $schema) {
1607
+ $this->schema = $schema;
1608
+ }
1609
+ public function getSchema() {
1610
+ return $this->schema;
1611
+ }
1612
+ }
1613
+
1614
+ class Google_TableDataList extends Google_Model {
1615
+ public $pageToken;
1616
+ public $kind;
1617
+ public $etag;
1618
+ protected $__rowsType = 'Google_TableRow';
1619
+ protected $__rowsDataType = 'array';
1620
+ public $rows;
1621
+ public $totalRows;
1622
+ public function setPageToken($pageToken) {
1623
+ $this->pageToken = $pageToken;
1624
+ }
1625
+ public function getPageToken() {
1626
+ return $this->pageToken;
1627
+ }
1628
+ public function setKind($kind) {
1629
+ $this->kind = $kind;
1630
+ }
1631
+ public function getKind() {
1632
+ return $this->kind;
1633
+ }
1634
+ public function setEtag($etag) {
1635
+ $this->etag = $etag;
1636
+ }
1637
+ public function getEtag() {
1638
+ return $this->etag;
1639
+ }
1640
+ public function setRows(/* array(Google_TableRow) */ $rows) {
1641
+ $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
1642
+ $this->rows = $rows;
1643
+ }
1644
+ public function getRows() {
1645
+ return $this->rows;
1646
+ }
1647
+ public function setTotalRows($totalRows) {
1648
+ $this->totalRows = $totalRows;
1649
+ }
1650
+ public function getTotalRows() {
1651
+ return $this->totalRows;
1652
+ }
1653
+ }
1654
+
1655
+ class Google_TableFieldSchema extends Google_Model {
1656
+ protected $__fieldsType = 'Google_TableFieldSchema';
1657
+ protected $__fieldsDataType = 'array';
1658
+ public $fields;
1659
+ public $type;
1660
+ public $mode;
1661
+ public $name;
1662
+ public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
1663
+ $this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
1664
+ $this->fields = $fields;
1665
+ }
1666
+ public function getFields() {
1667
+ return $this->fields;
1668
+ }
1669
+ public function setType($type) {
1670
+ $this->type = $type;
1671
+ }
1672
+ public function getType() {
1673
+ return $this->type;
1674
+ }
1675
+ public function setMode($mode) {
1676
+ $this->mode = $mode;
1677
+ }
1678
+ public function getMode() {
1679
+ return $this->mode;
1680
+ }
1681
+ public function setName($name) {
1682
+ $this->name = $name;
1683
+ }
1684
+ public function getName() {
1685
+ return $this->name;
1686
+ }
1687
+ }
1688
+
1689
+ class Google_TableList extends Google_Model {
1690
+ public $nextPageToken;
1691
+ protected $__tablesType = 'Google_TableListTables';
1692
+ protected $__tablesDataType = 'array';
1693
+ public $tables;
1694
+ public $kind;
1695
+ public $etag;
1696
+ public $totalItems;
1697
+ public function setNextPageToken($nextPageToken) {
1698
+ $this->nextPageToken = $nextPageToken;
1699
+ }
1700
+ public function getNextPageToken() {
1701
+ return $this->nextPageToken;
1702
+ }
1703
+ public function setTables(/* array(Google_TableListTables) */ $tables) {
1704
+ $this->assertIsArray($tables, 'Google_TableListTables', __METHOD__);
1705
+ $this->tables = $tables;
1706
+ }
1707
+ public function getTables() {
1708
+ return $this->tables;
1709
+ }
1710
+ public function setKind($kind) {
1711
+ $this->kind = $kind;
1712
+ }
1713
+ public function getKind() {
1714
+ return $this->kind;
1715
+ }
1716
+ public function setEtag($etag) {
1717
+ $this->etag = $etag;
1718
+ }
1719
+ public function getEtag() {
1720
+ return $this->etag;
1721
+ }
1722
+ public function setTotalItems($totalItems) {
1723
+ $this->totalItems = $totalItems;
1724
+ }
1725
+ public function getTotalItems() {
1726
+ return $this->totalItems;
1727
+ }
1728
+ }
1729
+
1730
+ class Google_TableListTables extends Google_Model {
1731
+ public $friendlyName;
1732
+ public $kind;
1733
+ public $id;
1734
+ protected $__tableReferenceType = 'Google_TableReference';
1735
+ protected $__tableReferenceDataType = '';
1736
+ public $tableReference;
1737
+ public function setFriendlyName($friendlyName) {
1738
+ $this->friendlyName = $friendlyName;
1739
+ }
1740
+ public function getFriendlyName() {
1741
+ return $this->friendlyName;
1742
+ }
1743
+ public function setKind($kind) {
1744
+ $this->kind = $kind;
1745
+ }
1746
+ public function getKind() {
1747
+ return $this->kind;
1748
+ }
1749
+ public function setId($id) {
1750
+ $this->id = $id;
1751
+ }
1752
+ public function getId() {
1753
+ return $this->id;
1754
+ }
1755
+ public function setTableReference(Google_TableReference $tableReference) {
1756
+ $this->tableReference = $tableReference;
1757
+ }
1758
+ public function getTableReference() {
1759
+ return $this->tableReference;
1760
+ }
1761
+ }
1762
+
1763
+ class Google_TableReference extends Google_Model {
1764
+ public $projectId;
1765
+ public $tableId;
1766
+ public $datasetId;
1767
+ public function setProjectId($projectId) {
1768
+ $this->projectId = $projectId;
1769
+ }
1770
+ public function getProjectId() {
1771
+ return $this->projectId;
1772
+ }
1773
+ public function setTableId($tableId) {
1774
+ $this->tableId = $tableId;
1775
+ }
1776
+ public function getTableId() {
1777
+ return $this->tableId;
1778
+ }
1779
+ public function setDatasetId($datasetId) {
1780
+ $this->datasetId = $datasetId;
1781
+ }
1782
+ public function getDatasetId() {
1783
+ return $this->datasetId;
1784
+ }
1785
+ }
1786
+
1787
+ class Google_TableRow extends Google_Model {
1788
+ protected $__fType = 'Google_TableRowF';
1789
+ protected $__fDataType = 'array';
1790
+ public $f;
1791
+ public function setF(/* array(Google_TableRowF) */ $f) {
1792
+ $this->assertIsArray($f, 'Google_TableRowF', __METHOD__);
1793
+ $this->f = $f;
1794
+ }
1795
+ public function getF() {
1796
+ return $this->f;
1797
+ }
1798
+ }
1799
+
1800
+ class Google_TableRowF extends Google_Model {
1801
+ public $v;
1802
+ public function setV($v) {
1803
+ $this->v = $v;
1804
+ }
1805
+ public function getV() {
1806
+ return $this->v;
1807
+ }
1808
+ }
1809
+
1810
+ class Google_TableSchema extends Google_Model {
1811
+ protected $__fieldsType = 'Google_TableFieldSchema';
1812
+ protected $__fieldsDataType = 'array';
1813
+ public $fields;
1814
+ public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
1815
+ $this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
1816
+ $this->fields = $fields;
1817
+ }
1818
+ public function getFields() {
1819
+ return $this->fields;
1820
+ }
1821
+ }
google-api-php-client/src/contrib/Google_BloggerService.php ADDED
@@ -0,0 +1,1301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "blogs" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $bloggerService = new Google_BloggerService(...);
22
+ * $blogs = $bloggerService->blogs;
23
+ * </code>
24
+ */
25
+ class Google_BlogsServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
30
+ *
31
+ * @param string $userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
32
+ * @param array $optParams Optional parameters.
33
+ * @return Google_BlogList
34
+ */
35
+ public function listByUser($userId, $optParams = array()) {
36
+ $params = array('userId' => $userId);
37
+ $params = array_merge($params, $optParams);
38
+ $data = $this->__call('listByUser', array($params));
39
+ if ($this->useObjects()) {
40
+ return new Google_BlogList($data);
41
+ } else {
42
+ return $data;
43
+ }
44
+ }
45
+ /**
46
+ * Retrieve a Blog by URL. (blogs.getByUrl)
47
+ *
48
+ * @param array $optParams Optional parameters.
49
+ *
50
+ * @opt_param string url The URL of the blog to retrieve.
51
+ * @return Google_Blog
52
+ */
53
+ public function getByUrl($optParams = array()) {
54
+ $params = array();
55
+ $params = array_merge($params, $optParams);
56
+ $data = $this->__call('getByUrl', array($params));
57
+ if ($this->useObjects()) {
58
+ return new Google_Blog($data);
59
+ } else {
60
+ return $data;
61
+ }
62
+ }
63
+ /**
64
+ * Gets one blog by id. (blogs.get)
65
+ *
66
+ * @param string $blogId The ID of the blog to get.
67
+ * @param array $optParams Optional parameters.
68
+ *
69
+ * @opt_param string maxPosts Maximum number of posts to pull back with the blog.
70
+ * @return Google_Blog
71
+ */
72
+ public function get($blogId, $optParams = array()) {
73
+ $params = array('blogId' => $blogId);
74
+ $params = array_merge($params, $optParams);
75
+ $data = $this->__call('get', array($params));
76
+ if ($this->useObjects()) {
77
+ return new Google_Blog($data);
78
+ } else {
79
+ return $data;
80
+ }
81
+ }
82
+ }
83
+
84
+ /**
85
+ * The "posts" collection of methods.
86
+ * Typical usage is:
87
+ * <code>
88
+ * $bloggerService = new Google_BloggerService(...);
89
+ * $posts = $bloggerService->posts;
90
+ * </code>
91
+ */
92
+ class Google_PostsServiceResource extends Google_ServiceResource {
93
+
94
+
95
+ /**
96
+ * Add a post. (posts.insert)
97
+ *
98
+ * @param string $blogId ID of the blog to fetch the post from.
99
+ * @param Google_Post $postBody
100
+ * @param array $optParams Optional parameters.
101
+ * @return Google_Post
102
+ */
103
+ public function insert($blogId, Google_Post $postBody, $optParams = array()) {
104
+ $params = array('blogId' => $blogId, 'postBody' => $postBody);
105
+ $params = array_merge($params, $optParams);
106
+ $data = $this->__call('insert', array($params));
107
+ if ($this->useObjects()) {
108
+ return new Google_Post($data);
109
+ } else {
110
+ return $data;
111
+ }
112
+ }
113
+ /**
114
+ * Search for a post. (posts.search)
115
+ *
116
+ * @param string $blogId ID of the blog to fetch the post from.
117
+ * @param array $optParams Optional parameters.
118
+ *
119
+ * @opt_param string q Query terms to search this blog for matching posts.
120
+ * @return Google_PostList
121
+ */
122
+ public function search($blogId, $optParams = array()) {
123
+ $params = array('blogId' => $blogId);
124
+ $params = array_merge($params, $optParams);
125
+ $data = $this->__call('search', array($params));
126
+ if ($this->useObjects()) {
127
+ return new Google_PostList($data);
128
+ } else {
129
+ return $data;
130
+ }
131
+ }
132
+ /**
133
+ * Get a post by id. (posts.get)
134
+ *
135
+ * @param string $blogId ID of the blog to fetch the post from.
136
+ * @param string $postId The ID of the post
137
+ * @param array $optParams Optional parameters.
138
+ *
139
+ * @opt_param string maxComments Maximum number of comments to pull back on a post.
140
+ * @return Google_Post
141
+ */
142
+ public function get($blogId, $postId, $optParams = array()) {
143
+ $params = array('blogId' => $blogId, 'postId' => $postId);
144
+ $params = array_merge($params, $optParams);
145
+ $data = $this->__call('get', array($params));
146
+ if ($this->useObjects()) {
147
+ return new Google_Post($data);
148
+ } else {
149
+ return $data;
150
+ }
151
+ }
152
+ /**
153
+ * Retrieves a list of posts, possibly filtered. (posts.list)
154
+ *
155
+ * @param string $blogId ID of the blog to fetch posts from.
156
+ * @param array $optParams Optional parameters.
157
+ *
158
+ * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
159
+ * @opt_param string endDate Latest post date to fetch, a date-time with RFC 3339 formatting.
160
+ * @opt_param string labels Comma-separated list of labels to search for.
161
+ * @opt_param string maxResults Maximum number of posts to fetch.
162
+ * @opt_param string pageToken Continuation token if the request is paged.
163
+ * @opt_param bool fetchBodies Whether the body content of posts is included.
164
+ * @return Google_PostList
165
+ */
166
+ public function listPosts($blogId, $optParams = array()) {
167
+ $params = array('blogId' => $blogId);
168
+ $params = array_merge($params, $optParams);
169
+ $data = $this->__call('list', array($params));
170
+ if ($this->useObjects()) {
171
+ return new Google_PostList($data);
172
+ } else {
173
+ return $data;
174
+ }
175
+ }
176
+ /**
177
+ * Update a post. (posts.update)
178
+ *
179
+ * @param string $blogId The ID of the Blog.
180
+ * @param string $postId The ID of the Post.
181
+ * @param Google_Post $postBody
182
+ * @param array $optParams Optional parameters.
183
+ * @return Google_Post
184
+ */
185
+ public function update($blogId, $postId, Google_Post $postBody, $optParams = array()) {
186
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
187
+ $params = array_merge($params, $optParams);
188
+ $data = $this->__call('update', array($params));
189
+ if ($this->useObjects()) {
190
+ return new Google_Post($data);
191
+ } else {
192
+ return $data;
193
+ }
194
+ }
195
+ /**
196
+ * Retrieve a Post by Path. (posts.getByPath)
197
+ *
198
+ * @param string $blogId ID of the blog to fetch the post from.
199
+ * @param array $optParams Optional parameters.
200
+ *
201
+ * @opt_param string path Path of the Post to retrieve.
202
+ * @opt_param string maxComments Maximum number of comments to pull back on a post.
203
+ * @return Google_Post
204
+ */
205
+ public function getByPath($blogId, $optParams = array()) {
206
+ $params = array('blogId' => $blogId);
207
+ $params = array_merge($params, $optParams);
208
+ $data = $this->__call('getByPath', array($params));
209
+ if ($this->useObjects()) {
210
+ return new Google_Post($data);
211
+ } else {
212
+ return $data;
213
+ }
214
+ }
215
+ /**
216
+ * Update a post. This method supports patch semantics. (posts.patch)
217
+ *
218
+ * @param string $blogId The ID of the Blog.
219
+ * @param string $postId The ID of the Post.
220
+ * @param Google_Post $postBody
221
+ * @param array $optParams Optional parameters.
222
+ * @return Google_Post
223
+ */
224
+ public function patch($blogId, $postId, Google_Post $postBody, $optParams = array()) {
225
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
226
+ $params = array_merge($params, $optParams);
227
+ $data = $this->__call('patch', array($params));
228
+ if ($this->useObjects()) {
229
+ return new Google_Post($data);
230
+ } else {
231
+ return $data;
232
+ }
233
+ }
234
+ /**
235
+ * Delete a post by id. (posts.delete)
236
+ *
237
+ * @param string $blogId The Id of the Blog.
238
+ * @param string $postId The ID of the Post.
239
+ * @param array $optParams Optional parameters.
240
+ */
241
+ public function delete($blogId, $postId, $optParams = array()) {
242
+ $params = array('blogId' => $blogId, 'postId' => $postId);
243
+ $params = array_merge($params, $optParams);
244
+ $data = $this->__call('delete', array($params));
245
+ return $data;
246
+ }
247
+ }
248
+
249
+ /**
250
+ * The "pages" collection of methods.
251
+ * Typical usage is:
252
+ * <code>
253
+ * $bloggerService = new Google_BloggerService(...);
254
+ * $pages = $bloggerService->pages;
255
+ * </code>
256
+ */
257
+ class Google_PagesServiceResource extends Google_ServiceResource {
258
+
259
+
260
+ /**
261
+ * Retrieves pages for a blog, possibly filtered. (pages.list)
262
+ *
263
+ * @param string $blogId ID of the blog to fetch pages from.
264
+ * @param array $optParams Optional parameters.
265
+ *
266
+ * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
267
+ * @return Google_PageList
268
+ */
269
+ public function listPages($blogId, $optParams = array()) {
270
+ $params = array('blogId' => $blogId);
271
+ $params = array_merge($params, $optParams);
272
+ $data = $this->__call('list', array($params));
273
+ if ($this->useObjects()) {
274
+ return new Google_PageList($data);
275
+ } else {
276
+ return $data;
277
+ }
278
+ }
279
+ /**
280
+ * Gets one blog page by id. (pages.get)
281
+ *
282
+ * @param string $blogId ID of the blog containing the page.
283
+ * @param string $pageId The ID of the page to get.
284
+ * @param array $optParams Optional parameters.
285
+ * @return Google_Page
286
+ */
287
+ public function get($blogId, $pageId, $optParams = array()) {
288
+ $params = array('blogId' => $blogId, 'pageId' => $pageId);
289
+ $params = array_merge($params, $optParams);
290
+ $data = $this->__call('get', array($params));
291
+ if ($this->useObjects()) {
292
+ return new Google_Page($data);
293
+ } else {
294
+ return $data;
295
+ }
296
+ }
297
+ }
298
+
299
+ /**
300
+ * The "comments" collection of methods.
301
+ * Typical usage is:
302
+ * <code>
303
+ * $bloggerService = new Google_BloggerService(...);
304
+ * $comments = $bloggerService->comments;
305
+ * </code>
306
+ */
307
+ class Google_CommentsServiceResource extends Google_ServiceResource {
308
+
309
+
310
+ /**
311
+ * Retrieves the comments for a blog, possibly filtered. (comments.list)
312
+ *
313
+ * @param string $blogId ID of the blog to fetch comments from.
314
+ * @param string $postId ID of the post to fetch posts from.
315
+ * @param array $optParams Optional parameters.
316
+ *
317
+ * @opt_param string startDate Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
318
+ * @opt_param string endDate Latest date of comment to fetch, a date-time with RFC 3339 formatting.
319
+ * @opt_param string maxResults Maximum number of comments to include in the result.
320
+ * @opt_param string pageToken Continuation token if request is paged.
321
+ * @opt_param bool fetchBodies Whether the body content of the comments is included.
322
+ * @return Google_CommentList
323
+ */
324
+ public function listComments($blogId, $postId, $optParams = array()) {
325
+ $params = array('blogId' => $blogId, 'postId' => $postId);
326
+ $params = array_merge($params, $optParams);
327
+ $data = $this->__call('list', array($params));
328
+ if ($this->useObjects()) {
329
+ return new Google_CommentList($data);
330
+ } else {
331
+ return $data;
332
+ }
333
+ }
334
+ /**
335
+ * Gets one comment by id. (comments.get)
336
+ *
337
+ * @param string $blogId ID of the blog to containing the comment.
338
+ * @param string $postId ID of the post to fetch posts from.
339
+ * @param string $commentId The ID of the comment to get.
340
+ * @param array $optParams Optional parameters.
341
+ * @return Google_Comment
342
+ */
343
+ public function get($blogId, $postId, $commentId, $optParams = array()) {
344
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
345
+ $params = array_merge($params, $optParams);
346
+ $data = $this->__call('get', array($params));
347
+ if ($this->useObjects()) {
348
+ return new Google_Comment($data);
349
+ } else {
350
+ return $data;
351
+ }
352
+ }
353
+ }
354
+
355
+ /**
356
+ * The "users" collection of methods.
357
+ * Typical usage is:
358
+ * <code>
359
+ * $bloggerService = new Google_BloggerService(...);
360
+ * $users = $bloggerService->users;
361
+ * </code>
362
+ */
363
+ class Google_UsersServiceResource extends Google_ServiceResource {
364
+
365
+
366
+ /**
367
+ * Gets one user by id. (users.get)
368
+ *
369
+ * @param string $userId The ID of the user to get.
370
+ * @param array $optParams Optional parameters.
371
+ * @return Google_User
372
+ */
373
+ public function get($userId, $optParams = array()) {
374
+ $params = array('userId' => $userId);
375
+ $params = array_merge($params, $optParams);
376
+ $data = $this->__call('get', array($params));
377
+ if ($this->useObjects()) {
378
+ return new Google_User($data);
379
+ } else {
380
+ return $data;
381
+ }
382
+ }
383
+ }
384
+
385
+ /**
386
+ * Service definition for Google_Blogger (v3).
387
+ *
388
+ * <p>
389
+ * API for access to the data within Blogger.
390
+ * </p>
391
+ *
392
+ * <p>
393
+ * For more information about this service, see the
394
+ * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">API Documentation</a>
395
+ * </p>
396
+ *
397
+ * @author Google, Inc.
398
+ */
399
+ class Google_BloggerService extends Google_Service {
400
+ public $blogs;
401
+ public $posts;
402
+ public $pages;
403
+ public $comments;
404
+ public $users;
405
+ /**
406
+ * Constructs the internal representation of the Blogger service.
407
+ *
408
+ * @param Google_Client $client
409
+ */
410
+ public function __construct(Google_Client $client) {
411
+ $this->servicePath = 'blogger/v3/';
412
+ $this->version = 'v3';
413
+ $this->serviceName = 'blogger';
414
+
415
+ $client->addService($this->serviceName, $this->version);
416
+ $this->blogs = new Google_BlogsServiceResource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"listByUser": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.blogs.listByUser", "httpMethod": "GET", "path": "users/{userId}/blogs", "response": {"$ref": "BlogList"}}, "getByUrl": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"url": {"type": "string", "location": "query"}}, "response": {"$ref": "Blog"}, "httpMethod": "GET", "path": "blogs/byurl", "id": "blogger.blogs.getByUrl"}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"maxPosts": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.blogs.get", "httpMethod": "GET", "path": "blogs/{blogId}", "response": {"$ref": "Blog"}}}}', true));
417
+ $this->posts = new Google_PostsServiceResource($this, $this->serviceName, 'posts', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "POST", "path": "blogs/{blogId}/posts", "id": "blogger.posts.insert"}, "search": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.search", "httpMethod": "GET", "path": "blogs/{blogId}/posts/search", "response": {"$ref": "PostList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"maxComments": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}", "response": {"$ref": "Post"}}, "list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"startDate": {"type": "string", "location": "query", "format": "date-time"}, "endDate": {"type": "string", "location": "query", "format": "date-time"}, "labels": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts", "response": {"$ref": "PostList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "PUT", "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.update"}, "getByPath": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"path": {"type": "string", "location": "query"}, "maxComments": {"type": "integer", "location": "query", "format": "uint32"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.getByPath", "httpMethod": "GET", "path": "blogs/{blogId}/posts/bypath", "response": {"$ref": "Post"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "httpMethod": "PATCH", "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/blogger"], "path": "blogs/{blogId}/posts/{postId}", "id": "blogger.posts.delete", "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
418
+ $this->pages = new Google_PagesServiceResource($this, $this->serviceName, 'pages', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.list", "httpMethod": "GET", "path": "blogs/{blogId}/pages", "response": {"$ref": "PageList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"pageId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.get", "httpMethod": "GET", "path": "blogs/{blogId}/pages/{pageId}", "response": {"$ref": "Page"}}}}', true));
419
+ $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"startDate": {"type": "string", "location": "query", "format": "date-time"}, "postId": {"required": true, "type": "string", "location": "path"}, "endDate": {"type": "string", "location": "query", "format": "date-time"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments", "response": {"$ref": "CommentList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
420
+ $this->users = new Google_UsersServiceResource($this, $this->serviceName, 'users', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.users.get", "httpMethod": "GET", "path": "users/{userId}", "response": {"$ref": "User"}}}}', true));
421
+
422
+ }
423
+ }
424
+
425
+ class Google_Blog extends Google_Model {
426
+ public $kind;
427
+ public $description;
428
+ protected $__localeType = 'Google_BlogLocale';
429
+ protected $__localeDataType = '';
430
+ public $locale;
431
+ protected $__postsType = 'Google_BlogPosts';
432
+ protected $__postsDataType = '';
433
+ public $posts;
434
+ public $customMetaData;
435
+ public $updated;
436
+ protected $__pagesType = 'Google_BlogPages';
437
+ protected $__pagesDataType = '';
438
+ public $pages;
439
+ public $url;
440
+ public $published;
441
+ public $id;
442
+ public $selfLink;
443
+ public $name;
444
+ public function setKind($kind) {
445
+ $this->kind = $kind;
446
+ }
447
+ public function getKind() {
448
+ return $this->kind;
449
+ }
450
+ public function setDescription($description) {
451
+ $this->description = $description;
452
+ }
453
+ public function getDescription() {
454
+ return $this->description;
455
+ }
456
+ public function setLocale(Google_BlogLocale $locale) {
457
+ $this->locale = $locale;
458
+ }
459
+ public function getLocale() {
460
+ return $this->locale;
461
+ }
462
+ public function setPosts(Google_BlogPosts $posts) {
463
+ $this->posts = $posts;
464
+ }
465
+ public function getPosts() {
466
+ return $this->posts;
467
+ }
468
+ public function setCustomMetaData($customMetaData) {
469
+ $this->customMetaData = $customMetaData;
470
+ }
471
+ public function getCustomMetaData() {
472
+ return $this->customMetaData;
473
+ }
474
+ public function setUpdated($updated) {
475
+ $this->updated = $updated;
476
+ }
477
+ public function getUpdated() {
478
+ return $this->updated;
479
+ }
480
+ public function setPages(Google_BlogPages $pages) {
481
+ $this->pages = $pages;
482
+ }
483
+ public function getPages() {
484
+ return $this->pages;
485
+ }
486
+ public function setUrl($url) {
487
+ $this->url = $url;
488
+ }
489
+ public function getUrl() {
490
+ return $this->url;
491
+ }
492
+ public function setPublished($published) {
493
+ $this->published = $published;
494
+ }
495
+ public function getPublished() {
496
+ return $this->published;
497
+ }
498
+ public function setId($id) {
499
+ $this->id = $id;
500
+ }
501
+ public function getId() {
502
+ return $this->id;
503
+ }
504
+ public function setSelfLink($selfLink) {
505
+ $this->selfLink = $selfLink;
506
+ }
507
+ public function getSelfLink() {
508
+ return $this->selfLink;
509
+ }
510
+ public function setName($name) {
511
+ $this->name = $name;
512
+ }
513
+ public function getName() {
514
+ return $this->name;
515
+ }
516
+ }
517
+
518
+ class Google_BlogList extends Google_Model {
519
+ protected $__itemsType = 'Google_Blog';
520
+ protected $__itemsDataType = 'array';
521
+ public $items;
522
+ public $kind;
523
+ public function setItems(/* array(Google_Blog) */ $items) {
524
+ $this->assertIsArray($items, 'Google_Blog', __METHOD__);
525
+ $this->items = $items;
526
+ }
527
+ public function getItems() {
528
+ return $this->items;
529
+ }
530
+ public function setKind($kind) {
531
+ $this->kind = $kind;
532
+ }
533
+ public function getKind() {
534
+ return $this->kind;
535
+ }
536
+ }
537
+
538
+ class Google_BlogLocale extends Google_Model {
539
+ public $country;
540
+ public $variant;
541
+ public $language;
542
+ public function setCountry($country) {
543
+ $this->country = $country;
544
+ }
545
+ public function getCountry() {
546
+ return $this->country;
547
+ }
548
+ public function setVariant($variant) {
549
+ $this->variant = $variant;
550
+ }
551
+ public function getVariant() {
552
+ return $this->variant;
553
+ }
554
+ public function setLanguage($language) {
555
+ $this->language = $language;
556
+ }
557
+ public function getLanguage() {
558
+ return $this->language;
559
+ }
560
+ }
561
+
562
+ class Google_BlogPages extends Google_Model {
563
+ public $totalItems;
564
+ public $selfLink;
565
+ public function setTotalItems($totalItems) {
566
+ $this->totalItems = $totalItems;
567
+ }
568
+ public function getTotalItems() {
569
+ return $this->totalItems;
570
+ }
571
+ public function setSelfLink($selfLink) {
572
+ $this->selfLink = $selfLink;
573
+ }
574
+ public function getSelfLink() {
575
+ return $this->selfLink;
576
+ }
577
+ }
578
+
579
+ class Google_BlogPosts extends Google_Model {
580
+ public $totalItems;
581
+ protected $__itemsType = 'Google_Post';
582
+ protected $__itemsDataType = 'array';
583
+ public $items;
584
+ public $selfLink;
585
+ public function setTotalItems($totalItems) {
586
+ $this->totalItems = $totalItems;
587
+ }
588
+ public function getTotalItems() {
589
+ return $this->totalItems;
590
+ }
591
+ public function setItems(/* array(Google_Post) */ $items) {
592
+ $this->assertIsArray($items, 'Google_Post', __METHOD__);
593
+ $this->items = $items;
594
+ }
595
+ public function getItems() {
596
+ return $this->items;
597
+ }
598
+ public function setSelfLink($selfLink) {
599
+ $this->selfLink = $selfLink;
600
+ }
601
+ public function getSelfLink() {
602
+ return $this->selfLink;
603
+ }
604
+ }
605
+
606
+ class Google_Comment extends Google_Model {
607
+ public $content;
608
+ public $kind;
609
+ protected $__inReplyToType = 'Google_CommentInReplyTo';
610
+ protected $__inReplyToDataType = '';
611
+ public $inReplyTo;
612
+ protected $__authorType = 'Google_CommentAuthor';
613
+ protected $__authorDataType = '';
614
+ public $author;
615
+ public $updated;
616
+ protected $__blogType = 'Google_CommentBlog';
617
+ protected $__blogDataType = '';
618
+ public $blog;
619
+ public $published;
620
+ protected $__postType = 'Google_CommentPost';
621
+ protected $__postDataType = '';
622
+ public $post;
623
+ public $id;
624
+ public $selfLink;
625
+ public function setContent($content) {
626
+ $this->content = $content;
627
+ }
628
+ public function getContent() {
629
+ return $this->content;
630
+ }
631
+ public function setKind($kind) {
632
+ $this->kind = $kind;
633
+ }
634
+ public function getKind() {
635
+ return $this->kind;
636
+ }
637
+ public function setInReplyTo(Google_CommentInReplyTo $inReplyTo) {
638
+ $this->inReplyTo = $inReplyTo;
639
+ }
640
+ public function getInReplyTo() {
641
+ return $this->inReplyTo;
642
+ }
643
+ public function setAuthor(Google_CommentAuthor $author) {
644
+ $this->author = $author;
645
+ }
646
+ public function getAuthor() {
647
+ return $this->author;
648
+ }
649
+ public function setUpdated($updated) {
650
+ $this->updated = $updated;
651
+ }
652
+ public function getUpdated() {
653
+ return $this->updated;
654
+ }
655
+ public function setBlog(Google_CommentBlog $blog) {
656
+ $this->blog = $blog;
657
+ }
658
+ public function getBlog() {
659
+ return $this->blog;
660
+ }
661
+ public function setPublished($published) {
662
+ $this->published = $published;
663
+ }
664
+ public function getPublished() {
665
+ return $this->published;
666
+ }
667
+ public function setPost(Google_CommentPost $post) {
668
+ $this->post = $post;
669
+ }
670
+ public function getPost() {
671
+ return $this->post;
672
+ }
673
+ public function setId($id) {
674
+ $this->id = $id;
675
+ }
676
+ public function getId() {
677
+ return $this->id;
678
+ }
679
+ public function setSelfLink($selfLink) {
680
+ $this->selfLink = $selfLink;
681
+ }
682
+ public function getSelfLink() {
683
+ return $this->selfLink;
684
+ }
685
+ }
686
+
687
+ class Google_CommentAuthor extends Google_Model {
688
+ public $url;
689
+ protected $__imageType = 'Google_CommentAuthorImage';
690
+ protected $__imageDataType = '';
691
+ public $image;
692
+ public $displayName;
693
+ public $id;
694
+ public function setUrl($url) {
695
+ $this->url = $url;
696
+ }
697
+ public function getUrl() {
698
+ return $this->url;
699
+ }
700
+ public function setImage(Google_CommentAuthorImage $image) {
701
+ $this->image = $image;
702
+ }
703
+ public function getImage() {
704
+ return $this->image;
705
+ }
706
+ public function setDisplayName($displayName) {
707
+ $this->displayName = $displayName;
708
+ }
709
+ public function getDisplayName() {
710
+ return $this->displayName;
711
+ }
712
+ public function setId($id) {
713
+ $this->id = $id;
714
+ }
715
+ public function getId() {
716
+ return $this->id;
717
+ }
718
+ }
719
+
720
+ class Google_CommentAuthorImage extends Google_Model {
721
+ public $url;
722
+ public function setUrl($url) {
723
+ $this->url = $url;
724
+ }
725
+ public function getUrl() {
726
+ return $this->url;
727
+ }
728
+ }
729
+
730
+ class Google_CommentBlog extends Google_Model {
731
+ public $id;
732
+ public function setId($id) {
733
+ $this->id = $id;
734
+ }
735
+ public function getId() {
736
+ return $this->id;
737
+ }
738
+ }
739
+
740
+ class Google_CommentInReplyTo extends Google_Model {
741
+ public $id;
742
+ public function setId($id) {
743
+ $this->id = $id;
744
+ }
745
+ public function getId() {
746
+ return $this->id;
747
+ }
748
+ }
749
+
750
+ class Google_CommentList extends Google_Model {
751
+ public $nextPageToken;
752
+ protected $__itemsType = 'Google_Comment';
753
+ protected $__itemsDataType = 'array';
754
+ public $items;
755
+ public $kind;
756
+ public $prevPageToken;
757
+ public function setNextPageToken($nextPageToken) {
758
+ $this->nextPageToken = $nextPageToken;
759
+ }
760
+ public function getNextPageToken() {
761
+ return $this->nextPageToken;
762
+ }
763
+ public function setItems(/* array(Google_Comment) */ $items) {
764
+ $this->assertIsArray($items, 'Google_Comment', __METHOD__);
765
+ $this->items = $items;
766
+ }
767
+ public function getItems() {
768
+ return $this->items;
769
+ }
770
+ public function setKind($kind) {
771
+ $this->kind = $kind;
772
+ }
773
+ public function getKind() {
774
+ return $this->kind;
775
+ }
776
+ public function setPrevPageToken($prevPageToken) {
777
+ $this->prevPageToken = $prevPageToken;
778
+ }
779
+ public function getPrevPageToken() {
780
+ return $this->prevPageToken;
781
+ }
782
+ }
783
+
784
+ class Google_CommentPost extends Google_Model {
785
+ public $id;
786
+ public function setId($id) {
787
+ $this->id = $id;
788
+ }
789
+ public function getId() {
790
+ return $this->id;
791
+ }
792
+ }
793
+
794
+ class Google_Page extends Google_Model {
795
+ public $content;
796
+ public $kind;
797
+ protected $__authorType = 'Google_PageAuthor';
798
+ protected $__authorDataType = '';
799
+ public $author;
800
+ public $url;
801
+ public $title;
802
+ public $updated;
803
+ protected $__blogType = 'Google_PageBlog';
804
+ protected $__blogDataType = '';
805
+ public $blog;
806
+ public $published;
807
+ public $id;
808
+ public $selfLink;
809
+ public function setContent($content) {
810
+ $this->content = $content;
811
+ }
812
+ public function getContent() {
813
+ return $this->content;
814
+ }
815
+ public function setKind($kind) {
816
+ $this->kind = $kind;
817
+ }
818
+ public function getKind() {
819
+ return $this->kind;
820
+ }
821
+ public function setAuthor(Google_PageAuthor $author) {
822
+ $this->author = $author;
823
+ }
824
+ public function getAuthor() {
825
+ return $this->author;
826
+ }
827
+ public function setUrl($url) {
828
+ $this->url = $url;
829
+ }
830
+ public function getUrl() {
831
+ return $this->url;
832
+ }
833
+ public function setTitle($title) {
834
+ $this->title = $title;
835
+ }
836
+ public function getTitle() {
837
+ return $this->title;
838
+ }
839
+ public function setUpdated($updated) {
840
+ $this->updated = $updated;
841
+ }
842
+ public function getUpdated() {
843
+ return $this->updated;
844
+ }
845
+ public function setBlog(Google_PageBlog $blog) {
846
+ $this->blog = $blog;
847
+ }
848
+ public function getBlog() {
849
+ return $this->blog;
850
+ }
851
+ public function setPublished($published) {
852
+ $this->published = $published;
853
+ }
854
+ public function getPublished() {
855
+ return $this->published;
856
+ }
857
+ public function setId($id) {
858
+ $this->id = $id;
859
+ }
860
+ public function getId() {
861
+ return $this->id;
862
+ }
863
+ public function setSelfLink($selfLink) {
864
+ $this->selfLink = $selfLink;
865
+ }
866
+ public function getSelfLink() {
867
+ return $this->selfLink;
868
+ }
869
+ }
870
+
871
+ class Google_PageAuthor extends Google_Model {
872
+ public $url;
873
+ protected $__imageType = 'Google_PageAuthorImage';
874
+ protected $__imageDataType = '';
875
+ public $image;
876
+ public $displayName;
877
+ public $id;
878
+ public function setUrl($url) {
879
+ $this->url = $url;
880
+ }
881
+ public function getUrl() {
882
+ return $this->url;
883
+ }
884
+ public function setImage(Google_PageAuthorImage $image) {
885
+ $this->image = $image;
886
+ }
887
+ public function getImage() {
888
+ return $this->image;
889
+ }
890
+ public function setDisplayName($displayName) {
891
+ $this->displayName = $displayName;
892
+ }
893
+ public function getDisplayName() {
894
+ return $this->displayName;
895
+ }
896
+ public function setId($id) {
897
+ $this->id = $id;
898
+ }
899
+ public function getId() {
900
+ return $this->id;
901
+ }
902
+ }
903
+
904
+ class Google_PageAuthorImage extends Google_Model {
905
+ public $url;
906
+ public function setUrl($url) {
907
+ $this->url = $url;
908
+ }
909
+ public function getUrl() {
910
+ return $this->url;
911
+ }
912
+ }
913
+
914
+ class Google_PageBlog extends Google_Model {
915
+ public $id;
916
+ public function setId($id) {
917
+ $this->id = $id;
918
+ }
919
+ public function getId() {
920
+ return $this->id;
921
+ }
922
+ }
923
+
924
+ class Google_PageList extends Google_Model {
925
+ protected $__itemsType = 'Google_Page';
926
+ protected $__itemsDataType = 'array';
927
+ public $items;
928
+ public $kind;
929
+ public function setItems(/* array(Google_Page) */ $items) {
930
+ $this->assertIsArray($items, 'Google_Page', __METHOD__);
931
+ $this->items = $items;
932
+ }
933
+ public function getItems() {
934
+ return $this->items;
935
+ }
936
+ public function setKind($kind) {
937
+ $this->kind = $kind;
938
+ }
939
+ public function getKind() {
940
+ return $this->kind;
941
+ }
942
+ }
943
+
944
+ class Google_Post extends Google_Model {
945
+ public $content;
946
+ public $kind;
947
+ protected $__authorType = 'Google_PostAuthor';
948
+ protected $__authorDataType = '';
949
+ public $author;
950
+ protected $__repliesType = 'Google_PostReplies';
951
+ protected $__repliesDataType = '';
952
+ public $replies;
953
+ public $labels;
954
+ public $customMetaData;
955
+ public $updated;
956
+ protected $__blogType = 'Google_PostBlog';
957
+ protected $__blogDataType = '';
958
+ public $blog;
959
+ public $url;
960
+ protected $__locationType = 'Google_PostLocation';
961
+ protected $__locationDataType = '';
962
+ public $location;
963
+ public $published;
964
+ public $title;
965
+ public $id;
966
+ public $selfLink;
967
+ public function setContent($content) {
968
+ $this->content = $content;
969
+ }
970
+ public function getContent() {
971
+ return $this->content;
972
+ }
973
+ public function setKind($kind) {
974
+ $this->kind = $kind;
975
+ }
976
+ public function getKind() {
977
+ return $this->kind;
978
+ }
979
+ public function setAuthor(Google_PostAuthor $author) {
980
+ $this->author = $author;
981
+ }
982
+ public function getAuthor() {
983
+ return $this->author;
984
+ }
985
+ public function setReplies(Google_PostReplies $replies) {
986
+ $this->replies = $replies;
987
+ }
988
+ public function getReplies() {
989
+ return $this->replies;
990
+ }
991
+ public function setLabels(/* array(Google_string) */ $labels) {
992
+ $this->assertIsArray($labels, 'Google_string', __METHOD__);
993
+ $this->labels = $labels;
994
+ }
995
+ public function getLabels() {
996
+ return $this->labels;
997
+ }
998
+ public function setCustomMetaData($customMetaData) {
999
+ $this->customMetaData = $customMetaData;
1000
+ }
1001
+ public function getCustomMetaData() {
1002
+ return $this->customMetaData;
1003
+ }
1004
+ public function setUpdated($updated) {
1005
+ $this->updated = $updated;
1006
+ }
1007
+ public function getUpdated() {
1008
+ return $this->updated;
1009
+ }
1010
+ public function setBlog(Google_PostBlog $blog) {
1011
+ $this->blog = $blog;
1012
+ }
1013
+ public function getBlog() {
1014
+ return $this->blog;
1015
+ }
1016
+ public function setUrl($url) {
1017
+ $this->url = $url;
1018
+ }
1019
+ public function getUrl() {
1020
+ return $this->url;
1021
+ }
1022
+ public function setLocation(Google_PostLocation $location) {
1023
+ $this->location = $location;
1024
+ }
1025
+ public function getLocation() {
1026
+ return $this->location;
1027
+ }
1028
+ public function setPublished($published) {
1029
+ $this->published = $published;
1030
+ }
1031
+ public function getPublished() {
1032
+ return $this->published;
1033
+ }
1034
+ public function setTitle($title) {
1035
+ $this->title = $title;
1036
+ }
1037
+ public function getTitle() {
1038
+ return $this->title;
1039
+ }
1040
+ public function setId($id) {
1041
+ $this->id = $id;
1042
+ }
1043
+ public function getId() {
1044
+ return $this->id;
1045
+ }
1046
+ public function setSelfLink($selfLink) {
1047
+ $this->selfLink = $selfLink;
1048
+ }
1049
+ public function getSelfLink() {
1050
+ return $this->selfLink;
1051
+ }
1052
+ }
1053
+
1054
+ class Google_PostAuthor extends Google_Model {
1055
+ public $url;
1056
+ protected $__imageType = 'Google_PostAuthorImage';
1057
+ protected $__imageDataType = '';
1058
+ public $image;
1059
+ public $displayName;
1060
+ public $id;
1061
+ public function setUrl($url) {
1062
+ $this->url = $url;
1063
+ }
1064
+ public function getUrl() {
1065
+ return $this->url;
1066
+ }
1067
+ public function setImage(Google_PostAuthorImage $image) {
1068
+ $this->image = $image;
1069
+ }
1070
+ public function getImage() {
1071
+ return $this->image;
1072
+ }
1073
+ public function setDisplayName($displayName) {
1074
+ $this->displayName = $displayName;
1075
+ }
1076
+ public function getDisplayName() {
1077
+ return $this->displayName;
1078
+ }
1079
+ public function setId($id) {
1080
+ $this->id = $id;
1081
+ }
1082
+ public function getId() {
1083
+ return $this->id;
1084
+ }
1085
+ }
1086
+
1087
+ class Google_PostAuthorImage extends Google_Model {
1088
+ public $url;
1089
+ public function setUrl($url) {
1090
+ $this->url = $url;
1091
+ }
1092
+ public function getUrl() {
1093
+ return $this->url;
1094
+ }
1095
+ }
1096
+
1097
+ class Google_PostBlog extends Google_Model {
1098
+ public $id;
1099
+ public function setId($id) {
1100
+ $this->id = $id;
1101
+ }
1102
+ public function getId() {
1103
+ return $this->id;
1104
+ }
1105
+ }
1106
+
1107
+ class Google_PostList extends Google_Model {
1108
+ public $nextPageToken;
1109
+ protected $__itemsType = 'Google_Post';
1110
+ protected $__itemsDataType = 'array';
1111
+ public $items;
1112
+ public $kind;
1113
+ public $prevPageToken;
1114
+ public function setNextPageToken($nextPageToken) {
1115
+ $this->nextPageToken = $nextPageToken;
1116
+ }
1117
+ public function getNextPageToken() {
1118
+ return $this->nextPageToken;
1119
+ }
1120
+ public function setItems(/* array(Google_Post) */ $items) {
1121
+ $this->assertIsArray($items, 'Google_Post', __METHOD__);
1122
+ $this->items = $items;
1123
+ }
1124
+ public function getItems() {
1125
+ return $this->items;
1126
+ }
1127
+ public function setKind($kind) {
1128
+ $this->kind = $kind;
1129
+ }
1130
+ public function getKind() {
1131
+ return $this->kind;
1132
+ }
1133
+ public function setPrevPageToken($prevPageToken) {
1134
+ $this->prevPageToken = $prevPageToken;
1135
+ }
1136
+ public function getPrevPageToken() {
1137
+ return $this->prevPageToken;
1138
+ }
1139
+ }
1140
+
1141
+ class Google_PostLocation extends Google_Model {
1142
+ public $lat;
1143
+ public $lng;
1144
+ public $span;
1145
+ public $name;
1146
+ public function setLat($lat) {
1147
+ $this->lat = $lat;
1148
+ }
1149
+ public function getLat() {
1150
+ return $this->lat;
1151
+ }
1152
+ public function setLng($lng) {
1153
+ $this->lng = $lng;
1154
+ }
1155
+ public function getLng() {
1156
+ return $this->lng;
1157
+ }
1158
+ public function setSpan($span) {
1159
+ $this->span = $span;
1160
+ }
1161
+ public function getSpan() {
1162
+ return $this->span;
1163
+ }
1164
+ public function setName($name) {
1165
+ $this->name = $name;
1166
+ }
1167
+ public function getName() {
1168
+ return $this->name;
1169
+ }
1170
+ }
1171
+
1172
+ class Google_PostReplies extends Google_Model {
1173
+ public $totalItems;
1174
+ protected $__itemsType = 'Google_Comment';
1175
+ protected $__itemsDataType = 'array';
1176
+ public $items;
1177
+ public $selfLink;
1178
+ public function setTotalItems($totalItems) {
1179
+ $this->totalItems = $totalItems;
1180
+ }
1181
+ public function getTotalItems() {
1182
+ return $this->totalItems;
1183
+ }
1184
+ public function setItems(/* array(Google_Comment) */ $items) {
1185
+ $this->assertIsArray($items, 'Google_Comment', __METHOD__);
1186
+ $this->items = $items;
1187
+ }
1188
+ public function getItems() {
1189
+ return $this->items;
1190
+ }
1191
+ public function setSelfLink($selfLink) {
1192
+ $this->selfLink = $selfLink;
1193
+ }
1194
+ public function getSelfLink() {
1195
+ return $this->selfLink;
1196
+ }
1197
+ }
1198
+
1199
+ class Google_User extends Google_Model {
1200
+ public $about;
1201
+ public $displayName;
1202
+ public $created;
1203
+ protected $__localeType = 'Google_UserLocale';
1204
+ protected $__localeDataType = '';
1205
+ public $locale;
1206
+ protected $__blogsType = 'Google_UserBlogs';
1207
+ protected $__blogsDataType = '';
1208
+ public $blogs;
1209
+ public $kind;
1210
+ public $url;
1211
+ public $id;
1212
+ public $selfLink;
1213
+ public function setAbout($about) {
1214
+ $this->about = $about;
1215
+ }
1216
+ public function getAbout() {
1217
+ return $this->about;
1218
+ }
1219
+ public function setDisplayName($displayName) {
1220
+ $this->displayName = $displayName;
1221
+ }
1222
+ public function getDisplayName() {
1223
+ return $this->displayName;
1224
+ }
1225
+ public function setCreated($created) {
1226
+ $this->created = $created;
1227
+ }
1228
+ public function getCreated() {
1229
+ return $this->created;
1230
+ }
1231
+ public function setLocale(Google_UserLocale $locale) {
1232
+ $this->locale = $locale;
1233
+ }
1234
+ public function getLocale() {
1235
+ return $this->locale;
1236
+ }
1237
+ public function setBlogs(Google_UserBlogs $blogs) {
1238
+ $this->blogs = $blogs;
1239
+ }
1240
+ public function getBlogs() {
1241
+ return $this->blogs;
1242
+ }
1243
+ public function setKind($kind) {
1244
+ $this->kind = $kind;
1245
+ }
1246
+ public function getKind() {
1247
+ return $this->kind;
1248
+ }
1249
+ public function setUrl($url) {
1250
+ $this->url = $url;
1251
+ }
1252
+ public function getUrl() {
1253
+ return $this->url;
1254
+ }
1255
+ public function setId($id) {
1256
+ $this->id = $id;
1257
+ }
1258
+ public function getId() {
1259
+ return $this->id;
1260
+ }
1261
+ public function setSelfLink($selfLink) {
1262
+ $this->selfLink = $selfLink;
1263
+ }
1264
+ public function getSelfLink() {
1265
+ return $this->selfLink;
1266
+ }
1267
+ }
1268
+
1269
+ class Google_UserBlogs extends Google_Model {
1270
+ public $selfLink;
1271
+ public function setSelfLink($selfLink) {
1272
+ $this->selfLink = $selfLink;
1273
+ }
1274
+ public function getSelfLink() {
1275
+ return $this->selfLink;
1276
+ }
1277
+ }
1278
+
1279
+ class Google_UserLocale extends Google_Model {
1280
+ public $country;
1281
+ public $variant;
1282
+ public $language;
1283
+ public function setCountry($country) {
1284
+ $this->country = $country;
1285
+ }
1286
+ public function getCountry() {
1287
+ return $this->country;
1288
+ }
1289
+ public function setVariant($variant) {
1290
+ $this->variant = $variant;
1291
+ }
1292
+ public function getVariant() {
1293
+ return $this->variant;
1294
+ }
1295
+ public function setLanguage($language) {
1296
+ $this->language = $language;
1297
+ }
1298
+ public function getLanguage() {
1299
+ return $this->language;
1300
+ }
1301
+ }
google-api-php-client/src/contrib/Google_BooksService.php ADDED
@@ -0,0 +1,2793 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "layers" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $booksService = new Google_BooksService(...);
22
+ * $layers = $booksService->layers;
23
+ * </code>
24
+ */
25
+ class Google_LayersServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * List the layer summaries for a volume. (layers.list)
30
+ *
31
+ * @param string $volumeId The volume to retrieve layers for.
32
+ * @param array $optParams Optional parameters.
33
+ *
34
+ * @opt_param string pageToken The value of the nextToken from the previous page.
35
+ * @opt_param string contentVersion The content version for the requested volume.
36
+ * @opt_param string maxResults Maximum number of results to return
37
+ * @opt_param string source String to identify the originator of this request.
38
+ * @return Google_Layersummaries
39
+ */
40
+ public function listLayers($volumeId, $optParams = array()) {
41
+ $params = array('volumeId' => $volumeId);
42
+ $params = array_merge($params, $optParams);
43
+ $data = $this->__call('list', array($params));
44
+ if ($this->useObjects()) {
45
+ return new Google_Layersummaries($data);
46
+ } else {
47
+ return $data;
48
+ }
49
+ }
50
+ /**
51
+ * Gets the layer summary for a volume. (layers.get)
52
+ *
53
+ * @param string $volumeId The volume to retrieve layers for.
54
+ * @param string $summaryId The ID for the layer to get the summary for.
55
+ * @param array $optParams Optional parameters.
56
+ *
57
+ * @opt_param string source String to identify the originator of this request.
58
+ * @opt_param string contentVersion The content version for the requested volume.
59
+ * @return Google_Layersummary
60
+ */
61
+ public function get($volumeId, $summaryId, $optParams = array()) {
62
+ $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
63
+ $params = array_merge($params, $optParams);
64
+ $data = $this->__call('get', array($params));
65
+ if ($this->useObjects()) {
66
+ return new Google_Layersummary($data);
67
+ } else {
68
+ return $data;
69
+ }
70
+ }
71
+ }
72
+
73
+ /**
74
+ * The "annotationData" collection of methods.
75
+ * Typical usage is:
76
+ * <code>
77
+ * $booksService = new Google_BooksService(...);
78
+ * $annotationData = $booksService->annotationData;
79
+ * </code>
80
+ */
81
+ class Google_LayersAnnotationDataServiceResource extends Google_ServiceResource {
82
+
83
+
84
+ /**
85
+ * Gets the annotation data for a volume and layer. (annotationData.list)
86
+ *
87
+ * @param string $volumeId The volume to retrieve annotation data for.
88
+ * @param string $layerId The ID for the layer to get the annotation data.
89
+ * @param string $contentVersion The content version for the requested volume.
90
+ * @param array $optParams Optional parameters.
91
+ *
92
+ * @opt_param int scale The requested scale for the image.
93
+ * @opt_param string source String to identify the originator of this request.
94
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
95
+ * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
96
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
97
+ * @opt_param string maxResults Maximum number of results to return
98
+ * @opt_param string annotationDataId The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
99
+ * @opt_param string pageToken The value of the nextToken from the previous page.
100
+ * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
101
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
102
+ * @return Google_Annotationsdata
103
+ */
104
+ public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) {
105
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
106
+ $params = array_merge($params, $optParams);
107
+ $data = $this->__call('list', array($params));
108
+ if ($this->useObjects()) {
109
+ return new Google_Annotationsdata($data);
110
+ } else {
111
+ return $data;
112
+ }
113
+ }
114
+ /**
115
+ * Gets the annotation data. (annotationData.get)
116
+ *
117
+ * @param string $volumeId The volume to retrieve annotations for.
118
+ * @param string $layerId The ID for the layer to get the annotations.
119
+ * @param string $annotationDataId The ID of the annotation data to retrieve.
120
+ * @param string $contentVersion The content version for the volume you are trying to retrieve.
121
+ * @param array $optParams Optional parameters.
122
+ *
123
+ * @opt_param int scale The requested scale for the image.
124
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
125
+ * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
126
+ * @opt_param string source String to identify the originator of this request.
127
+ * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
128
+ * @return Google_Annotationdata
129
+ */
130
+ public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) {
131
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
132
+ $params = array_merge($params, $optParams);
133
+ $data = $this->__call('get', array($params));
134
+ if ($this->useObjects()) {
135
+ return new Google_Annotationdata($data);
136
+ } else {
137
+ return $data;
138
+ }
139
+ }
140
+ }
141
+ /**
142
+ * The "volumeAnnotations" collection of methods.
143
+ * Typical usage is:
144
+ * <code>
145
+ * $booksService = new Google_BooksService(...);
146
+ * $volumeAnnotations = $booksService->volumeAnnotations;
147
+ * </code>
148
+ */
149
+ class Google_LayersVolumeAnnotationsServiceResource extends Google_ServiceResource {
150
+
151
+
152
+ /**
153
+ * Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
154
+ *
155
+ * @param string $volumeId The volume to retrieve annotations for.
156
+ * @param string $layerId The ID for the layer to get the annotations.
157
+ * @param string $contentVersion The content version for the requested volume.
158
+ * @param array $optParams Optional parameters.
159
+ *
160
+ * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
161
+ * @opt_param string endPosition The end position to end retrieving data from.
162
+ * @opt_param string endOffset The end offset to end retrieving data from.
163
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
164
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
165
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
166
+ * @opt_param string maxResults Maximum number of results to return
167
+ * @opt_param string pageToken The value of the nextToken from the previous page.
168
+ * @opt_param string source String to identify the originator of this request.
169
+ * @opt_param string startOffset The start offset to start retrieving data from.
170
+ * @opt_param string startPosition The start position to start retrieving data from.
171
+ * @return Google_Volumeannotations
172
+ */
173
+ public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) {
174
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
175
+ $params = array_merge($params, $optParams);
176
+ $data = $this->__call('list', array($params));
177
+ if ($this->useObjects()) {
178
+ return new Google_Volumeannotations($data);
179
+ } else {
180
+ return $data;
181
+ }
182
+ }
183
+ /**
184
+ * Gets the volume annotation. (volumeAnnotations.get)
185
+ *
186
+ * @param string $volumeId The volume to retrieve annotations for.
187
+ * @param string $layerId The ID for the layer to get the annotations.
188
+ * @param string $annotationId The ID of the volume annotation to retrieve.
189
+ * @param array $optParams Optional parameters.
190
+ *
191
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
192
+ * @opt_param string source String to identify the originator of this request.
193
+ * @return Google_Volumeannotation
194
+ */
195
+ public function get($volumeId, $layerId, $annotationId, $optParams = array()) {
196
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
197
+ $params = array_merge($params, $optParams);
198
+ $data = $this->__call('get', array($params));
199
+ if ($this->useObjects()) {
200
+ return new Google_Volumeannotation($data);
201
+ } else {
202
+ return $data;
203
+ }
204
+ }
205
+ }
206
+
207
+ /**
208
+ * The "bookshelves" collection of methods.
209
+ * Typical usage is:
210
+ * <code>
211
+ * $booksService = new Google_BooksService(...);
212
+ * $bookshelves = $booksService->bookshelves;
213
+ * </code>
214
+ */
215
+ class Google_BookshelvesServiceResource extends Google_ServiceResource {
216
+
217
+
218
+ /**
219
+ * Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
220
+ *
221
+ * @param string $userId ID of user for whom to retrieve bookshelves.
222
+ * @param array $optParams Optional parameters.
223
+ *
224
+ * @opt_param string source String to identify the originator of this request.
225
+ * @return Google_Bookshelves
226
+ */
227
+ public function listBookshelves($userId, $optParams = array()) {
228
+ $params = array('userId' => $userId);
229
+ $params = array_merge($params, $optParams);
230
+ $data = $this->__call('list', array($params));
231
+ if ($this->useObjects()) {
232
+ return new Google_Bookshelves($data);
233
+ } else {
234
+ return $data;
235
+ }
236
+ }
237
+ /**
238
+ * Retrieves metadata for a specific bookshelf for the specified user. (bookshelves.get)
239
+ *
240
+ * @param string $userId ID of user for whom to retrieve bookshelves.
241
+ * @param string $shelf ID of bookshelf to retrieve.
242
+ * @param array $optParams Optional parameters.
243
+ *
244
+ * @opt_param string source String to identify the originator of this request.
245
+ * @return Google_Bookshelf
246
+ */
247
+ public function get($userId, $shelf, $optParams = array()) {
248
+ $params = array('userId' => $userId, 'shelf' => $shelf);
249
+ $params = array_merge($params, $optParams);
250
+ $data = $this->__call('get', array($params));
251
+ if ($this->useObjects()) {
252
+ return new Google_Bookshelf($data);
253
+ } else {
254
+ return $data;
255
+ }
256
+ }
257
+ }
258
+
259
+ /**
260
+ * The "volumes" collection of methods.
261
+ * Typical usage is:
262
+ * <code>
263
+ * $booksService = new Google_BooksService(...);
264
+ * $volumes = $booksService->volumes;
265
+ * </code>
266
+ */
267
+ class Google_BookshelvesVolumesServiceResource extends Google_ServiceResource {
268
+
269
+
270
+ /**
271
+ * Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
272
+ *
273
+ * @param string $userId ID of user for whom to retrieve bookshelf volumes.
274
+ * @param string $shelf ID of bookshelf to retrieve volumes.
275
+ * @param array $optParams Optional parameters.
276
+ *
277
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
278
+ * @opt_param string maxResults Maximum number of results to return
279
+ * @opt_param string source String to identify the originator of this request.
280
+ * @opt_param string startIndex Index of the first element to return (starts at 0)
281
+ * @return Google_Volumes
282
+ */
283
+ public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) {
284
+ $params = array('userId' => $userId, 'shelf' => $shelf);
285
+ $params = array_merge($params, $optParams);
286
+ $data = $this->__call('list', array($params));
287
+ if ($this->useObjects()) {
288
+ return new Google_Volumes($data);
289
+ } else {
290
+ return $data;
291
+ }
292
+ }
293
+ }
294
+
295
+ /**
296
+ * The "myconfig" collection of methods.
297
+ * Typical usage is:
298
+ * <code>
299
+ * $booksService = new Google_BooksService(...);
300
+ * $myconfig = $booksService->myconfig;
301
+ * </code>
302
+ */
303
+ class Google_MyconfigServiceResource extends Google_ServiceResource {
304
+
305
+
306
+ /**
307
+ * Release downloaded content access restriction. (myconfig.releaseDownloadAccess)
308
+ *
309
+ * @param string $volumeIds The volume(s) to release restrictions for.
310
+ * @param string $cpksver The device/version ID from which to release the restriction.
311
+ * @param array $optParams Optional parameters.
312
+ *
313
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
314
+ * @opt_param string source String to identify the originator of this request.
315
+ * @return Google_DownloadAccesses
316
+ */
317
+ public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) {
318
+ $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
319
+ $params = array_merge($params, $optParams);
320
+ $data = $this->__call('releaseDownloadAccess', array($params));
321
+ if ($this->useObjects()) {
322
+ return new Google_DownloadAccesses($data);
323
+ } else {
324
+ return $data;
325
+ }
326
+ }
327
+ /**
328
+ * Request concurrent and download access restrictions. (myconfig.requestAccess)
329
+ *
330
+ * @param string $source String to identify the originator of this request.
331
+ * @param string $volumeId The volume to request concurrent/download restrictions for.
332
+ * @param string $nonce The client nonce value.
333
+ * @param string $cpksver The device/version ID from which to request the restrictions.
334
+ * @param array $optParams Optional parameters.
335
+ *
336
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
337
+ * @return Google_RequestAccess
338
+ */
339
+ public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) {
340
+ $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
341
+ $params = array_merge($params, $optParams);
342
+ $data = $this->__call('requestAccess', array($params));
343
+ if ($this->useObjects()) {
344
+ return new Google_RequestAccess($data);
345
+ } else {
346
+ return $data;
347
+ }
348
+ }
349
+ /**
350
+ * Request downloaded content access for specified volumes on the My eBooks shelf.
351
+ * (myconfig.syncVolumeLicenses)
352
+ *
353
+ * @param string $source String to identify the originator of this request.
354
+ * @param string $nonce The client nonce value.
355
+ * @param string $cpksver The device/version ID from which to release the restriction.
356
+ * @param array $optParams Optional parameters.
357
+ *
358
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
359
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
360
+ * @opt_param string volumeIds The volume(s) to request download restrictions for.
361
+ * @return Google_Volumes
362
+ */
363
+ public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) {
364
+ $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
365
+ $params = array_merge($params, $optParams);
366
+ $data = $this->__call('syncVolumeLicenses', array($params));
367
+ if ($this->useObjects()) {
368
+ return new Google_Volumes($data);
369
+ } else {
370
+ return $data;
371
+ }
372
+ }
373
+ }
374
+
375
+ /**
376
+ * The "volumes" collection of methods.
377
+ * Typical usage is:
378
+ * <code>
379
+ * $booksService = new Google_BooksService(...);
380
+ * $volumes = $booksService->volumes;
381
+ * </code>
382
+ */
383
+ class Google_VolumesServiceResource extends Google_ServiceResource {
384
+
385
+
386
+ /**
387
+ * Performs a book search. (volumes.list)
388
+ *
389
+ * @param string $q Full-text search query string.
390
+ * @param array $optParams Optional parameters.
391
+ *
392
+ * @opt_param string orderBy Sort search results.
393
+ * @opt_param string projection Restrict information returned to a set of selected fields.
394
+ * @opt_param string libraryRestrict Restrict search to this user's library.
395
+ * @opt_param string langRestrict Restrict results to books with this language code.
396
+ * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
397
+ * @opt_param string printType Restrict to books or magazines.
398
+ * @opt_param string maxResults Maximum number of results to return.
399
+ * @opt_param string filter Filter search results.
400
+ * @opt_param string source String to identify the originator of this request.
401
+ * @opt_param string startIndex Index of the first result to return (starts at 0)
402
+ * @opt_param string download Restrict to volumes by download availability.
403
+ * @opt_param string partner Restrict and brand results for partner ID.
404
+ * @return Google_Volumes
405
+ */
406
+ public function listVolumes($q, $optParams = array()) {
407
+ $params = array('q' => $q);
408
+ $params = array_merge($params, $optParams);
409
+ $data = $this->__call('list', array($params));
410
+ if ($this->useObjects()) {
411
+ return new Google_Volumes($data);
412
+ } else {
413
+ return $data;
414
+ }
415
+ }
416
+ /**
417
+ * Gets volume information for a single volume. (volumes.get)
418
+ *
419
+ * @param string $volumeId ID of volume to retrieve.
420
+ * @param array $optParams Optional parameters.
421
+ *
422
+ * @opt_param string source String to identify the originator of this request.
423
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
424
+ * @opt_param string projection Restrict information returned to a set of selected fields.
425
+ * @opt_param string partner Brand results for partner ID.
426
+ * @return Google_Volume
427
+ */
428
+ public function get($volumeId, $optParams = array()) {
429
+ $params = array('volumeId' => $volumeId);
430
+ $params = array_merge($params, $optParams);
431
+ $data = $this->__call('get', array($params));
432
+ if ($this->useObjects()) {
433
+ return new Google_Volume($data);
434
+ } else {
435
+ return $data;
436
+ }
437
+ }
438
+ }
439
+
440
+ /**
441
+ * The "associated" collection of methods.
442
+ * Typical usage is:
443
+ * <code>
444
+ * $booksService = new Google_BooksService(...);
445
+ * $associated = $booksService->associated;
446
+ * </code>
447
+ */
448
+ class Google_VolumesAssociatedServiceResource extends Google_ServiceResource {
449
+
450
+
451
+ /**
452
+ * Return a list of associated books. (associated.list)
453
+ *
454
+ * @param string $volumeId ID of the source volume.
455
+ * @param array $optParams Optional parameters.
456
+ *
457
+ * @opt_param string projection Restrict information returned to a set of selected fields.
458
+ * @opt_param string maxResults Maximum number of results to return.
459
+ * @opt_param string filter Filter search results.
460
+ * @opt_param string source String to identify the originator of this request.
461
+ * @opt_param string startIndex Index of the first result to return (starts at 0)
462
+ * @opt_param string association Association type.
463
+ * @return Google_Volumes
464
+ */
465
+ public function listVolumesAssociated($volumeId, $optParams = array()) {
466
+ $params = array('volumeId' => $volumeId);
467
+ $params = array_merge($params, $optParams);
468
+ $data = $this->__call('list', array($params));
469
+ if ($this->useObjects()) {
470
+ return new Google_Volumes($data);
471
+ } else {
472
+ return $data;
473
+ }
474
+ }
475
+ }
476
+
477
+ /**
478
+ * The "mylibrary" collection of methods.
479
+ * Typical usage is:
480
+ * <code>
481
+ * $booksService = new Google_BooksService(...);
482
+ * $mylibrary = $booksService->mylibrary;
483
+ * </code>
484
+ */
485
+ class Google_MylibraryServiceResource extends Google_ServiceResource {
486
+
487
+
488
+ }
489
+
490
+ /**
491
+ * The "bookshelves" collection of methods.
492
+ * Typical usage is:
493
+ * <code>
494
+ * $booksService = new Google_BooksService(...);
495
+ * $bookshelves = $booksService->bookshelves;
496
+ * </code>
497
+ */
498
+ class Google_MylibraryBookshelvesServiceResource extends Google_ServiceResource {
499
+
500
+
501
+ /**
502
+ * Removes a volume from a bookshelf. (bookshelves.removeVolume)
503
+ *
504
+ * @param string $shelf ID of bookshelf from which to remove a volume.
505
+ * @param string $volumeId ID of volume to remove.
506
+ * @param array $optParams Optional parameters.
507
+ *
508
+ * @opt_param string source String to identify the originator of this request.
509
+ */
510
+ public function removeVolume($shelf, $volumeId, $optParams = array()) {
511
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
512
+ $params = array_merge($params, $optParams);
513
+ $data = $this->__call('removeVolume', array($params));
514
+ return $data;
515
+ }
516
+ /**
517
+ * Retrieves metadata for a specific bookshelf belonging to the authenticated user.
518
+ * (bookshelves.get)
519
+ *
520
+ * @param string $shelf ID of bookshelf to retrieve.
521
+ * @param array $optParams Optional parameters.
522
+ *
523
+ * @opt_param string source String to identify the originator of this request.
524
+ * @return Google_Bookshelf
525
+ */
526
+ public function get($shelf, $optParams = array()) {
527
+ $params = array('shelf' => $shelf);
528
+ $params = array_merge($params, $optParams);
529
+ $data = $this->__call('get', array($params));
530
+ if ($this->useObjects()) {
531
+ return new Google_Bookshelf($data);
532
+ } else {
533
+ return $data;
534
+ }
535
+ }
536
+ /**
537
+ * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
538
+ *
539
+ * @param string $shelf ID of bookshelf from which to remove a volume.
540
+ * @param array $optParams Optional parameters.
541
+ *
542
+ * @opt_param string source String to identify the originator of this request.
543
+ */
544
+ public function clearVolumes($shelf, $optParams = array()) {
545
+ $params = array('shelf' => $shelf);
546
+ $params = array_merge($params, $optParams);
547
+ $data = $this->__call('clearVolumes', array($params));
548
+ return $data;
549
+ }
550
+ /**
551
+ * Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
552
+ *
553
+ * @param array $optParams Optional parameters.
554
+ *
555
+ * @opt_param string source String to identify the originator of this request.
556
+ * @return Google_Bookshelves
557
+ */
558
+ public function listMylibraryBookshelves($optParams = array()) {
559
+ $params = array();
560
+ $params = array_merge($params, $optParams);
561
+ $data = $this->__call('list', array($params));
562
+ if ($this->useObjects()) {
563
+ return new Google_Bookshelves($data);
564
+ } else {
565
+ return $data;
566
+ }
567
+ }
568
+ /**
569
+ * Adds a volume to a bookshelf. (bookshelves.addVolume)
570
+ *
571
+ * @param string $shelf ID of bookshelf to which to add a volume.
572
+ * @param string $volumeId ID of volume to add.
573
+ * @param array $optParams Optional parameters.
574
+ *
575
+ * @opt_param string source String to identify the originator of this request.
576
+ */
577
+ public function addVolume($shelf, $volumeId, $optParams = array()) {
578
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
579
+ $params = array_merge($params, $optParams);
580
+ $data = $this->__call('addVolume', array($params));
581
+ return $data;
582
+ }
583
+ /**
584
+ * Moves a volume within a bookshelf. (bookshelves.moveVolume)
585
+ *
586
+ * @param string $shelf ID of bookshelf with the volume.
587
+ * @param string $volumeId ID of volume to move.
588
+ * @param int $volumePosition Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.)
589
+ * @param array $optParams Optional parameters.
590
+ *
591
+ * @opt_param string source String to identify the originator of this request.
592
+ */
593
+ public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) {
594
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition);
595
+ $params = array_merge($params, $optParams);
596
+ $data = $this->__call('moveVolume', array($params));
597
+ return $data;
598
+ }
599
+ }
600
+
601
+ /**
602
+ * The "volumes" collection of methods.
603
+ * Typical usage is:
604
+ * <code>
605
+ * $booksService = new Google_BooksService(...);
606
+ * $volumes = $booksService->volumes;
607
+ * </code>
608
+ */
609
+ class Google_MylibraryBookshelvesVolumesServiceResource extends Google_ServiceResource {
610
+
611
+
612
+ /**
613
+ * Gets volume information for volumes on a bookshelf. (volumes.list)
614
+ *
615
+ * @param string $shelf The bookshelf ID or name retrieve volumes for.
616
+ * @param array $optParams Optional parameters.
617
+ *
618
+ * @opt_param string projection Restrict information returned to a set of selected fields.
619
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
620
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
621
+ * @opt_param string maxResults Maximum number of results to return
622
+ * @opt_param string q Full-text search query string in this bookshelf.
623
+ * @opt_param string source String to identify the originator of this request.
624
+ * @opt_param string startIndex Index of the first element to return (starts at 0)
625
+ * @return Google_Volumes
626
+ */
627
+ public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) {
628
+ $params = array('shelf' => $shelf);
629
+ $params = array_merge($params, $optParams);
630
+ $data = $this->__call('list', array($params));
631
+ if ($this->useObjects()) {
632
+ return new Google_Volumes($data);
633
+ } else {
634
+ return $data;
635
+ }
636
+ }
637
+ }
638
+ /**
639
+ * The "readingpositions" collection of methods.
640
+ * Typical usage is:
641
+ * <code>
642
+ * $booksService = new Google_BooksService(...);
643
+ * $readingpositions = $booksService->readingpositions;
644
+ * </code>
645
+ */
646
+ class Google_MylibraryReadingpositionsServiceResource extends Google_ServiceResource {
647
+
648
+
649
+ /**
650
+ * Sets my reading position information for a volume. (readingpositions.setPosition)
651
+ *
652
+ * @param string $volumeId ID of volume for which to update the reading position.
653
+ * @param string $timestamp RFC 3339 UTC format timestamp associated with this reading position.
654
+ * @param string $position Position string for the new volume reading position.
655
+ * @param array $optParams Optional parameters.
656
+ *
657
+ * @opt_param string source String to identify the originator of this request.
658
+ * @opt_param string contentVersion Volume content version for which this reading position applies.
659
+ * @opt_param string action Action that caused this reading position to be set.
660
+ */
661
+ public function setPosition($volumeId, $timestamp, $position, $optParams = array()) {
662
+ $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
663
+ $params = array_merge($params, $optParams);
664
+ $data = $this->__call('setPosition', array($params));
665
+ return $data;
666
+ }
667
+ /**
668
+ * Retrieves my reading position information for a volume. (readingpositions.get)
669
+ *
670
+ * @param string $volumeId ID of volume for which to retrieve a reading position.
671
+ * @param array $optParams Optional parameters.
672
+ *
673
+ * @opt_param string source String to identify the originator of this request.
674
+ * @opt_param string contentVersion Volume content version for which this reading position is requested.
675
+ * @return Google_ReadingPosition
676
+ */
677
+ public function get($volumeId, $optParams = array()) {
678
+ $params = array('volumeId' => $volumeId);
679
+ $params = array_merge($params, $optParams);
680
+ $data = $this->__call('get', array($params));
681
+ if ($this->useObjects()) {
682
+ return new Google_ReadingPosition($data);
683
+ } else {
684
+ return $data;
685
+ }
686
+ }
687
+ }
688
+ /**
689
+ * The "annotations" collection of methods.
690
+ * Typical usage is:
691
+ * <code>
692
+ * $booksService = new Google_BooksService(...);
693
+ * $annotations = $booksService->annotations;
694
+ * </code>
695
+ */
696
+ class Google_MylibraryAnnotationsServiceResource extends Google_ServiceResource {
697
+
698
+
699
+ /**
700
+ * Inserts a new annotation. (annotations.insert)
701
+ *
702
+ * @param Google_Annotation $postBody
703
+ * @param array $optParams Optional parameters.
704
+ *
705
+ * @opt_param string source String to identify the originator of this request.
706
+ * @return Google_Annotation
707
+ */
708
+ public function insert(Google_Annotation $postBody, $optParams = array()) {
709
+ $params = array('postBody' => $postBody);
710
+ $params = array_merge($params, $optParams);
711
+ $data = $this->__call('insert', array($params));
712
+ if ($this->useObjects()) {
713
+ return new Google_Annotation($data);
714
+ } else {
715
+ return $data;
716
+ }
717
+ }
718
+ /**
719
+ * Gets an annotation by its ID. (annotations.get)
720
+ *
721
+ * @param string $annotationId The ID for the annotation to retrieve.
722
+ * @param array $optParams Optional parameters.
723
+ *
724
+ * @opt_param string source String to identify the originator of this request.
725
+ * @return Google_Annotation
726
+ */
727
+ public function get($annotationId, $optParams = array()) {
728
+ $params = array('annotationId' => $annotationId);
729
+ $params = array_merge($params, $optParams);
730
+ $data = $this->__call('get', array($params));
731
+ if ($this->useObjects()) {
732
+ return new Google_Annotation($data);
733
+ } else {
734
+ return $data;
735
+ }
736
+ }
737
+ /**
738
+ * Retrieves a list of annotations, possibly filtered. (annotations.list)
739
+ *
740
+ * @param array $optParams Optional parameters.
741
+ *
742
+ * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
743
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
744
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
745
+ * @opt_param string volumeId The volume to restrict annotations to.
746
+ * @opt_param string maxResults Maximum number of results to return
747
+ * @opt_param string pageToken The value of the nextToken from the previous page.
748
+ * @opt_param string pageIds The page ID(s) for the volume that is being queried.
749
+ * @opt_param string contentVersion The content version for the requested volume.
750
+ * @opt_param string source String to identify the originator of this request.
751
+ * @opt_param string layerId The layer ID to limit annotation by.
752
+ * @return Google_Annotations
753
+ */
754
+ public function listMylibraryAnnotations($optParams = array()) {
755
+ $params = array();
756
+ $params = array_merge($params, $optParams);
757
+ $data = $this->__call('list', array($params));
758
+ if ($this->useObjects()) {
759
+ return new Google_Annotations($data);
760
+ } else {
761
+ return $data;
762
+ }
763
+ }
764
+ /**
765
+ * Updates an existing annotation. (annotations.update)
766
+ *
767
+ * @param string $annotationId The ID for the annotation to update.
768
+ * @param Google_Annotation $postBody
769
+ * @param array $optParams Optional parameters.
770
+ *
771
+ * @opt_param string source String to identify the originator of this request.
772
+ * @return Google_Annotation
773
+ */
774
+ public function update($annotationId, Google_Annotation $postBody, $optParams = array()) {
775
+ $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
776
+ $params = array_merge($params, $optParams);
777
+ $data = $this->__call('update', array($params));
778
+ if ($this->useObjects()) {
779
+ return new Google_Annotation($data);
780
+ } else {
781
+ return $data;
782
+ }
783
+ }
784
+ /**
785
+ * Deletes an annotation. (annotations.delete)
786
+ *
787
+ * @param string $annotationId The ID for the annotation to delete.
788
+ * @param array $optParams Optional parameters.
789
+ *
790
+ * @opt_param string source String to identify the originator of this request.
791
+ */
792
+ public function delete($annotationId, $optParams = array()) {
793
+ $params = array('annotationId' => $annotationId);
794
+ $params = array_merge($params, $optParams);
795
+ $data = $this->__call('delete', array($params));
796
+ return $data;
797
+ }
798
+ }
799
+
800
+ /**
801
+ * Service definition for Google_Books (v1).
802
+ *
803
+ * <p>
804
+ * Lets you search for books and manage your Google Books library.
805
+ * </p>
806
+ *
807
+ * <p>
808
+ * For more information about this service, see the
809
+ * <a href="https://code.google.com/apis/books/docs/v1/getting_started.html" target="_blank">API Documentation</a>
810
+ * </p>
811
+ *
812
+ * @author Google, Inc.
813
+ */
814
+ class Google_BooksService extends Google_Service {
815
+ public $layers;
816
+ public $layers_annotationData;
817
+ public $layers_volumeAnnotations;
818
+ public $bookshelves;
819
+ public $bookshelves_volumes;
820
+ public $myconfig;
821
+ public $volumes;
822
+ public $volumes_associated;
823
+ public $mylibrary_bookshelves;
824
+ public $mylibrary_bookshelves_volumes;
825
+ public $mylibrary_readingpositions;
826
+ public $mylibrary_annotations;
827
+ /**
828
+ * Constructs the internal representation of the Books service.
829
+ *
830
+ * @param Google_Client $client
831
+ */
832
+ public function __construct(Google_Client $client) {
833
+ $this->servicePath = 'books/v1/';
834
+ $this->version = 'v1';
835
+ $this->serviceName = 'books';
836
+
837
+ $client->addService($this->serviceName, $this->version);
838
+ $this->layers = new Google_LayersServiceResource($this, $this->serviceName, 'layers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "source": {"type": "string", "location": "query"}}, "id": "books.layers.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary", "response": {"$ref": "Layersummaries"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "summaryId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary/{summaryId}", "response": {"$ref": "Layersummary"}}}}', true));
839
+ $this->layers_annotationData = new Google_LayersAnnotationDataServiceResource($this, $this->serviceName, 'annotationData', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "updatedMax": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "annotationDataId": {"repeated": true, "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}, "updatedMin": {"type": "string", "location": "query"}}, "id": "books.layers.annotationData.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data", "response": {"$ref": "Annotationsdata"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "annotationDataId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.annotationData.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}", "response": {"$ref": "Annotationdata"}}}}', true));
840
+ $this->layers_volumeAnnotations = new Google_LayersVolumeAnnotationsServiceResource($this, $this->serviceName, 'volumeAnnotations', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"showDeleted": {"type": "boolean", "location": "query"}, "endPosition": {"type": "string", "location": "query"}, "endOffset": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startOffset": {"type": "string", "location": "query"}, "layerId": {"required": true, "type": "string", "location": "path"}, "startPosition": {"type": "string", "location": "query"}}, "id": "books.layers.volumeAnnotations.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}", "response": {"$ref": "Volumeannotations"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.volumeAnnotations.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}", "response": {"$ref": "Volumeannotation"}}}}', true));
841
+ $this->bookshelves = new Google_BookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves", "response": {"$ref": "Bookshelves"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.bookshelves.get", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}}}', true));
842
+ $this->bookshelves_volumes = new Google_BookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.volumes.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
843
+ $this->myconfig = new Google_MyconfigServiceResource($this, $this->serviceName, 'myconfig', json_decode('{"methods": {"releaseDownloadAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.releaseDownloadAccess", "httpMethod": "POST", "path": "myconfig/releaseDownloadAccess", "response": {"$ref": "DownloadAccesses"}}, "requestAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "nonce": {"required": true, "type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.requestAccess", "httpMethod": "POST", "path": "myconfig/requestAccess", "response": {"$ref": "RequestAccess"}}, "syncVolumeLicenses": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"nonce": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "type": "string", "location": "query"}}, "id": "books.myconfig.syncVolumeLicenses", "httpMethod": "POST", "path": "myconfig/syncVolumeLicenses", "response": {"$ref": "Volumes"}}}}', true));
844
+ $this->volumes = new Google_VolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"orderBy": {"enum": ["newest", "relevance"], "type": "string", "location": "query"}, "q": {"required": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "libraryRestrict": {"enum": ["my-library", "no-restrict"], "type": "string", "location": "query"}, "langRestrict": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "printType": {"enum": ["all", "books", "magazines"], "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "download": {"enum": ["epub"], "type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}}, "id": "books.volumes.list", "httpMethod": "GET", "path": "volumes", "response": {"$ref": "Volumes"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"partner": {"type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.volumes.get", "httpMethod": "GET", "path": "volumes/{volumeId}", "response": {"$ref": "Volume"}}}}', true));
845
+ $this->volumes_associated = new Google_VolumesAssociatedServiceResource($this, $this->serviceName, 'associated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "association": {"enum": ["complementary"], "type": "string", "location": "query"}}, "id": "books.volumes.associated.list", "httpMethod": "GET", "path": "volumes/{volumeId}/associated", "response": {"$ref": "Volumes"}}}}', true));
846
+ $this->mylibrary_bookshelves = new Google_MylibraryBookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"removeVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/removeVolume", "id": "books.mylibrary.bookshelves.removeVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.mylibrary.bookshelves.get", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}, "clearVolumes": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "id": "books.mylibrary.bookshelves.clearVolumes", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelves"}, "httpMethod": "GET", "path": "mylibrary/bookshelves", "id": "books.mylibrary.bookshelves.list"}, "addVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/addVolume", "id": "books.mylibrary.bookshelves.addVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "moveVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/moveVolume", "id": "books.mylibrary.bookshelves.moveVolume", "parameters": {"source": {"type": "string", "location": "query"}, "volumePosition": {"required": true, "type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}}}', true));
847
+ $this->mylibrary_bookshelves_volumes = new Google_MylibraryBookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.bookshelves.volumes.list", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
848
+ $this->mylibrary_readingpositions = new Google_MylibraryReadingpositionsServiceResource($this, $this->serviceName, 'readingpositions', json_decode('{"methods": {"setPosition": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/readingpositions/{volumeId}/setPosition", "id": "books.mylibrary.readingpositions.setPosition", "parameters": {"timestamp": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "action": {"enum": ["bookmark", "chapter", "next-page", "prev-page", "scroll", "search"], "type": "string", "location": "query"}, "position": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.readingpositions.get", "httpMethod": "GET", "path": "mylibrary/readingpositions/{volumeId}", "response": {"$ref": "ReadingPosition"}}}}', true));
849
+ $this->mylibrary_annotations = new Google_MylibraryAnnotationsServiceResource($this, $this->serviceName, 'annotations', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "httpMethod": "POST", "path": "mylibrary/annotations", "id": "books.mylibrary.annotations.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.annotations.get", "httpMethod": "GET", "path": "mylibrary/annotations/{annotationId}", "response": {"$ref": "Annotation"}}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"showDeleted": {"type": "boolean", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "pageIds": {"repeated": true, "type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "layerId": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotations"}, "httpMethod": "GET", "path": "mylibrary/annotations", "id": "books.mylibrary.annotations.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "httpMethod": "PUT", "path": "mylibrary/annotations/{annotationId}", "id": "books.mylibrary.annotations.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/annotations/{annotationId}", "id": "books.mylibrary.annotations.delete", "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
850
+
851
+ }
852
+ }
853
+
854
+ class Google_Annotation extends Google_Model {
855
+ public $kind;
856
+ public $updated;
857
+ public $created;
858
+ public $deleted;
859
+ public $beforeSelectedText;
860
+ protected $__currentVersionRangesType = 'Google_AnnotationCurrentVersionRanges';
861
+ protected $__currentVersionRangesDataType = '';
862
+ public $currentVersionRanges;
863
+ public $afterSelectedText;
864
+ protected $__clientVersionRangesType = 'Google_AnnotationClientVersionRanges';
865
+ protected $__clientVersionRangesDataType = '';
866
+ public $clientVersionRanges;
867
+ public $volumeId;
868
+ public $pageIds;
869
+ public $layerId;
870
+ public $selectedText;
871
+ public $highlightStyle;
872
+ public $data;
873
+ public $id;
874
+ public $selfLink;
875
+ public function setKind($kind) {
876
+ $this->kind = $kind;
877
+ }
878
+ public function getKind() {
879
+ return $this->kind;
880
+ }
881
+ public function setUpdated($updated) {
882
+ $this->updated = $updated;
883
+ }
884
+ public function getUpdated() {
885
+ return $this->updated;
886
+ }
887
+ public function setCreated($created) {
888
+ $this->created = $created;
889
+ }
890
+ public function getCreated() {
891
+ return $this->created;
892
+ }
893
+ public function setDeleted($deleted) {
894
+ $this->deleted = $deleted;
895
+ }
896
+ public function getDeleted() {
897
+ return $this->deleted;
898
+ }
899
+ public function setBeforeSelectedText($beforeSelectedText) {
900
+ $this->beforeSelectedText = $beforeSelectedText;
901
+ }
902
+ public function getBeforeSelectedText() {
903
+ return $this->beforeSelectedText;
904
+ }
905
+ public function setCurrentVersionRanges(Google_AnnotationCurrentVersionRanges $currentVersionRanges) {
906
+ $this->currentVersionRanges = $currentVersionRanges;
907
+ }
908
+ public function getCurrentVersionRanges() {
909
+ return $this->currentVersionRanges;
910
+ }
911
+ public function setAfterSelectedText($afterSelectedText) {
912
+ $this->afterSelectedText = $afterSelectedText;
913
+ }
914
+ public function getAfterSelectedText() {
915
+ return $this->afterSelectedText;
916
+ }
917
+ public function setClientVersionRanges(Google_AnnotationClientVersionRanges $clientVersionRanges) {
918
+ $this->clientVersionRanges = $clientVersionRanges;
919
+ }
920
+ public function getClientVersionRanges() {
921
+ return $this->clientVersionRanges;
922
+ }
923
+ public function setVolumeId($volumeId) {
924
+ $this->volumeId = $volumeId;
925
+ }
926
+ public function getVolumeId() {
927
+ return $this->volumeId;
928
+ }
929
+ public function setPageIds(/* array(Google_string) */ $pageIds) {
930
+ $this->assertIsArray($pageIds, 'Google_string', __METHOD__);
931
+ $this->pageIds = $pageIds;
932
+ }
933
+ public function getPageIds() {
934
+ return $this->pageIds;
935
+ }
936
+ public function setLayerId($layerId) {
937
+ $this->layerId = $layerId;
938
+ }
939
+ public function getLayerId() {
940
+ return $this->layerId;
941
+ }
942
+ public function setSelectedText($selectedText) {
943
+ $this->selectedText = $selectedText;
944
+ }
945
+ public function getSelectedText() {
946
+ return $this->selectedText;
947
+ }
948
+ public function setHighlightStyle($highlightStyle) {
949
+ $this->highlightStyle = $highlightStyle;
950
+ }
951
+ public function getHighlightStyle() {
952
+ return $this->highlightStyle;
953
+ }
954
+ public function setData($data) {
955
+ $this->data = $data;
956
+ }
957
+ public function getData() {
958
+ return $this->data;
959
+ }
960
+ public function setId($id) {
961
+ $this->id = $id;
962
+ }
963
+ public function getId() {
964
+ return $this->id;
965
+ }
966
+ public function setSelfLink($selfLink) {
967
+ $this->selfLink = $selfLink;
968
+ }
969
+ public function getSelfLink() {
970
+ return $this->selfLink;
971
+ }
972
+ }
973
+
974
+ class Google_AnnotationClientVersionRanges extends Google_Model {
975
+ public $contentVersion;
976
+ protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
977
+ protected $__gbTextRangeDataType = '';
978
+ public $gbTextRange;
979
+ protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
980
+ protected $__cfiRangeDataType = '';
981
+ public $cfiRange;
982
+ protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
983
+ protected $__gbImageRangeDataType = '';
984
+ public $gbImageRange;
985
+ public function setContentVersion($contentVersion) {
986
+ $this->contentVersion = $contentVersion;
987
+ }
988
+ public function getContentVersion() {
989
+ return $this->contentVersion;
990
+ }
991
+ public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
992
+ $this->gbTextRange = $gbTextRange;
993
+ }
994
+ public function getGbTextRange() {
995
+ return $this->gbTextRange;
996
+ }
997
+ public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
998
+ $this->cfiRange = $cfiRange;
999
+ }
1000
+ public function getCfiRange() {
1001
+ return $this->cfiRange;
1002
+ }
1003
+ public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
1004
+ $this->gbImageRange = $gbImageRange;
1005
+ }
1006
+ public function getGbImageRange() {
1007
+ return $this->gbImageRange;
1008
+ }
1009
+ }
1010
+
1011
+ class Google_AnnotationCurrentVersionRanges extends Google_Model {
1012
+ public $contentVersion;
1013
+ protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
1014
+ protected $__gbTextRangeDataType = '';
1015
+ public $gbTextRange;
1016
+ protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
1017
+ protected $__cfiRangeDataType = '';
1018
+ public $cfiRange;
1019
+ protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
1020
+ protected $__gbImageRangeDataType = '';
1021
+ public $gbImageRange;
1022
+ public function setContentVersion($contentVersion) {
1023
+ $this->contentVersion = $contentVersion;
1024
+ }
1025
+ public function getContentVersion() {
1026
+ return $this->contentVersion;
1027
+ }
1028
+ public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
1029
+ $this->gbTextRange = $gbTextRange;
1030
+ }
1031
+ public function getGbTextRange() {
1032
+ return $this->gbTextRange;
1033
+ }
1034
+ public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
1035
+ $this->cfiRange = $cfiRange;
1036
+ }
1037
+ public function getCfiRange() {
1038
+ return $this->cfiRange;
1039
+ }
1040
+ public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
1041
+ $this->gbImageRange = $gbImageRange;
1042
+ }
1043
+ public function getGbImageRange() {
1044
+ return $this->gbImageRange;
1045
+ }
1046
+ }
1047
+
1048
+ class Google_Annotationdata extends Google_Model {
1049
+ public $annotationType;
1050
+ public $kind;
1051
+ public $updated;
1052
+ public $volumeId;
1053
+ public $encoded_data;
1054
+ public $layerId;
1055
+ protected $__dataType = 'Google_BooksLayerGeoData';
1056
+ protected $__dataDataType = '';
1057
+ public $data;
1058
+ public $id;
1059
+ public $selfLink;
1060
+ public function setAnnotationType($annotationType) {
1061
+ $this->annotationType = $annotationType;
1062
+ }
1063
+ public function getAnnotationType() {
1064
+ return $this->annotationType;
1065
+ }
1066
+ public function setKind($kind) {
1067
+ $this->kind = $kind;
1068
+ }
1069
+ public function getKind() {
1070
+ return $this->kind;
1071
+ }
1072
+ public function setUpdated($updated) {
1073
+ $this->updated = $updated;
1074
+ }
1075
+ public function getUpdated() {
1076
+ return $this->updated;
1077
+ }
1078
+ public function setVolumeId($volumeId) {
1079
+ $this->volumeId = $volumeId;
1080
+ }
1081
+ public function getVolumeId() {
1082
+ return $this->volumeId;
1083
+ }
1084
+ public function setEncoded_data($encoded_data) {
1085
+ $this->encoded_data = $encoded_data;
1086
+ }
1087
+ public function getEncoded_data() {
1088
+ return $this->encoded_data;
1089
+ }
1090
+ public function setLayerId($layerId) {
1091
+ $this->layerId = $layerId;
1092
+ }
1093
+ public function getLayerId() {
1094
+ return $this->layerId;
1095
+ }
1096
+ public function setData(Google_BooksLayerGeoData $data) {
1097
+ $this->data = $data;
1098
+ }
1099
+ public function getData() {
1100
+ return $this->data;
1101
+ }
1102
+ public function setId($id) {
1103
+ $this->id = $id;
1104
+ }
1105
+ public function getId() {
1106
+ return $this->id;
1107
+ }
1108
+ public function setSelfLink($selfLink) {
1109
+ $this->selfLink = $selfLink;
1110
+ }
1111
+ public function getSelfLink() {
1112
+ return $this->selfLink;
1113
+ }
1114
+ }
1115
+
1116
+ class Google_Annotations extends Google_Model {
1117
+ public $nextPageToken;
1118
+ protected $__itemsType = 'Google_Annotation';
1119
+ protected $__itemsDataType = 'array';
1120
+ public $items;
1121
+ public $kind;
1122
+ public $totalItems;
1123
+ public function setNextPageToken($nextPageToken) {
1124
+ $this->nextPageToken = $nextPageToken;
1125
+ }
1126
+ public function getNextPageToken() {
1127
+ return $this->nextPageToken;
1128
+ }
1129
+ public function setItems(/* array(Google_Annotation) */ $items) {
1130
+ $this->assertIsArray($items, 'Google_Annotation', __METHOD__);
1131
+ $this->items = $items;
1132
+ }
1133
+ public function getItems() {
1134
+ return $this->items;
1135
+ }
1136
+ public function setKind($kind) {
1137
+ $this->kind = $kind;
1138
+ }
1139
+ public function getKind() {
1140
+ return $this->kind;
1141
+ }
1142
+ public function setTotalItems($totalItems) {
1143
+ $this->totalItems = $totalItems;
1144
+ }
1145
+ public function getTotalItems() {
1146
+ return $this->totalItems;
1147
+ }
1148
+ }
1149
+
1150
+ class Google_Annotationsdata extends Google_Model {
1151
+ public $nextPageToken;
1152
+ protected $__itemsType = 'Google_Annotationdata';
1153
+ protected $__itemsDataType = 'array';
1154
+ public $items;
1155
+ public $kind;
1156
+ public $totalItems;
1157
+ public function setNextPageToken($nextPageToken) {
1158
+ $this->nextPageToken = $nextPageToken;
1159
+ }
1160
+ public function getNextPageToken() {
1161
+ return $this->nextPageToken;
1162
+ }
1163
+ public function setItems(/* array(Google_Annotationdata) */ $items) {
1164
+ $this->assertIsArray($items, 'Google_Annotationdata', __METHOD__);
1165
+ $this->items = $items;
1166
+ }
1167
+ public function getItems() {
1168
+ return $this->items;
1169
+ }
1170
+ public function setKind($kind) {
1171
+ $this->kind = $kind;
1172
+ }
1173
+ public function getKind() {
1174
+ return $this->kind;
1175
+ }
1176
+ public function setTotalItems($totalItems) {
1177
+ $this->totalItems = $totalItems;
1178
+ }
1179
+ public function getTotalItems() {
1180
+ return $this->totalItems;
1181
+ }
1182
+ }
1183
+
1184
+ class Google_BooksAnnotationsRange extends Google_Model {
1185
+ public $startPosition;
1186
+ public $endPosition;
1187
+ public $startOffset;
1188
+ public $endOffset;
1189
+ public function setStartPosition($startPosition) {
1190
+ $this->startPosition = $startPosition;
1191
+ }
1192
+ public function getStartPosition() {
1193
+ return $this->startPosition;
1194
+ }
1195
+ public function setEndPosition($endPosition) {
1196
+ $this->endPosition = $endPosition;
1197
+ }
1198
+ public function getEndPosition() {
1199
+ return $this->endPosition;
1200
+ }
1201
+ public function setStartOffset($startOffset) {
1202
+ $this->startOffset = $startOffset;
1203
+ }
1204
+ public function getStartOffset() {
1205
+ return $this->startOffset;
1206
+ }
1207
+ public function setEndOffset($endOffset) {
1208
+ $this->endOffset = $endOffset;
1209
+ }
1210
+ public function getEndOffset() {
1211
+ return $this->endOffset;
1212
+ }
1213
+ }
1214
+
1215
+ class Google_BooksLayerGeoData extends Google_Model {
1216
+ protected $__geoType = 'Google_BooksLayerGeoDataGeo';
1217
+ protected $__geoDataType = '';
1218
+ public $geo;
1219
+ protected $__commonType = 'Google_BooksLayerGeoDataCommon';
1220
+ protected $__commonDataType = '';
1221
+ public $common;
1222
+ public function setGeo(Google_BooksLayerGeoDataGeo $geo) {
1223
+ $this->geo = $geo;
1224
+ }
1225
+ public function getGeo() {
1226
+ return $this->geo;
1227
+ }
1228
+ public function setCommon(Google_BooksLayerGeoDataCommon $common) {
1229
+ $this->common = $common;
1230
+ }
1231
+ public function getCommon() {
1232
+ return $this->common;
1233
+ }
1234
+ }
1235
+
1236
+ class Google_BooksLayerGeoDataCommon extends Google_Model {
1237
+ public $lang;
1238
+ public $previewImageUrl;
1239
+ public $snippet;
1240
+ public $snippetUrl;
1241
+ public function setLang($lang) {
1242
+ $this->lang = $lang;
1243
+ }
1244
+ public function getLang() {
1245
+ return $this->lang;
1246
+ }
1247
+ public function setPreviewImageUrl($previewImageUrl) {
1248
+ $this->previewImageUrl = $previewImageUrl;
1249
+ }
1250
+ public function getPreviewImageUrl() {
1251
+ return $this->previewImageUrl;
1252
+ }
1253
+ public function setSnippet($snippet) {
1254
+ $this->snippet = $snippet;
1255
+ }
1256
+ public function getSnippet() {
1257
+ return $this->snippet;
1258
+ }
1259
+ public function setSnippetUrl($snippetUrl) {
1260
+ $this->snippetUrl = $snippetUrl;
1261
+ }
1262
+ public function getSnippetUrl() {
1263
+ return $this->snippetUrl;
1264
+ }
1265
+ }
1266
+
1267
+ class Google_BooksLayerGeoDataGeo extends Google_Model {
1268
+ public $countryCode;
1269
+ public $title;
1270
+ public $zoom;
1271
+ public $longitude;
1272
+ public $mapType;
1273
+ public $latitude;
1274
+ protected $__boundaryType = 'Google_BooksLayerGeoDataGeoBoundary';
1275
+ protected $__boundaryDataType = 'array';
1276
+ public $boundary;
1277
+ protected $__viewportType = 'Google_BooksLayerGeoDataGeoViewport';
1278
+ protected $__viewportDataType = '';
1279
+ public $viewport;
1280
+ public $cachePolicy;
1281
+ public function setCountryCode($countryCode) {
1282
+ $this->countryCode = $countryCode;
1283
+ }
1284
+ public function getCountryCode() {
1285
+ return $this->countryCode;
1286
+ }
1287
+ public function setTitle($title) {
1288
+ $this->title = $title;
1289
+ }
1290
+ public function getTitle() {
1291
+ return $this->title;
1292
+ }
1293
+ public function setZoom($zoom) {
1294
+ $this->zoom = $zoom;
1295
+ }
1296
+ public function getZoom() {
1297
+ return $this->zoom;
1298
+ }
1299
+ public function setLongitude($longitude) {
1300
+ $this->longitude = $longitude;
1301
+ }
1302
+ public function getLongitude() {
1303
+ return $this->longitude;
1304
+ }
1305
+ public function setMapType($mapType) {
1306
+ $this->mapType = $mapType;
1307
+ }
1308
+ public function getMapType() {
1309
+ return $this->mapType;
1310
+ }
1311
+ public function setLatitude($latitude) {
1312
+ $this->latitude = $latitude;
1313
+ }
1314
+ public function getLatitude() {
1315
+ return $this->latitude;
1316
+ }
1317
+ public function setBoundary(/* array(Google_BooksLayerGeoDataGeoBoundary) */ $boundary) {
1318
+ $this->assertIsArray($boundary, 'Google_BooksLayerGeoDataGeoBoundary', __METHOD__);
1319
+ $this->boundary = $boundary;
1320
+ }
1321
+ public function getBoundary() {
1322
+ return $this->boundary;
1323
+ }
1324
+ public function setViewport(Google_BooksLayerGeoDataGeoViewport $viewport) {
1325
+ $this->viewport = $viewport;
1326
+ }
1327
+ public function getViewport() {
1328
+ return $this->viewport;
1329
+ }
1330
+ public function setCachePolicy($cachePolicy) {
1331
+ $this->cachePolicy = $cachePolicy;
1332
+ }
1333
+ public function getCachePolicy() {
1334
+ return $this->cachePolicy;
1335
+ }
1336
+ }
1337
+
1338
+ class Google_BooksLayerGeoDataGeoBoundary extends Google_Model {
1339
+ public $latitude;
1340
+ public $longitude;
1341
+ public function setLatitude($latitude) {
1342
+ $this->latitude = $latitude;
1343
+ }
1344
+ public function getLatitude() {
1345
+ return $this->latitude;
1346
+ }
1347
+ public function setLongitude($longitude) {
1348
+ $this->longitude = $longitude;
1349
+ }
1350
+ public function getLongitude() {
1351
+ return $this->longitude;
1352
+ }
1353
+ }
1354
+
1355
+ class Google_BooksLayerGeoDataGeoViewport extends Google_Model {
1356
+ protected $__loType = 'Google_BooksLayerGeoDataGeoViewportLo';
1357
+ protected $__loDataType = '';
1358
+ public $lo;
1359
+ protected $__hiType = 'Google_BooksLayerGeoDataGeoViewportHi';
1360
+ protected $__hiDataType = '';
1361
+ public $hi;
1362
+ public function setLo(Google_BooksLayerGeoDataGeoViewportLo $lo) {
1363
+ $this->lo = $lo;
1364
+ }
1365
+ public function getLo() {
1366
+ return $this->lo;
1367
+ }
1368
+ public function setHi(Google_BooksLayerGeoDataGeoViewportHi $hi) {
1369
+ $this->hi = $hi;
1370
+ }
1371
+ public function getHi() {
1372
+ return $this->hi;
1373
+ }
1374
+ }
1375
+
1376
+ class Google_BooksLayerGeoDataGeoViewportHi extends Google_Model {
1377
+ public $latitude;
1378
+ public $longitude;
1379
+ public function setLatitude($latitude) {
1380
+ $this->latitude = $latitude;
1381
+ }
1382
+ public function getLatitude() {
1383
+ return $this->latitude;
1384
+ }
1385
+ public function setLongitude($longitude) {
1386
+ $this->longitude = $longitude;
1387
+ }
1388
+ public function getLongitude() {
1389
+ return $this->longitude;
1390
+ }
1391
+ }
1392
+
1393
+ class Google_BooksLayerGeoDataGeoViewportLo extends Google_Model {
1394
+ public $latitude;
1395
+ public $longitude;
1396
+ public function setLatitude($latitude) {
1397
+ $this->latitude = $latitude;
1398
+ }
1399
+ public function getLatitude() {
1400
+ return $this->latitude;
1401
+ }
1402
+ public function setLongitude($longitude) {
1403
+ $this->longitude = $longitude;
1404
+ }
1405
+ public function getLongitude() {
1406
+ return $this->longitude;
1407
+ }
1408
+ }
1409
+
1410
+ class Google_Bookshelf extends Google_Model {
1411
+ public $kind;
1412
+ public $description;
1413
+ public $created;
1414
+ public $volumeCount;
1415
+ public $title;
1416
+ public $updated;
1417
+ public $access;
1418
+ public $volumesLastUpdated;
1419
+ public $id;
1420
+ public $selfLink;
1421
+ public function setKind($kind) {
1422
+ $this->kind = $kind;
1423
+ }
1424
+ public function getKind() {
1425
+ return $this->kind;
1426
+ }
1427
+ public function setDescription($description) {
1428
+ $this->description = $description;
1429
+ }
1430
+ public function getDescription() {
1431
+ return $this->description;
1432
+ }
1433
+ public function setCreated($created) {
1434
+ $this->created = $created;
1435
+ }
1436
+ public function getCreated() {
1437
+ return $this->created;
1438
+ }
1439
+ public function setVolumeCount($volumeCount) {
1440
+ $this->volumeCount = $volumeCount;
1441
+ }
1442
+ public function getVolumeCount() {
1443
+ return $this->volumeCount;
1444
+ }
1445
+ public function setTitle($title) {
1446
+ $this->title = $title;
1447
+ }
1448
+ public function getTitle() {
1449
+ return $this->title;
1450
+ }
1451
+ public function setUpdated($updated) {
1452
+ $this->updated = $updated;
1453
+ }
1454
+ public function getUpdated() {
1455
+ return $this->updated;
1456
+ }
1457
+ public function setAccess($access) {
1458
+ $this->access = $access;
1459
+ }
1460
+ public function getAccess() {
1461
+ return $this->access;
1462
+ }
1463
+ public function setVolumesLastUpdated($volumesLastUpdated) {
1464
+ $this->volumesLastUpdated = $volumesLastUpdated;
1465
+ }
1466
+ public function getVolumesLastUpdated() {
1467
+ return $this->volumesLastUpdated;
1468
+ }
1469
+ public function setId($id) {
1470
+ $this->id = $id;
1471
+ }
1472
+ public function getId() {
1473
+ return $this->id;
1474
+ }
1475
+ public function setSelfLink($selfLink) {
1476
+ $this->selfLink = $selfLink;
1477
+ }
1478
+ public function getSelfLink() {
1479
+ return $this->selfLink;
1480
+ }
1481
+ }
1482
+
1483
+ class Google_Bookshelves extends Google_Model {
1484
+ protected $__itemsType = 'Google_Bookshelf';
1485
+ protected $__itemsDataType = 'array';
1486
+ public $items;
1487
+ public $kind;
1488
+ public function setItems(/* array(Google_Bookshelf) */ $items) {
1489
+ $this->assertIsArray($items, 'Google_Bookshelf', __METHOD__);
1490
+ $this->items = $items;
1491
+ }
1492
+ public function getItems() {
1493
+ return $this->items;
1494
+ }
1495
+ public function setKind($kind) {
1496
+ $this->kind = $kind;
1497
+ }
1498
+ public function getKind() {
1499
+ return $this->kind;
1500
+ }
1501
+ }
1502
+
1503
+ class Google_ConcurrentAccessRestriction extends Google_Model {
1504
+ public $nonce;
1505
+ public $kind;
1506
+ public $restricted;
1507
+ public $volumeId;
1508
+ public $maxConcurrentDevices;
1509
+ public $deviceAllowed;
1510
+ public $source;
1511
+ public $timeWindowSeconds;
1512
+ public $signature;
1513
+ public $reasonCode;
1514
+ public $message;
1515
+ public function setNonce($nonce) {
1516
+ $this->nonce = $nonce;
1517
+ }
1518
+ public function getNonce() {
1519
+ return $this->nonce;
1520
+ }
1521
+ public function setKind($kind) {
1522
+ $this->kind = $kind;
1523
+ }
1524
+ public function getKind() {
1525
+ return $this->kind;
1526
+ }
1527
+ public function setRestricted($restricted) {
1528
+ $this->restricted = $restricted;
1529
+ }
1530
+ public function getRestricted() {
1531
+ return $this->restricted;
1532
+ }
1533
+ public function setVolumeId($volumeId) {
1534
+ $this->volumeId = $volumeId;
1535
+ }
1536
+ public function getVolumeId() {
1537
+ return $this->volumeId;
1538
+ }
1539
+ public function setMaxConcurrentDevices($maxConcurrentDevices) {
1540
+ $this->maxConcurrentDevices = $maxConcurrentDevices;
1541
+ }
1542
+ public function getMaxConcurrentDevices() {
1543
+ return $this->maxConcurrentDevices;
1544
+ }
1545
+ public function setDeviceAllowed($deviceAllowed) {
1546
+ $this->deviceAllowed = $deviceAllowed;
1547
+ }
1548
+ public function getDeviceAllowed() {
1549
+ return $this->deviceAllowed;
1550
+ }
1551
+ public function setSource($source) {
1552
+ $this->source = $source;
1553
+ }
1554
+ public function getSource() {
1555
+ return $this->source;
1556
+ }
1557
+ public function setTimeWindowSeconds($timeWindowSeconds) {
1558
+ $this->timeWindowSeconds = $timeWindowSeconds;
1559
+ }
1560
+ public function getTimeWindowSeconds() {
1561
+ return $this->timeWindowSeconds;
1562
+ }
1563
+ public function setSignature($signature) {
1564
+ $this->signature = $signature;
1565
+ }
1566
+ public function getSignature() {
1567
+ return $this->signature;
1568
+ }
1569
+ public function setReasonCode($reasonCode) {
1570
+ $this->reasonCode = $reasonCode;
1571
+ }
1572
+ public function getReasonCode() {
1573
+ return $this->reasonCode;
1574
+ }
1575
+ public function setMessage($message) {
1576
+ $this->message = $message;
1577
+ }
1578
+ public function getMessage() {
1579
+ return $this->message;
1580
+ }
1581
+ }
1582
+
1583
+ class Google_DownloadAccessRestriction extends Google_Model {
1584
+ public $nonce;
1585
+ public $kind;
1586
+ public $justAcquired;
1587
+ public $maxDownloadDevices;
1588
+ public $downloadsAcquired;
1589
+ public $signature;
1590
+ public $volumeId;
1591
+ public $deviceAllowed;
1592
+ public $source;
1593
+ public $restricted;
1594
+ public $reasonCode;
1595
+ public $message;
1596
+ public function setNonce($nonce) {
1597
+ $this->nonce = $nonce;
1598
+ }
1599
+ public function getNonce() {
1600
+ return $this->nonce;
1601
+ }
1602
+ public function setKind($kind) {
1603
+ $this->kind = $kind;
1604
+ }
1605
+ public function getKind() {
1606
+ return $this->kind;
1607
+ }
1608
+ public function setJustAcquired($justAcquired) {
1609
+ $this->justAcquired = $justAcquired;
1610
+ }
1611
+ public function getJustAcquired() {
1612
+ return $this->justAcquired;
1613
+ }
1614
+ public function setMaxDownloadDevices($maxDownloadDevices) {
1615
+ $this->maxDownloadDevices = $maxDownloadDevices;
1616
+ }
1617
+ public function getMaxDownloadDevices() {
1618
+ return $this->maxDownloadDevices;
1619
+ }
1620
+ public function setDownloadsAcquired($downloadsAcquired) {
1621
+ $this->downloadsAcquired = $downloadsAcquired;
1622
+ }
1623
+ public function getDownloadsAcquired() {
1624
+ return $this->downloadsAcquired;
1625
+ }
1626
+ public function setSignature($signature) {
1627
+ $this->signature = $signature;
1628
+ }
1629
+ public function getSignature() {
1630
+ return $this->signature;
1631
+ }
1632
+ public function setVolumeId($volumeId) {
1633
+ $this->volumeId = $volumeId;
1634
+ }
1635
+ public function getVolumeId() {
1636
+ return $this->volumeId;
1637
+ }
1638
+ public function setDeviceAllowed($deviceAllowed) {
1639
+ $this->deviceAllowed = $deviceAllowed;
1640
+ }
1641
+ public function getDeviceAllowed() {
1642
+ return $this->deviceAllowed;
1643
+ }
1644
+ public function setSource($source) {
1645
+ $this->source = $source;
1646
+ }
1647
+ public function getSource() {
1648
+ return $this->source;
1649
+ }
1650
+ public function setRestricted($restricted) {
1651
+ $this->restricted = $restricted;
1652
+ }
1653
+ public function getRestricted() {
1654
+ return $this->restricted;
1655
+ }
1656
+ public function setReasonCode($reasonCode) {
1657
+ $this->reasonCode = $reasonCode;
1658
+ }
1659
+ public function getReasonCode() {
1660
+ return $this->reasonCode;
1661
+ }
1662
+ public function setMessage($message) {
1663
+ $this->message = $message;
1664
+ }
1665
+ public function getMessage() {
1666
+ return $this->message;
1667
+ }
1668
+ }
1669
+
1670
+ class Google_DownloadAccesses extends Google_Model {
1671
+ protected $__downloadAccessListType = 'Google_DownloadAccessRestriction';
1672
+ protected $__downloadAccessListDataType = 'array';
1673
+ public $downloadAccessList;
1674
+ public $kind;
1675
+ public function setDownloadAccessList(/* array(Google_DownloadAccessRestriction) */ $downloadAccessList) {
1676
+ $this->assertIsArray($downloadAccessList, 'Google_DownloadAccessRestriction', __METHOD__);
1677
+ $this->downloadAccessList = $downloadAccessList;
1678
+ }
1679
+ public function getDownloadAccessList() {
1680
+ return $this->downloadAccessList;
1681
+ }
1682
+ public function setKind($kind) {
1683
+ $this->kind = $kind;
1684
+ }
1685
+ public function getKind() {
1686
+ return $this->kind;
1687
+ }
1688
+ }
1689
+
1690
+ class Google_Layersummaries extends Google_Model {
1691
+ public $totalItems;
1692
+ protected $__itemsType = 'Google_Layersummary';
1693
+ protected $__itemsDataType = 'array';
1694
+ public $items;
1695
+ public $kind;
1696
+ public function setTotalItems($totalItems) {
1697
+ $this->totalItems = $totalItems;
1698
+ }
1699
+ public function getTotalItems() {
1700
+ return $this->totalItems;
1701
+ }
1702
+ public function setItems(/* array(Google_Layersummary) */ $items) {
1703
+ $this->assertIsArray($items, 'Google_Layersummary', __METHOD__);
1704
+ $this->items = $items;
1705
+ }
1706
+ public function getItems() {
1707
+ return $this->items;
1708
+ }
1709
+ public function setKind($kind) {
1710
+ $this->kind = $kind;
1711
+ }
1712
+ public function getKind() {
1713
+ return $this->kind;
1714
+ }
1715
+ }
1716
+
1717
+ class Google_Layersummary extends Google_Model {
1718
+ public $kind;
1719
+ public $annotationCount;
1720
+ public $dataCount;
1721
+ public $annotationsLink;
1722
+ public $updated;
1723
+ public $volumeId;
1724
+ public $id;
1725
+ public $annotationTypes;
1726
+ public $contentVersion;
1727
+ public $layerId;
1728
+ public $annotationsDataLink;
1729
+ public $selfLink;
1730
+ public function setKind($kind) {
1731
+ $this->kind = $kind;
1732
+ }
1733
+ public function getKind() {
1734
+ return $this->kind;
1735
+ }
1736
+ public function setAnnotationCount($annotationCount) {
1737
+ $this->annotationCount = $annotationCount;
1738
+ }
1739
+ public function getAnnotationCount() {
1740
+ return $this->annotationCount;
1741
+ }
1742
+ public function setDataCount($dataCount) {
1743
+ $this->dataCount = $dataCount;
1744
+ }
1745
+ public function getDataCount() {
1746
+ return $this->dataCount;
1747
+ }
1748
+ public function setAnnotationsLink($annotationsLink) {
1749
+ $this->annotationsLink = $annotationsLink;
1750
+ }
1751
+ public function getAnnotationsLink() {
1752
+ return $this->annotationsLink;
1753
+ }
1754
+ public function setUpdated($updated) {
1755
+ $this->updated = $updated;
1756
+ }
1757
+ public function getUpdated() {
1758
+ return $this->updated;
1759
+ }
1760
+ public function setVolumeId($volumeId) {
1761
+ $this->volumeId = $volumeId;
1762
+ }
1763
+ public function getVolumeId() {
1764
+ return $this->volumeId;
1765
+ }
1766
+ public function setId($id) {
1767
+ $this->id = $id;
1768
+ }
1769
+ public function getId() {
1770
+ return $this->id;
1771
+ }
1772
+ public function setAnnotationTypes(/* array(Google_string) */ $annotationTypes) {
1773
+ $this->assertIsArray($annotationTypes, 'Google_string', __METHOD__);
1774
+ $this->annotationTypes = $annotationTypes;
1775
+ }
1776
+ public function getAnnotationTypes() {
1777
+ return $this->annotationTypes;
1778
+ }
1779
+ public function setContentVersion($contentVersion) {
1780
+ $this->contentVersion = $contentVersion;
1781
+ }
1782
+ public function getContentVersion() {
1783
+ return $this->contentVersion;
1784
+ }
1785
+ public function setLayerId($layerId) {
1786
+ $this->layerId = $layerId;
1787
+ }
1788
+ public function getLayerId() {
1789
+ return $this->layerId;
1790
+ }
1791
+ public function setAnnotationsDataLink($annotationsDataLink) {
1792
+ $this->annotationsDataLink = $annotationsDataLink;
1793
+ }
1794
+ public function getAnnotationsDataLink() {
1795
+ return $this->annotationsDataLink;
1796
+ }
1797
+ public function setSelfLink($selfLink) {
1798
+ $this->selfLink = $selfLink;
1799
+ }
1800
+ public function getSelfLink() {
1801
+ return $this->selfLink;
1802
+ }
1803
+ }
1804
+
1805
+ class Google_ReadingPosition extends Google_Model {
1806
+ public $kind;
1807
+ public $gbImagePosition;
1808
+ public $epubCfiPosition;
1809
+ public $updated;
1810
+ public $volumeId;
1811
+ public $pdfPosition;
1812
+ public $gbTextPosition;
1813
+ public function setKind($kind) {
1814
+ $this->kind = $kind;
1815
+ }
1816
+ public function getKind() {
1817
+ return $this->kind;
1818
+ }
1819
+ public function setGbImagePosition($gbImagePosition) {
1820
+ $this->gbImagePosition = $gbImagePosition;
1821
+ }
1822
+ public function getGbImagePosition() {
1823
+ return $this->gbImagePosition;
1824
+ }
1825
+ public function setEpubCfiPosition($epubCfiPosition) {
1826
+ $this->epubCfiPosition = $epubCfiPosition;
1827
+ }
1828
+ public function getEpubCfiPosition() {
1829
+ return $this->epubCfiPosition;
1830
+ }
1831
+ public function setUpdated($updated) {
1832
+ $this->updated = $updated;
1833
+ }
1834
+ public function getUpdated() {
1835
+ return $this->updated;
1836
+ }
1837
+ public function setVolumeId($volumeId) {
1838
+ $this->volumeId = $volumeId;
1839
+ }
1840
+ public function getVolumeId() {
1841
+ return $this->volumeId;
1842
+ }
1843
+ public function setPdfPosition($pdfPosition) {
1844
+ $this->pdfPosition = $pdfPosition;
1845
+ }
1846
+ public function getPdfPosition() {
1847
+ return $this->pdfPosition;
1848
+ }
1849
+ public function setGbTextPosition($gbTextPosition) {
1850
+ $this->gbTextPosition = $gbTextPosition;
1851
+ }
1852
+ public function getGbTextPosition() {
1853
+ return $this->gbTextPosition;
1854
+ }
1855
+ }
1856
+
1857
+ class Google_RequestAccess extends Google_Model {
1858
+ protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
1859
+ protected $__downloadAccessDataType = '';
1860
+ public $downloadAccess;
1861
+ public $kind;
1862
+ protected $__concurrentAccessType = 'Google_ConcurrentAccessRestriction';
1863
+ protected $__concurrentAccessDataType = '';
1864
+ public $concurrentAccess;
1865
+ public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
1866
+ $this->downloadAccess = $downloadAccess;
1867
+ }
1868
+ public function getDownloadAccess() {
1869
+ return $this->downloadAccess;
1870
+ }
1871
+ public function setKind($kind) {
1872
+ $this->kind = $kind;
1873
+ }
1874
+ public function getKind() {
1875
+ return $this->kind;
1876
+ }
1877
+ public function setConcurrentAccess(Google_ConcurrentAccessRestriction $concurrentAccess) {
1878
+ $this->concurrentAccess = $concurrentAccess;
1879
+ }
1880
+ public function getConcurrentAccess() {
1881
+ return $this->concurrentAccess;
1882
+ }
1883
+ }
1884
+
1885
+ class Google_Review extends Google_Model {
1886
+ public $rating;
1887
+ public $kind;
1888
+ protected $__authorType = 'Google_ReviewAuthor';
1889
+ protected $__authorDataType = '';
1890
+ public $author;
1891
+ public $title;
1892
+ public $volumeId;
1893
+ public $content;
1894
+ protected $__sourceType = 'Google_ReviewSource';
1895
+ protected $__sourceDataType = '';
1896
+ public $source;
1897
+ public $date;
1898
+ public $type;
1899
+ public $fullTextUrl;
1900
+ public function setRating($rating) {
1901
+ $this->rating = $rating;
1902
+ }
1903
+ public function getRating() {
1904
+ return $this->rating;
1905
+ }
1906
+ public function setKind($kind) {
1907
+ $this->kind = $kind;
1908
+ }
1909
+ public function getKind() {
1910
+ return $this->kind;
1911
+ }
1912
+ public function setAuthor(Google_ReviewAuthor $author) {
1913
+ $this->author = $author;
1914
+ }
1915
+ public function getAuthor() {
1916
+ return $this->author;
1917
+ }
1918
+ public function setTitle($title) {
1919
+ $this->title = $title;
1920
+ }
1921
+ public function getTitle() {
1922
+ return $this->title;
1923
+ }
1924
+ public function setVolumeId($volumeId) {
1925
+ $this->volumeId = $volumeId;
1926
+ }
1927
+ public function getVolumeId() {
1928
+ return $this->volumeId;
1929
+ }
1930
+ public function setContent($content) {
1931
+ $this->content = $content;
1932
+ }
1933
+ public function getContent() {
1934
+ return $this->content;
1935
+ }
1936
+ public function setSource(Google_ReviewSource $source) {
1937
+ $this->source = $source;
1938
+ }
1939
+ public function getSource() {
1940
+ return $this->source;
1941
+ }
1942
+ public function setDate($date) {
1943
+ $this->date = $date;
1944
+ }
1945
+ public function getDate() {
1946
+ return $this->date;
1947
+ }
1948
+ public function setType($type) {
1949
+ $this->type = $type;
1950
+ }
1951
+ public function getType() {
1952
+ return $this->type;
1953
+ }
1954
+ public function setFullTextUrl($fullTextUrl) {
1955
+ $this->fullTextUrl = $fullTextUrl;
1956
+ }
1957
+ public function getFullTextUrl() {
1958
+ return $this->fullTextUrl;
1959
+ }
1960
+ }
1961
+
1962
+ class Google_ReviewAuthor extends Google_Model {
1963
+ public $displayName;
1964
+ public function setDisplayName($displayName) {
1965
+ $this->displayName = $displayName;
1966
+ }
1967
+ public function getDisplayName() {
1968
+ return $this->displayName;
1969
+ }
1970
+ }
1971
+
1972
+ class Google_ReviewSource extends Google_Model {
1973
+ public $extraDescription;
1974
+ public $url;
1975
+ public $description;
1976
+ public function setExtraDescription($extraDescription) {
1977
+ $this->extraDescription = $extraDescription;
1978
+ }
1979
+ public function getExtraDescription() {
1980
+ return $this->extraDescription;
1981
+ }
1982
+ public function setUrl($url) {
1983
+ $this->url = $url;
1984
+ }
1985
+ public function getUrl() {
1986
+ return $this->url;
1987
+ }
1988
+ public function setDescription($description) {
1989
+ $this->description = $description;
1990
+ }
1991
+ public function getDescription() {
1992
+ return $this->description;
1993
+ }
1994
+ }
1995
+
1996
+ class Google_Volume extends Google_Model {
1997
+ public $kind;
1998
+ protected $__accessInfoType = 'Google_VolumeAccessInfo';
1999
+ protected $__accessInfoDataType = '';
2000
+ public $accessInfo;
2001
+ protected $__searchInfoType = 'Google_VolumeSearchInfo';
2002
+ protected $__searchInfoDataType = '';
2003
+ public $searchInfo;
2004
+ protected $__saleInfoType = 'Google_VolumeSaleInfo';
2005
+ protected $__saleInfoDataType = '';
2006
+ public $saleInfo;
2007
+ public $etag;
2008
+ protected $__userInfoType = 'Google_VolumeUserInfo';
2009
+ protected $__userInfoDataType = '';
2010
+ public $userInfo;
2011
+ protected $__volumeInfoType = 'Google_VolumeVolumeInfo';
2012
+ protected $__volumeInfoDataType = '';
2013
+ public $volumeInfo;
2014
+ public $id;
2015
+ public $selfLink;
2016
+ public function setKind($kind) {
2017
+ $this->kind = $kind;
2018
+ }
2019
+ public function getKind() {
2020
+ return $this->kind;
2021
+ }
2022
+ public function setAccessInfo(Google_VolumeAccessInfo $accessInfo) {
2023
+ $this->accessInfo = $accessInfo;
2024
+ }
2025
+ public function getAccessInfo() {
2026
+ return $this->accessInfo;
2027
+ }
2028
+ public function setSearchInfo(Google_VolumeSearchInfo $searchInfo) {
2029
+ $this->searchInfo = $searchInfo;
2030
+ }
2031
+ public function getSearchInfo() {
2032
+ return $this->searchInfo;
2033
+ }
2034
+ public function setSaleInfo(Google_VolumeSaleInfo $saleInfo) {
2035
+ $this->saleInfo = $saleInfo;
2036
+ }
2037
+ public function getSaleInfo() {
2038
+ return $this->saleInfo;
2039
+ }
2040
+ public function setEtag($etag) {
2041
+ $this->etag = $etag;
2042
+ }
2043
+ public function getEtag() {
2044
+ return $this->etag;
2045
+ }
2046
+ public function setUserInfo(Google_VolumeUserInfo $userInfo) {
2047
+ $this->userInfo = $userInfo;
2048
+ }
2049
+ public function getUserInfo() {
2050
+ return $this->userInfo;
2051
+ }
2052
+ public function setVolumeInfo(Google_VolumeVolumeInfo $volumeInfo) {
2053
+ $this->volumeInfo = $volumeInfo;
2054
+ }
2055
+ public function getVolumeInfo() {
2056
+ return $this->volumeInfo;
2057
+ }
2058
+ public function setId($id) {
2059
+ $this->id = $id;
2060
+ }
2061
+ public function getId() {
2062
+ return $this->id;
2063
+ }
2064
+ public function setSelfLink($selfLink) {
2065
+ $this->selfLink = $selfLink;
2066
+ }
2067
+ public function getSelfLink() {
2068
+ return $this->selfLink;
2069
+ }
2070
+ }
2071
+
2072
+ class Google_VolumeAccessInfo extends Google_Model {
2073
+ public $webReaderLink;
2074
+ public $publicDomain;
2075
+ public $embeddable;
2076
+ protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
2077
+ protected $__downloadAccessDataType = '';
2078
+ public $downloadAccess;
2079
+ public $country;
2080
+ public $viewOrderUrl;
2081
+ public $textToSpeechPermission;
2082
+ protected $__pdfType = 'Google_VolumeAccessInfoPdf';
2083
+ protected $__pdfDataType = '';
2084
+ public $pdf;
2085
+ public $viewability;
2086
+ protected $__epubType = 'Google_VolumeAccessInfoEpub';
2087
+ protected $__epubDataType = '';
2088
+ public $epub;
2089
+ public $accessViewStatus;
2090
+ public function setWebReaderLink($webReaderLink) {
2091
+ $this->webReaderLink = $webReaderLink;
2092
+ }
2093
+ public function getWebReaderLink() {
2094
+ return $this->webReaderLink;
2095
+ }
2096
+ public function setPublicDomain($publicDomain) {
2097
+ $this->publicDomain = $publicDomain;
2098
+ }
2099
+ public function getPublicDomain() {
2100
+ return $this->publicDomain;
2101
+ }
2102
+ public function setEmbeddable($embeddable) {
2103
+ $this->embeddable = $embeddable;
2104
+ }
2105
+ public function getEmbeddable() {
2106
+ return $this->embeddable;
2107
+ }
2108
+ public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
2109
+ $this->downloadAccess = $downloadAccess;
2110
+ }
2111
+ public function getDownloadAccess() {
2112
+ return $this->downloadAccess;
2113
+ }
2114
+ public function setCountry($country) {
2115
+ $this->country = $country;
2116
+ }
2117
+ public function getCountry() {
2118
+ return $this->country;
2119
+ }
2120
+ public function setViewOrderUrl($viewOrderUrl) {
2121
+ $this->viewOrderUrl = $viewOrderUrl;
2122
+ }
2123
+ public function getViewOrderUrl() {
2124
+ return $this->viewOrderUrl;
2125
+ }
2126
+ public function setTextToSpeechPermission($textToSpeechPermission) {
2127
+ $this->textToSpeechPermission = $textToSpeechPermission;
2128
+ }
2129
+ public function getTextToSpeechPermission() {
2130
+ return $this->textToSpeechPermission;
2131
+ }
2132
+ public function setPdf(Google_VolumeAccessInfoPdf $pdf) {
2133
+ $this->pdf = $pdf;
2134
+ }
2135
+ public function getPdf() {
2136
+ return $this->pdf;
2137
+ }
2138
+ public function setViewability($viewability) {
2139
+ $this->viewability = $viewability;
2140
+ }
2141
+ public function getViewability() {
2142
+ return $this->viewability;
2143
+ }
2144
+ public function setEpub(Google_VolumeAccessInfoEpub $epub) {
2145
+ $this->epub = $epub;
2146
+ }
2147
+ public function getEpub() {
2148
+ return $this->epub;
2149
+ }
2150
+ public function setAccessViewStatus($accessViewStatus) {
2151
+ $this->accessViewStatus = $accessViewStatus;
2152
+ }
2153
+ public function getAccessViewStatus() {
2154
+ return $this->accessViewStatus;
2155
+ }
2156
+ }
2157
+
2158
+ class Google_VolumeAccessInfoEpub extends Google_Model {
2159
+ public $isAvailable;
2160
+ public $downloadLink;
2161
+ public $acsTokenLink;
2162
+ public function setIsAvailable($isAvailable) {
2163
+ $this->isAvailable = $isAvailable;
2164
+ }
2165
+ public function getIsAvailable() {
2166
+ return $this->isAvailable;
2167
+ }
2168
+ public function setDownloadLink($downloadLink) {
2169
+ $this->downloadLink = $downloadLink;
2170
+ }
2171
+ public function getDownloadLink() {
2172
+ return $this->downloadLink;
2173
+ }
2174
+ public function setAcsTokenLink($acsTokenLink) {
2175
+ $this->acsTokenLink = $acsTokenLink;
2176
+ }
2177
+ public function getAcsTokenLink() {
2178
+ return $this->acsTokenLink;
2179
+ }
2180
+ }
2181
+
2182
+ class Google_VolumeAccessInfoPdf extends Google_Model {
2183
+ public $isAvailable;
2184
+ public $downloadLink;
2185
+ public $acsTokenLink;
2186
+ public function setIsAvailable($isAvailable) {
2187
+ $this->isAvailable = $isAvailable;
2188
+ }
2189
+ public function getIsAvailable() {
2190
+ return $this->isAvailable;
2191
+ }
2192
+ public function setDownloadLink($downloadLink) {
2193
+ $this->downloadLink = $downloadLink;
2194
+ }
2195
+ public function getDownloadLink() {
2196
+ return $this->downloadLink;
2197
+ }
2198
+ public function setAcsTokenLink($acsTokenLink) {
2199
+ $this->acsTokenLink = $acsTokenLink;
2200
+ }
2201
+ public function getAcsTokenLink() {
2202
+ return $this->acsTokenLink;
2203
+ }
2204
+ }
2205
+
2206
+ class Google_VolumeSaleInfo extends Google_Model {
2207
+ public $country;
2208
+ protected $__retailPriceType = 'Google_VolumeSaleInfoRetailPrice';
2209
+ protected $__retailPriceDataType = '';
2210
+ public $retailPrice;
2211
+ public $isEbook;
2212
+ public $saleability;
2213
+ public $buyLink;
2214
+ public $onSaleDate;
2215
+ protected $__listPriceType = 'Google_VolumeSaleInfoListPrice';
2216
+ protected $__listPriceDataType = '';
2217
+ public $listPrice;
2218
+ public function setCountry($country) {
2219
+ $this->country = $country;
2220
+ }
2221
+ public function getCountry() {
2222
+ return $this->country;
2223
+ }
2224
+ public function setRetailPrice(Google_VolumeSaleInfoRetailPrice $retailPrice) {
2225
+ $this->retailPrice = $retailPrice;
2226
+ }
2227
+ public function getRetailPrice() {
2228
+ return $this->retailPrice;
2229
+ }
2230
+ public function setIsEbook($isEbook) {
2231
+ $this->isEbook = $isEbook;
2232
+ }
2233
+ public function getIsEbook() {
2234
+ return $this->isEbook;
2235
+ }
2236
+ public function setSaleability($saleability) {
2237
+ $this->saleability = $saleability;
2238
+ }
2239
+ public function getSaleability() {
2240
+ return $this->saleability;
2241
+ }
2242
+ public function setBuyLink($buyLink) {
2243
+ $this->buyLink = $buyLink;
2244
+ }
2245
+ public function getBuyLink() {
2246
+ return $this->buyLink;
2247
+ }
2248
+ public function setOnSaleDate($onSaleDate) {
2249
+ $this->onSaleDate = $onSaleDate;
2250
+ }
2251
+ public function getOnSaleDate() {
2252
+ return $this->onSaleDate;
2253
+ }
2254
+ public function setListPrice(Google_VolumeSaleInfoListPrice $listPrice) {
2255
+ $this->listPrice = $listPrice;
2256
+ }
2257
+ public function getListPrice() {
2258
+ return $this->listPrice;
2259
+ }
2260
+ }
2261
+
2262
+ class Google_VolumeSaleInfoListPrice extends Google_Model {
2263
+ public $amount;
2264
+ public $currencyCode;
2265
+ public function setAmount($amount) {
2266
+ $this->amount = $amount;
2267
+ }
2268
+ public function getAmount() {
2269
+ return $this->amount;
2270
+ }
2271
+ public function setCurrencyCode($currencyCode) {
2272
+ $this->currencyCode = $currencyCode;
2273
+ }
2274
+ public function getCurrencyCode() {
2275
+ return $this->currencyCode;
2276
+ }
2277
+ }
2278
+
2279
+ class Google_VolumeSaleInfoRetailPrice extends Google_Model {
2280
+ public $amount;
2281
+ public $currencyCode;
2282
+ public function setAmount($amount) {
2283
+ $this->amount = $amount;
2284
+ }
2285
+ public function getAmount() {
2286
+ return $this->amount;
2287
+ }
2288
+ public function setCurrencyCode($currencyCode) {
2289
+ $this->currencyCode = $currencyCode;
2290
+ }
2291
+ public function getCurrencyCode() {
2292
+ return $this->currencyCode;
2293
+ }
2294
+ }
2295
+
2296
+ class Google_VolumeSearchInfo extends Google_Model {
2297
+ public $textSnippet;
2298
+ public function setTextSnippet($textSnippet) {
2299
+ $this->textSnippet = $textSnippet;
2300
+ }
2301
+ public function getTextSnippet() {
2302
+ return $this->textSnippet;
2303
+ }
2304
+ }
2305
+
2306
+ class Google_VolumeUserInfo extends Google_Model {
2307
+ public $isInMyBooks;
2308
+ public $updated;
2309
+ protected $__reviewType = 'Google_Review';
2310
+ protected $__reviewDataType = '';
2311
+ public $review;
2312
+ public $isPurchased;
2313
+ protected $__readingPositionType = 'Google_ReadingPosition';
2314
+ protected $__readingPositionDataType = '';
2315
+ public $readingPosition;
2316
+ public $isPreordered;
2317
+ public function setIsInMyBooks($isInMyBooks) {
2318
+ $this->isInMyBooks = $isInMyBooks;
2319
+ }
2320
+ public function getIsInMyBooks() {
2321
+ return $this->isInMyBooks;
2322
+ }
2323
+ public function setUpdated($updated) {
2324
+ $this->updated = $updated;
2325
+ }
2326
+ public function getUpdated() {
2327
+ return $this->updated;
2328
+ }
2329
+ public function setReview(Google_Review $review) {
2330
+ $this->review = $review;
2331
+ }
2332
+ public function getReview() {
2333
+ return $this->review;
2334
+ }
2335
+ public function setIsPurchased($isPurchased) {
2336
+ $this->isPurchased = $isPurchased;
2337
+ }
2338
+ public function getIsPurchased() {
2339
+ return $this->isPurchased;
2340
+ }
2341
+ public function setReadingPosition(Google_ReadingPosition $readingPosition) {
2342
+ $this->readingPosition = $readingPosition;
2343
+ }
2344
+ public function getReadingPosition() {
2345
+ return $this->readingPosition;
2346
+ }
2347
+ public function setIsPreordered($isPreordered) {
2348
+ $this->isPreordered = $isPreordered;
2349
+ }
2350
+ public function getIsPreordered() {
2351
+ return $this->isPreordered;
2352
+ }
2353
+ }
2354
+
2355
+ class Google_VolumeVolumeInfo extends Google_Model {
2356
+ public $publisher;
2357
+ public $subtitle;
2358
+ public $description;
2359
+ public $language;
2360
+ public $pageCount;
2361
+ protected $__imageLinksType = 'Google_VolumeVolumeInfoImageLinks';
2362
+ protected $__imageLinksDataType = '';
2363
+ public $imageLinks;
2364
+ public $publishedDate;
2365
+ public $previewLink;
2366
+ public $printType;
2367
+ public $ratingsCount;
2368
+ public $mainCategory;
2369
+ protected $__dimensionsType = 'Google_VolumeVolumeInfoDimensions';
2370
+ protected $__dimensionsDataType = '';
2371
+ public $dimensions;
2372
+ public $contentVersion;
2373
+ protected $__industryIdentifiersType = 'Google_VolumeVolumeInfoIndustryIdentifiers';
2374
+ protected $__industryIdentifiersDataType = 'array';
2375
+ public $industryIdentifiers;
2376
+ public $authors;
2377
+ public $title;
2378
+ public $canonicalVolumeLink;
2379
+ public $infoLink;
2380
+ public $categories;
2381
+ public $averageRating;
2382
+ public function setPublisher($publisher) {
2383
+ $this->publisher = $publisher;
2384
+ }
2385
+ public function getPublisher() {
2386
+ return $this->publisher;
2387
+ }
2388
+ public function setSubtitle($subtitle) {
2389
+ $this->subtitle = $subtitle;
2390
+ }
2391
+ public function getSubtitle() {
2392
+ return $this->subtitle;
2393
+ }
2394
+ public function setDescription($description) {
2395
+ $this->description = $description;
2396
+ }
2397
+ public function getDescription() {
2398
+ return $this->description;
2399
+ }
2400
+ public function setLanguage($language) {
2401
+ $this->language = $language;
2402
+ }
2403
+ public function getLanguage() {
2404
+ return $this->language;
2405
+ }
2406
+ public function setPageCount($pageCount) {
2407
+ $this->pageCount = $pageCount;
2408
+ }
2409
+ public function getPageCount() {
2410
+ return $this->pageCount;
2411
+ }
2412
+ public function setImageLinks(Google_VolumeVolumeInfoImageLinks $imageLinks) {
2413
+ $this->imageLinks = $imageLinks;
2414
+ }
2415
+ public function getImageLinks() {
2416
+ return $this->imageLinks;
2417
+ }
2418
+ public function setPublishedDate($publishedDate) {
2419
+ $this->publishedDate = $publishedDate;
2420
+ }
2421
+ public function getPublishedDate() {
2422
+ return $this->publishedDate;
2423
+ }
2424
+ public function setPreviewLink($previewLink) {
2425
+ $this->previewLink = $previewLink;
2426
+ }
2427
+ public function getPreviewLink() {
2428
+ return $this->previewLink;
2429
+ }
2430
+ public function setPrintType($printType) {
2431
+ $this->printType = $printType;
2432
+ }
2433
+ public function getPrintType() {
2434
+ return $this->printType;
2435
+ }
2436
+ public function setRatingsCount($ratingsCount) {
2437
+ $this->ratingsCount = $ratingsCount;
2438
+ }
2439
+ public function getRatingsCount() {
2440
+ return $this->ratingsCount;
2441
+ }
2442
+ public function setMainCategory($mainCategory) {
2443
+ $this->mainCategory = $mainCategory;
2444
+ }
2445
+ public function getMainCategory() {
2446
+ return $this->mainCategory;
2447
+ }
2448
+ public function setDimensions(Google_VolumeVolumeInfoDimensions $dimensions) {
2449
+ $this->dimensions = $dimensions;
2450
+ }
2451
+ public function getDimensions() {
2452
+ return $this->dimensions;
2453
+ }
2454
+ public function setContentVersion($contentVersion) {
2455
+ $this->contentVersion = $contentVersion;
2456
+ }
2457
+ public function getContentVersion() {
2458
+ return $this->contentVersion;
2459
+ }
2460
+ public function setIndustryIdentifiers(/* array(Google_VolumeVolumeInfoIndustryIdentifiers) */ $industryIdentifiers) {
2461
+ $this->assertIsArray($industryIdentifiers, 'Google_VolumeVolumeInfoIndustryIdentifiers', __METHOD__);
2462
+ $this->industryIdentifiers = $industryIdentifiers;
2463
+ }
2464
+ public function getIndustryIdentifiers() {
2465
+ return $this->industryIdentifiers;
2466
+ }
2467
+ public function setAuthors(/* array(Google_string) */ $authors) {
2468
+ $this->assertIsArray($authors, 'Google_string', __METHOD__);
2469
+ $this->authors = $authors;
2470
+ }
2471
+ public function getAuthors() {
2472
+ return $this->authors;
2473
+ }
2474
+ public function setTitle($title) {
2475
+ $this->title = $title;
2476
+ }
2477
+ public function getTitle() {
2478
+ return $this->title;
2479
+ }
2480
+ public function setCanonicalVolumeLink($canonicalVolumeLink) {
2481
+ $this->canonicalVolumeLink = $canonicalVolumeLink;
2482
+ }
2483
+ public function getCanonicalVolumeLink() {
2484
+ return $this->canonicalVolumeLink;
2485
+ }
2486
+ public function setInfoLink($infoLink) {
2487
+ $this->infoLink = $infoLink;
2488
+ }
2489
+ public function getInfoLink() {
2490
+ return $this->infoLink;
2491
+ }
2492
+ public function setCategories(/* array(Google_string) */ $categories) {
2493
+ $this->assertIsArray($categories, 'Google_string', __METHOD__);
2494
+ $this->categories = $categories;
2495
+ }
2496
+ public function getCategories() {
2497
+ return $this->categories;
2498
+ }
2499
+ public function setAverageRating($averageRating) {
2500
+ $this->averageRating = $averageRating;
2501
+ }
2502
+ public function getAverageRating() {
2503
+ return $this->averageRating;
2504
+ }
2505
+ }
2506
+
2507
+ class Google_VolumeVolumeInfoDimensions extends Google_Model {
2508
+ public $width;
2509
+ public $thickness;
2510
+ public $height;
2511
+ public function setWidth($width) {
2512
+ $this->width = $width;
2513
+ }
2514
+ public function getWidth() {
2515
+ return $this->width;
2516
+ }
2517
+ public function setThickness($thickness) {
2518
+ $this->thickness = $thickness;
2519
+ }
2520
+ public function getThickness() {
2521
+ return $this->thickness;
2522
+ }
2523
+ public function setHeight($height) {
2524
+ $this->height = $height;
2525
+ }
2526
+ public function getHeight() {
2527
+ return $this->height;
2528
+ }
2529
+ }
2530
+
2531
+ class Google_VolumeVolumeInfoImageLinks extends Google_Model {
2532
+ public $medium;
2533
+ public $smallThumbnail;
2534
+ public $large;
2535
+ public $extraLarge;
2536
+ public $small;
2537
+ public $thumbnail;
2538
+ public function setMedium($medium) {
2539
+ $this->medium = $medium;
2540
+ }
2541
+ public function getMedium() {
2542
+ return $this->medium;
2543
+ }
2544
+ public function setSmallThumbnail($smallThumbnail) {
2545
+ $this->smallThumbnail = $smallThumbnail;
2546
+ }
2547
+ public function getSmallThumbnail() {
2548
+ return $this->smallThumbnail;
2549
+ }
2550
+ public function setLarge($large) {
2551
+ $this->large = $large;
2552
+ }
2553
+ public function getLarge() {
2554
+ return $this->large;
2555
+ }
2556
+ public function setExtraLarge($extraLarge) {
2557
+ $this->extraLarge = $extraLarge;
2558
+ }
2559
+ public function getExtraLarge() {
2560
+ return $this->extraLarge;
2561
+ }
2562
+ public function setSmall($small) {
2563
+ $this->small = $small;
2564
+ }
2565
+ public function getSmall() {
2566
+ return $this->small;
2567
+ }
2568
+ public function setThumbnail($thumbnail) {
2569
+ $this->thumbnail = $thumbnail;
2570
+ }
2571
+ public function getThumbnail() {
2572
+ return $this->thumbnail;
2573
+ }
2574
+ }
2575
+
2576
+ class Google_VolumeVolumeInfoIndustryIdentifiers extends Google_Model {
2577
+ public $identifier;
2578
+ public $type;
2579
+ public function setIdentifier($identifier) {
2580
+ $this->identifier = $identifier;
2581
+ }
2582
+ public function getIdentifier() {
2583
+ return $this->identifier;
2584
+ }
2585
+ public function setType($type) {
2586
+ $this->type = $type;
2587
+ }
2588
+ public function getType() {
2589
+ return $this->type;
2590
+ }
2591
+ }
2592
+
2593
+ class Google_Volumeannotation extends Google_Model {
2594
+ public $annotationType;
2595
+ public $kind;
2596
+ public $updated;
2597
+ public $deleted;
2598
+ protected $__contentRangesType = 'Google_VolumeannotationContentRanges';
2599
+ protected $__contentRangesDataType = '';
2600
+ public $contentRanges;
2601
+ public $selectedText;
2602
+ public $volumeId;
2603
+ public $annotationDataId;
2604
+ public $annotationDataLink;
2605
+ public $pageIds;
2606
+ public $layerId;
2607
+ public $data;
2608
+ public $id;
2609
+ public $selfLink;
2610
+ public function setAnnotationType($annotationType) {
2611
+ $this->annotationType = $annotationType;
2612
+ }
2613
+ public function getAnnotationType() {
2614
+ return $this->annotationType;
2615
+ }
2616
+ public function setKind($kind) {
2617
+ $this->kind = $kind;
2618
+ }
2619
+ public function getKind() {
2620
+ return $this->kind;
2621
+ }
2622
+ public function setUpdated($updated) {
2623
+ $this->updated = $updated;
2624
+ }
2625
+ public function getUpdated() {
2626
+ return $this->updated;
2627
+ }
2628
+ public function setDeleted($deleted) {
2629
+ $this->deleted = $deleted;
2630
+ }
2631
+ public function getDeleted() {
2632
+ return $this->deleted;
2633
+ }
2634
+ public function setContentRanges(Google_VolumeannotationContentRanges $contentRanges) {
2635
+ $this->contentRanges = $contentRanges;
2636
+ }
2637
+ public function getContentRanges() {
2638
+ return $this->contentRanges;
2639
+ }
2640
+ public function setSelectedText($selectedText) {
2641
+ $this->selectedText = $selectedText;
2642
+ }
2643
+ public function getSelectedText() {
2644
+ return $this->selectedText;
2645
+ }
2646
+ public function setVolumeId($volumeId) {
2647
+ $this->volumeId = $volumeId;
2648
+ }
2649
+ public function getVolumeId() {
2650
+ return $this->volumeId;
2651
+ }
2652
+ public function setAnnotationDataId($annotationDataId) {
2653
+ $this->annotationDataId = $annotationDataId;
2654
+ }
2655
+ public function getAnnotationDataId() {
2656
+ return $this->annotationDataId;
2657
+ }
2658
+ public function setAnnotationDataLink($annotationDataLink) {
2659
+ $this->annotationDataLink = $annotationDataLink;
2660
+ }
2661
+ public function getAnnotationDataLink() {
2662
+ return $this->annotationDataLink;
2663
+ }
2664
+ public function setPageIds(/* array(Google_string) */ $pageIds) {
2665
+ $this->assertIsArray($pageIds, 'Google_string', __METHOD__);
2666
+ $this->pageIds = $pageIds;
2667
+ }
2668
+ public function getPageIds() {
2669
+ return $this->pageIds;
2670
+ }
2671
+ public function setLayerId($layerId) {
2672
+ $this->layerId = $layerId;
2673
+ }
2674
+ public function getLayerId() {
2675
+ return $this->layerId;
2676
+ }
2677
+ public function setData($data) {
2678
+ $this->data = $data;
2679
+ }
2680
+ public function getData() {
2681
+ return $this->data;
2682
+ }
2683
+ public function setId($id) {
2684
+ $this->id = $id;
2685
+ }
2686
+ public function getId() {
2687
+ return $this->id;
2688
+ }
2689
+ public function setSelfLink($selfLink) {
2690
+ $this->selfLink = $selfLink;
2691
+ }
2692
+ public function getSelfLink() {
2693
+ return $this->selfLink;
2694
+ }
2695
+ }
2696
+
2697
+ class Google_VolumeannotationContentRanges extends Google_Model {
2698
+ public $contentVersion;
2699
+ protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
2700
+ protected $__gbTextRangeDataType = '';
2701
+ public $gbTextRange;
2702
+ protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
2703
+ protected $__cfiRangeDataType = '';
2704
+ public $cfiRange;
2705
+ protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
2706
+ protected $__gbImageRangeDataType = '';
2707
+ public $gbImageRange;
2708
+ public function setContentVersion($contentVersion) {
2709
+ $this->contentVersion = $contentVersion;
2710
+ }
2711
+ public function getContentVersion() {
2712
+ return $this->contentVersion;
2713
+ }
2714
+ public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
2715
+ $this->gbTextRange = $gbTextRange;
2716
+ }
2717
+ public function getGbTextRange() {
2718
+ return $this->gbTextRange;
2719
+ }
2720
+ public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
2721
+ $this->cfiRange = $cfiRange;
2722
+ }
2723
+ public function getCfiRange() {
2724
+ return $this->cfiRange;
2725
+ }
2726
+ public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
2727
+ $this->gbImageRange = $gbImageRange;
2728
+ }
2729
+ public function getGbImageRange() {
2730
+ return $this->gbImageRange;
2731
+ }
2732
+ }
2733
+
2734
+ class Google_Volumeannotations extends Google_Model {
2735
+ public $nextPageToken;
2736
+ protected $__itemsType = 'Google_Volumeannotation';
2737
+ protected $__itemsDataType = 'array';
2738
+ public $items;
2739
+ public $kind;
2740
+ public $totalItems;
2741
+ public function setNextPageToken($nextPageToken) {
2742
+ $this->nextPageToken = $nextPageToken;
2743
+ }
2744
+ public function getNextPageToken() {
2745
+ return $this->nextPageToken;
2746
+ }
2747
+ public function setItems(/* array(Google_Volumeannotation) */ $items) {
2748
+ $this->assertIsArray($items, 'Google_Volumeannotation', __METHOD__);
2749
+ $this->items = $items;
2750
+ }
2751
+ public function getItems() {
2752
+ return $this->items;
2753
+ }
2754
+ public function setKind($kind) {
2755
+ $this->kind = $kind;
2756
+ }
2757
+ public function getKind() {
2758
+ return $this->kind;
2759
+ }
2760
+ public function setTotalItems($totalItems) {
2761
+ $this->totalItems = $totalItems;
2762
+ }
2763
+ public function getTotalItems() {
2764
+ return $this->totalItems;
2765
+ }
2766
+ }
2767
+
2768
+ class Google_Volumes extends Google_Model {
2769
+ public $totalItems;
2770
+ protected $__itemsType = 'Google_Volume';
2771
+ protected $__itemsDataType = 'array';
2772
+ public $items;
2773
+ public $kind;
2774
+ public function setTotalItems($totalItems) {
2775
+ $this->totalItems = $totalItems;
2776
+ }
2777
+ public function getTotalItems() {
2778
+ return $this->totalItems;
2779
+ }
2780
+ public function setItems(/* array(Google_Volume) */ $items) {
2781
+ $this->assertIsArray($items, 'Google_Volume', __METHOD__);
2782
+ $this->items = $items;
2783
+ }
2784
+ public function getItems() {
2785
+ return $this->items;
2786
+ }
2787
+ public function setKind($kind) {
2788
+ $this->kind = $kind;
2789
+ }
2790
+ public function getKind() {
2791
+ return $this->kind;
2792
+ }
2793
+ }
google-api-php-client/src/contrib/Google_CalendarService.php ADDED
@@ -0,0 +1,1931 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "freebusy" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $calendarService = new Google_CalendarService(...);
22
+ * $freebusy = $calendarService->freebusy;
23
+ * </code>
24
+ */
25
+ class Google_FreebusyServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Returns free/busy information for a set of calendars. (freebusy.query)
30
+ *
31
+ * @param Google_FreeBusyRequest $postBody
32
+ * @param array $optParams Optional parameters.
33
+ * @return Google_FreeBusyResponse
34
+ */
35
+ public function query(Google_FreeBusyRequest $postBody, $optParams = array()) {
36
+ $params = array('postBody' => $postBody);
37
+ $params = array_merge($params, $optParams);
38
+ $data = $this->__call('query', array($params));
39
+ if ($this->useObjects()) {
40
+ return new Google_FreeBusyResponse($data);
41
+ } else {
42
+ return $data;
43
+ }
44
+ }
45
+ }
46
+
47
+ /**
48
+ * The "settings" collection of methods.
49
+ * Typical usage is:
50
+ * <code>
51
+ * $calendarService = new Google_CalendarService(...);
52
+ * $settings = $calendarService->settings;
53
+ * </code>
54
+ */
55
+ class Google_SettingsServiceResource extends Google_ServiceResource {
56
+
57
+
58
+ /**
59
+ * Returns all user settings for the authenticated user. (settings.list)
60
+ *
61
+ * @param array $optParams Optional parameters.
62
+ * @return Google_Settings
63
+ */
64
+ public function listSettings($optParams = array()) {
65
+ $params = array();
66
+ $params = array_merge($params, $optParams);
67
+ $data = $this->__call('list', array($params));
68
+ if ($this->useObjects()) {
69
+ return new Google_Settings($data);
70
+ } else {
71
+ return $data;
72
+ }
73
+ }
74
+ /**
75
+ * Returns a single user setting. (settings.get)
76
+ *
77
+ * @param string $setting Name of the user setting.
78
+ * @param array $optParams Optional parameters.
79
+ * @return Google_Setting
80
+ */
81
+ public function get($setting, $optParams = array()) {
82
+ $params = array('setting' => $setting);
83
+ $params = array_merge($params, $optParams);
84
+ $data = $this->__call('get', array($params));
85
+ if ($this->useObjects()) {
86
+ return new Google_Setting($data);
87
+ } else {
88
+ return $data;
89
+ }
90
+ }
91
+ }
92
+
93
+ /**
94
+ * The "calendarList" collection of methods.
95
+ * Typical usage is:
96
+ * <code>
97
+ * $calendarService = new Google_CalendarService(...);
98
+ * $calendarList = $calendarService->calendarList;
99
+ * </code>
100
+ */
101
+ class Google_CalendarListServiceResource extends Google_ServiceResource {
102
+
103
+
104
+ /**
105
+ * Adds an entry to the user's calendar list. (calendarList.insert)
106
+ *
107
+ * @param Google_CalendarListEntry $postBody
108
+ * @param array $optParams Optional parameters.
109
+ *
110
+ * @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
111
+ * @return Google_CalendarListEntry
112
+ */
113
+ public function insert(Google_CalendarListEntry $postBody, $optParams = array()) {
114
+ $params = array('postBody' => $postBody);
115
+ $params = array_merge($params, $optParams);
116
+ $data = $this->__call('insert', array($params));
117
+ if ($this->useObjects()) {
118
+ return new Google_CalendarListEntry($data);
119
+ } else {
120
+ return $data;
121
+ }
122
+ }
123
+ /**
124
+ * Returns an entry on the user's calendar list. (calendarList.get)
125
+ *
126
+ * @param string $calendarId Calendar identifier.
127
+ * @param array $optParams Optional parameters.
128
+ * @return Google_CalendarListEntry
129
+ */
130
+ public function get($calendarId, $optParams = array()) {
131
+ $params = array('calendarId' => $calendarId);
132
+ $params = array_merge($params, $optParams);
133
+ $data = $this->__call('get', array($params));
134
+ if ($this->useObjects()) {
135
+ return new Google_CalendarListEntry($data);
136
+ } else {
137
+ return $data;
138
+ }
139
+ }
140
+ /**
141
+ * Returns entries on the user's calendar list. (calendarList.list)
142
+ *
143
+ * @param array $optParams Optional parameters.
144
+ *
145
+ * @opt_param string pageToken Token specifying which result page to return. Optional.
146
+ * @opt_param bool showHidden Whether to show hidden entries. Optional. The default is False.
147
+ * @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
148
+ * @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
149
+ * @return Google_CalendarList
150
+ */
151
+ public function listCalendarList($optParams = array()) {
152
+ $params = array();
153
+ $params = array_merge($params, $optParams);
154
+ $data = $this->__call('list', array($params));
155
+ if ($this->useObjects()) {
156
+ return new Google_CalendarList($data);
157
+ } else {
158
+ return $data;
159
+ }
160
+ }
161
+ /**
162
+ * Updates an entry on the user's calendar list. (calendarList.update)
163
+ *
164
+ * @param string $calendarId Calendar identifier.
165
+ * @param Google_CalendarListEntry $postBody
166
+ * @param array $optParams Optional parameters.
167
+ *
168
+ * @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
169
+ * @return Google_CalendarListEntry
170
+ */
171
+ public function update($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
172
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
173
+ $params = array_merge($params, $optParams);
174
+ $data = $this->__call('update', array($params));
175
+ if ($this->useObjects()) {
176
+ return new Google_CalendarListEntry($data);
177
+ } else {
178
+ return $data;
179
+ }
180
+ }
181
+ /**
182
+ * Updates an entry on the user's calendar list. This method supports patch semantics.
183
+ * (calendarList.patch)
184
+ *
185
+ * @param string $calendarId Calendar identifier.
186
+ * @param Google_CalendarListEntry $postBody
187
+ * @param array $optParams Optional parameters.
188
+ *
189
+ * @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
190
+ * @return Google_CalendarListEntry
191
+ */
192
+ public function patch($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
193
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
194
+ $params = array_merge($params, $optParams);
195
+ $data = $this->__call('patch', array($params));
196
+ if ($this->useObjects()) {
197
+ return new Google_CalendarListEntry($data);
198
+ } else {
199
+ return $data;
200
+ }
201
+ }
202
+ /**
203
+ * Deletes an entry on the user's calendar list. (calendarList.delete)
204
+ *
205
+ * @param string $calendarId Calendar identifier.
206
+ * @param array $optParams Optional parameters.
207
+ */
208
+ public function delete($calendarId, $optParams = array()) {
209
+ $params = array('calendarId' => $calendarId);
210
+ $params = array_merge($params, $optParams);
211
+ $data = $this->__call('delete', array($params));
212
+ return $data;
213
+ }
214
+ }
215
+
216
+ /**
217
+ * The "calendars" collection of methods.
218
+ * Typical usage is:
219
+ * <code>
220
+ * $calendarService = new Google_CalendarService(...);
221
+ * $calendars = $calendarService->calendars;
222
+ * </code>
223
+ */
224
+ class Google_CalendarsServiceResource extends Google_ServiceResource {
225
+
226
+
227
+ /**
228
+ * Creates a secondary calendar. (calendars.insert)
229
+ *
230
+ * @param Google_Calendar $postBody
231
+ * @param array $optParams Optional parameters.
232
+ * @return Google_Calendar
233
+ */
234
+ public function insert(Google_Calendar $postBody, $optParams = array()) {
235
+ $params = array('postBody' => $postBody);
236
+ $params = array_merge($params, $optParams);
237
+ $data = $this->__call('insert', array($params));
238
+ if ($this->useObjects()) {
239
+ return new Google_Calendar($data);
240
+ } else {
241
+ return $data;
242
+ }
243
+ }
244
+ /**
245
+ * Returns metadata for a calendar. (calendars.get)
246
+ *
247
+ * @param string $calendarId Calendar identifier.
248
+ * @param array $optParams Optional parameters.
249
+ * @return Google_Calendar
250
+ */
251
+ public function get($calendarId, $optParams = array()) {
252
+ $params = array('calendarId' => $calendarId);
253
+ $params = array_merge($params, $optParams);
254
+ $data = $this->__call('get', array($params));
255
+ if ($this->useObjects()) {
256
+ return new Google_Calendar($data);
257
+ } else {
258
+ return $data;
259
+ }
260
+ }
261
+ /**
262
+ * Clears a primary calendar. This operation deletes all data associated with the primary calendar
263
+ * of an account and cannot be undone. (calendars.clear)
264
+ *
265
+ * @param string $calendarId Calendar identifier.
266
+ * @param array $optParams Optional parameters.
267
+ */
268
+ public function clear($calendarId, $optParams = array()) {
269
+ $params = array('calendarId' => $calendarId);
270
+ $params = array_merge($params, $optParams);
271
+ $data = $this->__call('clear', array($params));
272
+ return $data;
273
+ }
274
+ /**
275
+ * Updates metadata for a calendar. (calendars.update)
276
+ *
277
+ * @param string $calendarId Calendar identifier.
278
+ * @param Google_Calendar $postBody
279
+ * @param array $optParams Optional parameters.
280
+ * @return Google_Calendar
281
+ */
282
+ public function update($calendarId, Google_Calendar $postBody, $optParams = array()) {
283
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
284
+ $params = array_merge($params, $optParams);
285
+ $data = $this->__call('update', array($params));
286
+ if ($this->useObjects()) {
287
+ return new Google_Calendar($data);
288
+ } else {
289
+ return $data;
290
+ }
291
+ }
292
+ /**
293
+ * Updates metadata for a calendar. This method supports patch semantics. (calendars.patch)
294
+ *
295
+ * @param string $calendarId Calendar identifier.
296
+ * @param Google_Calendar $postBody
297
+ * @param array $optParams Optional parameters.
298
+ * @return Google_Calendar
299
+ */
300
+ public function patch($calendarId, Google_Calendar $postBody, $optParams = array()) {
301
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
302
+ $params = array_merge($params, $optParams);
303
+ $data = $this->__call('patch', array($params));
304
+ if ($this->useObjects()) {
305
+ return new Google_Calendar($data);
306
+ } else {
307
+ return $data;
308
+ }
309
+ }
310
+ /**
311
+ * Deletes a secondary calendar. (calendars.delete)
312
+ *
313
+ * @param string $calendarId Calendar identifier.
314
+ * @param array $optParams Optional parameters.
315
+ */
316
+ public function delete($calendarId, $optParams = array()) {
317
+ $params = array('calendarId' => $calendarId);
318
+ $params = array_merge($params, $optParams);
319
+ $data = $this->__call('delete', array($params));
320
+ return $data;
321
+ }
322
+ }
323
+
324
+ /**
325
+ * The "acl" collection of methods.
326
+ * Typical usage is:
327
+ * <code>
328
+ * $calendarService = new Google_CalendarService(...);
329
+ * $acl = $calendarService->acl;
330
+ * </code>
331
+ */
332
+ class Google_AclServiceResource extends Google_ServiceResource {
333
+
334
+
335
+ /**
336
+ * Creates an access control rule. (acl.insert)
337
+ *
338
+ * @param string $calendarId Calendar identifier.
339
+ * @param Google_AclRule $postBody
340
+ * @param array $optParams Optional parameters.
341
+ * @return Google_AclRule
342
+ */
343
+ public function insert($calendarId, Google_AclRule $postBody, $optParams = array()) {
344
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
345
+ $params = array_merge($params, $optParams);
346
+ $data = $this->__call('insert', array($params));
347
+ if ($this->useObjects()) {
348
+ return new Google_AclRule($data);
349
+ } else {
350
+ return $data;
351
+ }
352
+ }
353
+ /**
354
+ * Returns an access control rule. (acl.get)
355
+ *
356
+ * @param string $calendarId Calendar identifier.
357
+ * @param string $ruleId ACL rule identifier.
358
+ * @param array $optParams Optional parameters.
359
+ * @return Google_AclRule
360
+ */
361
+ public function get($calendarId, $ruleId, $optParams = array()) {
362
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
363
+ $params = array_merge($params, $optParams);
364
+ $data = $this->__call('get', array($params));
365
+ if ($this->useObjects()) {
366
+ return new Google_AclRule($data);
367
+ } else {
368
+ return $data;
369
+ }
370
+ }
371
+ /**
372
+ * Returns the rules in the access control list for the calendar. (acl.list)
373
+ *
374
+ * @param string $calendarId Calendar identifier.
375
+ * @param array $optParams Optional parameters.
376
+ * @return Google_Acl
377
+ */
378
+ public function listAcl($calendarId, $optParams = array()) {
379
+ $params = array('calendarId' => $calendarId);
380
+ $params = array_merge($params, $optParams);
381
+ $data = $this->__call('list', array($params));
382
+ if ($this->useObjects()) {
383
+ return new Google_Acl($data);
384
+ } else {
385
+ return $data;
386
+ }
387
+ }
388
+ /**
389
+ * Updates an access control rule. (acl.update)
390
+ *
391
+ * @param string $calendarId Calendar identifier.
392
+ * @param string $ruleId ACL rule identifier.
393
+ * @param Google_AclRule $postBody
394
+ * @param array $optParams Optional parameters.
395
+ * @return Google_AclRule
396
+ */
397
+ public function update($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
398
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
399
+ $params = array_merge($params, $optParams);
400
+ $data = $this->__call('update', array($params));
401
+ if ($this->useObjects()) {
402
+ return new Google_AclRule($data);
403
+ } else {
404
+ return $data;
405
+ }
406
+ }
407
+ /**
408
+ * Updates an access control rule. This method supports patch semantics. (acl.patch)
409
+ *
410
+ * @param string $calendarId Calendar identifier.
411
+ * @param string $ruleId ACL rule identifier.
412
+ * @param Google_AclRule $postBody
413
+ * @param array $optParams Optional parameters.
414
+ * @return Google_AclRule
415
+ */
416
+ public function patch($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
417
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
418
+ $params = array_merge($params, $optParams);
419
+ $data = $this->__call('patch', array($params));
420
+ if ($this->useObjects()) {
421
+ return new Google_AclRule($data);
422
+ } else {
423
+ return $data;
424
+ }
425
+ }
426
+ /**
427
+ * Deletes an access control rule. (acl.delete)
428
+ *
429
+ * @param string $calendarId Calendar identifier.
430
+ * @param string $ruleId ACL rule identifier.
431
+ * @param array $optParams Optional parameters.
432
+ */
433
+ public function delete($calendarId, $ruleId, $optParams = array()) {
434
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
435
+ $params = array_merge($params, $optParams);
436
+ $data = $this->__call('delete', array($params));
437
+ return $data;
438
+ }
439
+ }
440
+
441
+ /**
442
+ * The "colors" collection of methods.
443
+ * Typical usage is:
444
+ * <code>
445
+ * $calendarService = new Google_CalendarService(...);
446
+ * $colors = $calendarService->colors;
447
+ * </code>
448
+ */
449
+ class Google_ColorsServiceResource extends Google_ServiceResource {
450
+
451
+
452
+ /**
453
+ * Returns the color definitions for calendars and events. (colors.get)
454
+ *
455
+ * @param array $optParams Optional parameters.
456
+ * @return Google_Colors
457
+ */
458
+ public function get($optParams = array()) {
459
+ $params = array();
460
+ $params = array_merge($params, $optParams);
461
+ $data = $this->__call('get', array($params));
462
+ if ($this->useObjects()) {
463
+ return new Google_Colors($data);
464
+ } else {
465
+ return $data;
466
+ }
467
+ }
468
+ }
469
+
470
+ /**
471
+ * The "events" collection of methods.
472
+ * Typical usage is:
473
+ * <code>
474
+ * $calendarService = new Google_CalendarService(...);
475
+ * $events = $calendarService->events;
476
+ * </code>
477
+ */
478
+ class Google_EventsServiceResource extends Google_ServiceResource {
479
+
480
+
481
+ /**
482
+ * Creates an event. (events.insert)
483
+ *
484
+ * @param string $calendarId Calendar identifier.
485
+ * @param Google_Event $postBody
486
+ * @param array $optParams Optional parameters.
487
+ *
488
+ * @opt_param bool sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False.
489
+ * @return Google_Event
490
+ */
491
+ public function insert($calendarId, Google_Event $postBody, $optParams = array()) {
492
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
493
+ $params = array_merge($params, $optParams);
494
+ $data = $this->__call('insert', array($params));
495
+ if ($this->useObjects()) {
496
+ return new Google_Event($data);
497
+ } else {
498
+ return $data;
499
+ }
500
+ }
501
+ /**
502
+ * Returns an event. (events.get)
503
+ *
504
+ * @param string $calendarId Calendar identifier.
505
+ * @param string $eventId Event identifier.
506
+ * @param array $optParams Optional parameters.
507
+ *
508
+ * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
509
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
510
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
511
+ * @return Google_Event
512
+ */
513
+ public function get($calendarId, $eventId, $optParams = array()) {
514
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
515
+ $params = array_merge($params, $optParams);
516
+ $data = $this->__call('get', array($params));
517
+ if ($this->useObjects()) {
518
+ return new Google_Event($data);
519
+ } else {
520
+ return $data;
521
+ }
522
+ }
523
+ /**
524
+ * Moves an event to another calendar, i.e. changes an event's organizer. (events.move)
525
+ *
526
+ * @param string $calendarId Calendar identifier of the source calendar where the event currently is on.
527
+ * @param string $eventId Event identifier.
528
+ * @param string $destination Calendar identifier of the target calendar where the event is to be moved to.
529
+ * @param array $optParams Optional parameters.
530
+ *
531
+ * @opt_param bool sendNotifications Whether to send notifications about the change of the event's organizer. Optional. The default is False.
532
+ * @return Google_Event
533
+ */
534
+ public function move($calendarId, $eventId, $destination, $optParams = array()) {
535
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
536
+ $params = array_merge($params, $optParams);
537
+ $data = $this->__call('move', array($params));
538
+ if ($this->useObjects()) {
539
+ return new Google_Event($data);
540
+ } else {
541
+ return $data;
542
+ }
543
+ }
544
+ /**
545
+ * Returns events on the specified calendar. (events.list)
546
+ *
547
+ * @param string $calendarId Calendar identifier.
548
+ * @param array $optParams Optional parameters.
549
+ *
550
+ * @opt_param string orderBy The order of the events returned in the result. Optional. The default is an unspecified, stable order.
551
+ * @opt_param bool showHiddenInvitations Whether to include hidden invitations in the result. Optional. The default is False.
552
+ * @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
553
+ * @opt_param string iCalUID Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
554
+ * @opt_param string updatedMin Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
555
+ * @opt_param bool singleEvents Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
556
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
557
+ * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
558
+ * @opt_param string q Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
559
+ * @opt_param string pageToken Token specifying which result page to return. Optional.
560
+ * @opt_param string timeMin Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
561
+ * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
562
+ * @opt_param string timeMax Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
563
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
564
+ * @return Google_Events
565
+ */
566
+ public function listEvents($calendarId, $optParams = array()) {
567
+ $params = array('calendarId' => $calendarId);
568
+ $params = array_merge($params, $optParams);
569
+ $data = $this->__call('list', array($params));
570
+ if ($this->useObjects()) {
571
+ return new Google_Events($data);
572
+ } else {
573
+ return $data;
574
+ }
575
+ }
576
+ /**
577
+ * Updates an event. (events.update)
578
+ *
579
+ * @param string $calendarId Calendar identifier.
580
+ * @param string $eventId Event identifier.
581
+ * @param Google_Event $postBody
582
+ * @param array $optParams Optional parameters.
583
+ *
584
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
585
+ * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
586
+ * @return Google_Event
587
+ */
588
+ public function update($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
589
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
590
+ $params = array_merge($params, $optParams);
591
+ $data = $this->__call('update', array($params));
592
+ if ($this->useObjects()) {
593
+ return new Google_Event($data);
594
+ } else {
595
+ return $data;
596
+ }
597
+ }
598
+ /**
599
+ * Updates an event. This method supports patch semantics. (events.patch)
600
+ *
601
+ * @param string $calendarId Calendar identifier.
602
+ * @param string $eventId Event identifier.
603
+ * @param Google_Event $postBody
604
+ * @param array $optParams Optional parameters.
605
+ *
606
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
607
+ * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
608
+ * @return Google_Event
609
+ */
610
+ public function patch($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
611
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
612
+ $params = array_merge($params, $optParams);
613
+ $data = $this->__call('patch', array($params));
614
+ if ($this->useObjects()) {
615
+ return new Google_Event($data);
616
+ } else {
617
+ return $data;
618
+ }
619
+ }
620
+ /**
621
+ * Returns instances of the specified recurring event. (events.instances)
622
+ *
623
+ * @param string $calendarId Calendar identifier.
624
+ * @param string $eventId Recurring event identifier.
625
+ * @param array $optParams Optional parameters.
626
+ *
627
+ * @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
628
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
629
+ * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
630
+ * @opt_param string pageToken Token specifying which result page to return. Optional.
631
+ * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
632
+ * @opt_param string originalStart The original start time of the instance in the result. Optional.
633
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
634
+ * @return Google_Events
635
+ */
636
+ public function instances($calendarId, $eventId, $optParams = array()) {
637
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
638
+ $params = array_merge($params, $optParams);
639
+ $data = $this->__call('instances', array($params));
640
+ if ($this->useObjects()) {
641
+ return new Google_Events($data);
642
+ } else {
643
+ return $data;
644
+ }
645
+ }
646
+ /**
647
+ * Imports an event. (events.import)
648
+ *
649
+ * @param string $calendarId Calendar identifier.
650
+ * @param Google_Event $postBody
651
+ * @param array $optParams Optional parameters.
652
+ * @return Google_Event
653
+ */
654
+ public function import($calendarId, Google_Event $postBody, $optParams = array()) {
655
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
656
+ $params = array_merge($params, $optParams);
657
+ $data = $this->__call('import', array($params));
658
+ if ($this->useObjects()) {
659
+ return new Google_Event($data);
660
+ } else {
661
+ return $data;
662
+ }
663
+ }
664
+ /**
665
+ * Creates an event based on a simple text string. (events.quickAdd)
666
+ *
667
+ * @param string $calendarId Calendar identifier.
668
+ * @param string $text The text describing the event to be created.
669
+ * @param array $optParams Optional parameters.
670
+ *
671
+ * @opt_param bool sendNotifications Whether to send notifications about the creation of the event. Optional. The default is False.
672
+ * @return Google_Event
673
+ */
674
+ public function quickAdd($calendarId, $text, $optParams = array()) {
675
+ $params = array('calendarId' => $calendarId, 'text' => $text);
676
+ $params = array_merge($params, $optParams);
677
+ $data = $this->__call('quickAdd', array($params));
678
+ if ($this->useObjects()) {
679
+ return new Google_Event($data);
680
+ } else {
681
+ return $data;
682
+ }
683
+ }
684
+ /**
685
+ * Deletes an event. (events.delete)
686
+ *
687
+ * @param string $calendarId Calendar identifier.
688
+ * @param string $eventId Event identifier.
689
+ * @param array $optParams Optional parameters.
690
+ *
691
+ * @opt_param bool sendNotifications Whether to send notifications about the deletion of the event. Optional. The default is False.
692
+ */
693
+ public function delete($calendarId, $eventId, $optParams = array()) {
694
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
695
+ $params = array_merge($params, $optParams);
696
+ $data = $this->__call('delete', array($params));
697
+ return $data;
698
+ }
699
+ }
700
+
701
+ /**
702
+ * Service definition for Google_Calendar (v3).
703
+ *
704
+ * <p>
705
+ * Lets you manipulate events and other calendar data.
706
+ * </p>
707
+ *
708
+ * <p>
709
+ * For more information about this service, see the
710
+ * <a href="http://code.google.com/apis/calendar/v3/using.html" target="_blank">API Documentation</a>
711
+ * </p>
712
+ *
713
+ * @author Google, Inc.
714
+ */
715
+ class Google_CalendarService extends Google_Service {
716
+ public $freebusy;
717
+ public $settings;
718
+ public $calendarList;
719
+ public $calendars;
720
+ public $acl;
721
+ public $colors;
722
+ public $events;
723
+ /**
724
+ * Constructs the internal representation of the Calendar service.
725
+ *
726
+ * @param Google_Client $client
727
+ */
728
+ public function __construct(Google_Client $client) {
729
+ $this->servicePath = 'calendar/v3/';
730
+ $this->version = 'v3';
731
+ $this->serviceName = 'calendar';
732
+
733
+ $client->addService($this->serviceName, $this->version);
734
+ $this->freebusy = new Google_FreebusyServiceResource($this, $this->serviceName, 'freebusy', json_decode('{"methods": {"query": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "request": {"$ref": "FreeBusyRequest"}, "response": {"$ref": "FreeBusyResponse"}, "httpMethod": "POST", "path": "freeBusy", "id": "calendar.freebusy.query"}}}', true));
735
+ $this->settings = new Google_SettingsServiceResource($this, $this->serviceName, 'settings', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "users/me/settings", "response": {"$ref": "Settings"}, "id": "calendar.settings.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"setting": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.settings.get", "httpMethod": "GET", "path": "users/me/settings/{setting}", "response": {"$ref": "Setting"}}}}', true));
736
+ $this->calendarList = new Google_CalendarListServiceResource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "POST", "path": "users/me/calendarList", "id": "calendar.calendarList.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendarList.get", "httpMethod": "GET", "path": "users/me/calendarList/{calendarId}", "response": {"$ref": "CalendarListEntry"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "minAccessRole": {"enum": ["freeBusyReader", "owner", "reader", "writer"], "type": "string", "location": "query"}}, "response": {"$ref": "CalendarList"}, "httpMethod": "GET", "path": "users/me/calendarList", "id": "calendar.calendarList.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PUT", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PATCH", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
737
+ $this->calendars = new Google_CalendarsServiceResource($this, $this->serviceName, 'calendars', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "POST", "path": "calendars", "id": "calendar.calendars.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendars.get", "httpMethod": "GET", "path": "calendars/{calendarId}", "response": {"$ref": "Calendar"}}, "clear": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/clear", "id": "calendar.calendars.clear", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PUT", "path": "calendars/{calendarId}", "id": "calendar.calendars.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}", "id": "calendar.calendars.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}", "id": "calendar.calendars.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
738
+ $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "POST", "path": "calendars/{calendarId}/acl", "id": "calendar.acl.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.get", "httpMethod": "GET", "path": "calendars/{calendarId}/acl/{ruleId}", "response": {"$ref": "AclRule"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.list", "httpMethod": "GET", "path": "calendars/{calendarId}/acl", "response": {"$ref": "Acl"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
739
+ $this->colors = new Google_ColorsServiceResource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "colors", "response": {"$ref": "Colors"}, "id": "calendar.colors.get", "httpMethod": "GET"}}}', true));
740
+ $this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events", "id": "calendar.events.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.get", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}", "response": {"$ref": "Event"}}, "move": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "destination": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.move", "httpMethod": "POST", "path": "calendars/{calendarId}/events/{eventId}/move", "response": {"$ref": "Event"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"orderBy": {"enum": ["startTime", "updated"], "type": "string", "location": "query"}, "showHiddenInvitations": {"type": "boolean", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "iCalUID": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query", "format": "date-time"}, "singleEvents": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeMin": {"type": "string", "location": "query", "format": "date-time"}, "timeZone": {"type": "string", "location": "query"}, "timeMax": {"type": "string", "location": "query", "format": "date-time"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.list", "httpMethod": "GET", "path": "calendars/{calendarId}/events", "response": {"$ref": "Events"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.patch"}, "instances": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "showDeleted": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.instances", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}/instances", "response": {"$ref": "Events"}}, "import": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events/import", "id": "calendar.events.import"}, "quickAdd": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"text": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.quickAdd", "httpMethod": "POST", "path": "calendars/{calendarId}/events/quickAdd", "response": {"$ref": "Event"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.delete", "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
741
+
742
+ }
743
+ }
744
+
745
+ class Google_Acl extends Google_Model {
746
+ public $nextPageToken;
747
+ protected $__itemsType = 'Google_AclRule';
748
+ protected $__itemsDataType = 'array';
749
+ public $items;
750
+ public $kind;
751
+ public $etag;
752
+ public function setNextPageToken($nextPageToken) {
753
+ $this->nextPageToken = $nextPageToken;
754
+ }
755
+ public function getNextPageToken() {
756
+ return $this->nextPageToken;
757
+ }
758
+ public function setItems(/* array(Google_AclRule) */ $items) {
759
+ $this->assertIsArray($items, 'Google_AclRule', __METHOD__);
760
+ $this->items = $items;
761
+ }
762
+ public function getItems() {
763
+ return $this->items;
764
+ }
765
+ public function setKind($kind) {
766
+ $this->kind = $kind;
767
+ }
768
+ public function getKind() {
769
+ return $this->kind;
770
+ }
771
+ public function setEtag($etag) {
772
+ $this->etag = $etag;
773
+ }
774
+ public function getEtag() {
775
+ return $this->etag;
776
+ }
777
+ }
778
+
779
+ class Google_AclRule extends Google_Model {
780
+ protected $__scopeType = 'Google_AclRuleScope';
781
+ protected $__scopeDataType = '';
782
+ public $scope;
783
+ public $kind;
784
+ public $etag;
785
+ public $role;
786
+ public $id;
787
+ public function setScope(Google_AclRuleScope $scope) {
788
+ $this->scope = $scope;
789
+ }
790
+ public function getScope() {
791
+ return $this->scope;
792
+ }
793
+ public function setKind($kind) {
794
+ $this->kind = $kind;
795
+ }
796
+ public function getKind() {
797
+ return $this->kind;
798
+ }
799
+ public function setEtag($etag) {
800
+ $this->etag = $etag;
801
+ }
802
+ public function getEtag() {
803
+ return $this->etag;
804
+ }
805
+ public function setRole($role) {
806
+ $this->role = $role;
807
+ }
808
+ public function getRole() {
809
+ return $this->role;
810
+ }
811
+ public function setId($id) {
812
+ $this->id = $id;
813
+ }
814
+ public function getId() {
815
+ return $this->id;
816
+ }
817
+ }
818
+
819
+ class Google_AclRuleScope extends Google_Model {
820
+ public $type;
821
+ public $value;
822
+ public function setType($type) {
823
+ $this->type = $type;
824
+ }
825
+ public function getType() {
826
+ return $this->type;
827
+ }
828
+ public function setValue($value) {
829
+ $this->value = $value;
830
+ }
831
+ public function getValue() {
832
+ return $this->value;
833
+ }
834
+ }
835
+
836
+ class Google_Calendar extends Google_Model {
837
+ public $kind;
838
+ public $description;
839
+ public $summary;
840
+ public $etag;
841
+ public $location;
842
+ public $timeZone;
843
+ public $id;
844
+ public function setKind($kind) {
845
+ $this->kind = $kind;
846
+ }
847
+ public function getKind() {
848
+ return $this->kind;
849
+ }
850
+ public function setDescription($description) {
851
+ $this->description = $description;
852
+ }
853
+ public function getDescription() {
854
+ return $this->description;
855
+ }
856
+ public function setSummary($summary) {
857
+ $this->summary = $summary;
858
+ }
859
+ public function getSummary() {
860
+ return $this->summary;
861
+ }
862
+ public function setEtag($etag) {
863
+ $this->etag = $etag;
864
+ }
865
+ public function getEtag() {
866
+ return $this->etag;
867
+ }
868
+ public function setLocation($location) {
869
+ $this->location = $location;
870
+ }
871
+ public function getLocation() {
872
+ return $this->location;
873
+ }
874
+ public function setTimeZone($timeZone) {
875
+ $this->timeZone = $timeZone;
876
+ }
877
+ public function getTimeZone() {
878
+ return $this->timeZone;
879
+ }
880
+ public function setId($id) {
881
+ $this->id = $id;
882
+ }
883
+ public function getId() {
884
+ return $this->id;
885
+ }
886
+ }
887
+
888
+ class Google_CalendarList extends Google_Model {
889
+ public $nextPageToken;
890
+ protected $__itemsType = 'Google_CalendarListEntry';
891
+ protected $__itemsDataType = 'array';
892
+ public $items;
893
+ public $kind;
894
+ public $etag;
895
+ public function setNextPageToken($nextPageToken) {
896
+ $this->nextPageToken = $nextPageToken;
897
+ }
898
+ public function getNextPageToken() {
899
+ return $this->nextPageToken;
900
+ }
901
+ public function setItems(/* array(Google_CalendarListEntry) */ $items) {
902
+ $this->assertIsArray($items, 'Google_CalendarListEntry', __METHOD__);
903
+ $this->items = $items;
904
+ }
905
+ public function getItems() {
906
+ return $this->items;
907
+ }
908
+ public function setKind($kind) {
909
+ $this->kind = $kind;
910
+ }
911
+ public function getKind() {
912
+ return $this->kind;
913
+ }
914
+ public function setEtag($etag) {
915
+ $this->etag = $etag;
916
+ }
917
+ public function getEtag() {
918
+ return $this->etag;
919
+ }
920
+ }
921
+
922
+ class Google_CalendarListEntry extends Google_Model {
923
+ public $kind;
924
+ public $foregroundColor;
925
+ protected $__defaultRemindersType = 'Google_EventReminder';
926
+ protected $__defaultRemindersDataType = 'array';
927
+ public $defaultReminders;
928
+ public $description;
929
+ public $colorId;
930
+ public $selected;
931
+ public $summary;
932
+ public $etag;
933
+ public $location;
934
+ public $backgroundColor;
935
+ public $summaryOverride;
936
+ public $timeZone;
937
+ public $hidden;
938
+ public $accessRole;
939
+ public $id;
940
+ public function setKind($kind) {
941
+ $this->kind = $kind;
942
+ }
943
+ public function getKind() {
944
+ return $this->kind;
945
+ }
946
+ public function setForegroundColor($foregroundColor) {
947
+ $this->foregroundColor = $foregroundColor;
948
+ }
949
+ public function getForegroundColor() {
950
+ return $this->foregroundColor;
951
+ }
952
+ public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
953
+ $this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
954
+ $this->defaultReminders = $defaultReminders;
955
+ }
956
+ public function getDefaultReminders() {
957
+ return $this->defaultReminders;
958
+ }
959
+ public function setDescription($description) {
960
+ $this->description = $description;
961
+ }
962
+ public function getDescription() {
963
+ return $this->description;
964
+ }
965
+ public function setColorId($colorId) {
966
+ $this->colorId = $colorId;
967
+ }
968
+ public function getColorId() {
969
+ return $this->colorId;
970
+ }
971
+ public function setSelected($selected) {
972
+ $this->selected = $selected;
973
+ }
974
+ public function getSelected() {
975
+ return $this->selected;
976
+ }
977
+ public function setSummary($summary) {
978
+ $this->summary = $summary;
979
+ }
980
+ public function getSummary() {
981
+ return $this->summary;
982
+ }
983
+ public function setEtag($etag) {
984
+ $this->etag = $etag;
985
+ }
986
+ public function getEtag() {
987
+ return $this->etag;
988
+ }
989
+ public function setLocation($location) {
990
+ $this->location = $location;
991
+ }
992
+ public function getLocation() {
993
+ return $this->location;
994
+ }
995
+ public function setBackgroundColor($backgroundColor) {
996
+ $this->backgroundColor = $backgroundColor;
997
+ }
998
+ public function getBackgroundColor() {
999
+ return $this->backgroundColor;
1000
+ }
1001
+ public function setSummaryOverride($summaryOverride) {
1002
+ $this->summaryOverride = $summaryOverride;
1003
+ }
1004
+ public function getSummaryOverride() {
1005
+ return $this->summaryOverride;
1006
+ }
1007
+ public function setTimeZone($timeZone) {
1008
+ $this->timeZone = $timeZone;
1009
+ }
1010
+ public function getTimeZone() {
1011
+ return $this->timeZone;
1012
+ }
1013
+ public function setHidden($hidden) {
1014
+ $this->hidden = $hidden;
1015
+ }
1016
+ public function getHidden() {
1017
+ return $this->hidden;
1018
+ }
1019
+ public function setAccessRole($accessRole) {
1020
+ $this->accessRole = $accessRole;
1021
+ }
1022
+ public function getAccessRole() {
1023
+ return $this->accessRole;
1024
+ }
1025
+ public function setId($id) {
1026
+ $this->id = $id;
1027
+ }
1028
+ public function getId() {
1029
+ return $this->id;
1030
+ }
1031
+ }
1032
+
1033
+ class Google_ColorDefinition extends Google_Model {
1034
+ public $foreground;
1035
+ public $background;
1036
+ public function setForeground($foreground) {
1037
+ $this->foreground = $foreground;
1038
+ }
1039
+ public function getForeground() {
1040
+ return $this->foreground;
1041
+ }
1042
+ public function setBackground($background) {
1043
+ $this->background = $background;
1044
+ }
1045
+ public function getBackground() {
1046
+ return $this->background;
1047
+ }
1048
+ }
1049
+
1050
+ class Google_Colors extends Google_Model {
1051
+ protected $__calendarType = 'Google_ColorDefinition';
1052
+ protected $__calendarDataType = 'map';
1053
+ public $calendar;
1054
+ public $updated;
1055
+ protected $__eventType = 'Google_ColorDefinition';
1056
+ protected $__eventDataType = 'map';
1057
+ public $event;
1058
+ public $kind;
1059
+ public function setCalendar(Google_ColorDefinition $calendar) {
1060
+ $this->calendar = $calendar;
1061
+ }
1062
+ public function getCalendar() {
1063
+ return $this->calendar;
1064
+ }
1065
+ public function setUpdated($updated) {
1066
+ $this->updated = $updated;
1067
+ }
1068
+ public function getUpdated() {
1069
+ return $this->updated;
1070
+ }
1071
+ public function setEvent(Google_ColorDefinition $event) {
1072
+ $this->event = $event;
1073
+ }
1074
+ public function getEvent() {
1075
+ return $this->event;
1076
+ }
1077
+ public function setKind($kind) {
1078
+ $this->kind = $kind;
1079
+ }
1080
+ public function getKind() {
1081
+ return $this->kind;
1082
+ }
1083
+ }
1084
+
1085
+ class Google_Error extends Google_Model {
1086
+ public $domain;
1087
+ public $reason;
1088
+ public function setDomain($domain) {
1089
+ $this->domain = $domain;
1090
+ }
1091
+ public function getDomain() {
1092
+ return $this->domain;
1093
+ }
1094
+ public function setReason($reason) {
1095
+ $this->reason = $reason;
1096
+ }
1097
+ public function getReason() {
1098
+ return $this->reason;
1099
+ }
1100
+ }
1101
+
1102
+ class Google_Event extends Google_Model {
1103
+ protected $__creatorType = 'Google_EventCreator';
1104
+ protected $__creatorDataType = '';
1105
+ public $creator;
1106
+ protected $__organizerType = 'Google_EventOrganizer';
1107
+ protected $__organizerDataType = '';
1108
+ public $organizer;
1109
+ public $summary;
1110
+ public $id;
1111
+ protected $__attendeesType = 'Google_EventAttendee';
1112
+ protected $__attendeesDataType = 'array';
1113
+ public $attendees;
1114
+ public $htmlLink;
1115
+ public $recurrence;
1116
+ protected $__startType = 'Google_EventDateTime';
1117
+ protected $__startDataType = '';
1118
+ public $start;
1119
+ public $etag;
1120
+ public $location;
1121
+ public $recurringEventId;
1122
+ protected $__gadgetType = 'Google_EventGadget';
1123
+ protected $__gadgetDataType = '';
1124
+ public $gadget;
1125
+ public $status;
1126
+ public $updated;
1127
+ public $description;
1128
+ public $iCalUID;
1129
+ protected $__extendedPropertiesType = 'Google_EventExtendedProperties';
1130
+ protected $__extendedPropertiesDataType = '';
1131
+ public $extendedProperties;
1132
+ public $endTimeUnspecified;
1133
+ public $sequence;
1134
+ public $visibility;
1135
+ public $guestsCanModify;
1136
+ protected $__endType = 'Google_EventDateTime';
1137
+ protected $__endDataType = '';
1138
+ public $end;
1139
+ public $attendeesOmitted;
1140
+ public $kind;
1141
+ public $locked;
1142
+ public $created;
1143
+ public $colorId;
1144
+ public $anyoneCanAddSelf;
1145
+ protected $__remindersType = 'Google_EventReminders';
1146
+ protected $__remindersDataType = '';
1147
+ public $reminders;
1148
+ public $guestsCanSeeOtherGuests;
1149
+ protected $__originalStartTimeType = 'Google_EventDateTime';
1150
+ protected $__originalStartTimeDataType = '';
1151
+ public $originalStartTime;
1152
+ public $guestsCanInviteOthers;
1153
+ public $transparency;
1154
+ public $privateCopy;
1155
+ public function setCreator(Google_EventCreator $creator) {
1156
+ $this->creator = $creator;
1157
+ }
1158
+ public function getCreator() {
1159
+ return $this->creator;
1160
+ }
1161
+ public function setOrganizer(Google_EventOrganizer $organizer) {
1162
+ $this->organizer = $organizer;
1163
+ }
1164
+ public function getOrganizer() {
1165
+ return $this->organizer;
1166
+ }
1167
+ public function setSummary($summary) {
1168
+ $this->summary = $summary;
1169
+ }
1170
+ public function getSummary() {
1171
+ return $this->summary;
1172
+ }
1173
+ public function setId($id) {
1174
+ $this->id = $id;
1175
+ }
1176
+ public function getId() {
1177
+ return $this->id;
1178
+ }
1179
+ public function setAttendees(/* array(Google_EventAttendee) */ $attendees) {
1180
+ $this->assertIsArray($attendees, 'Google_EventAttendee', __METHOD__);
1181
+ $this->attendees = $attendees;
1182
+ }
1183
+ public function getAttendees() {
1184
+ return $this->attendees;
1185
+ }
1186
+ public function setHtmlLink($htmlLink) {
1187
+ $this->htmlLink = $htmlLink;
1188
+ }
1189
+ public function getHtmlLink() {
1190
+ return $this->htmlLink;
1191
+ }
1192
+ public function setRecurrence(/* array(Google_string) */ $recurrence) {
1193
+ $this->assertIsArray($recurrence, 'Google_string', __METHOD__);
1194
+ $this->recurrence = $recurrence;
1195
+ }
1196
+ public function getRecurrence() {
1197
+ return $this->recurrence;
1198
+ }
1199
+ public function setStart(Google_EventDateTime $start) {
1200
+ $this->start = $start;
1201
+ }
1202
+ public function getStart() {
1203
+ return $this->start;
1204
+ }
1205
+ public function setEtag($etag) {
1206
+ $this->etag = $etag;
1207
+ }
1208
+ public function getEtag() {
1209
+ return $this->etag;
1210
+ }
1211
+ public function setLocation($location) {
1212
+ $this->location = $location;
1213
+ }
1214
+ public function getLocation() {
1215
+ return $this->location;
1216
+ }
1217
+ public function setRecurringEventId($recurringEventId) {
1218
+ $this->recurringEventId = $recurringEventId;
1219
+ }
1220
+ public function getRecurringEventId() {
1221
+ return $this->recurringEventId;
1222
+ }
1223
+ public function setGadget(Google_EventGadget $gadget) {
1224
+ $this->gadget = $gadget;
1225
+ }
1226
+ public function getGadget() {
1227
+ return $this->gadget;
1228
+ }
1229
+ public function setStatus($status) {
1230
+ $this->status = $status;
1231
+ }
1232
+ public function getStatus() {
1233
+ return $this->status;
1234
+ }
1235
+ public function setUpdated($updated) {
1236
+ $this->updated = $updated;
1237
+ }
1238
+ public function getUpdated() {
1239
+ return $this->updated;
1240
+ }
1241
+ public function setDescription($description) {
1242
+ $this->description = $description;
1243
+ }
1244
+ public function getDescription() {
1245
+ return $this->description;
1246
+ }
1247
+ public function setICalUID($iCalUID) {
1248
+ $this->iCalUID = $iCalUID;
1249
+ }
1250
+ public function getICalUID() {
1251
+ return $this->iCalUID;
1252
+ }
1253
+ public function setExtendedProperties(Google_EventExtendedProperties $extendedProperties) {
1254
+ $this->extendedProperties = $extendedProperties;
1255
+ }
1256
+ public function getExtendedProperties() {
1257
+ return $this->extendedProperties;
1258
+ }
1259
+ public function setEndTimeUnspecified($endTimeUnspecified) {
1260
+ $this->endTimeUnspecified = $endTimeUnspecified;
1261
+ }
1262
+ public function getEndTimeUnspecified() {
1263
+ return $this->endTimeUnspecified;
1264
+ }
1265
+ public function setSequence($sequence) {
1266
+ $this->sequence = $sequence;
1267
+ }
1268
+ public function getSequence() {
1269
+ return $this->sequence;
1270
+ }
1271
+ public function setVisibility($visibility) {
1272
+ $this->visibility = $visibility;
1273
+ }
1274
+ public function getVisibility() {
1275
+ return $this->visibility;
1276
+ }
1277
+ public function setGuestsCanModify($guestsCanModify) {
1278
+ $this->guestsCanModify = $guestsCanModify;
1279
+ }
1280
+ public function getGuestsCanModify() {
1281
+ return $this->guestsCanModify;
1282
+ }
1283
+ public function setEnd(Google_EventDateTime $end) {
1284
+ $this->end = $end;
1285
+ }
1286
+ public function getEnd() {
1287
+ return $this->end;
1288
+ }
1289
+ public function setAttendeesOmitted($attendeesOmitted) {
1290
+ $this->attendeesOmitted = $attendeesOmitted;
1291
+ }
1292
+ public function getAttendeesOmitted() {
1293
+ return $this->attendeesOmitted;
1294
+ }
1295
+ public function setKind($kind) {
1296
+ $this->kind = $kind;
1297
+ }
1298
+ public function getKind() {
1299
+ return $this->kind;
1300
+ }
1301
+ public function setLocked($locked) {
1302
+ $this->locked = $locked;
1303
+ }
1304
+ public function getLocked() {
1305
+ return $this->locked;
1306
+ }
1307
+ public function setCreated($created) {
1308
+ $this->created = $created;
1309
+ }
1310
+ public function getCreated() {
1311
+ return $this->created;
1312
+ }
1313
+ public function setColorId($colorId) {
1314
+ $this->colorId = $colorId;
1315
+ }
1316
+ public function getColorId() {
1317
+ return $this->colorId;
1318
+ }
1319
+ public function setAnyoneCanAddSelf($anyoneCanAddSelf) {
1320
+ $this->anyoneCanAddSelf = $anyoneCanAddSelf;
1321
+ }
1322
+ public function getAnyoneCanAddSelf() {
1323
+ return $this->anyoneCanAddSelf;
1324
+ }
1325
+ public function setReminders(Google_EventReminders $reminders) {
1326
+ $this->reminders = $reminders;
1327
+ }
1328
+ public function getReminders() {
1329
+ return $this->reminders;
1330
+ }
1331
+ public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests) {
1332
+ $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests;
1333
+ }
1334
+ public function getGuestsCanSeeOtherGuests() {
1335
+ return $this->guestsCanSeeOtherGuests;
1336
+ }
1337
+ public function setOriginalStartTime(Google_EventDateTime $originalStartTime) {
1338
+ $this->originalStartTime = $originalStartTime;
1339
+ }
1340
+ public function getOriginalStartTime() {
1341
+ return $this->originalStartTime;
1342
+ }
1343
+ public function setGuestsCanInviteOthers($guestsCanInviteOthers) {
1344
+ $this->guestsCanInviteOthers = $guestsCanInviteOthers;
1345
+ }
1346
+ public function getGuestsCanInviteOthers() {
1347
+ return $this->guestsCanInviteOthers;
1348
+ }
1349
+ public function setTransparency($transparency) {
1350
+ $this->transparency = $transparency;
1351
+ }
1352
+ public function getTransparency() {
1353
+ return $this->transparency;
1354
+ }
1355
+ public function setPrivateCopy($privateCopy) {
1356
+ $this->privateCopy = $privateCopy;
1357
+ }
1358
+ public function getPrivateCopy() {
1359
+ return $this->privateCopy;
1360
+ }
1361
+ }
1362
+
1363
+ class Google_EventAttendee extends Google_Model {
1364
+ public $comment;
1365
+ public $displayName;
1366
+ public $responseStatus;
1367
+ public $self;
1368
+ public $id;
1369
+ public $additionalGuests;
1370
+ public $resource;
1371
+ public $organizer;
1372
+ public $optional;
1373
+ public $email;
1374
+ public function setComment($comment) {
1375
+ $this->comment = $comment;
1376
+ }
1377
+ public function getComment() {
1378
+ return $this->comment;
1379
+ }
1380
+ public function setDisplayName($displayName) {
1381
+ $this->displayName = $displayName;
1382
+ }
1383
+ public function getDisplayName() {
1384
+ return $this->displayName;
1385
+ }
1386
+ public function setResponseStatus($responseStatus) {
1387
+ $this->responseStatus = $responseStatus;
1388
+ }
1389
+ public function getResponseStatus() {
1390
+ return $this->responseStatus;
1391
+ }
1392
+ public function setSelf($self) {
1393
+ $this->self = $self;
1394
+ }
1395
+ public function getSelf() {
1396
+ return $this->self;
1397
+ }
1398
+ public function setId($id) {
1399
+ $this->id = $id;
1400
+ }
1401
+ public function getId() {
1402
+ return $this->id;
1403
+ }
1404
+ public function setAdditionalGuests($additionalGuests) {
1405
+ $this->additionalGuests = $additionalGuests;
1406
+ }
1407
+ public function getAdditionalGuests() {
1408
+ return $this->additionalGuests;
1409
+ }
1410
+ public function setResource($resource) {
1411
+ $this->resource = $resource;
1412
+ }
1413
+ public function getResource() {
1414
+ return $this->resource;
1415
+ }
1416
+ public function setOrganizer($organizer) {
1417
+ $this->organizer = $organizer;
1418
+ }
1419
+ public function getOrganizer() {
1420
+ return $this->organizer;
1421
+ }
1422
+ public function setOptional($optional) {
1423
+ $this->optional = $optional;
1424
+ }
1425
+ public function getOptional() {
1426
+ return $this->optional;
1427
+ }
1428
+ public function setEmail($email) {
1429
+ $this->email = $email;
1430
+ }
1431
+ public function getEmail() {
1432
+ return $this->email;
1433
+ }
1434
+ }
1435
+
1436
+ class Google_EventCreator extends Google_Model {
1437
+ public $self;
1438
+ public $displayName;
1439
+ public $email;
1440
+ public $id;
1441
+ public function setSelf($self) {
1442
+ $this->self = $self;
1443
+ }
1444
+ public function getSelf() {
1445
+ return $this->self;
1446
+ }
1447
+ public function setDisplayName($displayName) {
1448
+ $this->displayName = $displayName;
1449
+ }
1450
+ public function getDisplayName() {
1451
+ return $this->displayName;
1452
+ }
1453
+ public function setEmail($email) {
1454
+ $this->email = $email;
1455
+ }
1456
+ public function getEmail() {
1457
+ return $this->email;
1458
+ }
1459
+ public function setId($id) {
1460
+ $this->id = $id;
1461
+ }
1462
+ public function getId() {
1463
+ return $this->id;
1464
+ }
1465
+ }
1466
+
1467
+ class Google_EventDateTime extends Google_Model {
1468
+ public $date;
1469
+ public $timeZone;
1470
+ public $dateTime;
1471
+ public function setDate($date) {
1472
+ $this->date = $date;
1473
+ }
1474
+ public function getDate() {
1475
+ return $this->date;
1476
+ }
1477
+ public function setTimeZone($timeZone) {
1478
+ $this->timeZone = $timeZone;
1479
+ }
1480
+ public function getTimeZone() {
1481
+ return $this->timeZone;
1482
+ }
1483
+ public function setDateTime($dateTime) {
1484
+ $this->dateTime = $dateTime;
1485
+ }
1486
+ public function getDateTime() {
1487
+ return $this->dateTime;
1488
+ }
1489
+ }
1490
+
1491
+ class Google_EventExtendedProperties extends Google_Model {
1492
+ public $shared;
1493
+ public $private;
1494
+ public function setShared($shared) {
1495
+ $this->shared = $shared;
1496
+ }
1497
+ public function getShared() {
1498
+ return $this->shared;
1499
+ }
1500
+ public function setPrivate($private) {
1501
+ $this->private = $private;
1502
+ }
1503
+ public function getPrivate() {
1504
+ return $this->private;
1505
+ }
1506
+ }
1507
+
1508
+ class Google_EventGadget extends Google_Model {
1509
+ public $preferences;
1510
+ public $title;
1511
+ public $height;
1512
+ public $width;
1513
+ public $link;
1514
+ public $type;
1515
+ public $display;
1516
+ public $iconLink;
1517
+ public function setPreferences($preferences) {
1518
+ $this->preferences = $preferences;
1519
+ }
1520
+ public function getPreferences() {
1521
+ return $this->preferences;
1522
+ }
1523
+ public function setTitle($title) {
1524
+ $this->title = $title;
1525
+ }
1526
+ public function getTitle() {
1527
+ return $this->title;
1528
+ }
1529
+ public function setHeight($height) {
1530
+ $this->height = $height;
1531
+ }
1532
+ public function getHeight() {
1533
+ return $this->height;
1534
+ }
1535
+ public function setWidth($width) {
1536
+ $this->width = $width;
1537
+ }
1538
+ public function getWidth() {
1539
+ return $this->width;
1540
+ }
1541
+ public function setLink($link) {
1542
+ $this->link = $link;
1543
+ }
1544
+ public function getLink() {
1545
+ return $this->link;
1546
+ }
1547
+ public function setType($type) {
1548
+ $this->type = $type;
1549
+ }
1550
+ public function getType() {
1551
+ return $this->type;
1552
+ }
1553
+ public function setDisplay($display) {
1554
+ $this->display = $display;
1555
+ }
1556
+ public function getDisplay() {
1557
+ return $this->display;
1558
+ }
1559
+ public function setIconLink($iconLink) {
1560
+ $this->iconLink = $iconLink;
1561
+ }
1562
+ public function getIconLink() {
1563
+ return $this->iconLink;
1564
+ }
1565
+ }
1566
+
1567
+ class Google_EventOrganizer extends Google_Model {
1568
+ public $self;
1569
+ public $displayName;
1570
+ public $email;
1571
+ public $id;
1572
+ public function setSelf($self) {
1573
+ $this->self = $self;
1574
+ }
1575
+ public function getSelf() {
1576
+ return $this->self;
1577
+ }
1578
+ public function setDisplayName($displayName) {
1579
+ $this->displayName = $displayName;
1580
+ }
1581
+ public function getDisplayName() {
1582
+ return $this->displayName;
1583
+ }
1584
+ public function setEmail($email) {
1585
+ $this->email = $email;
1586
+ }
1587
+ public function getEmail() {
1588
+ return $this->email;
1589
+ }
1590
+ public function setId($id) {
1591
+ $this->id = $id;
1592
+ }
1593
+ public function getId() {
1594
+ return $this->id;
1595
+ }
1596
+ }
1597
+
1598
+ class Google_EventReminder extends Google_Model {
1599
+ public $minutes;
1600
+ public $method;
1601
+ public function setMinutes($minutes) {
1602
+ $this->minutes = $minutes;
1603
+ }
1604
+ public function getMinutes() {
1605
+ return $this->minutes;
1606
+ }
1607
+ public function setMethod($method) {
1608
+ $this->method = $method;
1609
+ }
1610
+ public function getMethod() {
1611
+ return $this->method;
1612
+ }
1613
+ }
1614
+
1615
+ class Google_EventReminders extends Google_Model {
1616
+ protected $__overridesType = 'Google_EventReminder';
1617
+ protected $__overridesDataType = 'array';
1618
+ public $overrides;
1619
+ public $useDefault;
1620
+ public function setOverrides(/* array(Google_EventReminder) */ $overrides) {
1621
+ $this->assertIsArray($overrides, 'Google_EventReminder', __METHOD__);
1622
+ $this->overrides = $overrides;
1623
+ }
1624
+ public function getOverrides() {
1625
+ return $this->overrides;
1626
+ }
1627
+ public function setUseDefault($useDefault) {
1628
+ $this->useDefault = $useDefault;
1629
+ }
1630
+ public function getUseDefault() {
1631
+ return $this->useDefault;
1632
+ }
1633
+ }
1634
+
1635
+ class Google_Events extends Google_Model {
1636
+ public $nextPageToken;
1637
+ public $kind;
1638
+ protected $__defaultRemindersType = 'Google_EventReminder';
1639
+ protected $__defaultRemindersDataType = 'array';
1640
+ public $defaultReminders;
1641
+ public $description;
1642
+ protected $__itemsType = 'Google_Event';
1643
+ protected $__itemsDataType = 'array';
1644
+ public $items;
1645
+ public $updated;
1646
+ public $summary;
1647
+ public $etag;
1648
+ public $timeZone;
1649
+ public $accessRole;
1650
+ public function setNextPageToken($nextPageToken) {
1651
+ $this->nextPageToken = $nextPageToken;
1652
+ }
1653
+ public function getNextPageToken() {
1654
+ return $this->nextPageToken;
1655
+ }
1656
+ public function setKind($kind) {
1657
+ $this->kind = $kind;
1658
+ }
1659
+ public function getKind() {
1660
+ return $this->kind;
1661
+ }
1662
+ public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
1663
+ $this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
1664
+ $this->defaultReminders = $defaultReminders;
1665
+ }
1666
+ public function getDefaultReminders() {
1667
+ return $this->defaultReminders;
1668
+ }
1669
+ public function setDescription($description) {
1670
+ $this->description = $description;
1671
+ }
1672
+ public function getDescription() {
1673
+ return $this->description;
1674
+ }
1675
+ public function setItems(/* array(Google_Event) */ $items) {
1676
+ $this->assertIsArray($items, 'Google_Event', __METHOD__);
1677
+ $this->items = $items;
1678
+ }
1679
+ public function getItems() {
1680
+ return $this->items;
1681
+ }
1682
+ public function setUpdated($updated) {
1683
+ $this->updated = $updated;
1684
+ }
1685
+ public function getUpdated() {
1686
+ return $this->updated;
1687
+ }
1688
+ public function setSummary($summary) {
1689
+ $this->summary = $summary;
1690
+ }
1691
+ public function getSummary() {
1692
+ return $this->summary;
1693
+ }
1694
+ public function setEtag($etag) {
1695
+ $this->etag = $etag;
1696
+ }
1697
+ public function getEtag() {
1698
+ return $this->etag;
1699
+ }
1700
+ public function setTimeZone($timeZone) {
1701
+ $this->timeZone = $timeZone;
1702
+ }
1703
+ public function getTimeZone() {
1704
+ return $this->timeZone;
1705
+ }
1706
+ public function setAccessRole($accessRole) {
1707
+ $this->accessRole = $accessRole;
1708
+ }
1709
+ public function getAccessRole() {
1710
+ return $this->accessRole;
1711
+ }
1712
+ }
1713
+
1714
+ class Google_FreeBusyCalendar extends Google_Model {
1715
+ protected $__busyType = 'Google_TimePeriod';
1716
+ protected $__busyDataType = 'array';
1717
+ public $busy;
1718
+ protected $__errorsType = 'Google_Error';
1719
+ protected $__errorsDataType = 'array';
1720
+ public $errors;
1721
+ public function setBusy(/* array(Google_TimePeriod) */ $busy) {
1722
+ $this->assertIsArray($busy, 'Google_TimePeriod', __METHOD__);
1723
+ $this->busy = $busy;
1724
+ }
1725
+ public function getBusy() {
1726
+ return $this->busy;
1727
+ }
1728
+ public function setErrors(/* array(Google_Error) */ $errors) {
1729
+ $this->assertIsArray($errors, 'Google_Error', __METHOD__);
1730
+ $this->errors = $errors;
1731
+ }
1732
+ public function getErrors() {
1733
+ return $this->errors;
1734
+ }
1735
+ }
1736
+
1737
+ class Google_FreeBusyGroup extends Google_Model {
1738
+ protected $__errorsType = 'Google_Error';
1739
+ protected $__errorsDataType = 'array';
1740
+ public $errors;
1741
+ public $calendars;
1742
+ public function setErrors(/* array(Google_Error) */ $errors) {
1743
+ $this->assertIsArray($errors, 'Google_Error', __METHOD__);
1744
+ $this->errors = $errors;
1745
+ }
1746
+ public function getErrors() {
1747
+ return $this->errors;
1748
+ }
1749
+ public function setCalendars(/* array(Google_string) */ $calendars) {
1750
+ $this->assertIsArray($calendars, 'Google_string', __METHOD__);
1751
+ $this->calendars = $calendars;
1752
+ }
1753
+ public function getCalendars() {
1754
+ return $this->calendars;
1755
+ }
1756
+ }
1757
+
1758
+ class Google_FreeBusyRequest extends Google_Model {
1759
+ public $calendarExpansionMax;
1760
+ public $groupExpansionMax;
1761
+ public $timeMax;
1762
+ protected $__itemsType = 'Google_FreeBusyRequestItem';
1763
+ protected $__itemsDataType = 'array';
1764
+ public $items;
1765
+ public $timeMin;
1766
+ public $timeZone;
1767
+ public function setCalendarExpansionMax($calendarExpansionMax) {
1768
+ $this->calendarExpansionMax = $calendarExpansionMax;
1769
+ }
1770
+ public function getCalendarExpansionMax() {
1771
+ return $this->calendarExpansionMax;
1772
+ }
1773
+ public function setGroupExpansionMax($groupExpansionMax) {
1774
+ $this->groupExpansionMax = $groupExpansionMax;
1775
+ }
1776
+ public function getGroupExpansionMax() {
1777
+ return $this->groupExpansionMax;
1778
+ }
1779
+ public function setTimeMax($timeMax) {
1780
+ $this->timeMax = $timeMax;
1781
+ }
1782
+ public function getTimeMax() {
1783
+ return $this->timeMax;
1784
+ }
1785
+ public function setItems(/* array(Google_FreeBusyRequestItem) */ $items) {
1786
+ $this->assertIsArray($items, 'Google_FreeBusyRequestItem', __METHOD__);
1787
+ $this->items = $items;
1788
+ }
1789
+ public function getItems() {
1790
+ return $this->items;
1791
+ }
1792
+ public function setTimeMin($timeMin) {
1793
+ $this->timeMin = $timeMin;
1794
+ }
1795
+ public function getTimeMin() {
1796
+ return $this->timeMin;
1797
+ }
1798
+ public function setTimeZone($timeZone) {
1799
+ $this->timeZone = $timeZone;
1800
+ }
1801
+ public function getTimeZone() {
1802
+ return $this->timeZone;
1803
+ }
1804
+ }
1805
+
1806
+ class Google_FreeBusyRequestItem extends Google_Model {
1807
+ public $id;
1808
+ public function setId($id) {
1809
+ $this->id = $id;
1810
+ }
1811
+ public function getId() {
1812
+ return $this->id;
1813
+ }
1814
+ }
1815
+
1816
+ class Google_FreeBusyResponse extends Google_Model {
1817
+ public $timeMax;
1818
+ public $kind;
1819
+ protected $__calendarsType = 'Google_FreeBusyCalendar';
1820
+ protected $__calendarsDataType = 'map';
1821
+ public $calendars;
1822
+ public $timeMin;
1823
+ protected $__groupsType = 'Google_FreeBusyGroup';
1824
+ protected $__groupsDataType = 'map';
1825
+ public $groups;
1826
+ public function setTimeMax($timeMax) {
1827
+ $this->timeMax = $timeMax;
1828
+ }
1829
+ public function getTimeMax() {
1830
+ return $this->timeMax;
1831
+ }
1832
+ public function setKind($kind) {
1833
+ $this->kind = $kind;
1834
+ }
1835
+ public function getKind() {
1836
+ return $this->kind;
1837
+ }
1838
+ public function setCalendars(Google_FreeBusyCalendar $calendars) {
1839
+ $this->calendars = $calendars;
1840
+ }
1841
+ public function getCalendars() {
1842
+ return $this->calendars;
1843
+ }
1844
+ public function setTimeMin($timeMin) {
1845
+ $this->timeMin = $timeMin;
1846
+ }
1847
+ public function getTimeMin() {
1848
+ return $this->timeMin;
1849
+ }
1850
+ public function setGroups(Google_FreeBusyGroup $groups) {
1851
+ $this->groups = $groups;
1852
+ }
1853
+ public function getGroups() {
1854
+ return $this->groups;
1855
+ }
1856
+ }
1857
+
1858
+ class Google_Setting extends Google_Model {
1859
+ public $kind;
1860
+ public $etag;
1861
+ public $id;
1862
+ public $value;
1863
+ public function setKind($kind) {
1864
+ $this->kind = $kind;
1865
+ }
1866
+ public function getKind() {
1867
+ return $this->kind;
1868
+ }
1869
+ public function setEtag($etag) {
1870
+ $this->etag = $etag;
1871
+ }
1872
+ public function getEtag() {
1873
+ return $this->etag;
1874
+ }
1875
+ public function setId($id) {
1876
+ $this->id = $id;
1877
+ }
1878
+ public function getId() {
1879
+ return $this->id;
1880
+ }
1881
+ public function setValue($value) {
1882
+ $this->value = $value;
1883
+ }
1884
+ public function getValue() {
1885
+ return $this->value;
1886
+ }
1887
+ }
1888
+
1889
+ class Google_Settings extends Google_Model {
1890
+ protected $__itemsType = 'Google_Setting';
1891
+ protected $__itemsDataType = 'array';
1892
+ public $items;
1893
+ public $kind;
1894
+ public $etag;
1895
+ public function setItems(/* array(Google_Setting) */ $items) {
1896
+ $this->assertIsArray($items, 'Google_Setting', __METHOD__);
1897
+ $this->items = $items;
1898
+ }
1899
+ public function getItems() {
1900
+ return $this->items;
1901
+ }
1902
+ public function setKind($kind) {
1903
+ $this->kind = $kind;
1904
+ }
1905
+ public function getKind() {
1906
+ return $this->kind;
1907
+ }
1908
+ public function setEtag($etag) {
1909
+ $this->etag = $etag;
1910
+ }
1911
+ public function getEtag() {
1912
+ return $this->etag;
1913
+ }
1914
+ }
1915
+
1916
+ class Google_TimePeriod extends Google_Model {
1917
+ public $start;
1918
+ public $end;
1919
+ public function setStart($start) {
1920
+ $this->start = $start;
1921
+ }
1922
+ public function getStart() {
1923
+ return $this->start;
1924
+ }
1925
+ public function setEnd($end) {
1926
+ $this->end = $end;
1927
+ }
1928
+ public function getEnd() {
1929
+ return $this->end;
1930
+ }
1931
+ }
google-api-php-client/src/contrib/Google_ComputeService.php ADDED
@@ -0,0 +1,2629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "operations" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $computeService = new Google_ComputeService(...);
22
+ * $operations = $computeService->operations;
23
+ * </code>
24
+ */
25
+ class Google_OperationsServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Retrieves the specified operation resource. (operations.get)
30
+ *
31
+ * @param string $project Name of the project scoping this request.
32
+ * @param string $operation Name of the operation resource to return.
33
+ * @param array $optParams Optional parameters.
34
+ * @return Google_Operation
35
+ */
36
+ public function get($project, $operation, $optParams = array()) {
37
+ $params = array('project' => $project, 'operation' => $operation);
38
+ $params = array_merge($params, $optParams);
39
+ $data = $this->__call('get', array($params));
40
+ if ($this->useObjects()) {
41
+ return new Google_Operation($data);
42
+ } else {
43
+ return $data;
44
+ }
45
+ }
46
+ /**
47
+ * Retrieves the list of operation resources contained within the specified project.
48
+ * (operations.list)
49
+ *
50
+ * @param string $project Name of the project scoping this request.
51
+ * @param array $optParams Optional parameters.
52
+ *
53
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
54
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
55
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
56
+ * @return Google_OperationList
57
+ */
58
+ public function listOperations($project, $optParams = array()) {
59
+ $params = array('project' => $project);
60
+ $params = array_merge($params, $optParams);
61
+ $data = $this->__call('list', array($params));
62
+ if ($this->useObjects()) {
63
+ return new Google_OperationList($data);
64
+ } else {
65
+ return $data;
66
+ }
67
+ }
68
+ /**
69
+ * Deletes the specified operation resource. (operations.delete)
70
+ *
71
+ * @param string $project Name of the project scoping this request.
72
+ * @param string $operation Name of the operation resource to delete.
73
+ * @param array $optParams Optional parameters.
74
+ */
75
+ public function delete($project, $operation, $optParams = array()) {
76
+ $params = array('project' => $project, 'operation' => $operation);
77
+ $params = array_merge($params, $optParams);
78
+ $data = $this->__call('delete', array($params));
79
+ return $data;
80
+ }
81
+ }
82
+
83
+ /**
84
+ * The "kernels" collection of methods.
85
+ * Typical usage is:
86
+ * <code>
87
+ * $computeService = new Google_ComputeService(...);
88
+ * $kernels = $computeService->kernels;
89
+ * </code>
90
+ */
91
+ class Google_KernelsServiceResource extends Google_ServiceResource {
92
+
93
+
94
+ /**
95
+ * Retrieves the list of kernel resources available to the specified project. (kernels.list)
96
+ *
97
+ * @param string $project Name of the project scoping this request.
98
+ * @param array $optParams Optional parameters.
99
+ *
100
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
101
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
102
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
103
+ * @return Google_KernelList
104
+ */
105
+ public function listKernels($project, $optParams = array()) {
106
+ $params = array('project' => $project);
107
+ $params = array_merge($params, $optParams);
108
+ $data = $this->__call('list', array($params));
109
+ if ($this->useObjects()) {
110
+ return new Google_KernelList($data);
111
+ } else {
112
+ return $data;
113
+ }
114
+ }
115
+ /**
116
+ * Returns the specified kernel resource. (kernels.get)
117
+ *
118
+ * @param string $project Name of the project scoping this request.
119
+ * @param string $kernel Name of the kernel resource to return.
120
+ * @param array $optParams Optional parameters.
121
+ * @return Google_Kernel
122
+ */
123
+ public function get($project, $kernel, $optParams = array()) {
124
+ $params = array('project' => $project, 'kernel' => $kernel);
125
+ $params = array_merge($params, $optParams);
126
+ $data = $this->__call('get', array($params));
127
+ if ($this->useObjects()) {
128
+ return new Google_Kernel($data);
129
+ } else {
130
+ return $data;
131
+ }
132
+ }
133
+ }
134
+
135
+ /**
136
+ * The "disks" collection of methods.
137
+ * Typical usage is:
138
+ * <code>
139
+ * $computeService = new Google_ComputeService(...);
140
+ * $disks = $computeService->disks;
141
+ * </code>
142
+ */
143
+ class Google_DisksServiceResource extends Google_ServiceResource {
144
+
145
+
146
+ /**
147
+ * Creates a persistent disk resource in the specified project using the data included in the
148
+ * request. (disks.insert)
149
+ *
150
+ * @param string $project Name of the project scoping this request.
151
+ * @param Google_Disk $postBody
152
+ * @param array $optParams Optional parameters.
153
+ * @return Google_Operation
154
+ */
155
+ public function insert($project, Google_Disk $postBody, $optParams = array()) {
156
+ $params = array('project' => $project, 'postBody' => $postBody);
157
+ $params = array_merge($params, $optParams);
158
+ $data = $this->__call('insert', array($params));
159
+ if ($this->useObjects()) {
160
+ return new Google_Operation($data);
161
+ } else {
162
+ return $data;
163
+ }
164
+ }
165
+ /**
166
+ * Returns the specified persistent disk resource. (disks.get)
167
+ *
168
+ * @param string $project Name of the project scoping this request.
169
+ * @param string $disk Name of the persistent disk resource to return.
170
+ * @param array $optParams Optional parameters.
171
+ * @return Google_Disk
172
+ */
173
+ public function get($project, $disk, $optParams = array()) {
174
+ $params = array('project' => $project, 'disk' => $disk);
175
+ $params = array_merge($params, $optParams);
176
+ $data = $this->__call('get', array($params));
177
+ if ($this->useObjects()) {
178
+ return new Google_Disk($data);
179
+ } else {
180
+ return $data;
181
+ }
182
+ }
183
+ /**
184
+ * Retrieves the list of persistent disk resources contained within the specified project.
185
+ * (disks.list)
186
+ *
187
+ * @param string $project Name of the project scoping this request.
188
+ * @param array $optParams Optional parameters.
189
+ *
190
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
191
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
192
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
193
+ * @return Google_DiskList
194
+ */
195
+ public function listDisks($project, $optParams = array()) {
196
+ $params = array('project' => $project);
197
+ $params = array_merge($params, $optParams);
198
+ $data = $this->__call('list', array($params));
199
+ if ($this->useObjects()) {
200
+ return new Google_DiskList($data);
201
+ } else {
202
+ return $data;
203
+ }
204
+ }
205
+ /**
206
+ * Deletes the specified persistent disk resource. (disks.delete)
207
+ *
208
+ * @param string $project Name of the project scoping this request.
209
+ * @param string $disk Name of the persistent disk resource to delete.
210
+ * @param array $optParams Optional parameters.
211
+ * @return Google_Operation
212
+ */
213
+ public function delete($project, $disk, $optParams = array()) {
214
+ $params = array('project' => $project, 'disk' => $disk);
215
+ $params = array_merge($params, $optParams);
216
+ $data = $this->__call('delete', array($params));
217
+ if ($this->useObjects()) {
218
+ return new Google_Operation($data);
219
+ } else {
220
+ return $data;
221
+ }
222
+ }
223
+ }
224
+
225
+ /**
226
+ * The "snapshots" collection of methods.
227
+ * Typical usage is:
228
+ * <code>
229
+ * $computeService = new Google_ComputeService(...);
230
+ * $snapshots = $computeService->snapshots;
231
+ * </code>
232
+ */
233
+ class Google_SnapshotsServiceResource extends Google_ServiceResource {
234
+
235
+
236
+ /**
237
+ * Creates a persistent disk snapshot resource in the specified project using the data included in
238
+ * the request. (snapshots.insert)
239
+ *
240
+ * @param string $project Name of the project scoping this request.
241
+ * @param Google_Snapshot $postBody
242
+ * @param array $optParams Optional parameters.
243
+ * @return Google_Operation
244
+ */
245
+ public function insert($project, Google_Snapshot $postBody, $optParams = array()) {
246
+ $params = array('project' => $project, 'postBody' => $postBody);
247
+ $params = array_merge($params, $optParams);
248
+ $data = $this->__call('insert', array($params));
249
+ if ($this->useObjects()) {
250
+ return new Google_Operation($data);
251
+ } else {
252
+ return $data;
253
+ }
254
+ }
255
+ /**
256
+ * Returns the specified persistent disk snapshot resource. (snapshots.get)
257
+ *
258
+ * @param string $project Name of the project scoping this request.
259
+ * @param string $snapshot Name of the persistent disk snapshot resource to return.
260
+ * @param array $optParams Optional parameters.
261
+ * @return Google_Snapshot
262
+ */
263
+ public function get($project, $snapshot, $optParams = array()) {
264
+ $params = array('project' => $project, 'snapshot' => $snapshot);
265
+ $params = array_merge($params, $optParams);
266
+ $data = $this->__call('get', array($params));
267
+ if ($this->useObjects()) {
268
+ return new Google_Snapshot($data);
269
+ } else {
270
+ return $data;
271
+ }
272
+ }
273
+ /**
274
+ * Retrieves the list of persistent disk snapshot resources contained within the specified project.
275
+ * (snapshots.list)
276
+ *
277
+ * @param string $project Name of the project scoping this request.
278
+ * @param array $optParams Optional parameters.
279
+ *
280
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
281
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
282
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
283
+ * @return Google_SnapshotList
284
+ */
285
+ public function listSnapshots($project, $optParams = array()) {
286
+ $params = array('project' => $project);
287
+ $params = array_merge($params, $optParams);
288
+ $data = $this->__call('list', array($params));
289
+ if ($this->useObjects()) {
290
+ return new Google_SnapshotList($data);
291
+ } else {
292
+ return $data;
293
+ }
294
+ }
295
+ /**
296
+ * Deletes the specified persistent disk snapshot resource. (snapshots.delete)
297
+ *
298
+ * @param string $project Name of the project scoping this request.
299
+ * @param string $snapshot Name of the persistent disk snapshot resource to delete.
300
+ * @param array $optParams Optional parameters.
301
+ * @return Google_Operation
302
+ */
303
+ public function delete($project, $snapshot, $optParams = array()) {
304
+ $params = array('project' => $project, 'snapshot' => $snapshot);
305
+ $params = array_merge($params, $optParams);
306
+ $data = $this->__call('delete', array($params));
307
+ if ($this->useObjects()) {
308
+ return new Google_Operation($data);
309
+ } else {
310
+ return $data;
311
+ }
312
+ }
313
+ }
314
+
315
+ /**
316
+ * The "zones" collection of methods.
317
+ * Typical usage is:
318
+ * <code>
319
+ * $computeService = new Google_ComputeService(...);
320
+ * $zones = $computeService->zones;
321
+ * </code>
322
+ */
323
+ class Google_ZonesServiceResource extends Google_ServiceResource {
324
+
325
+
326
+ /**
327
+ * Retrieves the list of zone resources available to the specified project. (zones.list)
328
+ *
329
+ * @param string $project Name of the project scoping this request.
330
+ * @param array $optParams Optional parameters.
331
+ *
332
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
333
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
334
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
335
+ * @return Google_ZoneList
336
+ */
337
+ public function listZones($project, $optParams = array()) {
338
+ $params = array('project' => $project);
339
+ $params = array_merge($params, $optParams);
340
+ $data = $this->__call('list', array($params));
341
+ if ($this->useObjects()) {
342
+ return new Google_ZoneList($data);
343
+ } else {
344
+ return $data;
345
+ }
346
+ }
347
+ /**
348
+ * Returns the specified zone resource. (zones.get)
349
+ *
350
+ * @param string $project Name of the project scoping this request.
351
+ * @param string $zone Name of the zone resource to return.
352
+ * @param array $optParams Optional parameters.
353
+ * @return Google_Zone
354
+ */
355
+ public function get($project, $zone, $optParams = array()) {
356
+ $params = array('project' => $project, 'zone' => $zone);
357
+ $params = array_merge($params, $optParams);
358
+ $data = $this->__call('get', array($params));
359
+ if ($this->useObjects()) {
360
+ return new Google_Zone($data);
361
+ } else {
362
+ return $data;
363
+ }
364
+ }
365
+ }
366
+
367
+ /**
368
+ * The "instances" collection of methods.
369
+ * Typical usage is:
370
+ * <code>
371
+ * $computeService = new Google_ComputeService(...);
372
+ * $instances = $computeService->instances;
373
+ * </code>
374
+ */
375
+ class Google_InstancesServiceResource extends Google_ServiceResource {
376
+
377
+
378
+ /**
379
+ * Creates an instance resource in the specified project using the data included in the request.
380
+ * (instances.insert)
381
+ *
382
+ * @param string $project Name of the project scoping this request.
383
+ * @param Google_Instance $postBody
384
+ * @param array $optParams Optional parameters.
385
+ * @return Google_Operation
386
+ */
387
+ public function insert($project, Google_Instance $postBody, $optParams = array()) {
388
+ $params = array('project' => $project, 'postBody' => $postBody);
389
+ $params = array_merge($params, $optParams);
390
+ $data = $this->__call('insert', array($params));
391
+ if ($this->useObjects()) {
392
+ return new Google_Operation($data);
393
+ } else {
394
+ return $data;
395
+ }
396
+ }
397
+ /**
398
+ * Deletes an access config from an instance's network interface. (instances.deleteAccessConfig)
399
+ *
400
+ * @param string $project Project name.
401
+ * @param string $instance Instance name.
402
+ * @param string $access_config Access config name.
403
+ * @param string $network_interface Network interface name.
404
+ * @param array $optParams Optional parameters.
405
+ * @return Google_Operation
406
+ */
407
+ public function deleteAccessConfig($project, $instance, $access_config, $network_interface, $optParams = array()) {
408
+ $params = array('project' => $project, 'instance' => $instance, 'access_config' => $access_config, 'network_interface' => $network_interface);
409
+ $params = array_merge($params, $optParams);
410
+ $data = $this->__call('deleteAccessConfig', array($params));
411
+ if ($this->useObjects()) {
412
+ return new Google_Operation($data);
413
+ } else {
414
+ return $data;
415
+ }
416
+ }
417
+ /**
418
+ * Returns the specified instance resource. (instances.get)
419
+ *
420
+ * @param string $project Name of the project scoping this request.
421
+ * @param string $instance Name of the instance resource to return.
422
+ * @param array $optParams Optional parameters.
423
+ * @return Google_Instance
424
+ */
425
+ public function get($project, $instance, $optParams = array()) {
426
+ $params = array('project' => $project, 'instance' => $instance);
427
+ $params = array_merge($params, $optParams);
428
+ $data = $this->__call('get', array($params));
429
+ if ($this->useObjects()) {
430
+ return new Google_Instance($data);
431
+ } else {
432
+ return $data;
433
+ }
434
+ }
435
+ /**
436
+ * Retrieves the list of instance resources contained within the specified project. (instances.list)
437
+ *
438
+ * @param string $project Name of the project scoping this request.
439
+ * @param array $optParams Optional parameters.
440
+ *
441
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
442
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
443
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
444
+ * @return Google_InstanceList
445
+ */
446
+ public function listInstances($project, $optParams = array()) {
447
+ $params = array('project' => $project);
448
+ $params = array_merge($params, $optParams);
449
+ $data = $this->__call('list', array($params));
450
+ if ($this->useObjects()) {
451
+ return new Google_InstanceList($data);
452
+ } else {
453
+ return $data;
454
+ }
455
+ }
456
+ /**
457
+ * Adds an access config to an instance's network interface. (instances.addAccessConfig)
458
+ *
459
+ * @param string $project Project name.
460
+ * @param string $instance Instance name.
461
+ * @param string $network_interface Network interface name.
462
+ * @param Google_AccessConfig $postBody
463
+ * @param array $optParams Optional parameters.
464
+ * @return Google_Operation
465
+ */
466
+ public function addAccessConfig($project, $instance, $network_interface, Google_AccessConfig $postBody, $optParams = array()) {
467
+ $params = array('project' => $project, 'instance' => $instance, 'network_interface' => $network_interface, 'postBody' => $postBody);
468
+ $params = array_merge($params, $optParams);
469
+ $data = $this->__call('addAccessConfig', array($params));
470
+ if ($this->useObjects()) {
471
+ return new Google_Operation($data);
472
+ } else {
473
+ return $data;
474
+ }
475
+ }
476
+ /**
477
+ * Deletes the specified instance resource. (instances.delete)
478
+ *
479
+ * @param string $project Name of the project scoping this request.
480
+ * @param string $instance Name of the instance resource to delete.
481
+ * @param array $optParams Optional parameters.
482
+ * @return Google_Operation
483
+ */
484
+ public function delete($project, $instance, $optParams = array()) {
485
+ $params = array('project' => $project, 'instance' => $instance);
486
+ $params = array_merge($params, $optParams);
487
+ $data = $this->__call('delete', array($params));
488
+ if ($this->useObjects()) {
489
+ return new Google_Operation($data);
490
+ } else {
491
+ return $data;
492
+ }
493
+ }
494
+ }
495
+
496
+ /**
497
+ * The "machineTypes" collection of methods.
498
+ * Typical usage is:
499
+ * <code>
500
+ * $computeService = new Google_ComputeService(...);
501
+ * $machineTypes = $computeService->machineTypes;
502
+ * </code>
503
+ */
504
+ class Google_MachineTypesServiceResource extends Google_ServiceResource {
505
+
506
+
507
+ /**
508
+ * Retrieves the list of machine type resources available to the specified project.
509
+ * (machineTypes.list)
510
+ *
511
+ * @param string $project Name of the project scoping this request.
512
+ * @param array $optParams Optional parameters.
513
+ *
514
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
515
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
516
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
517
+ * @return Google_MachineTypeList
518
+ */
519
+ public function listMachineTypes($project, $optParams = array()) {
520
+ $params = array('project' => $project);
521
+ $params = array_merge($params, $optParams);
522
+ $data = $this->__call('list', array($params));
523
+ if ($this->useObjects()) {
524
+ return new Google_MachineTypeList($data);
525
+ } else {
526
+ return $data;
527
+ }
528
+ }
529
+ /**
530
+ * Returns the specified machine type resource. (machineTypes.get)
531
+ *
532
+ * @param string $project Name of the project scoping this request.
533
+ * @param string $machineType Name of the machine type resource to return.
534
+ * @param array $optParams Optional parameters.
535
+ * @return Google_MachineType
536
+ */
537
+ public function get($project, $machineType, $optParams = array()) {
538
+ $params = array('project' => $project, 'machineType' => $machineType);
539
+ $params = array_merge($params, $optParams);
540
+ $data = $this->__call('get', array($params));
541
+ if ($this->useObjects()) {
542
+ return new Google_MachineType($data);
543
+ } else {
544
+ return $data;
545
+ }
546
+ }
547
+ }
548
+
549
+ /**
550
+ * The "images" collection of methods.
551
+ * Typical usage is:
552
+ * <code>
553
+ * $computeService = new Google_ComputeService(...);
554
+ * $images = $computeService->images;
555
+ * </code>
556
+ */
557
+ class Google_ImagesServiceResource extends Google_ServiceResource {
558
+
559
+
560
+ /**
561
+ * Creates an image resource in the specified project using the data included in the request.
562
+ * (images.insert)
563
+ *
564
+ * @param string $project Name of the project scoping this request.
565
+ * @param Google_Image $postBody
566
+ * @param array $optParams Optional parameters.
567
+ * @return Google_Operation
568
+ */
569
+ public function insert($project, Google_Image $postBody, $optParams = array()) {
570
+ $params = array('project' => $project, 'postBody' => $postBody);
571
+ $params = array_merge($params, $optParams);
572
+ $data = $this->__call('insert', array($params));
573
+ if ($this->useObjects()) {
574
+ return new Google_Operation($data);
575
+ } else {
576
+ return $data;
577
+ }
578
+ }
579
+ /**
580
+ * Returns the specified image resource. (images.get)
581
+ *
582
+ * @param string $project Name of the project scoping this request.
583
+ * @param string $image Name of the image resource to return.
584
+ * @param array $optParams Optional parameters.
585
+ * @return Google_Image
586
+ */
587
+ public function get($project, $image, $optParams = array()) {
588
+ $params = array('project' => $project, 'image' => $image);
589
+ $params = array_merge($params, $optParams);
590
+ $data = $this->__call('get', array($params));
591
+ if ($this->useObjects()) {
592
+ return new Google_Image($data);
593
+ } else {
594
+ return $data;
595
+ }
596
+ }
597
+ /**
598
+ * Retrieves the list of image resources available to the specified project. (images.list)
599
+ *
600
+ * @param string $project Name of the project scoping this request.
601
+ * @param array $optParams Optional parameters.
602
+ *
603
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
604
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
605
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
606
+ * @return Google_ImageList
607
+ */
608
+ public function listImages($project, $optParams = array()) {
609
+ $params = array('project' => $project);
610
+ $params = array_merge($params, $optParams);
611
+ $data = $this->__call('list', array($params));
612
+ if ($this->useObjects()) {
613
+ return new Google_ImageList($data);
614
+ } else {
615
+ return $data;
616
+ }
617
+ }
618
+ /**
619
+ * Deletes the specified image resource. (images.delete)
620
+ *
621
+ * @param string $project Name of the project scoping this request.
622
+ * @param string $image Name of the image resource to delete.
623
+ * @param array $optParams Optional parameters.
624
+ * @return Google_Operation
625
+ */
626
+ public function delete($project, $image, $optParams = array()) {
627
+ $params = array('project' => $project, 'image' => $image);
628
+ $params = array_merge($params, $optParams);
629
+ $data = $this->__call('delete', array($params));
630
+ if ($this->useObjects()) {
631
+ return new Google_Operation($data);
632
+ } else {
633
+ return $data;
634
+ }
635
+ }
636
+ }
637
+
638
+ /**
639
+ * The "firewalls" collection of methods.
640
+ * Typical usage is:
641
+ * <code>
642
+ * $computeService = new Google_ComputeService(...);
643
+ * $firewalls = $computeService->firewalls;
644
+ * </code>
645
+ */
646
+ class Google_FirewallsServiceResource extends Google_ServiceResource {
647
+
648
+
649
+ /**
650
+ * Creates a firewall resource in the specified project using the data included in the request.
651
+ * (firewalls.insert)
652
+ *
653
+ * @param string $project Name of the project scoping this request.
654
+ * @param Google_Firewall $postBody
655
+ * @param array $optParams Optional parameters.
656
+ * @return Google_Operation
657
+ */
658
+ public function insert($project, Google_Firewall $postBody, $optParams = array()) {
659
+ $params = array('project' => $project, 'postBody' => $postBody);
660
+ $params = array_merge($params, $optParams);
661
+ $data = $this->__call('insert', array($params));
662
+ if ($this->useObjects()) {
663
+ return new Google_Operation($data);
664
+ } else {
665
+ return $data;
666
+ }
667
+ }
668
+ /**
669
+ * Returns the specified firewall resource. (firewalls.get)
670
+ *
671
+ * @param string $project Name of the project scoping this request.
672
+ * @param string $firewall Name of the firewall resource to return.
673
+ * @param array $optParams Optional parameters.
674
+ * @return Google_Firewall
675
+ */
676
+ public function get($project, $firewall, $optParams = array()) {
677
+ $params = array('project' => $project, 'firewall' => $firewall);
678
+ $params = array_merge($params, $optParams);
679
+ $data = $this->__call('get', array($params));
680
+ if ($this->useObjects()) {
681
+ return new Google_Firewall($data);
682
+ } else {
683
+ return $data;
684
+ }
685
+ }
686
+ /**
687
+ * Retrieves the list of firewall resources available to the specified project. (firewalls.list)
688
+ *
689
+ * @param string $project Name of the project scoping this request.
690
+ * @param array $optParams Optional parameters.
691
+ *
692
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
693
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
694
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
695
+ * @return Google_FirewallList
696
+ */
697
+ public function listFirewalls($project, $optParams = array()) {
698
+ $params = array('project' => $project);
699
+ $params = array_merge($params, $optParams);
700
+ $data = $this->__call('list', array($params));
701
+ if ($this->useObjects()) {
702
+ return new Google_FirewallList($data);
703
+ } else {
704
+ return $data;
705
+ }
706
+ }
707
+ /**
708
+ * Updates the specified firewall resource with the data included in the request. (firewalls.update)
709
+ *
710
+ * @param string $project Name of the project scoping this request.
711
+ * @param string $firewall Name of the firewall resource to update.
712
+ * @param Google_Firewall $postBody
713
+ * @param array $optParams Optional parameters.
714
+ * @return Google_Operation
715
+ */
716
+ public function update($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
717
+ $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
718
+ $params = array_merge($params, $optParams);
719
+ $data = $this->__call('update', array($params));
720
+ if ($this->useObjects()) {
721
+ return new Google_Operation($data);
722
+ } else {
723
+ return $data;
724
+ }
725
+ }
726
+ /**
727
+ * Updates the specified firewall resource with the data included in the request. This method
728
+ * supports patch semantics. (firewalls.patch)
729
+ *
730
+ * @param string $project Name of the project scoping this request.
731
+ * @param string $firewall Name of the firewall resource to update.
732
+ * @param Google_Firewall $postBody
733
+ * @param array $optParams Optional parameters.
734
+ * @return Google_Operation
735
+ */
736
+ public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
737
+ $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
738
+ $params = array_merge($params, $optParams);
739
+ $data = $this->__call('patch', array($params));
740
+ if ($this->useObjects()) {
741
+ return new Google_Operation($data);
742
+ } else {
743
+ return $data;
744
+ }
745
+ }
746
+ /**
747
+ * Deletes the specified firewall resource. (firewalls.delete)
748
+ *
749
+ * @param string $project Name of the project scoping this request.
750
+ * @param string $firewall Name of the firewall resource to delete.
751
+ * @param array $optParams Optional parameters.
752
+ * @return Google_Operation
753
+ */
754
+ public function delete($project, $firewall, $optParams = array()) {
755
+ $params = array('project' => $project, 'firewall' => $firewall);
756
+ $params = array_merge($params, $optParams);
757
+ $data = $this->__call('delete', array($params));
758
+ if ($this->useObjects()) {
759
+ return new Google_Operation($data);
760
+ } else {
761
+ return $data;
762
+ }
763
+ }
764
+ }
765
+
766
+ /**
767
+ * The "networks" collection of methods.
768
+ * Typical usage is:
769
+ * <code>
770
+ * $computeService = new Google_ComputeService(...);
771
+ * $networks = $computeService->networks;
772
+ * </code>
773
+ */
774
+ class Google_NetworksServiceResource extends Google_ServiceResource {
775
+
776
+
777
+ /**
778
+ * Creates a network resource in the specified project using the data included in the request.
779
+ * (networks.insert)
780
+ *
781
+ * @param string $project Name of the project scoping this request.
782
+ * @param Google_Network $postBody
783
+ * @param array $optParams Optional parameters.
784
+ * @return Google_Operation
785
+ */
786
+ public function insert($project, Google_Network $postBody, $optParams = array()) {
787
+ $params = array('project' => $project, 'postBody' => $postBody);
788
+ $params = array_merge($params, $optParams);
789
+ $data = $this->__call('insert', array($params));
790
+ if ($this->useObjects()) {
791
+ return new Google_Operation($data);
792
+ } else {
793
+ return $data;
794
+ }
795
+ }
796
+ /**
797
+ * Returns the specified network resource. (networks.get)
798
+ *
799
+ * @param string $project Name of the project scoping this request.
800
+ * @param string $network Name of the network resource to return.
801
+ * @param array $optParams Optional parameters.
802
+ * @return Google_Network
803
+ */
804
+ public function get($project, $network, $optParams = array()) {
805
+ $params = array('project' => $project, 'network' => $network);
806
+ $params = array_merge($params, $optParams);
807
+ $data = $this->__call('get', array($params));
808
+ if ($this->useObjects()) {
809
+ return new Google_Network($data);
810
+ } else {
811
+ return $data;
812
+ }
813
+ }
814
+ /**
815
+ * Retrieves the list of network resources available to the specified project. (networks.list)
816
+ *
817
+ * @param string $project Name of the project scoping this request.
818
+ * @param array $optParams Optional parameters.
819
+ *
820
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
821
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
822
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
823
+ * @return Google_NetworkList
824
+ */
825
+ public function listNetworks($project, $optParams = array()) {
826
+ $params = array('project' => $project);
827
+ $params = array_merge($params, $optParams);
828
+ $data = $this->__call('list', array($params));
829
+ if ($this->useObjects()) {
830
+ return new Google_NetworkList($data);
831
+ } else {
832
+ return $data;
833
+ }
834
+ }
835
+ /**
836
+ * Deletes the specified network resource. (networks.delete)
837
+ *
838
+ * @param string $project Name of the project scoping this request.
839
+ * @param string $network Name of the network resource to delete.
840
+ * @param array $optParams Optional parameters.
841
+ * @return Google_Operation
842
+ */
843
+ public function delete($project, $network, $optParams = array()) {
844
+ $params = array('project' => $project, 'network' => $network);
845
+ $params = array_merge($params, $optParams);
846
+ $data = $this->__call('delete', array($params));
847
+ if ($this->useObjects()) {
848
+ return new Google_Operation($data);
849
+ } else {
850
+ return $data;
851
+ }
852
+ }
853
+ }
854
+
855
+ /**
856
+ * The "projects" collection of methods.
857
+ * Typical usage is:
858
+ * <code>
859
+ * $computeService = new Google_ComputeService(...);
860
+ * $projects = $computeService->projects;
861
+ * </code>
862
+ */
863
+ class Google_ProjectsServiceResource extends Google_ServiceResource {
864
+
865
+
866
+ /**
867
+ * Sets metadata common to all instances within the specified project using the data included in the
868
+ * request. (projects.setCommonInstanceMetadata)
869
+ *
870
+ * @param string $project Name of the project scoping this request.
871
+ * @param Google_Metadata $postBody
872
+ * @param array $optParams Optional parameters.
873
+ */
874
+ public function setCommonInstanceMetadata($project, Google_Metadata $postBody, $optParams = array()) {
875
+ $params = array('project' => $project, 'postBody' => $postBody);
876
+ $params = array_merge($params, $optParams);
877
+ $data = $this->__call('setCommonInstanceMetadata', array($params));
878
+ return $data;
879
+ }
880
+ /**
881
+ * Returns the specified project resource. (projects.get)
882
+ *
883
+ * @param string $project Name of the project resource to retrieve.
884
+ * @param array $optParams Optional parameters.
885
+ * @return Google_Project
886
+ */
887
+ public function get($project, $optParams = array()) {
888
+ $params = array('project' => $project);
889
+ $params = array_merge($params, $optParams);
890
+ $data = $this->__call('get', array($params));
891
+ if ($this->useObjects()) {
892
+ return new Google_Project($data);
893
+ } else {
894
+ return $data;
895
+ }
896
+ }
897
+ }
898
+
899
+ /**
900
+ * Service definition for Google_Compute (v1beta12).
901
+ *
902
+ * <p>
903
+ * API for the Google Compute Engine service.
904
+ * </p>
905
+ *
906
+ * <p>
907
+ * For more information about this service, see the
908
+ * <a href="https://developers.google.com/compute/docs/reference/v1beta12" target="_blank">API Documentation</a>
909
+ * </p>
910
+ *
911
+ * @author Google, Inc.
912
+ */
913
+ class Google_ComputeService extends Google_Service {
914
+ public $operations;
915
+ public $kernels;
916
+ public $disks;
917
+ public $snapshots;
918
+ public $zones;
919
+ public $instances;
920
+ public $machineTypes;
921
+ public $images;
922
+ public $firewalls;
923
+ public $networks;
924
+ public $projects;
925
+ /**
926
+ * Constructs the internal representation of the Compute service.
927
+ *
928
+ * @param Google_Client $client
929
+ */
930
+ public function __construct(Google_Client $client) {
931
+ $this->servicePath = 'compute/v1beta12/projects/';
932
+ $this->version = 'v1beta12';
933
+ $this->serviceName = 'compute';
934
+
935
+ $client->addService($this->serviceName, $this->version);
936
+ $this->operations = new Google_OperationsServiceResource($this, $this->serviceName, 'operations', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "operation": {"required": true, "type": "string", "location": "path"}}, "id": "compute.operations.get", "httpMethod": "GET", "path": "{project}/operations/{operation}", "response": {"$ref": "Operation"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.operations.list", "httpMethod": "GET", "path": "{project}/operations", "response": {"$ref": "OperationList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "path": "{project}/operations/{operation}", "id": "compute.operations.delete", "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "operation": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
937
+ $this->kernels = new Google_KernelsServiceResource($this, $this->serviceName, 'kernels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.kernels.list", "httpMethod": "GET", "path": "{project}/kernels", "response": {"$ref": "KernelList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "kernel": {"required": true, "type": "string", "location": "path"}}, "id": "compute.kernels.get", "httpMethod": "GET", "path": "{project}/kernels/{kernel}", "response": {"$ref": "Kernel"}}}}', true));
938
+ $this->disks = new Google_DisksServiceResource($this, $this->serviceName, 'disks', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Disk"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/disks", "id": "compute.disks.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "disk": {"required": true, "type": "string", "location": "path"}}, "id": "compute.disks.get", "httpMethod": "GET", "path": "{project}/disks/{disk}", "response": {"$ref": "Disk"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.disks.list", "httpMethod": "GET", "path": "{project}/disks", "response": {"$ref": "DiskList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "disk": {"required": true, "type": "string", "location": "path"}}, "id": "compute.disks.delete", "httpMethod": "DELETE", "path": "{project}/disks/{disk}", "response": {"$ref": "Operation"}}}}', true));
939
+ $this->snapshots = new Google_SnapshotsServiceResource($this, $this->serviceName, 'snapshots', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Snapshot"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/snapshots", "id": "compute.snapshots.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "snapshot": {"required": true, "type": "string", "location": "path"}}, "id": "compute.snapshots.get", "httpMethod": "GET", "path": "{project}/snapshots/{snapshot}", "response": {"$ref": "Snapshot"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.snapshots.list", "httpMethod": "GET", "path": "{project}/snapshots", "response": {"$ref": "SnapshotList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "snapshot": {"required": true, "type": "string", "location": "path"}}, "id": "compute.snapshots.delete", "httpMethod": "DELETE", "path": "{project}/snapshots/{snapshot}", "response": {"$ref": "Operation"}}}}', true));
940
+ $this->zones = new Google_ZonesServiceResource($this, $this->serviceName, 'zones', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.zones.list", "httpMethod": "GET", "path": "{project}/zones", "response": {"$ref": "ZoneList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "zone": {"required": true, "type": "string", "location": "path"}}, "id": "compute.zones.get", "httpMethod": "GET", "path": "{project}/zones/{zone}", "response": {"$ref": "Zone"}}}}', true));
941
+ $this->instances = new Google_InstancesServiceResource($this, $this->serviceName, 'instances', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Instance"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/instances", "id": "compute.instances.insert"}, "deleteAccessConfig": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}, "access_config": {"required": true, "type": "string", "location": "query"}, "network_interface": {"required": true, "type": "string", "location": "query"}}, "id": "compute.instances.deleteAccessConfig", "httpMethod": "POST", "path": "{project}/instances/{instance}/delete-access-config", "response": {"$ref": "Operation"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}}, "id": "compute.instances.get", "httpMethod": "GET", "path": "{project}/instances/{instance}", "response": {"$ref": "Instance"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.instances.list", "httpMethod": "GET", "path": "{project}/instances", "response": {"$ref": "InstanceList"}}, "addAccessConfig": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}, "network_interface": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "AccessConfig"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/instances/{instance}/add-access-config", "id": "compute.instances.addAccessConfig"}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}}, "id": "compute.instances.delete", "httpMethod": "DELETE", "path": "{project}/instances/{instance}", "response": {"$ref": "Operation"}}}}', true));
942
+ $this->machineTypes = new Google_MachineTypesServiceResource($this, $this->serviceName, 'machineTypes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.machineTypes.list", "httpMethod": "GET", "path": "{project}/machine-types", "response": {"$ref": "MachineTypeList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "machineType": {"required": true, "type": "string", "location": "path"}}, "id": "compute.machineTypes.get", "httpMethod": "GET", "path": "{project}/machine-types/{machineType}", "response": {"$ref": "MachineType"}}}}', true));
943
+ $this->images = new Google_ImagesServiceResource($this, $this->serviceName, 'images', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/devstorage.read_only"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Image"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/images", "id": "compute.images.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "image": {"required": true, "type": "string", "location": "path"}}, "id": "compute.images.get", "httpMethod": "GET", "path": "{project}/images/{image}", "response": {"$ref": "Image"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.images.list", "httpMethod": "GET", "path": "{project}/images", "response": {"$ref": "ImageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "image": {"required": true, "type": "string", "location": "path"}}, "id": "compute.images.delete", "httpMethod": "DELETE", "path": "{project}/images/{image}", "response": {"$ref": "Operation"}}}}', true));
944
+ $this->firewalls = new Google_FirewallsServiceResource($this, $this->serviceName, 'firewalls', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/firewalls", "id": "compute.firewalls.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.firewalls.get", "httpMethod": "GET", "path": "{project}/firewalls/{firewall}", "response": {"$ref": "Firewall"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.firewalls.list", "httpMethod": "GET", "path": "{project}/firewalls", "response": {"$ref": "FirewallList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "PUT", "path": "{project}/firewalls/{firewall}", "id": "compute.firewalls.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "PATCH", "path": "{project}/firewalls/{firewall}", "id": "compute.firewalls.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.firewalls.delete", "httpMethod": "DELETE", "path": "{project}/firewalls/{firewall}", "response": {"$ref": "Operation"}}}}', true));
945
+ $this->networks = new Google_NetworksServiceResource($this, $this->serviceName, 'networks', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Network"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/networks", "id": "compute.networks.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "network": {"required": true, "type": "string", "location": "path"}}, "id": "compute.networks.get", "httpMethod": "GET", "path": "{project}/networks/{network}", "response": {"$ref": "Network"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.networks.list", "httpMethod": "GET", "path": "{project}/networks", "response": {"$ref": "NetworkList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "network": {"required": true, "type": "string", "location": "path"}}, "id": "compute.networks.delete", "httpMethod": "DELETE", "path": "{project}/networks/{network}", "response": {"$ref": "Operation"}}}}', true));
946
+ $this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"setCommonInstanceMetadata": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Metadata"}, "httpMethod": "POST", "path": "{project}/set-common-instance-metadata", "id": "compute.projects.setCommonInstanceMetadata"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.projects.get", "httpMethod": "GET", "path": "{project}", "response": {"$ref": "Project"}}}}', true));
947
+
948
+ }
949
+ }
950
+
951
+ class Google_AccessConfig extends Google_Model {
952
+ public $kind;
953
+ public $type;
954
+ public $name;
955
+ public $natIP;
956
+ public function setKind($kind) {
957
+ $this->kind = $kind;
958
+ }
959
+ public function getKind() {
960
+ return $this->kind;
961
+ }
962
+ public function setType($type) {
963
+ $this->type = $type;
964
+ }
965
+ public function getType() {
966
+ return $this->type;
967
+ }
968
+ public function setName($name) {
969
+ $this->name = $name;
970
+ }
971
+ public function getName() {
972
+ return $this->name;
973
+ }
974
+ public function setNatIP($natIP) {
975
+ $this->natIP = $natIP;
976
+ }
977
+ public function getNatIP() {
978
+ return $this->natIP;
979
+ }
980
+ }
981
+
982
+ class Google_AttachedDisk extends Google_Model {
983
+ public $deviceName;
984
+ public $kind;
985
+ public $index;
986
+ public $source;
987
+ public $mode;
988
+ public $deleteOnTerminate;
989
+ public $type;
990
+ public function setDeviceName($deviceName) {
991
+ $this->deviceName = $deviceName;
992
+ }
993
+ public function getDeviceName() {
994
+ return $this->deviceName;
995
+ }
996
+ public function setKind($kind) {
997
+ $this->kind = $kind;
998
+ }
999
+ public function getKind() {
1000
+ return $this->kind;
1001
+ }
1002
+ public function setIndex($index) {
1003
+ $this->index = $index;
1004
+ }
1005
+ public function getIndex() {
1006
+ return $this->index;
1007
+ }
1008
+ public function setSource($source) {
1009
+ $this->source = $source;
1010
+ }
1011
+ public function getSource() {
1012
+ return $this->source;
1013
+ }
1014
+ public function setMode($mode) {
1015
+ $this->mode = $mode;
1016
+ }
1017
+ public function getMode() {
1018
+ return $this->mode;
1019
+ }
1020
+ public function setDeleteOnTerminate($deleteOnTerminate) {
1021
+ $this->deleteOnTerminate = $deleteOnTerminate;
1022
+ }
1023
+ public function getDeleteOnTerminate() {
1024
+ return $this->deleteOnTerminate;
1025
+ }
1026
+ public function setType($type) {
1027
+ $this->type = $type;
1028
+ }
1029
+ public function getType() {
1030
+ return $this->type;
1031
+ }
1032
+ }
1033
+
1034
+ class Google_Disk extends Google_Model {
1035
+ public $status;
1036
+ public $sourceSnapshot;
1037
+ public $kind;
1038
+ public $description;
1039
+ public $sizeGb;
1040
+ public $id;
1041
+ public $sourceSnapshotId;
1042
+ public $zone;
1043
+ public $creationTimestamp;
1044
+ public $options;
1045
+ public $selfLink;
1046
+ public $name;
1047
+ public function setStatus($status) {
1048
+ $this->status = $status;
1049
+ }
1050
+ public function getStatus() {
1051
+ return $this->status;
1052
+ }
1053
+ public function setSourceSnapshot($sourceSnapshot) {
1054
+ $this->sourceSnapshot = $sourceSnapshot;
1055
+ }
1056
+ public function getSourceSnapshot() {
1057
+ return $this->sourceSnapshot;
1058
+ }
1059
+ public function setKind($kind) {
1060
+ $this->kind = $kind;
1061
+ }
1062
+ public function getKind() {
1063
+ return $this->kind;
1064
+ }
1065
+ public function setDescription($description) {
1066
+ $this->description = $description;
1067
+ }
1068
+ public function getDescription() {
1069
+ return $this->description;
1070
+ }
1071
+ public function setSizeGb($sizeGb) {
1072
+ $this->sizeGb = $sizeGb;
1073
+ }
1074
+ public function getSizeGb() {
1075
+ return $this->sizeGb;
1076
+ }
1077
+ public function setId($id) {
1078
+ $this->id = $id;
1079
+ }
1080
+ public function getId() {
1081
+ return $this->id;
1082
+ }
1083
+ public function setSourceSnapshotId($sourceSnapshotId) {
1084
+ $this->sourceSnapshotId = $sourceSnapshotId;
1085
+ }
1086
+ public function getSourceSnapshotId() {
1087
+ return $this->sourceSnapshotId;
1088
+ }
1089
+ public function setZone($zone) {
1090
+ $this->zone = $zone;
1091
+ }
1092
+ public function getZone() {
1093
+ return $this->zone;
1094
+ }
1095
+ public function setCreationTimestamp($creationTimestamp) {
1096
+ $this->creationTimestamp = $creationTimestamp;
1097
+ }
1098
+ public function getCreationTimestamp() {
1099
+ return $this->creationTimestamp;
1100
+ }
1101
+ public function setOptions($options) {
1102
+ $this->options = $options;
1103
+ }
1104
+ public function getOptions() {
1105
+ return $this->options;
1106
+ }
1107
+ public function setSelfLink($selfLink) {
1108
+ $this->selfLink = $selfLink;
1109
+ }
1110
+ public function getSelfLink() {
1111
+ return $this->selfLink;
1112
+ }
1113
+ public function setName($name) {
1114
+ $this->name = $name;
1115
+ }
1116
+ public function getName() {
1117
+ return $this->name;
1118
+ }
1119
+ }
1120
+
1121
+ class Google_DiskList extends Google_Model {
1122
+ public $nextPageToken;
1123
+ protected $__itemsType = 'Google_Disk';
1124
+ protected $__itemsDataType = 'array';
1125
+ public $items;
1126
+ public $kind;
1127
+ public $id;
1128
+ public $selfLink;
1129
+ public function setNextPageToken($nextPageToken) {
1130
+ $this->nextPageToken = $nextPageToken;
1131
+ }
1132
+ public function getNextPageToken() {
1133
+ return $this->nextPageToken;
1134
+ }
1135
+ public function setItems($items) {
1136
+ $this->assertIsArray($items, 'Google_Disk', __METHOD__);
1137
+ $this->items = $items;
1138
+ }
1139
+ public function getItems() {
1140
+ return $this->items;
1141
+ }
1142
+ public function setKind($kind) {
1143
+ $this->kind = $kind;
1144
+ }
1145
+ public function getKind() {
1146
+ return $this->kind;
1147
+ }
1148
+ public function setId($id) {
1149
+ $this->id = $id;
1150
+ }
1151
+ public function getId() {
1152
+ return $this->id;
1153
+ }
1154
+ public function setSelfLink($selfLink) {
1155
+ $this->selfLink = $selfLink;
1156
+ }
1157
+ public function getSelfLink() {
1158
+ return $this->selfLink;
1159
+ }
1160
+ }
1161
+
1162
+ class Google_Firewall extends Google_Model {
1163
+ public $kind;
1164
+ public $description;
1165
+ public $sourceTags;
1166
+ public $sourceRanges;
1167
+ public $network;
1168
+ public $targetTags;
1169
+ protected $__allowedType = 'Google_FirewallAllowed';
1170
+ protected $__allowedDataType = 'array';
1171
+ public $allowed;
1172
+ public $creationTimestamp;
1173
+ public $id;
1174
+ public $selfLink;
1175
+ public $name;
1176
+ public function setKind($kind) {
1177
+ $this->kind = $kind;
1178
+ }
1179
+ public function getKind() {
1180
+ return $this->kind;
1181
+ }
1182
+ public function setDescription($description) {
1183
+ $this->description = $description;
1184
+ }
1185
+ public function getDescription() {
1186
+ return $this->description;
1187
+ }
1188
+ public function setSourceTags($sourceTags) {
1189
+ $this->sourceTags = $sourceTags;
1190
+ }
1191
+ public function getSourceTags() {
1192
+ return $this->sourceTags;
1193
+ }
1194
+ public function setSourceRanges($sourceRanges) {
1195
+ $this->sourceRanges = $sourceRanges;
1196
+ }
1197
+ public function getSourceRanges() {
1198
+ return $this->sourceRanges;
1199
+ }
1200
+ public function setNetwork($network) {
1201
+ $this->network = $network;
1202
+ }
1203
+ public function getNetwork() {
1204
+ return $this->network;
1205
+ }
1206
+ public function setTargetTags($targetTags) {
1207
+ $this->targetTags = $targetTags;
1208
+ }
1209
+ public function getTargetTags() {
1210
+ return $this->targetTags;
1211
+ }
1212
+ public function setAllowed($allowed) {
1213
+ $this->assertIsArray($allowed, 'Google_FirewallAllowed', __METHOD__);
1214
+ $this->allowed = $allowed;
1215
+ }
1216
+ public function getAllowed() {
1217
+ return $this->allowed;
1218
+ }
1219
+ public function setCreationTimestamp($creationTimestamp) {
1220
+ $this->creationTimestamp = $creationTimestamp;
1221
+ }
1222
+ public function getCreationTimestamp() {
1223
+ return $this->creationTimestamp;
1224
+ }
1225
+ public function setId($id) {
1226
+ $this->id = $id;
1227
+ }
1228
+ public function getId() {
1229
+ return $this->id;
1230
+ }
1231
+ public function setSelfLink($selfLink) {
1232
+ $this->selfLink = $selfLink;
1233
+ }
1234
+ public function getSelfLink() {
1235
+ return $this->selfLink;
1236
+ }
1237
+ public function setName($name) {
1238
+ $this->name = $name;
1239
+ }
1240
+ public function getName() {
1241
+ return $this->name;
1242
+ }
1243
+ }
1244
+
1245
+ class Google_FirewallAllowed extends Google_Model {
1246
+ public $IPProtocol;
1247
+ public $ports;
1248
+ public function setIPProtocol($IPProtocol) {
1249
+ $this->IPProtocol = $IPProtocol;
1250
+ }
1251
+ public function getIPProtocol() {
1252
+ return $this->IPProtocol;
1253
+ }
1254
+ public function setPorts($ports) {
1255
+ $this->ports = $ports;
1256
+ }
1257
+ public function getPorts() {
1258
+ return $this->ports;
1259
+ }
1260
+ }
1261
+
1262
+ class Google_FirewallList extends Google_Model {
1263
+ public $nextPageToken;
1264
+ protected $__itemsType = 'Google_Firewall';
1265
+ protected $__itemsDataType = 'array';
1266
+ public $items;
1267
+ public $kind;
1268
+ public $id;
1269
+ public $selfLink;
1270
+ public function setNextPageToken($nextPageToken) {
1271
+ $this->nextPageToken = $nextPageToken;
1272
+ }
1273
+ public function getNextPageToken() {
1274
+ return $this->nextPageToken;
1275
+ }
1276
+ public function setItems($items) {
1277
+ $this->assertIsArray($items, 'Google_Firewall', __METHOD__);
1278
+ $this->items = $items;
1279
+ }
1280
+ public function getItems() {
1281
+ return $this->items;
1282
+ }
1283
+ public function setKind($kind) {
1284
+ $this->kind = $kind;
1285
+ }
1286
+ public function getKind() {
1287
+ return $this->kind;
1288
+ }
1289
+ public function setId($id) {
1290
+ $this->id = $id;
1291
+ }
1292
+ public function getId() {
1293
+ return $this->id;
1294
+ }
1295
+ public function setSelfLink($selfLink) {
1296
+ $this->selfLink = $selfLink;
1297
+ }
1298
+ public function getSelfLink() {
1299
+ return $this->selfLink;
1300
+ }
1301
+ }
1302
+
1303
+ class Google_Image extends Google_Model {
1304
+ public $kind;
1305
+ public $description;
1306
+ protected $__rawDiskType = 'Google_ImageRawDisk';
1307
+ protected $__rawDiskDataType = '';
1308
+ public $rawDisk;
1309
+ public $preferredKernel;
1310
+ protected $__diskSnapshotType = 'Google_ImageDiskSnapshot';
1311
+ protected $__diskSnapshotDataType = '';
1312
+ public $diskSnapshot;
1313
+ public $sourceType;
1314
+ public $creationTimestamp;
1315
+ public $id;
1316
+ public $selfLink;
1317
+ public $name;
1318
+ public function setKind($kind) {
1319
+ $this->kind = $kind;
1320
+ }
1321
+ public function getKind() {
1322
+ return $this->kind;
1323
+ }
1324
+ public function setDescription($description) {
1325
+ $this->description = $description;
1326
+ }
1327
+ public function getDescription() {
1328
+ return $this->description;
1329
+ }
1330
+ public function setRawDisk(Google_ImageRawDisk $rawDisk) {
1331
+ $this->rawDisk = $rawDisk;
1332
+ }
1333
+ public function getRawDisk() {
1334
+ return $this->rawDisk;
1335
+ }
1336
+ public function setPreferredKernel($preferredKernel) {
1337
+ $this->preferredKernel = $preferredKernel;
1338
+ }
1339
+ public function getPreferredKernel() {
1340
+ return $this->preferredKernel;
1341
+ }
1342
+ public function setDiskSnapshot(Google_ImageDiskSnapshot $diskSnapshot) {
1343
+ $this->diskSnapshot = $diskSnapshot;
1344
+ }
1345
+ public function getDiskSnapshot() {
1346
+ return $this->diskSnapshot;
1347
+ }
1348
+ public function setSourceType($sourceType) {
1349
+ $this->sourceType = $sourceType;
1350
+ }
1351
+ public function getSourceType() {
1352
+ return $this->sourceType;
1353
+ }
1354
+ public function setCreationTimestamp($creationTimestamp) {
1355
+ $this->creationTimestamp = $creationTimestamp;
1356
+ }
1357
+ public function getCreationTimestamp() {
1358
+ return $this->creationTimestamp;
1359
+ }
1360
+ public function setId($id) {
1361
+ $this->id = $id;
1362
+ }
1363
+ public function getId() {
1364
+ return $this->id;
1365
+ }
1366
+ public function setSelfLink($selfLink) {
1367
+ $this->selfLink = $selfLink;
1368
+ }
1369
+ public function getSelfLink() {
1370
+ return $this->selfLink;
1371
+ }
1372
+ public function setName($name) {
1373
+ $this->name = $name;
1374
+ }
1375
+ public function getName() {
1376
+ return $this->name;
1377
+ }
1378
+ }
1379
+
1380
+ class Google_ImageDiskSnapshot extends Google_Model {
1381
+ public $source;
1382
+ public function setSource($source) {
1383
+ $this->source = $source;
1384
+ }
1385
+ public function getSource() {
1386
+ return $this->source;
1387
+ }
1388
+ }
1389
+
1390
+ class Google_ImageList extends Google_Model {
1391
+ public $nextPageToken;
1392
+ protected $__itemsType = 'Google_Image';
1393
+ protected $__itemsDataType = 'array';
1394
+ public $items;
1395
+ public $kind;
1396
+ public $id;
1397
+ public $selfLink;
1398
+ public function setNextPageToken($nextPageToken) {
1399
+ $this->nextPageToken = $nextPageToken;
1400
+ }
1401
+ public function getNextPageToken() {
1402
+ return $this->nextPageToken;
1403
+ }
1404
+ public function setItems($items) {
1405
+ $this->assertIsArray($items, 'Google_Image', __METHOD__);
1406
+ $this->items = $items;
1407
+ }
1408
+ public function getItems() {
1409
+ return $this->items;
1410
+ }
1411
+ public function setKind($kind) {
1412
+ $this->kind = $kind;
1413
+ }
1414
+ public function getKind() {
1415
+ return $this->kind;
1416
+ }
1417
+ public function setId($id) {
1418
+ $this->id = $id;
1419
+ }
1420
+ public function getId() {
1421
+ return $this->id;
1422
+ }
1423
+ public function setSelfLink($selfLink) {
1424
+ $this->selfLink = $selfLink;
1425
+ }
1426
+ public function getSelfLink() {
1427
+ return $this->selfLink;
1428
+ }
1429
+ }
1430
+
1431
+ class Google_ImageRawDisk extends Google_Model {
1432
+ public $containerType;
1433
+ public $source;
1434
+ public $sha1Checksum;
1435
+ public function setContainerType($containerType) {
1436
+ $this->containerType = $containerType;
1437
+ }
1438
+ public function getContainerType() {
1439
+ return $this->containerType;
1440
+ }
1441
+ public function setSource($source) {
1442
+ $this->source = $source;
1443
+ }
1444
+ public function getSource() {
1445
+ return $this->source;
1446
+ }
1447
+ public function setSha1Checksum($sha1Checksum) {
1448
+ $this->sha1Checksum = $sha1Checksum;
1449
+ }
1450
+ public function getSha1Checksum() {
1451
+ return $this->sha1Checksum;
1452
+ }
1453
+ }
1454
+
1455
+ class Google_Instance extends Google_Model {
1456
+ public $status;
1457
+ public $kind;
1458
+ public $machineType;
1459
+ public $description;
1460
+ public $zone;
1461
+ public $tags;
1462
+ public $image;
1463
+ protected $__disksType = 'Google_AttachedDisk';
1464
+ protected $__disksDataType = 'array';
1465
+ public $disks;
1466
+ public $name;
1467
+ public $statusMessage;
1468
+ protected $__serviceAccountsType = 'Google_ServiceAccount';
1469
+ protected $__serviceAccountsDataType = 'array';
1470
+ public $serviceAccounts;
1471
+ protected $__networkInterfacesType = 'Google_NetworkInterface';
1472
+ protected $__networkInterfacesDataType = 'array';
1473
+ public $networkInterfaces;
1474
+ public $creationTimestamp;
1475
+ public $id;
1476
+ public $selfLink;
1477
+ protected $__metadataType = 'Google_Metadata';
1478
+ protected $__metadataDataType = '';
1479
+ public $metadata;
1480
+ public function setStatus($status) {
1481
+ $this->status = $status;
1482
+ }
1483
+ public function getStatus() {
1484
+ return $this->status;
1485
+ }
1486
+ public function setKind($kind) {
1487
+ $this->kind = $kind;
1488
+ }
1489
+ public function getKind() {
1490
+ return $this->kind;
1491
+ }
1492
+ public function setMachineType($machineType) {
1493
+ $this->machineType = $machineType;
1494
+ }
1495
+ public function getMachineType() {
1496
+ return $this->machineType;
1497
+ }
1498
+ public function setDescription($description) {
1499
+ $this->description = $description;
1500
+ }
1501
+ public function getDescription() {
1502
+ return $this->description;
1503
+ }
1504
+ public function setZone($zone) {
1505
+ $this->zone = $zone;
1506
+ }
1507
+ public function getZone() {
1508
+ return $this->zone;
1509
+ }
1510
+ public function setTags($tags) {
1511
+ $this->tags = $tags;
1512
+ }
1513
+ public function getTags() {
1514
+ return $this->tags;
1515
+ }
1516
+ public function setImage($image) {
1517
+ $this->image = $image;
1518
+ }
1519
+ public function getImage() {
1520
+ return $this->image;
1521
+ }
1522
+ public function setDisks($disks) {
1523
+ $this->assertIsArray($disks, 'Google_AttachedDisk', __METHOD__);
1524
+ $this->disks = $disks;
1525
+ }
1526
+ public function getDisks() {
1527
+ return $this->disks;
1528
+ }
1529
+ public function setName($name) {
1530
+ $this->name = $name;
1531
+ }
1532
+ public function getName() {
1533
+ return $this->name;
1534
+ }
1535
+ public function setStatusMessage($statusMessage) {
1536
+ $this->statusMessage = $statusMessage;
1537
+ }
1538
+ public function getStatusMessage() {
1539
+ return $this->statusMessage;
1540
+ }
1541
+ public function setServiceAccounts($serviceAccounts) {
1542
+ $this->assertIsArray($serviceAccounts, 'Google_ServiceAccount', __METHOD__);
1543
+ $this->serviceAccounts = $serviceAccounts;
1544
+ }
1545
+ public function getServiceAccounts() {
1546
+ return $this->serviceAccounts;
1547
+ }
1548
+ public function setNetworkInterfaces($networkInterfaces) {
1549
+ $this->assertIsArray($networkInterfaces, 'Google_NetworkInterface', __METHOD__);
1550
+ $this->networkInterfaces = $networkInterfaces;
1551
+ }
1552
+ public function getNetworkInterfaces() {
1553
+ return $this->networkInterfaces;
1554
+ }
1555
+ public function setCreationTimestamp($creationTimestamp) {
1556
+ $this->creationTimestamp = $creationTimestamp;
1557
+ }
1558
+ public function getCreationTimestamp() {
1559
+ return $this->creationTimestamp;
1560
+ }
1561
+ public function setId($id) {
1562
+ $this->id = $id;
1563
+ }
1564
+ public function getId() {
1565
+ return $this->id;
1566
+ }
1567
+ public function setSelfLink($selfLink) {
1568
+ $this->selfLink = $selfLink;
1569
+ }
1570
+ public function getSelfLink() {
1571
+ return $this->selfLink;
1572
+ }
1573
+ public function setMetadata(Google_Metadata $metadata) {
1574
+ $this->metadata = $metadata;
1575
+ }
1576
+ public function getMetadata() {
1577
+ return $this->metadata;
1578
+ }
1579
+ }
1580
+
1581
+ class Google_InstanceList extends Google_Model {
1582
+ public $nextPageToken;
1583
+ protected $__itemsType = 'Google_Instance';
1584
+ protected $__itemsDataType = 'array';
1585
+ public $items;
1586
+ public $kind;
1587
+ public $id;
1588
+ public $selfLink;
1589
+ public function setNextPageToken($nextPageToken) {
1590
+ $this->nextPageToken = $nextPageToken;
1591
+ }
1592
+ public function getNextPageToken() {
1593
+ return $this->nextPageToken;
1594
+ }
1595
+ public function setItems($items) {
1596
+ $this->assertIsArray($items, 'Google_Instance', __METHOD__);
1597
+ $this->items = $items;
1598
+ }
1599
+ public function getItems() {
1600
+ return $this->items;
1601
+ }
1602
+ public function setKind($kind) {
1603
+ $this->kind = $kind;
1604
+ }
1605
+ public function getKind() {
1606
+ return $this->kind;
1607
+ }
1608
+ public function setId($id) {
1609
+ $this->id = $id;
1610
+ }
1611
+ public function getId() {
1612
+ return $this->id;
1613
+ }
1614
+ public function setSelfLink($selfLink) {
1615
+ $this->selfLink = $selfLink;
1616
+ }
1617
+ public function getSelfLink() {
1618
+ return $this->selfLink;
1619
+ }
1620
+ }
1621
+
1622
+ class Google_Kernel extends Google_Model {
1623
+ public $kind;
1624
+ public $description;
1625
+ public $creationTimestamp;
1626
+ public $id;
1627
+ public $selfLink;
1628
+ public $name;
1629
+ public function setKind($kind) {
1630
+ $this->kind = $kind;
1631
+ }
1632
+ public function getKind() {
1633
+ return $this->kind;
1634
+ }
1635
+ public function setDescription($description) {
1636
+ $this->description = $description;
1637
+ }
1638
+ public function getDescription() {
1639
+ return $this->description;
1640
+ }
1641
+ public function setCreationTimestamp($creationTimestamp) {
1642
+ $this->creationTimestamp = $creationTimestamp;
1643
+ }
1644
+ public function getCreationTimestamp() {
1645
+ return $this->creationTimestamp;
1646
+ }
1647
+ public function setId($id) {
1648
+ $this->id = $id;
1649
+ }
1650
+ public function getId() {
1651
+ return $this->id;
1652
+ }
1653
+ public function setSelfLink($selfLink) {
1654
+ $this->selfLink = $selfLink;
1655
+ }
1656
+ public function getSelfLink() {
1657
+ return $this->selfLink;
1658
+ }
1659
+ public function setName($name) {
1660
+ $this->name = $name;
1661
+ }
1662
+ public function getName() {
1663
+ return $this->name;
1664
+ }
1665
+ }
1666
+
1667
+ class Google_KernelList extends Google_Model {
1668
+ public $nextPageToken;
1669
+ protected $__itemsType = 'Google_Kernel';
1670
+ protected $__itemsDataType = 'array';
1671
+ public $items;
1672
+ public $kind;
1673
+ public $id;
1674
+ public $selfLink;
1675
+ public function setNextPageToken($nextPageToken) {
1676
+ $this->nextPageToken = $nextPageToken;
1677
+ }
1678
+ public function getNextPageToken() {
1679
+ return $this->nextPageToken;
1680
+ }
1681
+ public function setItems($items) {
1682
+ $this->assertIsArray($items, 'Google_Kernel', __METHOD__);
1683
+ $this->items = $items;
1684
+ }
1685
+ public function getItems() {
1686
+ return $this->items;
1687
+ }
1688
+ public function setKind($kind) {
1689
+ $this->kind = $kind;
1690
+ }
1691
+ public function getKind() {
1692
+ return $this->kind;
1693
+ }
1694
+ public function setId($id) {
1695
+ $this->id = $id;
1696
+ }
1697
+ public function getId() {
1698
+ return $this->id;
1699
+ }
1700
+ public function setSelfLink($selfLink) {
1701
+ $this->selfLink = $selfLink;
1702
+ }
1703
+ public function getSelfLink() {
1704
+ return $this->selfLink;
1705
+ }
1706
+ }
1707
+
1708
+ class Google_MachineType extends Google_Model {
1709
+ public $guestCpus;
1710
+ public $imageSpaceGb;
1711
+ public $kind;
1712
+ protected $__ephemeralDisksType = 'Google_MachineTypeEphemeralDisks';
1713
+ protected $__ephemeralDisksDataType = 'array';
1714
+ public $ephemeralDisks;
1715
+ public $maximumPersistentDisksSizeGb;
1716
+ public $description;
1717
+ public $maximumPersistentDisks;
1718
+ public $name;
1719
+ public $memoryMb;
1720
+ public $availableZone;
1721
+ public $creationTimestamp;
1722
+ public $id;
1723
+ public $selfLink;
1724
+ public $hostCpus;
1725
+ public function setGuestCpus($guestCpus) {
1726
+ $this->guestCpus = $guestCpus;
1727
+ }
1728
+ public function getGuestCpus() {
1729
+ return $this->guestCpus;
1730
+ }
1731
+ public function setImageSpaceGb($imageSpaceGb) {
1732
+ $this->imageSpaceGb = $imageSpaceGb;
1733
+ }
1734
+ public function getImageSpaceGb() {
1735
+ return $this->imageSpaceGb;
1736
+ }
1737
+ public function setKind($kind) {
1738
+ $this->kind = $kind;
1739
+ }
1740
+ public function getKind() {
1741
+ return $this->kind;
1742
+ }
1743
+ public function setEphemeralDisks($ephemeralDisks) {
1744
+ $this->assertIsArray($ephemeralDisks, 'Google_MachineTypeEphemeralDisks', __METHOD__);
1745
+ $this->ephemeralDisks = $ephemeralDisks;
1746
+ }
1747
+ public function getEphemeralDisks() {
1748
+ return $this->ephemeralDisks;
1749
+ }
1750
+ public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) {
1751
+ $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb;
1752
+ }
1753
+ public function getMaximumPersistentDisksSizeGb() {
1754
+ return $this->maximumPersistentDisksSizeGb;
1755
+ }
1756
+ public function setDescription($description) {
1757
+ $this->description = $description;
1758
+ }
1759
+ public function getDescription() {
1760
+ return $this->description;
1761
+ }
1762
+ public function setMaximumPersistentDisks($maximumPersistentDisks) {
1763
+ $this->maximumPersistentDisks = $maximumPersistentDisks;
1764
+ }
1765
+ public function getMaximumPersistentDisks() {
1766
+ return $this->maximumPersistentDisks;
1767
+ }
1768
+ public function setName($name) {
1769
+ $this->name = $name;
1770
+ }
1771
+ public function getName() {
1772
+ return $this->name;
1773
+ }
1774
+ public function setMemoryMb($memoryMb) {
1775
+ $this->memoryMb = $memoryMb;
1776
+ }
1777
+ public function getMemoryMb() {
1778
+ return $this->memoryMb;
1779
+ }
1780
+ public function setAvailableZone($availableZone) {
1781
+ $this->availableZone = $availableZone;
1782
+ }
1783
+ public function getAvailableZone() {
1784
+ return $this->availableZone;
1785
+ }
1786
+ public function setCreationTimestamp($creationTimestamp) {
1787
+ $this->creationTimestamp = $creationTimestamp;
1788
+ }
1789
+ public function getCreationTimestamp() {
1790
+ return $this->creationTimestamp;
1791
+ }
1792
+ public function setId($id) {
1793
+ $this->id = $id;
1794
+ }
1795
+ public function getId() {
1796
+ return $this->id;
1797
+ }
1798
+ public function setSelfLink($selfLink) {
1799
+ $this->selfLink = $selfLink;
1800
+ }
1801
+ public function getSelfLink() {
1802
+ return $this->selfLink;
1803
+ }
1804
+ public function setHostCpus($hostCpus) {
1805
+ $this->hostCpus = $hostCpus;
1806
+ }
1807
+ public function getHostCpus() {
1808
+ return $this->hostCpus;
1809
+ }
1810
+ }
1811
+
1812
+ class Google_MachineTypeEphemeralDisks extends Google_Model {
1813
+ public $diskGb;
1814
+ public function setDiskGb($diskGb) {
1815
+ $this->diskGb = $diskGb;
1816
+ }
1817
+ public function getDiskGb() {
1818
+ return $this->diskGb;
1819
+ }
1820
+ }
1821
+
1822
+ class Google_MachineTypeList extends Google_Model {
1823
+ public $nextPageToken;
1824
+ protected $__itemsType = 'Google_MachineType';
1825
+ protected $__itemsDataType = 'array';
1826
+ public $items;
1827
+ public $kind;
1828
+ public $id;
1829
+ public $selfLink;
1830
+ public function setNextPageToken($nextPageToken) {
1831
+ $this->nextPageToken = $nextPageToken;
1832
+ }
1833
+ public function getNextPageToken() {
1834
+ return $this->nextPageToken;
1835
+ }
1836
+ public function setItems($items) {
1837
+ $this->assertIsArray($items, 'Google_MachineType', __METHOD__);
1838
+ $this->items = $items;
1839
+ }
1840
+ public function getItems() {
1841
+ return $this->items;
1842
+ }
1843
+ public function setKind($kind) {
1844
+ $this->kind = $kind;
1845
+ }
1846
+ public function getKind() {
1847
+ return $this->kind;
1848
+ }
1849
+ public function setId($id) {
1850
+ $this->id = $id;
1851
+ }
1852
+ public function getId() {
1853
+ return $this->id;
1854
+ }
1855
+ public function setSelfLink($selfLink) {
1856
+ $this->selfLink = $selfLink;
1857
+ }
1858
+ public function getSelfLink() {
1859
+ return $this->selfLink;
1860
+ }
1861
+ }
1862
+
1863
+ class Google_Metadata extends Google_Model {
1864
+ protected $__itemsType = 'Google_MetadataItems';
1865
+ protected $__itemsDataType = 'array';
1866
+ public $items;
1867
+ public $kind;
1868
+ public function setItems($items) {
1869
+ $this->assertIsArray($items, 'Google_MetadataItems', __METHOD__);
1870
+ $this->items = $items;
1871
+ }
1872
+ public function getItems() {
1873
+ return $this->items;
1874
+ }
1875
+ public function setKind($kind) {
1876
+ $this->kind = $kind;
1877
+ }
1878
+ public function getKind() {
1879
+ return $this->kind;
1880
+ }
1881
+ }
1882
+
1883
+ class Google_MetadataItems extends Google_Model {
1884
+ public $value;
1885
+ public $key;
1886
+ public function setValue($value) {
1887
+ $this->value = $value;
1888
+ }
1889
+ public function getValue() {
1890
+ return $this->value;
1891
+ }
1892
+ public function setKey($key) {
1893
+ $this->key = $key;
1894
+ }
1895
+ public function getKey() {
1896
+ return $this->key;
1897
+ }
1898
+ }
1899
+
1900
+ class Google_Network extends Google_Model {
1901
+ public $kind;
1902
+ public $description;
1903
+ public $IPv4Range;
1904
+ public $gatewayIPv4;
1905
+ public $creationTimestamp;
1906
+ public $id;
1907
+ public $selfLink;
1908
+ public $name;
1909
+ public function setKind($kind) {
1910
+ $this->kind = $kind;
1911
+ }
1912
+ public function getKind() {
1913
+ return $this->kind;
1914
+ }
1915
+ public function setDescription($description) {
1916
+ $this->description = $description;
1917
+ }
1918
+ public function getDescription() {
1919
+ return $this->description;
1920
+ }
1921
+ public function setIPv4Range($IPv4Range) {
1922
+ $this->IPv4Range = $IPv4Range;
1923
+ }
1924
+ public function getIPv4Range() {
1925
+ return $this->IPv4Range;
1926
+ }
1927
+ public function setGatewayIPv4($gatewayIPv4) {
1928
+ $this->gatewayIPv4 = $gatewayIPv4;
1929
+ }
1930
+ public function getGatewayIPv4() {
1931
+ return $this->gatewayIPv4;
1932
+ }
1933
+ public function setCreationTimestamp($creationTimestamp) {
1934
+ $this->creationTimestamp = $creationTimestamp;
1935
+ }
1936
+ public function getCreationTimestamp() {
1937
+ return $this->creationTimestamp;
1938
+ }
1939
+ public function setId($id) {
1940
+ $this->id = $id;
1941
+ }
1942
+ public function getId() {
1943
+ return $this->id;
1944
+ }
1945
+ public function setSelfLink($selfLink) {
1946
+ $this->selfLink = $selfLink;
1947
+ }
1948
+ public function getSelfLink() {
1949
+ return $this->selfLink;
1950
+ }
1951
+ public function setName($name) {
1952
+ $this->name = $name;
1953
+ }
1954
+ public function getName() {
1955
+ return $this->name;
1956
+ }
1957
+ }
1958
+
1959
+ class Google_NetworkInterface extends Google_Model {
1960
+ public $network;
1961
+ protected $__accessConfigsType = 'Google_AccessConfig';
1962
+ protected $__accessConfigsDataType = 'array';
1963
+ public $accessConfigs;
1964
+ public $networkIP;
1965
+ public $kind;
1966
+ public $name;
1967
+ public function setNetwork($network) {
1968
+ $this->network = $network;
1969
+ }
1970
+ public function getNetwork() {
1971
+ return $this->network;
1972
+ }
1973
+ public function setAccessConfigs($accessConfigs) {
1974
+ $this->assertIsArray($accessConfigs, 'Google_AccessConfig', __METHOD__);
1975
+ $this->accessConfigs = $accessConfigs;
1976
+ }
1977
+ public function getAccessConfigs() {
1978
+ return $this->accessConfigs;
1979
+ }
1980
+ public function setNetworkIP($networkIP) {
1981
+ $this->networkIP = $networkIP;
1982
+ }
1983
+ public function getNetworkIP() {
1984
+ return $this->networkIP;
1985
+ }
1986
+ public function setKind($kind) {
1987
+ $this->kind = $kind;
1988
+ }
1989
+ public function getKind() {
1990
+ return $this->kind;
1991
+ }
1992
+ public function setName($name) {
1993
+ $this->name = $name;
1994
+ }
1995
+ public function getName() {
1996
+ return $this->name;
1997
+ }
1998
+ }
1999
+
2000
+ class Google_NetworkList extends Google_Model {
2001
+ public $nextPageToken;
2002
+ protected $__itemsType = 'Google_Network';
2003
+ protected $__itemsDataType = 'array';
2004
+ public $items;
2005
+ public $kind;
2006
+ public $id;
2007
+ public $selfLink;
2008
+ public function setNextPageToken($nextPageToken) {
2009
+ $this->nextPageToken = $nextPageToken;
2010
+ }
2011
+ public function getNextPageToken() {
2012
+ return $this->nextPageToken;
2013
+ }
2014
+ public function setItems($items) {
2015
+ $this->assertIsArray($items, 'Google_Network', __METHOD__);
2016
+ $this->items = $items;
2017
+ }
2018
+ public function getItems() {
2019
+ return $this->items;
2020
+ }
2021
+ public function setKind($kind) {
2022
+ $this->kind = $kind;
2023
+ }
2024
+ public function getKind() {
2025
+ return $this->kind;
2026
+ }
2027
+ public function setId($id) {
2028
+ $this->id = $id;
2029
+ }
2030
+ public function getId() {
2031
+ return $this->id;
2032
+ }
2033
+ public function setSelfLink($selfLink) {
2034
+ $this->selfLink = $selfLink;
2035
+ }
2036
+ public function getSelfLink() {
2037
+ return $this->selfLink;
2038
+ }
2039
+ }
2040
+
2041
+ class Google_Operation extends Google_Model {
2042
+ public $status;
2043
+ public $kind;
2044
+ public $name;
2045
+ public $startTime;
2046
+ public $httpErrorStatusCode;
2047
+ public $user;
2048
+ protected $__errorType = 'Google_OperationError';
2049
+ protected $__errorDataType = '';
2050
+ public $error;
2051
+ public $targetId;
2052
+ public $operationType;
2053
+ public $statusMessage;
2054
+ public $insertTime;
2055
+ public $httpErrorMessage;
2056
+ public $progress;
2057
+ public $clientOperationId;
2058
+ public $endTime;
2059
+ public $creationTimestamp;
2060
+ public $id;
2061
+ public $selfLink;
2062
+ public $targetLink;
2063
+ public function setStatus($status) {
2064
+ $this->status = $status;
2065
+ }
2066
+ public function getStatus() {
2067
+ return $this->status;
2068
+ }
2069
+ public function setKind($kind) {
2070
+ $this->kind = $kind;
2071
+ }
2072
+ public function getKind() {
2073
+ return $this->kind;
2074
+ }
2075
+ public function setName($name) {
2076
+ $this->name = $name;
2077
+ }
2078
+ public function getName() {
2079
+ return $this->name;
2080
+ }
2081
+ public function setStartTime($startTime) {
2082
+ $this->startTime = $startTime;
2083
+ }
2084
+ public function getStartTime() {
2085
+ return $this->startTime;
2086
+ }
2087
+ public function setHttpErrorStatusCode($httpErrorStatusCode) {
2088
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
2089
+ }
2090
+ public function getHttpErrorStatusCode() {
2091
+ return $this->httpErrorStatusCode;
2092
+ }
2093
+ public function setUser($user) {
2094
+ $this->user = $user;
2095
+ }
2096
+ public function getUser() {
2097
+ return $this->user;
2098
+ }
2099
+ public function setError(Google_OperationError $error) {
2100
+ $this->error = $error;
2101
+ }
2102
+ public function getError() {
2103
+ return $this->error;
2104
+ }
2105
+ public function setTargetId($targetId) {
2106
+ $this->targetId = $targetId;
2107
+ }
2108
+ public function getTargetId() {
2109
+ return $this->targetId;
2110
+ }
2111
+ public function setOperationType($operationType) {
2112
+ $this->operationType = $operationType;
2113
+ }
2114
+ public function getOperationType() {
2115
+ return $this->operationType;
2116
+ }
2117
+ public function setStatusMessage($statusMessage) {
2118
+ $this->statusMessage = $statusMessage;
2119
+ }
2120
+ public function getStatusMessage() {
2121
+ return $this->statusMessage;
2122
+ }
2123
+ public function setInsertTime($insertTime) {
2124
+ $this->insertTime = $insertTime;
2125
+ }
2126
+ public function getInsertTime() {
2127
+ return $this->insertTime;
2128
+ }
2129
+ public function setHttpErrorMessage($httpErrorMessage) {
2130
+ $this->httpErrorMessage = $httpErrorMessage;
2131
+ }
2132
+ public function getHttpErrorMessage() {
2133
+ return $this->httpErrorMessage;
2134
+ }
2135
+ public function setProgress($progress) {
2136
+ $this->progress = $progress;
2137
+ }
2138
+ public function getProgress() {
2139
+ return $this->progress;
2140
+ }
2141
+ public function setClientOperationId($clientOperationId) {
2142
+ $this->clientOperationId = $clientOperationId;
2143
+ }
2144
+ public function getClientOperationId() {
2145
+ return $this->clientOperationId;
2146
+ }
2147
+ public function setEndTime($endTime) {
2148
+ $this->endTime = $endTime;
2149
+ }
2150
+ public function getEndTime() {
2151
+ return $this->endTime;
2152
+ }
2153
+ public function setCreationTimestamp($creationTimestamp) {
2154
+ $this->creationTimestamp = $creationTimestamp;
2155
+ }
2156
+ public function getCreationTimestamp() {
2157
+ return $this->creationTimestamp;
2158
+ }
2159
+ public function setId($id) {
2160
+ $this->id = $id;
2161
+ }
2162
+ public function getId() {
2163
+ return $this->id;
2164
+ }
2165
+ public function setSelfLink($selfLink) {
2166
+ $this->selfLink = $selfLink;
2167
+ }
2168
+ public function getSelfLink() {
2169
+ return $this->selfLink;
2170
+ }
2171
+ public function setTargetLink($targetLink) {
2172
+ $this->targetLink = $targetLink;
2173
+ }
2174
+ public function getTargetLink() {
2175
+ return $this->targetLink;
2176
+ }
2177
+ }
2178
+
2179
+ class Google_OperationError extends Google_Model {
2180
+ protected $__errorsType = 'Google_OperationErrorErrors';
2181
+ protected $__errorsDataType = 'array';
2182
+ public $errors;
2183
+ public function setErrors($errors) {
2184
+ $this->assertIsArray($errors, 'Google_OperationErrorErrors', __METHOD__);
2185
+ $this->errors = $errors;
2186
+ }
2187
+ public function getErrors() {
2188
+ return $this->errors;
2189
+ }
2190
+ }
2191
+
2192
+ class Google_OperationErrorErrors extends Google_Model {
2193
+ public $message;
2194
+ public $code;
2195
+ public $location;
2196
+ public function setMessage($message) {
2197
+ $this->message = $message;
2198
+ }
2199
+ public function getMessage() {
2200
+ return $this->message;
2201
+ }
2202
+ public function setCode($code) {
2203
+ $this->code = $code;
2204
+ }
2205
+ public function getCode() {
2206
+ return $this->code;
2207
+ }
2208
+ public function setLocation($location) {
2209
+ $this->location = $location;
2210
+ }
2211
+ public function getLocation() {
2212
+ return $this->location;
2213
+ }
2214
+ }
2215
+
2216
+ class Google_OperationList extends Google_Model {
2217
+ public $nextPageToken;
2218
+ protected $__itemsType = 'Google_Operation';
2219
+ protected $__itemsDataType = 'array';
2220
+ public $items;
2221
+ public $kind;
2222
+ public $id;
2223
+ public $selfLink;
2224
+ public function setNextPageToken($nextPageToken) {
2225
+ $this->nextPageToken = $nextPageToken;
2226
+ }
2227
+ public function getNextPageToken() {
2228
+ return $this->nextPageToken;
2229
+ }
2230
+ public function setItems($items) {
2231
+ $this->assertIsArray($items, 'Google_Operation', __METHOD__);
2232
+ $this->items = $items;
2233
+ }
2234
+ public function getItems() {
2235
+ return $this->items;
2236
+ }
2237
+ public function setKind($kind) {
2238
+ $this->kind = $kind;
2239
+ }
2240
+ public function getKind() {
2241
+ return $this->kind;
2242
+ }
2243
+ public function setId($id) {
2244
+ $this->id = $id;
2245
+ }
2246
+ public function getId() {
2247
+ return $this->id;
2248
+ }
2249
+ public function setSelfLink($selfLink) {
2250
+ $this->selfLink = $selfLink;
2251
+ }
2252
+ public function getSelfLink() {
2253
+ return $this->selfLink;
2254
+ }
2255
+ }
2256
+
2257
+ class Google_Project extends Google_Model {
2258
+ public $kind;
2259
+ public $description;
2260
+ protected $__commonInstanceMetadataType = 'Google_Metadata';
2261
+ protected $__commonInstanceMetadataDataType = '';
2262
+ public $commonInstanceMetadata;
2263
+ public $externalIpAddresses;
2264
+ protected $__quotasType = 'Google_ProjectQuotas';
2265
+ protected $__quotasDataType = 'array';
2266
+ public $quotas;
2267
+ public $creationTimestamp;
2268
+ public $id;
2269
+ public $selfLink;
2270
+ public $name;
2271
+ public function setKind($kind) {
2272
+ $this->kind = $kind;
2273
+ }
2274
+ public function getKind() {
2275
+ return $this->kind;
2276
+ }
2277
+ public function setDescription($description) {
2278
+ $this->description = $description;
2279
+ }
2280
+ public function getDescription() {
2281
+ return $this->description;
2282
+ }
2283
+ public function setCommonInstanceMetadata(Google_Metadata $commonInstanceMetadata) {
2284
+ $this->commonInstanceMetadata = $commonInstanceMetadata;
2285
+ }
2286
+ public function getCommonInstanceMetadata() {
2287
+ return $this->commonInstanceMetadata;
2288
+ }
2289
+ public function setExternalIpAddresses($externalIpAddresses) {
2290
+ $this->externalIpAddresses = $externalIpAddresses;
2291
+ }
2292
+ public function getExternalIpAddresses() {
2293
+ return $this->externalIpAddresses;
2294
+ }
2295
+ public function setQuotas($quotas) {
2296
+ $this->assertIsArray($quotas, 'Google_ProjectQuotas', __METHOD__);
2297
+ $this->quotas = $quotas;
2298
+ }
2299
+ public function getQuotas() {
2300
+ return $this->quotas;
2301
+ }
2302
+ public function setCreationTimestamp($creationTimestamp) {
2303
+ $this->creationTimestamp = $creationTimestamp;
2304
+ }
2305
+ public function getCreationTimestamp() {
2306
+ return $this->creationTimestamp;
2307
+ }
2308
+ public function setId($id) {
2309
+ $this->id = $id;
2310
+ }
2311
+ public function getId() {
2312
+ return $this->id;
2313
+ }
2314
+ public function setSelfLink($selfLink) {
2315
+ $this->selfLink = $selfLink;
2316
+ }
2317
+ public function getSelfLink() {
2318
+ return $this->selfLink;
2319
+ }
2320
+ public function setName($name) {
2321
+ $this->name = $name;
2322
+ }
2323
+ public function getName() {
2324
+ return $this->name;
2325
+ }
2326
+ }
2327
+
2328
+ class Google_ProjectQuotas extends Google_Model {
2329
+ public $usage;
2330
+ public $metric;
2331
+ public $limit;
2332
+ public function setUsage($usage) {
2333
+ $this->usage = $usage;
2334
+ }
2335
+ public function getUsage() {
2336
+ return $this->usage;
2337
+ }
2338
+ public function setMetric($metric) {
2339
+ $this->metric = $metric;
2340
+ }
2341
+ public function getMetric() {
2342
+ return $this->metric;
2343
+ }
2344
+ public function setLimit($limit) {
2345
+ $this->limit = $limit;
2346
+ }
2347
+ public function getLimit() {
2348
+ return $this->limit;
2349
+ }
2350
+ }
2351
+
2352
+ class Google_ServiceAccount extends Google_Model {
2353
+ public $scopes;
2354
+ public $kind;
2355
+ public $email;
2356
+ public function setScopes($scopes) {
2357
+ $this->scopes = $scopes;
2358
+ }
2359
+ public function getScopes() {
2360
+ return $this->scopes;
2361
+ }
2362
+ public function setKind($kind) {
2363
+ $this->kind = $kind;
2364
+ }
2365
+ public function getKind() {
2366
+ return $this->kind;
2367
+ }
2368
+ public function setEmail($email) {
2369
+ $this->email = $email;
2370
+ }
2371
+ public function getEmail() {
2372
+ return $this->email;
2373
+ }
2374
+ }
2375
+
2376
+ class Google_Snapshot extends Google_Model {
2377
+ public $status;
2378
+ public $kind;
2379
+ public $description;
2380
+ public $sourceDisk;
2381
+ public $sourceDiskId;
2382
+ public $diskSizeGb;
2383
+ public $creationTimestamp;
2384
+ public $id;
2385
+ public $selfLink;
2386
+ public $name;
2387
+ public function setStatus($status) {
2388
+ $this->status = $status;
2389
+ }
2390
+ public function getStatus() {
2391
+ return $this->status;
2392
+ }
2393
+ public function setKind($kind) {
2394
+ $this->kind = $kind;
2395
+ }
2396
+ public function getKind() {
2397
+ return $this->kind;
2398
+ }
2399
+ public function setDescription($description) {
2400
+ $this->description = $description;
2401
+ }
2402
+ public function getDescription() {
2403
+ return $this->description;
2404
+ }
2405
+ public function setSourceDisk($sourceDisk) {
2406
+ $this->sourceDisk = $sourceDisk;
2407
+ }
2408
+ public function getSourceDisk() {
2409
+ return $this->sourceDisk;
2410
+ }
2411
+ public function setSourceDiskId($sourceDiskId) {
2412
+ $this->sourceDiskId = $sourceDiskId;
2413
+ }
2414
+ public function getSourceDiskId() {
2415
+ return $this->sourceDiskId;
2416
+ }
2417
+ public function setDiskSizeGb($diskSizeGb) {
2418
+ $this->diskSizeGb = $diskSizeGb;
2419
+ }
2420
+ public function getDiskSizeGb() {
2421
+ return $this->diskSizeGb;
2422
+ }
2423
+ public function setCreationTimestamp($creationTimestamp) {
2424
+ $this->creationTimestamp = $creationTimestamp;
2425
+ }
2426
+ public function getCreationTimestamp() {
2427
+ return $this->creationTimestamp;
2428
+ }
2429
+ public function setId($id) {
2430
+ $this->id = $id;
2431
+ }
2432
+ public function getId() {
2433
+ return $this->id;
2434
+ }
2435
+ public function setSelfLink($selfLink) {
2436
+ $this->selfLink = $selfLink;
2437
+ }
2438
+ public function getSelfLink() {
2439
+ return $this->selfLink;
2440
+ }
2441
+ public function setName($name) {
2442
+ $this->name = $name;
2443
+ }
2444
+ public function getName() {
2445
+ return $this->name;
2446
+ }
2447
+ }
2448
+
2449
+ class Google_SnapshotList extends Google_Model {
2450
+ public $nextPageToken;
2451
+ protected $__itemsType = 'Google_Snapshot';
2452
+ protected $__itemsDataType = 'array';
2453
+ public $items;
2454
+ public $kind;
2455
+ public $id;
2456
+ public $selfLink;
2457
+ public function setNextPageToken($nextPageToken) {
2458
+ $this->nextPageToken = $nextPageToken;
2459
+ }
2460
+ public function getNextPageToken() {
2461
+ return $this->nextPageToken;
2462
+ }
2463
+ public function setItems($items) {
2464
+ $this->assertIsArray($items, 'Google_Snapshot', __METHOD__);
2465
+ $this->items = $items;
2466
+ }
2467
+ public function getItems() {
2468
+ return $this->items;
2469
+ }
2470
+ public function setKind($kind) {
2471
+ $this->kind = $kind;
2472
+ }
2473
+ public function getKind() {
2474
+ return $this->kind;
2475
+ }
2476
+ public function setId($id) {
2477
+ $this->id = $id;
2478
+ }
2479
+ public function getId() {
2480
+ return $this->id;
2481
+ }
2482
+ public function setSelfLink($selfLink) {
2483
+ $this->selfLink = $selfLink;
2484
+ }
2485
+ public function getSelfLink() {
2486
+ return $this->selfLink;
2487
+ }
2488
+ }
2489
+
2490
+ class Google_Zone extends Google_Model {
2491
+ public $status;
2492
+ public $kind;
2493
+ public $availableMachineType;
2494
+ public $description;
2495
+ protected $__maintenanceWindowsType = 'Google_ZoneMaintenanceWindows';
2496
+ protected $__maintenanceWindowsDataType = 'array';
2497
+ public $maintenanceWindows;
2498
+ public $creationTimestamp;
2499
+ public $id;
2500
+ public $selfLink;
2501
+ public $name;
2502
+ public function setStatus($status) {
2503
+ $this->status = $status;
2504
+ }
2505
+ public function getStatus() {
2506
+ return $this->status;
2507
+ }
2508
+ public function setKind($kind) {
2509
+ $this->kind = $kind;
2510
+ }
2511
+ public function getKind() {
2512
+ return $this->kind;
2513
+ }
2514
+ public function setAvailableMachineType($availableMachineType) {
2515
+ $this->availableMachineType = $availableMachineType;
2516
+ }
2517
+ public function getAvailableMachineType() {
2518
+ return $this->availableMachineType;
2519
+ }
2520
+ public function setDescription($description) {
2521
+ $this->description = $description;
2522
+ }
2523
+ public function getDescription() {
2524
+ return $this->description;
2525
+ }
2526
+ public function setMaintenanceWindows($maintenanceWindows) {
2527
+ $this->assertIsArray($maintenanceWindows, 'Google_ZoneMaintenanceWindows', __METHOD__);
2528
+ $this->maintenanceWindows = $maintenanceWindows;
2529
+ }
2530
+ public function getMaintenanceWindows() {
2531
+ return $this->maintenanceWindows;
2532
+ }
2533
+ public function setCreationTimestamp($creationTimestamp) {
2534
+ $this->creationTimestamp = $creationTimestamp;
2535
+ }
2536
+ public function getCreationTimestamp() {
2537
+ return $this->creationTimestamp;
2538
+ }
2539
+ public function setId($id) {
2540
+ $this->id = $id;
2541
+ }
2542
+ public function getId() {
2543
+ return $this->id;
2544
+ }
2545
+ public function setSelfLink($selfLink) {
2546
+ $this->selfLink = $selfLink;
2547
+ }
2548
+ public function getSelfLink() {
2549
+ return $this->selfLink;
2550
+ }
2551
+ public function setName($name) {
2552
+ $this->name = $name;
2553
+ }
2554
+ public function getName() {
2555
+ return $this->name;
2556
+ }
2557
+ }
2558
+
2559
+ class Google_ZoneList extends Google_Model {
2560
+ public $nextPageToken;
2561
+ protected $__itemsType = 'Google_Zone';
2562
+ protected $__itemsDataType = 'array';
2563
+ public $items;
2564
+ public $kind;
2565
+ public $id;
2566
+ public $selfLink;
2567
+ public function setNextPageToken($nextPageToken) {
2568
+ $this->nextPageToken = $nextPageToken;
2569
+ }
2570
+ public function getNextPageToken() {
2571
+ return $this->nextPageToken;
2572
+ }
2573
+ public function setItems($items) {
2574
+ $this->assertIsArray($items, 'Google_Zone', __METHOD__);
2575
+ $this->items = $items;
2576
+ }
2577
+ public function getItems() {
2578
+ return $this->items;
2579
+ }
2580
+ public function setKind($kind) {
2581
+ $this->kind = $kind;
2582
+ }
2583
+ public function getKind() {
2584
+ return $this->kind;
2585
+ }
2586
+ public function setId($id) {
2587
+ $this->id = $id;
2588
+ }
2589
+ public function getId() {
2590
+ return $this->id;
2591
+ }
2592
+ public function setSelfLink($selfLink) {
2593
+ $this->selfLink = $selfLink;
2594
+ }
2595
+ public function getSelfLink() {
2596
+ return $this->selfLink;
2597
+ }
2598
+ }
2599
+
2600
+ class Google_ZoneMaintenanceWindows extends Google_Model {
2601
+ public $endTime;
2602
+ public $beginTime;
2603
+ public $name;
2604
+ public $description;
2605
+ public function setEndTime($endTime) {
2606
+ $this->endTime = $endTime;
2607
+ }
2608
+ public function getEndTime() {
2609
+ return $this->endTime;
2610
+ }
2611
+ public function setBeginTime($beginTime) {
2612
+ $this->beginTime = $beginTime;
2613
+ }
2614
+ public function getBeginTime() {
2615
+ return $this->beginTime;
2616
+ }
2617
+ public function setName($name) {
2618
+ $this->name = $name;
2619
+ }
2620
+ public function getName() {
2621
+ return $this->name;
2622
+ }
2623
+ public function setDescription($description) {
2624
+ $this->description = $description;
2625
+ }
2626
+ public function getDescription() {
2627
+ return $this->description;
2628
+ }
2629
+ }
google-api-php-client/src/contrib/Google_CustomsearchService.php ADDED
@@ -0,0 +1,836 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "cse" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $customsearchService = new Google_CustomsearchService(...);
22
+ * $cse = $customsearchService->cse;
23
+ * </code>
24
+ */
25
+ class Google_CseServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Returns metadata about the search performed, metadata about the custom search engine used for the
30
+ * search, and the search results. (cse.list)
31
+ *
32
+ * @param string $q Query
33
+ * @param array $optParams Optional parameters.
34
+ *
35
+ * @opt_param string sort The sort expression to apply to the results
36
+ * @opt_param string orTerms Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms
37
+ * @opt_param string highRange Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
38
+ * @opt_param string num Number of search results to return
39
+ * @opt_param string cr Country restrict(s).
40
+ * @opt_param string imgType Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
41
+ * @opt_param string gl Geolocation of end user.
42
+ * @opt_param string relatedSite Specifies that all search results should be pages that are related to the specified URL
43
+ * @opt_param string searchType Specifies the search type: image.
44
+ * @opt_param string fileType Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...
45
+ * @opt_param string start The index of the first result to return
46
+ * @opt_param string imgDominantColor Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, gray, black and brown.
47
+ * @opt_param string lr The language restriction for the search results
48
+ * @opt_param string siteSearch Specifies all search results should be pages from a given site
49
+ * @opt_param string cref The URL of a linked custom search engine
50
+ * @opt_param string dateRestrict Specifies all search results are from a time period
51
+ * @opt_param string safe Search safety level
52
+ * @opt_param string c2coff Turns off the translation between zh-CN and zh-TW.
53
+ * @opt_param string googlehost The local Google domain to use to perform the search.
54
+ * @opt_param string hq Appends the extra query terms to the query.
55
+ * @opt_param string exactTerms Identifies a phrase that all documents in the search results must contain
56
+ * @opt_param string hl Sets the user interface language.
57
+ * @opt_param string lowRange Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
58
+ * @opt_param string imgSize Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
59
+ * @opt_param string imgColorType Returns black and white, grayscale, or color images: mono, gray, and color.
60
+ * @opt_param string rights Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.
61
+ * @opt_param string excludeTerms Identifies a word or phrase that should not appear in any documents in the search results
62
+ * @opt_param string filter Controls turning on or off the duplicate content filter.
63
+ * @opt_param string linkSite Specifies that all search results should contain a link to a particular URL
64
+ * @opt_param string cx The custom search engine ID to scope this search query
65
+ * @opt_param string siteSearchFilter Controls whether to include or exclude results from the site named in the as_sitesearch parameter
66
+ * @return Google_Search
67
+ */
68
+ public function listCse($q, $optParams = array()) {
69
+ $params = array('q' => $q);
70
+ $params = array_merge($params, $optParams);
71
+ $data = $this->__call('list', array($params));
72
+ if ($this->useObjects()) {
73
+ return new Google_Search($data);
74
+ } else {
75
+ return $data;
76
+ }
77
+ }
78
+ }
79
+
80
+ /**
81
+ * Service definition for Google_Customsearch (v1).
82
+ *
83
+ * <p>
84
+ * Lets you search over a website or collection of websites
85
+ * </p>
86
+ *
87
+ * <p>
88
+ * For more information about this service, see the
89
+ * <a href="http://code.google.com/apis/customsearch/v1/using_rest.html" target="_blank">API Documentation</a>
90
+ * </p>
91
+ *
92
+ * @author Google, Inc.
93
+ */
94
+ class Google_CustomsearchService extends Google_Service {
95
+ public $cse;
96
+ /**
97
+ * Constructs the internal representation of the Customsearch service.
98
+ *
99
+ * @param Google_Client $client
100
+ */
101
+ public function __construct(Google_Client $client) {
102
+ $this->servicePath = 'customsearch/';
103
+ $this->version = 'v1';
104
+ $this->serviceName = 'customsearch';
105
+
106
+ $client->addService($this->serviceName, $this->version);
107
+ $this->cse = new Google_CseServiceResource($this, $this->serviceName, 'cse', json_decode('{"methods": {"list": {"httpMethod": "GET", "response": {"$ref": "Search"}, "id": "search.cse.list", "parameters": {"sort": {"type": "string", "location": "query"}, "orTerms": {"type": "string", "location": "query"}, "highRange": {"type": "string", "location": "query"}, "num": {"default": "10", "type": "integer", "location": "query", "format": "uint32"}, "cr": {"type": "string", "location": "query"}, "imgType": {"enum": ["clipart", "face", "lineart", "news", "photo"], "type": "string", "location": "query"}, "gl": {"type": "string", "location": "query"}, "q": {"required": true, "type": "string", "location": "query"}, "relatedSite": {"type": "string", "location": "query"}, "searchType": {"enum": ["image"], "type": "string", "location": "query"}, "fileType": {"type": "string", "location": "query"}, "start": {"type": "integer", "location": "query", "format": "uint32"}, "imgDominantColor": {"enum": ["black", "blue", "brown", "gray", "green", "pink", "purple", "teal", "white", "yellow"], "type": "string", "location": "query"}, "lr": {"enum": ["lang_ar", "lang_bg", "lang_ca", "lang_cs", "lang_da", "lang_de", "lang_el", "lang_en", "lang_es", "lang_et", "lang_fi", "lang_fr", "lang_hr", "lang_hu", "lang_id", "lang_is", "lang_it", "lang_iw", "lang_ja", "lang_ko", "lang_lt", "lang_lv", "lang_nl", "lang_no", "lang_pl", "lang_pt", "lang_ro", "lang_ru", "lang_sk", "lang_sl", "lang_sr", "lang_sv", "lang_tr", "lang_zh-CN", "lang_zh-TW"], "type": "string", "location": "query"}, "siteSearch": {"type": "string", "location": "query"}, "cref": {"type": "string", "location": "query"}, "dateRestrict": {"type": "string", "location": "query"}, "safe": {"default": "off", "enum": ["high", "medium", "off"], "type": "string", "location": "query"}, "c2coff": {"type": "string", "location": "query"}, "googlehost": {"type": "string", "location": "query"}, "hq": {"type": "string", "location": "query"}, "exactTerms": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "lowRange": {"type": "string", "location": "query"}, "imgSize": {"enum": ["huge", "icon", "large", "medium", "small", "xlarge", "xxlarge"], "type": "string", "location": "query"}, "imgColorType": {"enum": ["color", "gray", "mono"], "type": "string", "location": "query"}, "rights": {"type": "string", "location": "query"}, "excludeTerms": {"type": "string", "location": "query"}, "filter": {"enum": ["0", "1"], "type": "string", "location": "query"}, "linkSite": {"type": "string", "location": "query"}, "cx": {"type": "string", "location": "query"}, "siteSearchFilter": {"enum": ["e", "i"], "type": "string", "location": "query"}}, "path": "v1"}}}', true));
108
+
109
+ }
110
+ }
111
+
112
+ class Google_Context extends Google_Model {
113
+ protected $__facetsType = 'Google_ContextFacets';
114
+ protected $__facetsDataType = 'array';
115
+ public $facets;
116
+ public $title;
117
+ public function setFacets(/* array(Google_ContextFacets) */ $facets) {
118
+ $this->assertIsArray($facets, 'Google_ContextFacets', __METHOD__);
119
+ $this->facets = $facets;
120
+ }
121
+ public function getFacets() {
122
+ return $this->facets;
123
+ }
124
+ public function setTitle($title) {
125
+ $this->title = $title;
126
+ }
127
+ public function getTitle() {
128
+ return $this->title;
129
+ }
130
+ }
131
+
132
+ class Google_ContextFacets extends Google_Model {
133
+ public $anchor;
134
+ public $label;
135
+ public function setAnchor($anchor) {
136
+ $this->anchor = $anchor;
137
+ }
138
+ public function getAnchor() {
139
+ return $this->anchor;
140
+ }
141
+ public function setLabel($label) {
142
+ $this->label = $label;
143
+ }
144
+ public function getLabel() {
145
+ return $this->label;
146
+ }
147
+ }
148
+
149
+ class Google_Promotion extends Google_Model {
150
+ public $title;
151
+ public $displayLink;
152
+ public $htmlTitle;
153
+ public $link;
154
+ protected $__bodyLinesType = 'Google_PromotionBodyLines';
155
+ protected $__bodyLinesDataType = 'array';
156
+ public $bodyLines;
157
+ protected $__imageType = 'Google_PromotionImage';
158
+ protected $__imageDataType = '';
159
+ public $image;
160
+ public function setTitle($title) {
161
+ $this->title = $title;
162
+ }
163
+ public function getTitle() {
164
+ return $this->title;
165
+ }
166
+ public function setDisplayLink($displayLink) {
167
+ $this->displayLink = $displayLink;
168
+ }
169
+ public function getDisplayLink() {
170
+ return $this->displayLink;
171
+ }
172
+ public function setHtmlTitle($htmlTitle) {
173
+ $this->htmlTitle = $htmlTitle;
174
+ }
175
+ public function getHtmlTitle() {
176
+ return $this->htmlTitle;
177
+ }
178
+ public function setLink($link) {
179
+ $this->link = $link;
180
+ }
181
+ public function getLink() {
182
+ return $this->link;
183
+ }
184
+ public function setBodyLines(/* array(Google_PromotionBodyLines) */ $bodyLines) {
185
+ $this->assertIsArray($bodyLines, 'Google_PromotionBodyLines', __METHOD__);
186
+ $this->bodyLines = $bodyLines;
187
+ }
188
+ public function getBodyLines() {
189
+ return $this->bodyLines;
190
+ }
191
+ public function setImage(Google_PromotionImage $image) {
192
+ $this->image = $image;
193
+ }
194
+ public function getImage() {
195
+ return $this->image;
196
+ }
197
+ }
198
+
199
+ class Google_PromotionBodyLines extends Google_Model {
200
+ public $url;
201
+ public $htmlTitle;
202
+ public $link;
203
+ public $title;
204
+ public function setUrl($url) {
205
+ $this->url = $url;
206
+ }
207
+ public function getUrl() {
208
+ return $this->url;
209
+ }
210
+ public function setHtmlTitle($htmlTitle) {
211
+ $this->htmlTitle = $htmlTitle;
212
+ }
213
+ public function getHtmlTitle() {
214
+ return $this->htmlTitle;
215
+ }
216
+ public function setLink($link) {
217
+ $this->link = $link;
218
+ }
219
+ public function getLink() {
220
+ return $this->link;
221
+ }
222
+ public function setTitle($title) {
223
+ $this->title = $title;
224
+ }
225
+ public function getTitle() {
226
+ return $this->title;
227
+ }
228
+ }
229
+
230
+ class Google_PromotionImage extends Google_Model {
231
+ public $source;
232
+ public $width;
233
+ public $height;
234
+ public function setSource($source) {
235
+ $this->source = $source;
236
+ }
237
+ public function getSource() {
238
+ return $this->source;
239
+ }
240
+ public function setWidth($width) {
241
+ $this->width = $width;
242
+ }
243
+ public function getWidth() {
244
+ return $this->width;
245
+ }
246
+ public function setHeight($height) {
247
+ $this->height = $height;
248
+ }
249
+ public function getHeight() {
250
+ return $this->height;
251
+ }
252
+ }
253
+
254
+ class Google_Query extends Google_Model {
255
+ public $sort;
256
+ public $inputEncoding;
257
+ public $orTerms;
258
+ public $highRange;
259
+ public $cx;
260
+ public $startPage;
261
+ public $disableCnTwTranslation;
262
+ public $cr;
263
+ public $imgType;
264
+ public $gl;
265
+ public $relatedSite;
266
+ public $searchType;
267
+ public $title;
268
+ public $googleHost;
269
+ public $fileType;
270
+ public $imgDominantColor;
271
+ public $siteSearch;
272
+ public $cref;
273
+ public $dateRestrict;
274
+ public $safe;
275
+ public $outputEncoding;
276
+ public $hq;
277
+ public $searchTerms;
278
+ public $exactTerms;
279
+ public $language;
280
+ public $hl;
281
+ public $totalResults;
282
+ public $lowRange;
283
+ public $count;
284
+ public $imgSize;
285
+ public $imgColorType;
286
+ public $rights;
287
+ public $startIndex;
288
+ public $excludeTerms;
289
+ public $filter;
290
+ public $linkSite;
291
+ public $siteSearchFilter;
292
+ public function setSort($sort) {
293
+ $this->sort = $sort;
294
+ }
295
+ public function getSort() {
296
+ return $this->sort;
297
+ }
298
+ public function setInputEncoding($inputEncoding) {
299
+ $this->inputEncoding = $inputEncoding;
300
+ }
301
+ public function getInputEncoding() {
302
+ return $this->inputEncoding;
303
+ }
304
+ public function setOrTerms($orTerms) {
305
+ $this->orTerms = $orTerms;
306
+ }
307
+ public function getOrTerms() {
308
+ return $this->orTerms;
309
+ }
310
+ public function setHighRange($highRange) {
311
+ $this->highRange = $highRange;
312
+ }
313
+ public function getHighRange() {
314
+ return $this->highRange;
315
+ }
316
+ public function setCx($cx) {
317
+ $this->cx = $cx;
318
+ }
319
+ public function getCx() {
320
+ return $this->cx;
321
+ }
322
+ public function setStartPage($startPage) {
323
+ $this->startPage = $startPage;
324
+ }
325
+ public function getStartPage() {
326
+ return $this->startPage;
327
+ }
328
+ public function setDisableCnTwTranslation($disableCnTwTranslation) {
329
+ $this->disableCnTwTranslation = $disableCnTwTranslation;
330
+ }
331
+ public function getDisableCnTwTranslation() {
332
+ return $this->disableCnTwTranslation;
333
+ }
334
+ public function setCr($cr) {
335
+ $this->cr = $cr;
336
+ }
337
+ public function getCr() {
338
+ return $this->cr;
339
+ }
340
+ public function setImgType($imgType) {
341
+ $this->imgType = $imgType;
342
+ }
343
+ public function getImgType() {
344
+ return $this->imgType;
345
+ }
346
+ public function setGl($gl) {
347
+ $this->gl = $gl;
348
+ }
349
+ public function getGl() {
350
+ return $this->gl;
351
+ }
352
+ public function setRelatedSite($relatedSite) {
353
+ $this->relatedSite = $relatedSite;
354
+ }
355
+ public function getRelatedSite() {
356
+ return $this->relatedSite;
357
+ }
358
+ public function setSearchType($searchType) {
359
+ $this->searchType = $searchType;
360
+ }
361
+ public function getSearchType() {
362
+ return $this->searchType;
363
+ }
364
+ public function setTitle($title) {
365
+ $this->title = $title;
366
+ }
367
+ public function getTitle() {
368
+ return $this->title;
369
+ }
370
+ public function setGoogleHost($googleHost) {
371
+ $this->googleHost = $googleHost;
372
+ }
373
+ public function getGoogleHost() {
374
+ return $this->googleHost;
375
+ }
376
+ public function setFileType($fileType) {
377
+ $this->fileType = $fileType;
378
+ }
379
+ public function getFileType() {
380
+ return $this->fileType;
381
+ }
382
+ public function setImgDominantColor($imgDominantColor) {
383
+ $this->imgDominantColor = $imgDominantColor;
384
+ }
385
+ public function getImgDominantColor() {
386
+ return $this->imgDominantColor;
387
+ }
388
+ public function setSiteSearch($siteSearch) {
389
+ $this->siteSearch = $siteSearch;
390
+ }
391
+ public function getSiteSearch() {
392
+ return $this->siteSearch;
393
+ }
394
+ public function setCref($cref) {
395
+ $this->cref = $cref;
396
+ }
397
+ public function getCref() {
398
+ return $this->cref;
399
+ }
400
+ public function setDateRestrict($dateRestrict) {
401
+ $this->dateRestrict = $dateRestrict;
402
+ }
403
+ public function getDateRestrict() {
404
+ return $this->dateRestrict;
405
+ }
406
+ public function setSafe($safe) {
407
+ $this->safe = $safe;
408
+ }
409
+ public function getSafe() {
410
+ return $this->safe;
411
+ }
412
+ public function setOutputEncoding($outputEncoding) {
413
+ $this->outputEncoding = $outputEncoding;
414
+ }
415
+ public function getOutputEncoding() {
416
+ return $this->outputEncoding;
417
+ }
418
+ public function setHq($hq) {
419
+ $this->hq = $hq;
420
+ }
421
+ public function getHq() {
422
+ return $this->hq;
423
+ }
424
+ public function setSearchTerms($searchTerms) {
425
+ $this->searchTerms = $searchTerms;
426
+ }
427
+ public function getSearchTerms() {
428
+ return $this->searchTerms;
429
+ }
430
+ public function setExactTerms($exactTerms) {
431
+ $this->exactTerms = $exactTerms;
432
+ }
433
+ public function getExactTerms() {
434
+ return $this->exactTerms;
435
+ }
436
+ public function setLanguage($language) {
437
+ $this->language = $language;
438
+ }
439
+ public function getLanguage() {
440
+ return $this->language;
441
+ }
442
+ public function setHl($hl) {
443
+ $this->hl = $hl;
444
+ }
445
+ public function getHl() {
446
+ return $this->hl;
447
+ }
448
+ public function setTotalResults($totalResults) {
449
+ $this->totalResults = $totalResults;
450
+ }
451
+ public function getTotalResults() {
452
+ return $this->totalResults;
453
+ }
454
+ public function setLowRange($lowRange) {
455
+ $this->lowRange = $lowRange;
456
+ }
457
+ public function getLowRange() {
458
+ return $this->lowRange;
459
+ }
460
+ public function setCount($count) {
461
+ $this->count = $count;
462
+ }
463
+ public function getCount() {
464
+ return $this->count;
465
+ }
466
+ public function setImgSize($imgSize) {
467
+ $this->imgSize = $imgSize;
468
+ }
469
+ public function getImgSize() {
470
+ return $this->imgSize;
471
+ }
472
+ public function setImgColorType($imgColorType) {
473
+ $this->imgColorType = $imgColorType;
474
+ }
475
+ public function getImgColorType() {
476
+ return $this->imgColorType;
477
+ }
478
+ public function setRights($rights) {
479
+ $this->rights = $rights;
480
+ }
481
+ public function getRights() {
482
+ return $this->rights;
483
+ }
484
+ public function setStartIndex($startIndex) {
485
+ $this->startIndex = $startIndex;
486
+ }
487
+ public function getStartIndex() {
488
+ return $this->startIndex;
489
+ }
490
+ public function setExcludeTerms($excludeTerms) {
491
+ $this->excludeTerms = $excludeTerms;
492
+ }
493
+ public function getExcludeTerms() {
494
+ return $this->excludeTerms;
495
+ }
496
+ public function setFilter($filter) {
497
+ $this->filter = $filter;
498
+ }
499
+ public function getFilter() {
500
+ return $this->filter;
501
+ }
502
+ public function setLinkSite($linkSite) {
503
+ $this->linkSite = $linkSite;
504
+ }
505
+ public function getLinkSite() {
506
+ return $this->linkSite;
507
+ }
508
+ public function setSiteSearchFilter($siteSearchFilter) {
509
+ $this->siteSearchFilter = $siteSearchFilter;
510
+ }
511
+ public function getSiteSearchFilter() {
512
+ return $this->siteSearchFilter;
513
+ }
514
+ }
515
+
516
+ class Google_Result extends Google_Model {
517
+ public $snippet;
518
+ public $kind;
519
+ protected $__labelsType = 'Google_ResultLabels';
520
+ protected $__labelsDataType = 'array';
521
+ public $labels;
522
+ public $title;
523
+ public $displayLink;
524
+ public $cacheId;
525
+ public $formattedUrl;
526
+ public $htmlFormattedUrl;
527
+ public $pagemap;
528
+ public $htmlTitle;
529
+ public $htmlSnippet;
530
+ public $link;
531
+ protected $__imageType = 'Google_ResultImage';
532
+ protected $__imageDataType = '';
533
+ public $image;
534
+ public $mime;
535
+ public $fileFormat;
536
+ public function setSnippet($snippet) {
537
+ $this->snippet = $snippet;
538
+ }
539
+ public function getSnippet() {
540
+ return $this->snippet;
541
+ }
542
+ public function setKind($kind) {
543
+ $this->kind = $kind;
544
+ }
545
+ public function getKind() {
546
+ return $this->kind;
547
+ }
548
+ public function setLabels(/* array(Google_ResultLabels) */ $labels) {
549
+ $this->assertIsArray($labels, 'Google_ResultLabels', __METHOD__);
550
+ $this->labels = $labels;
551
+ }
552
+ public function getLabels() {
553
+ return $this->labels;
554
+ }
555
+ public function setTitle($title) {
556
+ $this->title = $title;
557
+ }
558
+ public function getTitle() {
559
+ return $this->title;
560
+ }
561
+ public function setDisplayLink($displayLink) {
562
+ $this->displayLink = $displayLink;
563
+ }
564
+ public function getDisplayLink() {
565
+ return $this->displayLink;
566
+ }
567
+ public function setCacheId($cacheId) {
568
+ $this->cacheId = $cacheId;
569
+ }
570
+ public function getCacheId() {
571
+ return $this->cacheId;
572
+ }
573
+ public function setFormattedUrl($formattedUrl) {
574
+ $this->formattedUrl = $formattedUrl;
575
+ }
576
+ public function getFormattedUrl() {
577
+ return $this->formattedUrl;
578
+ }
579
+ public function setHtmlFormattedUrl($htmlFormattedUrl) {
580
+ $this->htmlFormattedUrl = $htmlFormattedUrl;
581
+ }
582
+ public function getHtmlFormattedUrl() {
583
+ return $this->htmlFormattedUrl;
584
+ }
585
+ public function setPagemap($pagemap) {
586
+ $this->pagemap = $pagemap;
587
+ }
588
+ public function getPagemap() {
589
+ return $this->pagemap;
590
+ }
591
+ public function setHtmlTitle($htmlTitle) {
592
+ $this->htmlTitle = $htmlTitle;
593
+ }
594
+ public function getHtmlTitle() {
595
+ return $this->htmlTitle;
596
+ }
597
+ public function setHtmlSnippet($htmlSnippet) {
598
+ $this->htmlSnippet = $htmlSnippet;
599
+ }
600
+ public function getHtmlSnippet() {
601
+ return $this->htmlSnippet;
602
+ }
603
+ public function setLink($link) {
604
+ $this->link = $link;
605
+ }
606
+ public function getLink() {
607
+ return $this->link;
608
+ }
609
+ public function setImage(Google_ResultImage $image) {
610
+ $this->image = $image;
611
+ }
612
+ public function getImage() {
613
+ return $this->image;
614
+ }
615
+ public function setMime($mime) {
616
+ $this->mime = $mime;
617
+ }
618
+ public function getMime() {
619
+ return $this->mime;
620
+ }
621
+ public function setFileFormat($fileFormat) {
622
+ $this->fileFormat = $fileFormat;
623
+ }
624
+ public function getFileFormat() {
625
+ return $this->fileFormat;
626
+ }
627
+ }
628
+
629
+ class Google_ResultImage extends Google_Model {
630
+ public $thumbnailWidth;
631
+ public $byteSize;
632
+ public $height;
633
+ public $width;
634
+ public $contextLink;
635
+ public $thumbnailLink;
636
+ public $thumbnailHeight;
637
+ public function setThumbnailWidth($thumbnailWidth) {
638
+ $this->thumbnailWidth = $thumbnailWidth;
639
+ }
640
+ public function getThumbnailWidth() {
641
+ return $this->thumbnailWidth;
642
+ }
643
+ public function setByteSize($byteSize) {
644
+ $this->byteSize = $byteSize;
645
+ }
646
+ public function getByteSize() {
647
+ return $this->byteSize;
648
+ }
649
+ public function setHeight($height) {
650
+ $this->height = $height;
651
+ }
652
+ public function getHeight() {
653
+ return $this->height;
654
+ }
655
+ public function setWidth($width) {
656
+ $this->width = $width;
657
+ }
658
+ public function getWidth() {
659
+ return $this->width;
660
+ }
661
+ public function setContextLink($contextLink) {
662
+ $this->contextLink = $contextLink;
663
+ }
664
+ public function getContextLink() {
665
+ return $this->contextLink;
666
+ }
667
+ public function setThumbnailLink($thumbnailLink) {
668
+ $this->thumbnailLink = $thumbnailLink;
669
+ }
670
+ public function getThumbnailLink() {
671
+ return $this->thumbnailLink;
672
+ }
673
+ public function setThumbnailHeight($thumbnailHeight) {
674
+ $this->thumbnailHeight = $thumbnailHeight;
675
+ }
676
+ public function getThumbnailHeight() {
677
+ return $this->thumbnailHeight;
678
+ }
679
+ }
680
+
681
+ class Google_ResultLabels extends Google_Model {
682
+ public $displayName;
683
+ public $name;
684
+ public function setDisplayName($displayName) {
685
+ $this->displayName = $displayName;
686
+ }
687
+ public function getDisplayName() {
688
+ return $this->displayName;
689
+ }
690
+ public function setName($name) {
691
+ $this->name = $name;
692
+ }
693
+ public function getName() {
694
+ return $this->name;
695
+ }
696
+ }
697
+
698
+ class Google_Search extends Google_Model {
699
+ protected $__promotionsType = 'Google_Promotion';
700
+ protected $__promotionsDataType = 'array';
701
+ public $promotions;
702
+ public $kind;
703
+ protected $__urlType = 'Google_SearchUrl';
704
+ protected $__urlDataType = '';
705
+ public $url;
706
+ protected $__itemsType = 'Google_Result';
707
+ protected $__itemsDataType = 'array';
708
+ public $items;
709
+ protected $__contextType = 'Google_Context';
710
+ protected $__contextDataType = '';
711
+ public $context;
712
+ protected $__queriesType = 'Google_Query';
713
+ protected $__queriesDataType = 'map';
714
+ public $queries;
715
+ protected $__spellingType = 'Google_SearchSpelling';
716
+ protected $__spellingDataType = '';
717
+ public $spelling;
718
+ protected $__searchInformationType = 'Google_SearchSearchInformation';
719
+ protected $__searchInformationDataType = '';
720
+ public $searchInformation;
721
+ public function setPromotions(/* array(Google_Promotion) */ $promotions) {
722
+ $this->assertIsArray($promotions, 'Google_Promotion', __METHOD__);
723
+ $this->promotions = $promotions;
724
+ }
725
+ public function getPromotions() {
726
+ return $this->promotions;
727
+ }
728
+ public function setKind($kind) {
729
+ $this->kind = $kind;
730
+ }
731
+ public function getKind() {
732
+ return $this->kind;
733
+ }
734
+ public function setUrl(Google_SearchUrl $url) {
735
+ $this->url = $url;
736
+ }
737
+ public function getUrl() {
738
+ return $this->url;
739
+ }
740
+ public function setItems(/* array(Google_Result) */ $items) {
741
+ $this->assertIsArray($items, 'Google_Result', __METHOD__);
742
+ $this->items = $items;
743
+ }
744
+ public function getItems() {
745
+ return $this->items;
746
+ }
747
+ public function setContext(Google_Context $context) {
748
+ $this->context = $context;
749
+ }
750
+ public function getContext() {
751
+ return $this->context;
752
+ }
753
+ public function setQueries(Google_Query $queries) {
754
+ $this->queries = $queries;
755
+ }
756
+ public function getQueries() {
757
+ return $this->queries;
758
+ }
759
+ public function setSpelling(Google_SearchSpelling $spelling) {
760
+ $this->spelling = $spelling;
761
+ }
762
+ public function getSpelling() {
763
+ return $this->spelling;
764
+ }
765
+ public function setSearchInformation(Google_SearchSearchInformation $searchInformation) {
766
+ $this->searchInformation = $searchInformation;
767
+ }
768
+ public function getSearchInformation() {
769
+ return $this->searchInformation;
770
+ }
771
+ }
772
+
773
+ class Google_SearchSearchInformation extends Google_Model {
774
+ public $formattedSearchTime;
775
+ public $formattedTotalResults;
776
+ public $totalResults;
777
+ public $searchTime;
778
+ public function setFormattedSearchTime($formattedSearchTime) {
779
+ $this->formattedSearchTime = $formattedSearchTime;
780
+ }
781
+ public function getFormattedSearchTime() {
782
+ return $this->formattedSearchTime;
783
+ }
784
+ public function setFormattedTotalResults($formattedTotalResults) {
785
+ $this->formattedTotalResults = $formattedTotalResults;
786
+ }
787
+ public function getFormattedTotalResults() {
788
+ return $this->formattedTotalResults;
789
+ }
790
+ public function setTotalResults($totalResults) {
791
+ $this->totalResults = $totalResults;
792
+ }
793
+ public function getTotalResults() {
794
+ return $this->totalResults;
795
+ }
796
+ public function setSearchTime($searchTime) {
797
+ $this->searchTime = $searchTime;
798
+ }
799
+ public function getSearchTime() {
800
+ return $this->searchTime;
801
+ }
802
+ }
803
+
804
+ class Google_SearchSpelling extends Google_Model {
805
+ public $correctedQuery;
806
+ public $htmlCorrectedQuery;
807
+ public function setCorrectedQuery($correctedQuery) {
808
+ $this->correctedQuery = $correctedQuery;
809
+ }
810
+ public function getCorrectedQuery() {
811
+ return $this->correctedQuery;
812
+ }
813
+ public function setHtmlCorrectedQuery($htmlCorrectedQuery) {
814
+ $this->htmlCorrectedQuery = $htmlCorrectedQuery;
815
+ }
816
+ public function getHtmlCorrectedQuery() {
817
+ return $this->htmlCorrectedQuery;
818
+ }
819
+ }
820
+
821
+ class Google_SearchUrl extends Google_Model {
822
+ public $type;
823
+ public $template;
824
+ public function setType($type) {
825
+ $this->type = $type;
826
+ }
827
+ public function getType() {
828
+ return $this->type;
829
+ }
830
+ public function setTemplate($template) {
831
+ $this->template = $template;
832
+ }
833
+ public function getTemplate() {
834
+ return $this->template;
835
+ }
836
+ }
google-api-php-client/src/contrib/Google_DriveService.php ADDED
@@ -0,0 +1,2157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "files" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $driveService = new Google_DriveService(...);
22
+ * $files = $driveService->files;
23
+ * </code>
24
+ */
25
+ class Google_FilesServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Insert a new file. (files.insert)
30
+ *
31
+ * @param Google_DriveFile $postBody
32
+ * @param array $optParams Optional parameters.
33
+ *
34
+ * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
35
+ * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
36
+ * @opt_param string sourceLanguage The language of the original file to be translated.
37
+ * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
38
+ * @opt_param bool pinned Whether to pin the head revision of the uploaded file.
39
+ * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
40
+ * @opt_param string timedTextTrackName The timed text track name.
41
+ * @opt_param string timedTextLanguage The language of the timed text.
42
+ * @return Google_DriveFile
43
+ */
44
+ public function insert(Google_DriveFile $postBody, $optParams = array()) {
45
+ $params = array('postBody' => $postBody);
46
+ $params = array_merge($params, $optParams);
47
+ $data = $this->__call('insert', array($params));
48
+ if ($this->useObjects()) {
49
+ return new Google_DriveFile($data);
50
+ } else {
51
+ return $data;
52
+ }
53
+ }
54
+ /**
55
+ * Restores a file from the trash. (files.untrash)
56
+ *
57
+ * @param string $fileId The ID of the file to untrash.
58
+ * @param array $optParams Optional parameters.
59
+ * @return Google_DriveFile
60
+ */
61
+ public function untrash($fileId, $optParams = array()) {
62
+ $params = array('fileId' => $fileId);
63
+ $params = array_merge($params, $optParams);
64
+ $data = $this->__call('untrash', array($params));
65
+ if ($this->useObjects()) {
66
+ return new Google_DriveFile($data);
67
+ } else {
68
+ return $data;
69
+ }
70
+ }
71
+ /**
72
+ * Moves a file to the trash. (files.trash)
73
+ *
74
+ * @param string $fileId The ID of the file to trash.
75
+ * @param array $optParams Optional parameters.
76
+ * @return Google_DriveFile
77
+ */
78
+ public function trash($fileId, $optParams = array()) {
79
+ $params = array('fileId' => $fileId);
80
+ $params = array_merge($params, $optParams);
81
+ $data = $this->__call('trash', array($params));
82
+ if ($this->useObjects()) {
83
+ return new Google_DriveFile($data);
84
+ } else {
85
+ return $data;
86
+ }
87
+ }
88
+ /**
89
+ * Gets a file's metadata by ID. (files.get)
90
+ *
91
+ * @param string $fileId The ID for the file in question.
92
+ * @param array $optParams Optional parameters.
93
+ *
94
+ * @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file.
95
+ * @opt_param string projection This parameter is deprecated and has no function.
96
+ * @return Google_DriveFile
97
+ */
98
+ public function get($fileId, $optParams = array()) {
99
+ $params = array('fileId' => $fileId);
100
+ $params = array_merge($params, $optParams);
101
+ $data = $this->__call('get', array($params));
102
+ if ($this->useObjects()) {
103
+ return new Google_DriveFile($data);
104
+ } else {
105
+ return $data;
106
+ }
107
+ }
108
+ /**
109
+ * Lists the user's files. (files.list)
110
+ *
111
+ * @param array $optParams Optional parameters.
112
+ *
113
+ * @opt_param string q Query string for searching files.
114
+ * @opt_param string pageToken Page token for files.
115
+ * @opt_param string projection This parameter is deprecated and has no function.
116
+ * @opt_param int maxResults Maximum number of files to return.
117
+ * @return Google_FileList
118
+ */
119
+ public function listFiles($optParams = array()) {
120
+ $params = array();
121
+ $params = array_merge($params, $optParams);
122
+ $data = $this->__call('list', array($params));
123
+ if ($this->useObjects()) {
124
+ return new Google_FileList($data);
125
+ } else {
126
+ return $data;
127
+ }
128
+ }
129
+ /**
130
+ * Updates file metadata and/or content (files.update)
131
+ *
132
+ * @param string $fileId The ID of the file to update.
133
+ * @param Google_DriveFile $postBody
134
+ * @param array $optParams Optional parameters.
135
+ *
136
+ * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
137
+ * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
138
+ * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
139
+ * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
140
+ * @opt_param string sourceLanguage The language of the original file to be translated.
141
+ * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
142
+ * @opt_param bool pinned Whether to pin the new revision.
143
+ * @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
144
+ * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
145
+ * @opt_param string timedTextLanguage The language of the timed text.
146
+ * @opt_param string timedTextTrackName The timed text track name.
147
+ * @return Google_DriveFile
148
+ */
149
+ public function update($fileId, Google_DriveFile $postBody, $optParams = array()) {
150
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
151
+ $params = array_merge($params, $optParams);
152
+ $data = $this->__call('update', array($params));
153
+ if ($this->useObjects()) {
154
+ return new Google_DriveFile($data);
155
+ } else {
156
+ return $data;
157
+ }
158
+ }
159
+ /**
160
+ * Updates file metadata and/or content. This method supports patch semantics. (files.patch)
161
+ *
162
+ * @param string $fileId The ID of the file to update.
163
+ * @param Google_DriveFile $postBody
164
+ * @param array $optParams Optional parameters.
165
+ *
166
+ * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
167
+ * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
168
+ * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
169
+ * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
170
+ * @opt_param string sourceLanguage The language of the original file to be translated.
171
+ * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
172
+ * @opt_param bool pinned Whether to pin the new revision.
173
+ * @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
174
+ * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
175
+ * @opt_param string timedTextLanguage The language of the timed text.
176
+ * @opt_param string timedTextTrackName The timed text track name.
177
+ * @return Google_DriveFile
178
+ */
179
+ public function patch($fileId, Google_DriveFile $postBody, $optParams = array()) {
180
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
181
+ $params = array_merge($params, $optParams);
182
+ $data = $this->__call('patch', array($params));
183
+ if ($this->useObjects()) {
184
+ return new Google_DriveFile($data);
185
+ } else {
186
+ return $data;
187
+ }
188
+ }
189
+ /**
190
+ * Set the file's updated time to the current server time. (files.touch)
191
+ *
192
+ * @param string $fileId The ID of the file to update.
193
+ * @param array $optParams Optional parameters.
194
+ * @return Google_DriveFile
195
+ */
196
+ public function touch($fileId, $optParams = array()) {
197
+ $params = array('fileId' => $fileId);
198
+ $params = array_merge($params, $optParams);
199
+ $data = $this->__call('touch', array($params));
200
+ if ($this->useObjects()) {
201
+ return new Google_DriveFile($data);
202
+ } else {
203
+ return $data;
204
+ }
205
+ }
206
+ /**
207
+ * Creates a copy of the specified file. (files.copy)
208
+ *
209
+ * @param string $fileId The ID of the file to copy.
210
+ * @param Google_DriveFile $postBody
211
+ * @param array $optParams Optional parameters.
212
+ *
213
+ * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
214
+ * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
215
+ * @opt_param string sourceLanguage The language of the original file to be translated.
216
+ * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
217
+ * @opt_param bool pinned Whether to pin the head revision of the new copy.
218
+ * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
219
+ * @opt_param string timedTextLanguage The language of the timed text.
220
+ * @opt_param string timedTextTrackName The timed text track name.
221
+ * @return Google_DriveFile
222
+ */
223
+ public function copy($fileId, Google_DriveFile $postBody, $optParams = array()) {
224
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
225
+ $params = array_merge($params, $optParams);
226
+ $data = $this->__call('copy', array($params));
227
+ if ($this->useObjects()) {
228
+ return new Google_DriveFile($data);
229
+ } else {
230
+ return $data;
231
+ }
232
+ }
233
+ /**
234
+ * Permanently deletes a file by ID. Skips the trash. (files.delete)
235
+ *
236
+ * @param string $fileId The ID of the file to delete.
237
+ * @param array $optParams Optional parameters.
238
+ */
239
+ public function delete($fileId, $optParams = array()) {
240
+ $params = array('fileId' => $fileId);
241
+ $params = array_merge($params, $optParams);
242
+ $data = $this->__call('delete', array($params));
243
+ return $data;
244
+ }
245
+ }
246
+
247
+ /**
248
+ * The "about" collection of methods.
249
+ * Typical usage is:
250
+ * <code>
251
+ * $driveService = new Google_DriveService(...);
252
+ * $about = $driveService->about;
253
+ * </code>
254
+ */
255
+ class Google_AboutServiceResource extends Google_ServiceResource {
256
+
257
+
258
+ /**
259
+ * Gets the information about the current user along with Drive API settings (about.get)
260
+ *
261
+ * @param array $optParams Optional parameters.
262
+ *
263
+ * @opt_param bool includeSubscribed Whether to include subscribed items when calculating the number of remaining change IDs
264
+ * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to count
265
+ * @opt_param string startChangeId Change ID to start counting from when calculating number of remaining change IDs
266
+ * @return Google_About
267
+ */
268
+ public function get($optParams = array()) {
269
+ $params = array();
270
+ $params = array_merge($params, $optParams);
271
+ $data = $this->__call('get', array($params));
272
+ if ($this->useObjects()) {
273
+ return new Google_About($data);
274
+ } else {
275
+ return $data;
276
+ }
277
+ }
278
+ }
279
+
280
+ /**
281
+ * The "apps" collection of methods.
282
+ * Typical usage is:
283
+ * <code>
284
+ * $driveService = new Google_DriveService(...);
285
+ * $apps = $driveService->apps;
286
+ * </code>
287
+ */
288
+ class Google_AppsServiceResource extends Google_ServiceResource {
289
+
290
+
291
+ /**
292
+ * Lists a user's apps. (apps.list)
293
+ *
294
+ * @param array $optParams Optional parameters.
295
+ * @return Google_AppList
296
+ */
297
+ public function listApps($optParams = array()) {
298
+ $params = array();
299
+ $params = array_merge($params, $optParams);
300
+ $data = $this->__call('list', array($params));
301
+ if ($this->useObjects()) {
302
+ return new Google_AppList($data);
303
+ } else {
304
+ return $data;
305
+ }
306
+ }
307
+ /**
308
+ * Gets a specific app. (apps.get)
309
+ *
310
+ * @param string $appId The ID of the app.
311
+ * @param array $optParams Optional parameters.
312
+ * @return Google_App
313
+ */
314
+ public function get($appId, $optParams = array()) {
315
+ $params = array('appId' => $appId);
316
+ $params = array_merge($params, $optParams);
317
+ $data = $this->__call('get', array($params));
318
+ if ($this->useObjects()) {
319
+ return new Google_App($data);
320
+ } else {
321
+ return $data;
322
+ }
323
+ }
324
+ }
325
+
326
+ /**
327
+ * The "parents" collection of methods.
328
+ * Typical usage is:
329
+ * <code>
330
+ * $driveService = new Google_DriveService(...);
331
+ * $parents = $driveService->parents;
332
+ * </code>
333
+ */
334
+ class Google_ParentsServiceResource extends Google_ServiceResource {
335
+
336
+
337
+ /**
338
+ * Adds a parent folder for a file. (parents.insert)
339
+ *
340
+ * @param string $fileId The ID of the file.
341
+ * @param Google_ParentReference $postBody
342
+ * @param array $optParams Optional parameters.
343
+ * @return Google_ParentReference
344
+ */
345
+ public function insert($fileId, Google_ParentReference $postBody, $optParams = array()) {
346
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
347
+ $params = array_merge($params, $optParams);
348
+ $data = $this->__call('insert', array($params));
349
+ if ($this->useObjects()) {
350
+ return new Google_ParentReference($data);
351
+ } else {
352
+ return $data;
353
+ }
354
+ }
355
+ /**
356
+ * Gets a specific parent reference. (parents.get)
357
+ *
358
+ * @param string $fileId The ID of the file.
359
+ * @param string $parentId The ID of the parent.
360
+ * @param array $optParams Optional parameters.
361
+ * @return Google_ParentReference
362
+ */
363
+ public function get($fileId, $parentId, $optParams = array()) {
364
+ $params = array('fileId' => $fileId, 'parentId' => $parentId);
365
+ $params = array_merge($params, $optParams);
366
+ $data = $this->__call('get', array($params));
367
+ if ($this->useObjects()) {
368
+ return new Google_ParentReference($data);
369
+ } else {
370
+ return $data;
371
+ }
372
+ }
373
+ /**
374
+ * Lists a file's parents. (parents.list)
375
+ *
376
+ * @param string $fileId The ID of the file.
377
+ * @param array $optParams Optional parameters.
378
+ * @return Google_ParentList
379
+ */
380
+ public function listParents($fileId, $optParams = array()) {
381
+ $params = array('fileId' => $fileId);
382
+ $params = array_merge($params, $optParams);
383
+ $data = $this->__call('list', array($params));
384
+ if ($this->useObjects()) {
385
+ return new Google_ParentList($data);
386
+ } else {
387
+ return $data;
388
+ }
389
+ }
390
+ /**
391
+ * Removes a parent from a file. (parents.delete)
392
+ *
393
+ * @param string $fileId The ID of the file.
394
+ * @param string $parentId The ID of the parent.
395
+ * @param array $optParams Optional parameters.
396
+ */
397
+ public function delete($fileId, $parentId, $optParams = array()) {
398
+ $params = array('fileId' => $fileId, 'parentId' => $parentId);
399
+ $params = array_merge($params, $optParams);
400
+ $data = $this->__call('delete', array($params));
401
+ return $data;
402
+ }
403
+ }
404
+
405
+ /**
406
+ * The "revisions" collection of methods.
407
+ * Typical usage is:
408
+ * <code>
409
+ * $driveService = new Google_DriveService(...);
410
+ * $revisions = $driveService->revisions;
411
+ * </code>
412
+ */
413
+ class Google_RevisionsServiceResource extends Google_ServiceResource {
414
+
415
+
416
+ /**
417
+ * Updates a revision. This method supports patch semantics. (revisions.patch)
418
+ *
419
+ * @param string $fileId The ID for the file.
420
+ * @param string $revisionId The ID for the revision.
421
+ * @param Google_Revision $postBody
422
+ * @param array $optParams Optional parameters.
423
+ * @return Google_Revision
424
+ */
425
+ public function patch($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
426
+ $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
427
+ $params = array_merge($params, $optParams);
428
+ $data = $this->__call('patch', array($params));
429
+ if ($this->useObjects()) {
430
+ return new Google_Revision($data);
431
+ } else {
432
+ return $data;
433
+ }
434
+ }
435
+ /**
436
+ * Gets a specific revision. (revisions.get)
437
+ *
438
+ * @param string $fileId The ID of the file.
439
+ * @param string $revisionId The ID of the revision.
440
+ * @param array $optParams Optional parameters.
441
+ * @return Google_Revision
442
+ */
443
+ public function get($fileId, $revisionId, $optParams = array()) {
444
+ $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
445
+ $params = array_merge($params, $optParams);
446
+ $data = $this->__call('get', array($params));
447
+ if ($this->useObjects()) {
448
+ return new Google_Revision($data);
449
+ } else {
450
+ return $data;
451
+ }
452
+ }
453
+ /**
454
+ * Lists a file's revisions. (revisions.list)
455
+ *
456
+ * @param string $fileId The ID of the file.
457
+ * @param array $optParams Optional parameters.
458
+ * @return Google_RevisionList
459
+ */
460
+ public function listRevisions($fileId, $optParams = array()) {
461
+ $params = array('fileId' => $fileId);
462
+ $params = array_merge($params, $optParams);
463
+ $data = $this->__call('list', array($params));
464
+ if ($this->useObjects()) {
465
+ return new Google_RevisionList($data);
466
+ } else {
467
+ return $data;
468
+ }
469
+ }
470
+ /**
471
+ * Updates a revision. (revisions.update)
472
+ *
473
+ * @param string $fileId The ID for the file.
474
+ * @param string $revisionId The ID for the revision.
475
+ * @param Google_Revision $postBody
476
+ * @param array $optParams Optional parameters.
477
+ * @return Google_Revision
478
+ */
479
+ public function update($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
480
+ $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
481
+ $params = array_merge($params, $optParams);
482
+ $data = $this->__call('update', array($params));
483
+ if ($this->useObjects()) {
484
+ return new Google_Revision($data);
485
+ } else {
486
+ return $data;
487
+ }
488
+ }
489
+ /**
490
+ * Removes a revision. (revisions.delete)
491
+ *
492
+ * @param string $fileId The ID of the file.
493
+ * @param string $revisionId The ID of the revision.
494
+ * @param array $optParams Optional parameters.
495
+ */
496
+ public function delete($fileId, $revisionId, $optParams = array()) {
497
+ $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
498
+ $params = array_merge($params, $optParams);
499
+ $data = $this->__call('delete', array($params));
500
+ return $data;
501
+ }
502
+ }
503
+
504
+ /**
505
+ * The "changes" collection of methods.
506
+ * Typical usage is:
507
+ * <code>
508
+ * $driveService = new Google_DriveService(...);
509
+ * $changes = $driveService->changes;
510
+ * </code>
511
+ */
512
+ class Google_ChangesServiceResource extends Google_ServiceResource {
513
+
514
+
515
+ /**
516
+ * Lists the changes for a user. (changes.list)
517
+ *
518
+ * @param array $optParams Optional parameters.
519
+ *
520
+ * @opt_param bool includeSubscribed Whether to include subscribed items.
521
+ * @opt_param string startChangeId Change ID to start listing changes from.
522
+ * @opt_param bool includeDeleted Whether to include deleted items.
523
+ * @opt_param int maxResults Maximum number of changes to return.
524
+ * @opt_param string pageToken Page token for changes.
525
+ * @return Google_ChangeList
526
+ */
527
+ public function listChanges($optParams = array()) {
528
+ $params = array();
529
+ $params = array_merge($params, $optParams);
530
+ $data = $this->__call('list', array($params));
531
+ if ($this->useObjects()) {
532
+ return new Google_ChangeList($data);
533
+ } else {
534
+ return $data;
535
+ }
536
+ }
537
+ /**
538
+ * Gets a specific change. (changes.get)
539
+ *
540
+ * @param string $changeId The ID of the change.
541
+ * @param array $optParams Optional parameters.
542
+ * @return Google_Change
543
+ */
544
+ public function get($changeId, $optParams = array()) {
545
+ $params = array('changeId' => $changeId);
546
+ $params = array_merge($params, $optParams);
547
+ $data = $this->__call('get', array($params));
548
+ if ($this->useObjects()) {
549
+ return new Google_Change($data);
550
+ } else {
551
+ return $data;
552
+ }
553
+ }
554
+ }
555
+
556
+ /**
557
+ * The "children" collection of methods.
558
+ * Typical usage is:
559
+ * <code>
560
+ * $driveService = new Google_DriveService(...);
561
+ * $children = $driveService->children;
562
+ * </code>
563
+ */
564
+ class Google_ChildrenServiceResource extends Google_ServiceResource {
565
+
566
+
567
+ /**
568
+ * Inserts a file into a folder. (children.insert)
569
+ *
570
+ * @param string $folderId The ID of the folder.
571
+ * @param Google_ChildReference $postBody
572
+ * @param array $optParams Optional parameters.
573
+ * @return Google_ChildReference
574
+ */
575
+ public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) {
576
+ $params = array('folderId' => $folderId, 'postBody' => $postBody);
577
+ $params = array_merge($params, $optParams);
578
+ $data = $this->__call('insert', array($params));
579
+ if ($this->useObjects()) {
580
+ return new Google_ChildReference($data);
581
+ } else {
582
+ return $data;
583
+ }
584
+ }
585
+ /**
586
+ * Gets a specific child reference. (children.get)
587
+ *
588
+ * @param string $folderId The ID of the folder.
589
+ * @param string $childId The ID of the child.
590
+ * @param array $optParams Optional parameters.
591
+ * @return Google_ChildReference
592
+ */
593
+ public function get($folderId, $childId, $optParams = array()) {
594
+ $params = array('folderId' => $folderId, 'childId' => $childId);
595
+ $params = array_merge($params, $optParams);
596
+ $data = $this->__call('get', array($params));
597
+ if ($this->useObjects()) {
598
+ return new Google_ChildReference($data);
599
+ } else {
600
+ return $data;
601
+ }
602
+ }
603
+ /**
604
+ * Lists a folder's children. (children.list)
605
+ *
606
+ * @param string $folderId The ID of the folder.
607
+ * @param array $optParams Optional parameters.
608
+ *
609
+ * @opt_param string q Query string for searching children.
610
+ * @opt_param string pageToken Page token for children.
611
+ * @opt_param int maxResults Maximum number of children to return.
612
+ * @return Google_ChildList
613
+ */
614
+ public function listChildren($folderId, $optParams = array()) {
615
+ $params = array('folderId' => $folderId);
616
+ $params = array_merge($params, $optParams);
617
+ $data = $this->__call('list', array($params));
618
+ if ($this->useObjects()) {
619
+ return new Google_ChildList($data);
620
+ } else {
621
+ return $data;
622
+ }
623
+ }
624
+ /**
625
+ * Removes a child from a folder. (children.delete)
626
+ *
627
+ * @param string $folderId The ID of the folder.
628
+ * @param string $childId The ID of the child.
629
+ * @param array $optParams Optional parameters.
630
+ */
631
+ public function delete($folderId, $childId, $optParams = array()) {
632
+ $params = array('folderId' => $folderId, 'childId' => $childId);
633
+ $params = array_merge($params, $optParams);
634
+ $data = $this->__call('delete', array($params));
635
+ return $data;
636
+ }
637
+ }
638
+
639
+ /**
640
+ * The "permissions" collection of methods.
641
+ * Typical usage is:
642
+ * <code>
643
+ * $driveService = new Google_DriveService(...);
644
+ * $permissions = $driveService->permissions;
645
+ * </code>
646
+ */
647
+ class Google_PermissionsServiceResource extends Google_ServiceResource {
648
+
649
+
650
+ /**
651
+ * Inserts a permission for a file. (permissions.insert)
652
+ *
653
+ * @param string $fileId The ID for the file.
654
+ * @param Google_Permission $postBody
655
+ * @param array $optParams Optional parameters.
656
+ *
657
+ * @opt_param bool sendNotificationEmails Whether to send notification emails.
658
+ * @return Google_Permission
659
+ */
660
+ public function insert($fileId, Google_Permission $postBody, $optParams = array()) {
661
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
662
+ $params = array_merge($params, $optParams);
663
+ $data = $this->__call('insert', array($params));
664
+ if ($this->useObjects()) {
665
+ return new Google_Permission($data);
666
+ } else {
667
+ return $data;
668
+ }
669
+ }
670
+ /**
671
+ * Gets a permission by ID. (permissions.get)
672
+ *
673
+ * @param string $fileId The ID for the file.
674
+ * @param string $permissionId The ID for the permission.
675
+ * @param array $optParams Optional parameters.
676
+ * @return Google_Permission
677
+ */
678
+ public function get($fileId, $permissionId, $optParams = array()) {
679
+ $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
680
+ $params = array_merge($params, $optParams);
681
+ $data = $this->__call('get', array($params));
682
+ if ($this->useObjects()) {
683
+ return new Google_Permission($data);
684
+ } else {
685
+ return $data;
686
+ }
687
+ }
688
+ /**
689
+ * Lists a file's permissions. (permissions.list)
690
+ *
691
+ * @param string $fileId The ID for the file.
692
+ * @param array $optParams Optional parameters.
693
+ * @return Google_PermissionList
694
+ */
695
+ public function listPermissions($fileId, $optParams = array()) {
696
+ $params = array('fileId' => $fileId);
697
+ $params = array_merge($params, $optParams);
698
+ $data = $this->__call('list', array($params));
699
+ if ($this->useObjects()) {
700
+ return new Google_PermissionList($data);
701
+ } else {
702
+ return $data;
703
+ }
704
+ }
705
+ /**
706
+ * Updates a permission. (permissions.update)
707
+ *
708
+ * @param string $fileId The ID for the file.
709
+ * @param string $permissionId The ID for the permission.
710
+ * @param Google_Permission $postBody
711
+ * @param array $optParams Optional parameters.
712
+ * @return Google_Permission
713
+ */
714
+ public function update($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
715
+ $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
716
+ $params = array_merge($params, $optParams);
717
+ $data = $this->__call('update', array($params));
718
+ if ($this->useObjects()) {
719
+ return new Google_Permission($data);
720
+ } else {
721
+ return $data;
722
+ }
723
+ }
724
+ /**
725
+ * Updates a permission. This method supports patch semantics. (permissions.patch)
726
+ *
727
+ * @param string $fileId The ID for the file.
728
+ * @param string $permissionId The ID for the permission.
729
+ * @param Google_Permission $postBody
730
+ * @param array $optParams Optional parameters.
731
+ * @return Google_Permission
732
+ */
733
+ public function patch($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
734
+ $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
735
+ $params = array_merge($params, $optParams);
736
+ $data = $this->__call('patch', array($params));
737
+ if ($this->useObjects()) {
738
+ return new Google_Permission($data);
739
+ } else {
740
+ return $data;
741
+ }
742
+ }
743
+ /**
744
+ * Deletes a permission from a file. (permissions.delete)
745
+ *
746
+ * @param string $fileId The ID for the file.
747
+ * @param string $permissionId The ID for the permission.
748
+ * @param array $optParams Optional parameters.
749
+ */
750
+ public function delete($fileId, $permissionId, $optParams = array()) {
751
+ $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
752
+ $params = array_merge($params, $optParams);
753
+ $data = $this->__call('delete', array($params));
754
+ return $data;
755
+ }
756
+ }
757
+
758
+ /**
759
+ * Service definition for Google_Drive (v2).
760
+ *
761
+ * <p>
762
+ * The API to interact with Drive.
763
+ * </p>
764
+ *
765
+ * <p>
766
+ * For more information about this service, see the
767
+ * <a href="https://developers.google.com/drive/" target="_blank">API Documentation</a>
768
+ * </p>
769
+ *
770
+ * @author Google, Inc.
771
+ */
772
+ class Google_DriveService extends Google_Service {
773
+ public $files;
774
+ public $about;
775
+ public $apps;
776
+ public $parents;
777
+ public $revisions;
778
+ public $changes;
779
+ public $children;
780
+ public $permissions;
781
+ /**
782
+ * Constructs the internal representation of the Drive service.
783
+ *
784
+ * @param Google_Client $client
785
+ */
786
+ public function __construct(Google_Client $client) {
787
+ $this->servicePath = 'drive/v2/';
788
+ $this->version = 'v2';
789
+ $this->serviceName = 'drive';
790
+
791
+ $client->addService($this->serviceName, $this->version);
792
+ $this->files = new Google_FilesServiceResource($this, $this->serviceName, 'files', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files", "id": "drive.files.insert"}, "untrash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.untrash", "httpMethod": "POST", "path": "files/{fileId}/untrash", "response": {"$ref": "File"}}, "trash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.trash", "httpMethod": "POST", "path": "files/{fileId}/trash", "response": {"$ref": "File"}}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"updateViewedDate": {"default": "false", "type": "boolean", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.get", "httpMethod": "GET", "path": "files/{fileId}", "response": {"$ref": "File"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "FileList"}, "httpMethod": "GET", "path": "files", "id": "drive.files.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files/{fileId}", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files/{fileId}", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "PUT", "path": "files/{fileId}", "id": "drive.files.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "PATCH", "path": "files/{fileId}", "id": "drive.files.patch"}, "touch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.touch", "httpMethod": "POST", "path": "files/{fileId}/touch", "response": {"$ref": "File"}}, "copy": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files/{fileId}/copy", "id": "drive.files.copy"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}", "id": "drive.files.delete", "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
793
+ $this->about = new Google_AboutServiceResource($this, $this->serviceName, 'about', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "maxChangeIdCount": {"default": "1", "type": "string", "location": "query", "format": "int64"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}}, "response": {"$ref": "About"}, "httpMethod": "GET", "path": "about", "id": "drive.about.get"}}}', true));
794
+ $this->apps = new Google_AppsServiceResource($this, $this->serviceName, 'apps', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "path": "apps", "response": {"$ref": "AppList"}, "id": "drive.apps.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "parameters": {"appId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.apps.get", "httpMethod": "GET", "path": "apps/{appId}", "response": {"$ref": "App"}}}}', true));
795
+ $this->parents = new Google_ParentsServiceResource($this, $this->serviceName, 'parents', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ParentReference"}, "response": {"$ref": "ParentReference"}, "httpMethod": "POST", "path": "files/{fileId}/parents", "id": "drive.parents.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.get", "httpMethod": "GET", "path": "files/{fileId}/parents/{parentId}", "response": {"$ref": "ParentReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.list", "httpMethod": "GET", "path": "files/{fileId}/parents", "response": {"$ref": "ParentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/parents/{parentId}", "id": "drive.parents.delete", "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
796
+ $this->revisions = new Google_RevisionsServiceResource($this, $this->serviceName, 'revisions', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PATCH", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.patch"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.get", "httpMethod": "GET", "path": "files/{fileId}/revisions/{revisionId}", "response": {"$ref": "Revision"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.list", "httpMethod": "GET", "path": "files/{fileId}/revisions", "response": {"$ref": "RevisionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PUT", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.delete", "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
797
+ $this->changes = new Google_ChangesServiceResource($this, $this->serviceName, 'changes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}, "includeDeleted": {"default": "true", "type": "boolean", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "ChangeList"}, "httpMethod": "GET", "path": "changes", "id": "drive.changes.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"changeId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.changes.get", "httpMethod": "GET", "path": "changes/{changeId}", "response": {"$ref": "Change"}}}}', true));
798
+ $this->children = new Google_ChildrenServiceResource($this, $this->serviceName, 'children', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ChildReference"}, "response": {"$ref": "ChildReference"}, "httpMethod": "POST", "path": "files/{folderId}/children", "id": "drive.children.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.children.get", "httpMethod": "GET", "path": "files/{folderId}/children/{childId}", "response": {"$ref": "ChildReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "folderId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "id": "drive.children.list", "httpMethod": "GET", "path": "files/{folderId}/children", "response": {"$ref": "ChildList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{folderId}/children/{childId}", "id": "drive.children.delete", "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
799
+ $this->permissions = new Google_PermissionsServiceResource($this, $this->serviceName, 'permissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"sendNotificationEmails": {"default": "true", "type": "boolean", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "POST", "path": "files/{fileId}/permissions", "id": "drive.permissions.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.get", "httpMethod": "GET", "path": "files/{fileId}/permissions/{permissionId}", "response": {"$ref": "Permission"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.list", "httpMethod": "GET", "path": "files/{fileId}/permissions", "response": {"$ref": "PermissionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PUT", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PATCH", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.delete", "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
800
+
801
+ }
802
+ }
803
+
804
+ class Google_About extends Google_Model {
805
+ public $kind;
806
+ protected $__featuresType = 'Google_AboutFeatures';
807
+ protected $__featuresDataType = 'array';
808
+ public $features;
809
+ public $quotaBytesUsed;
810
+ public $permissionId;
811
+ protected $__maxUploadSizesType = 'Google_AboutMaxUploadSizes';
812
+ protected $__maxUploadSizesDataType = 'array';
813
+ public $maxUploadSizes;
814
+ public $name;
815
+ public $remainingChangeIds;
816
+ protected $__additionalRoleInfoType = 'Google_AboutAdditionalRoleInfo';
817
+ protected $__additionalRoleInfoDataType = 'array';
818
+ public $additionalRoleInfo;
819
+ public $etag;
820
+ protected $__importFormatsType = 'Google_AboutImportFormats';
821
+ protected $__importFormatsDataType = 'array';
822
+ public $importFormats;
823
+ public $quotaBytesTotal;
824
+ public $rootFolderId;
825
+ public $largestChangeId;
826
+ public $quotaBytesUsedInTrash;
827
+ protected $__exportFormatsType = 'Google_AboutExportFormats';
828
+ protected $__exportFormatsDataType = 'array';
829
+ public $exportFormats;
830
+ public $domainSharingPolicy;
831
+ public $selfLink;
832
+ public $isCurrentAppInstalled;
833
+ public function setKind($kind) {
834
+ $this->kind = $kind;
835
+ }
836
+ public function getKind() {
837
+ return $this->kind;
838
+ }
839
+ public function setFeatures(/* array(Google_AboutFeatures) */ $features) {
840
+ $this->assertIsArray($features, 'Google_AboutFeatures', __METHOD__);
841
+ $this->features = $features;
842
+ }
843
+ public function getFeatures() {
844
+ return $this->features;
845
+ }
846
+ public function setQuotaBytesUsed($quotaBytesUsed) {
847
+ $this->quotaBytesUsed = $quotaBytesUsed;
848
+ }
849
+ public function getQuotaBytesUsed() {
850
+ return $this->quotaBytesUsed;
851
+ }
852
+ public function setPermissionId($permissionId) {
853
+ $this->permissionId = $permissionId;
854
+ }
855
+ public function getPermissionId() {
856
+ return $this->permissionId;
857
+ }
858
+ public function setMaxUploadSizes(/* array(Google_AboutMaxUploadSizes) */ $maxUploadSizes) {
859
+ $this->assertIsArray($maxUploadSizes, 'Google_AboutMaxUploadSizes', __METHOD__);
860
+ $this->maxUploadSizes = $maxUploadSizes;
861
+ }
862
+ public function getMaxUploadSizes() {
863
+ return $this->maxUploadSizes;
864
+ }
865
+ public function setName($name) {
866
+ $this->name = $name;
867
+ }
868
+ public function getName() {
869
+ return $this->name;
870
+ }
871
+ public function setRemainingChangeIds($remainingChangeIds) {
872
+ $this->remainingChangeIds = $remainingChangeIds;
873
+ }
874
+ public function getRemainingChangeIds() {
875
+ return $this->remainingChangeIds;
876
+ }
877
+ public function setAdditionalRoleInfo(/* array(Google_AboutAdditionalRoleInfo) */ $additionalRoleInfo) {
878
+ $this->assertIsArray($additionalRoleInfo, 'Google_AboutAdditionalRoleInfo', __METHOD__);
879
+ $this->additionalRoleInfo = $additionalRoleInfo;
880
+ }
881
+ public function getAdditionalRoleInfo() {
882
+ return $this->additionalRoleInfo;
883
+ }
884
+ public function setEtag($etag) {
885
+ $this->etag = $etag;
886
+ }
887
+ public function getEtag() {
888
+ return $this->etag;
889
+ }
890
+ public function setImportFormats(/* array(Google_AboutImportFormats) */ $importFormats) {
891
+ $this->assertIsArray($importFormats, 'Google_AboutImportFormats', __METHOD__);
892
+ $this->importFormats = $importFormats;
893
+ }
894
+ public function getImportFormats() {
895
+ return $this->importFormats;
896
+ }
897
+ public function setQuotaBytesTotal($quotaBytesTotal) {
898
+ $this->quotaBytesTotal = $quotaBytesTotal;
899
+ }
900
+ public function getQuotaBytesTotal() {
901
+ return $this->quotaBytesTotal;
902
+ }
903
+ public function setRootFolderId($rootFolderId) {
904
+ $this->rootFolderId = $rootFolderId;
905
+ }
906
+ public function getRootFolderId() {
907
+ return $this->rootFolderId;
908
+ }
909
+ public function setLargestChangeId($largestChangeId) {
910
+ $this->largestChangeId = $largestChangeId;
911
+ }
912
+ public function getLargestChangeId() {
913
+ return $this->largestChangeId;
914
+ }
915
+ public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) {
916
+ $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash;
917
+ }
918
+ public function getQuotaBytesUsedInTrash() {
919
+ return $this->quotaBytesUsedInTrash;
920
+ }
921
+ public function setExportFormats(/* array(Google_AboutExportFormats) */ $exportFormats) {
922
+ $this->assertIsArray($exportFormats, 'Google_AboutExportFormats', __METHOD__);
923
+ $this->exportFormats = $exportFormats;
924
+ }
925
+ public function getExportFormats() {
926
+ return $this->exportFormats;
927
+ }
928
+ public function setDomainSharingPolicy($domainSharingPolicy) {
929
+ $this->domainSharingPolicy = $domainSharingPolicy;
930
+ }
931
+ public function getDomainSharingPolicy() {
932
+ return $this->domainSharingPolicy;
933
+ }
934
+ public function setSelfLink($selfLink) {
935
+ $this->selfLink = $selfLink;
936
+ }
937
+ public function getSelfLink() {
938
+ return $this->selfLink;
939
+ }
940
+ public function setIsCurrentAppInstalled($isCurrentAppInstalled) {
941
+ $this->isCurrentAppInstalled = $isCurrentAppInstalled;
942
+ }
943
+ public function getIsCurrentAppInstalled() {
944
+ return $this->isCurrentAppInstalled;
945
+ }
946
+ }
947
+
948
+ class Google_AboutAdditionalRoleInfo extends Google_Model {
949
+ protected $__roleSetsType = 'Google_AboutAdditionalRoleInfoRoleSets';
950
+ protected $__roleSetsDataType = 'array';
951
+ public $roleSets;
952
+ public $type;
953
+ public function setRoleSets(/* array(Google_AboutAdditionalRoleInfoRoleSets) */ $roleSets) {
954
+ $this->assertIsArray($roleSets, 'Google_AboutAdditionalRoleInfoRoleSets', __METHOD__);
955
+ $this->roleSets = $roleSets;
956
+ }
957
+ public function getRoleSets() {
958
+ return $this->roleSets;
959
+ }
960
+ public function setType($type) {
961
+ $this->type = $type;
962
+ }
963
+ public function getType() {
964
+ return $this->type;
965
+ }
966
+ }
967
+
968
+ class Google_AboutAdditionalRoleInfoRoleSets extends Google_Model {
969
+ public $primaryRole;
970
+ public $additionalRoles;
971
+ public function setPrimaryRole($primaryRole) {
972
+ $this->primaryRole = $primaryRole;
973
+ }
974
+ public function getPrimaryRole() {
975
+ return $this->primaryRole;
976
+ }
977
+ public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
978
+ $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
979
+ $this->additionalRoles = $additionalRoles;
980
+ }
981
+ public function getAdditionalRoles() {
982
+ return $this->additionalRoles;
983
+ }
984
+ }
985
+
986
+ class Google_AboutExportFormats extends Google_Model {
987
+ public $source;
988
+ public $targets;
989
+ public function setSource($source) {
990
+ $this->source = $source;
991
+ }
992
+ public function getSource() {
993
+ return $this->source;
994
+ }
995
+ public function setTargets(/* array(Google_string) */ $targets) {
996
+ $this->assertIsArray($targets, 'Google_string', __METHOD__);
997
+ $this->targets = $targets;
998
+ }
999
+ public function getTargets() {
1000
+ return $this->targets;
1001
+ }
1002
+ }
1003
+
1004
+ class Google_AboutFeatures extends Google_Model {
1005
+ public $featureName;
1006
+ public $featureRate;
1007
+ public function setFeatureName($featureName) {
1008
+ $this->featureName = $featureName;
1009
+ }
1010
+ public function getFeatureName() {
1011
+ return $this->featureName;
1012
+ }
1013
+ public function setFeatureRate($featureRate) {
1014
+ $this->featureRate = $featureRate;
1015
+ }
1016
+ public function getFeatureRate() {
1017
+ return $this->featureRate;
1018
+ }
1019
+ }
1020
+
1021
+ class Google_AboutImportFormats extends Google_Model {
1022
+ public $source;
1023
+ public $targets;
1024
+ public function setSource($source) {
1025
+ $this->source = $source;
1026
+ }
1027
+ public function getSource() {
1028
+ return $this->source;
1029
+ }
1030
+ public function setTargets(/* array(Google_string) */ $targets) {
1031
+ $this->assertIsArray($targets, 'Google_string', __METHOD__);
1032
+ $this->targets = $targets;
1033
+ }
1034
+ public function getTargets() {
1035
+ return $this->targets;
1036
+ }
1037
+ }
1038
+
1039
+ class Google_AboutMaxUploadSizes extends Google_Model {
1040
+ public $type;
1041
+ public $size;
1042
+ public function setType($type) {
1043
+ $this->type = $type;
1044
+ }
1045
+ public function getType() {
1046
+ return $this->type;
1047
+ }
1048
+ public function setSize($size) {
1049
+ $this->size = $size;
1050
+ }
1051
+ public function getSize() {
1052
+ return $this->size;
1053
+ }
1054
+ }
1055
+
1056
+ class Google_App extends Google_Model {
1057
+ public $kind;
1058
+ public $primaryFileExtensions;
1059
+ public $useByDefault;
1060
+ public $name;
1061
+ protected $__iconsType = 'Google_AppIcons';
1062
+ protected $__iconsDataType = 'array';
1063
+ public $icons;
1064
+ public $secondaryFileExtensions;
1065
+ public $installed;
1066
+ public $productUrl;
1067
+ public $secondaryMimeTypes;
1068
+ public $authorized;
1069
+ public $supportsCreate;
1070
+ public $supportsImport;
1071
+ public $primaryMimeTypes;
1072
+ public $id;
1073
+ public $objectType;
1074
+ public function setKind($kind) {
1075
+ $this->kind = $kind;
1076
+ }
1077
+ public function getKind() {
1078
+ return $this->kind;
1079
+ }
1080
+ public function setPrimaryFileExtensions(/* array(Google_string) */ $primaryFileExtensions) {
1081
+ $this->assertIsArray($primaryFileExtensions, 'Google_string', __METHOD__);
1082
+ $this->primaryFileExtensions = $primaryFileExtensions;
1083
+ }
1084
+ public function getPrimaryFileExtensions() {
1085
+ return $this->primaryFileExtensions;
1086
+ }
1087
+ public function setUseByDefault($useByDefault) {
1088
+ $this->useByDefault = $useByDefault;
1089
+ }
1090
+ public function getUseByDefault() {
1091
+ return $this->useByDefault;
1092
+ }
1093
+ public function setName($name) {
1094
+ $this->name = $name;
1095
+ }
1096
+ public function getName() {
1097
+ return $this->name;
1098
+ }
1099
+ public function setIcons(/* array(Google_AppIcons) */ $icons) {
1100
+ $this->assertIsArray($icons, 'Google_AppIcons', __METHOD__);
1101
+ $this->icons = $icons;
1102
+ }
1103
+ public function getIcons() {
1104
+ return $this->icons;
1105
+ }
1106
+ public function setSecondaryFileExtensions(/* array(Google_string) */ $secondaryFileExtensions) {
1107
+ $this->assertIsArray($secondaryFileExtensions, 'Google_string', __METHOD__);
1108
+ $this->secondaryFileExtensions = $secondaryFileExtensions;
1109
+ }
1110
+ public function getSecondaryFileExtensions() {
1111
+ return $this->secondaryFileExtensions;
1112
+ }
1113
+ public function setInstalled($installed) {
1114
+ $this->installed = $installed;
1115
+ }
1116
+ public function getInstalled() {
1117
+ return $this->installed;
1118
+ }
1119
+ public function setProductUrl($productUrl) {
1120
+ $this->productUrl = $productUrl;
1121
+ }
1122
+ public function getProductUrl() {
1123
+ return $this->productUrl;
1124
+ }
1125
+ public function setSecondaryMimeTypes(/* array(Google_string) */ $secondaryMimeTypes) {
1126
+ $this->assertIsArray($secondaryMimeTypes, 'Google_string', __METHOD__);
1127
+ $this->secondaryMimeTypes = $secondaryMimeTypes;
1128
+ }
1129
+ public function getSecondaryMimeTypes() {
1130
+ return $this->secondaryMimeTypes;
1131
+ }
1132
+ public function setAuthorized($authorized) {
1133
+ $this->authorized = $authorized;
1134
+ }
1135
+ public function getAuthorized() {
1136
+ return $this->authorized;
1137
+ }
1138
+ public function setSupportsCreate($supportsCreate) {
1139
+ $this->supportsCreate = $supportsCreate;
1140
+ }
1141
+ public function getSupportsCreate() {
1142
+ return $this->supportsCreate;
1143
+ }
1144
+ public function setSupportsImport($supportsImport) {
1145
+ $this->supportsImport = $supportsImport;
1146
+ }
1147
+ public function getSupportsImport() {
1148
+ return $this->supportsImport;
1149
+ }
1150
+ public function setPrimaryMimeTypes(/* array(Google_string) */ $primaryMimeTypes) {
1151
+ $this->assertIsArray($primaryMimeTypes, 'Google_string', __METHOD__);
1152
+ $this->primaryMimeTypes = $primaryMimeTypes;
1153
+ }
1154
+ public function getPrimaryMimeTypes() {
1155
+ return $this->primaryMimeTypes;
1156
+ }
1157
+ public function setId($id) {
1158
+ $this->id = $id;
1159
+ }
1160
+ public function getId() {
1161
+ return $this->id;
1162
+ }
1163
+ public function setObjectType($objectType) {
1164
+ $this->objectType = $objectType;
1165
+ }
1166
+ public function getObjectType() {
1167
+ return $this->objectType;
1168
+ }
1169
+ }
1170
+
1171
+ class Google_AppIcons extends Google_Model {
1172
+ public $category;
1173
+ public $iconUrl;
1174
+ public $size;
1175
+ public function setCategory($category) {
1176
+ $this->category = $category;
1177
+ }
1178
+ public function getCategory() {
1179
+ return $this->category;
1180
+ }
1181
+ public function setIconUrl($iconUrl) {
1182
+ $this->iconUrl = $iconUrl;
1183
+ }
1184
+ public function getIconUrl() {
1185
+ return $this->iconUrl;
1186
+ }
1187
+ public function setSize($size) {
1188
+ $this->size = $size;
1189
+ }
1190
+ public function getSize() {
1191
+ return $this->size;
1192
+ }
1193
+ }
1194
+
1195
+ class Google_AppList extends Google_Model {
1196
+ protected $__itemsType = 'Google_App';
1197
+ protected $__itemsDataType = 'array';
1198
+ public $items;
1199
+ public $kind;
1200
+ public $etag;
1201
+ public $selfLink;
1202
+ public function setItems(/* array(Google_App) */ $items) {
1203
+ $this->assertIsArray($items, 'Google_App', __METHOD__);
1204
+ $this->items = $items;
1205
+ }
1206
+ public function getItems() {
1207
+ return $this->items;
1208
+ }
1209
+ public function setKind($kind) {
1210
+ $this->kind = $kind;
1211
+ }
1212
+ public function getKind() {
1213
+ return $this->kind;
1214
+ }
1215
+ public function setEtag($etag) {
1216
+ $this->etag = $etag;
1217
+ }
1218
+ public function getEtag() {
1219
+ return $this->etag;
1220
+ }
1221
+ public function setSelfLink($selfLink) {
1222
+ $this->selfLink = $selfLink;
1223
+ }
1224
+ public function getSelfLink() {
1225
+ return $this->selfLink;
1226
+ }
1227
+ }
1228
+
1229
+ class Google_Change extends Google_Model {
1230
+ public $kind;
1231
+ public $deleted;
1232
+ protected $__fileType = 'Google_DriveFile';
1233
+ protected $__fileDataType = '';
1234
+ public $file;
1235
+ public $id;
1236
+ public $selfLink;
1237
+ public $fileId;
1238
+ public function setKind($kind) {
1239
+ $this->kind = $kind;
1240
+ }
1241
+ public function getKind() {
1242
+ return $this->kind;
1243
+ }
1244
+ public function setDeleted($deleted) {
1245
+ $this->deleted = $deleted;
1246
+ }
1247
+ public function getDeleted() {
1248
+ return $this->deleted;
1249
+ }
1250
+ public function setFile(Google_DriveFile $file) {
1251
+ $this->file = $file;
1252
+ }
1253
+ public function getFile() {
1254
+ return $this->file;
1255
+ }
1256
+ public function setId($id) {
1257
+ $this->id = $id;
1258
+ }
1259
+ public function getId() {
1260
+ return $this->id;
1261
+ }
1262
+ public function setSelfLink($selfLink) {
1263
+ $this->selfLink = $selfLink;
1264
+ }
1265
+ public function getSelfLink() {
1266
+ return $this->selfLink;
1267
+ }
1268
+ public function setFileId($fileId) {
1269
+ $this->fileId = $fileId;
1270
+ }
1271
+ public function getFileId() {
1272
+ return $this->fileId;
1273
+ }
1274
+ }
1275
+
1276
+ class Google_ChangeList extends Google_Model {
1277
+ public $nextPageToken;
1278
+ public $kind;
1279
+ protected $__itemsType = 'Google_Change';
1280
+ protected $__itemsDataType = 'array';
1281
+ public $items;
1282
+ public $nextLink;
1283
+ public $etag;
1284
+ public $largestChangeId;
1285
+ public $selfLink;
1286
+ public function setNextPageToken($nextPageToken) {
1287
+ $this->nextPageToken = $nextPageToken;
1288
+ }
1289
+ public function getNextPageToken() {
1290
+ return $this->nextPageToken;
1291
+ }
1292
+ public function setKind($kind) {
1293
+ $this->kind = $kind;
1294
+ }
1295
+ public function getKind() {
1296
+ return $this->kind;
1297
+ }
1298
+ public function setItems(/* array(Google_Change) */ $items) {
1299
+ $this->assertIsArray($items, 'Google_Change', __METHOD__);
1300
+ $this->items = $items;
1301
+ }
1302
+ public function getItems() {
1303
+ return $this->items;
1304
+ }
1305
+ public function setNextLink($nextLink) {
1306
+ $this->nextLink = $nextLink;
1307
+ }
1308
+ public function getNextLink() {
1309
+ return $this->nextLink;
1310
+ }
1311
+ public function setEtag($etag) {
1312
+ $this->etag = $etag;
1313
+ }
1314
+ public function getEtag() {
1315
+ return $this->etag;
1316
+ }
1317
+ public function setLargestChangeId($largestChangeId) {
1318
+ $this->largestChangeId = $largestChangeId;
1319
+ }
1320
+ public function getLargestChangeId() {
1321
+ return $this->largestChangeId;
1322
+ }
1323
+ public function setSelfLink($selfLink) {
1324
+ $this->selfLink = $selfLink;
1325
+ }
1326
+ public function getSelfLink() {
1327
+ return $this->selfLink;
1328
+ }
1329
+ }
1330
+
1331
+ class Google_ChildList extends Google_Model {
1332
+ public $nextPageToken;
1333
+ public $kind;
1334
+ protected $__itemsType = 'Google_ChildReference';
1335
+ protected $__itemsDataType = 'array';
1336
+ public $items;
1337
+ public $nextLink;
1338
+ public $etag;
1339
+ public $selfLink;
1340
+ public function setNextPageToken($nextPageToken) {
1341
+ $this->nextPageToken = $nextPageToken;
1342
+ }
1343
+ public function getNextPageToken() {
1344
+ return $this->nextPageToken;
1345
+ }
1346
+ public function setKind($kind) {
1347
+ $this->kind = $kind;
1348
+ }
1349
+ public function getKind() {
1350
+ return $this->kind;
1351
+ }
1352
+ public function setItems(/* array(Google_ChildReference) */ $items) {
1353
+ $this->assertIsArray($items, 'Google_ChildReference', __METHOD__);
1354
+ $this->items = $items;
1355
+ }
1356
+ public function getItems() {
1357
+ return $this->items;
1358
+ }
1359
+ public function setNextLink($nextLink) {
1360
+ $this->nextLink = $nextLink;
1361
+ }
1362
+ public function getNextLink() {
1363
+ return $this->nextLink;
1364
+ }
1365
+ public function setEtag($etag) {
1366
+ $this->etag = $etag;
1367
+ }
1368
+ public function getEtag() {
1369
+ return $this->etag;
1370
+ }
1371
+ public function setSelfLink($selfLink) {
1372
+ $this->selfLink = $selfLink;
1373
+ }
1374
+ public function getSelfLink() {
1375
+ return $this->selfLink;
1376
+ }
1377
+ }
1378
+
1379
+ class Google_ChildReference extends Google_Model {
1380
+ public $kind;
1381
+ public $childLink;
1382
+ public $id;
1383
+ public $selfLink;
1384
+ public function setKind($kind) {
1385
+ $this->kind = $kind;
1386
+ }
1387
+ public function getKind() {
1388
+ return $this->kind;
1389
+ }
1390
+ public function setChildLink($childLink) {
1391
+ $this->childLink = $childLink;
1392
+ }
1393
+ public function getChildLink() {
1394
+ return $this->childLink;
1395
+ }
1396
+ public function setId($id) {
1397
+ $this->id = $id;
1398
+ }
1399
+ public function getId() {
1400
+ return $this->id;
1401
+ }
1402
+ public function setSelfLink($selfLink) {
1403
+ $this->selfLink = $selfLink;
1404
+ }
1405
+ public function getSelfLink() {
1406
+ return $this->selfLink;
1407
+ }
1408
+ }
1409
+
1410
+ class Google_DriveFile extends Google_Model {
1411
+ public $mimeType;
1412
+ public $thumbnailLink;
1413
+ protected $__labelsType = 'Google_DriveFileLabels';
1414
+ protected $__labelsDataType = '';
1415
+ public $labels;
1416
+ protected $__indexableTextType = 'Google_DriveFileIndexableText';
1417
+ protected $__indexableTextDataType = '';
1418
+ public $indexableText;
1419
+ public $explicitlyTrashed;
1420
+ public $etag;
1421
+ public $lastModifyingUserName;
1422
+ public $writersCanShare;
1423
+ public $id;
1424
+ public $title;
1425
+ public $ownerNames;
1426
+ public $sharedWithMeDate;
1427
+ public $lastViewedByMeDate;
1428
+ protected $__parentsType = 'Google_ParentReference';
1429
+ protected $__parentsDataType = 'array';
1430
+ public $parents;
1431
+ public $exportLinks;
1432
+ public $originalFilename;
1433
+ public $description;
1434
+ public $webContentLink;
1435
+ public $editable;
1436
+ public $kind;
1437
+ public $quotaBytesUsed;
1438
+ public $fileSize;
1439
+ public $createdDate;
1440
+ public $md5Checksum;
1441
+ protected $__imageMediaMetadataType = 'Google_DriveFileImageMediaMetadata';
1442
+ protected $__imageMediaMetadataDataType = '';
1443
+ public $imageMediaMetadata;
1444
+ public $embedLink;
1445
+ public $alternateLink;
1446
+ public $modifiedByMeDate;
1447
+ public $downloadUrl;
1448
+ protected $__userPermissionType = 'Google_Permission';
1449
+ protected $__userPermissionDataType = '';
1450
+ public $userPermission;
1451
+ public $fileExtension;
1452
+ public $selfLink;
1453
+ public $modifiedDate;
1454
+ public function setMimeType($mimeType) {
1455
+ $this->mimeType = $mimeType;
1456
+ }
1457
+ public function getMimeType() {
1458
+ return $this->mimeType;
1459
+ }
1460
+ public function setThumbnailLink($thumbnailLink) {
1461
+ $this->thumbnailLink = $thumbnailLink;
1462
+ }
1463
+ public function getThumbnailLink() {
1464
+ return $this->thumbnailLink;
1465
+ }
1466
+ public function setLabels(Google_DriveFileLabels $labels) {
1467
+ $this->labels = $labels;
1468
+ }
1469
+ public function getLabels() {
1470
+ return $this->labels;
1471
+ }
1472
+ public function setIndexableText(Google_DriveFileIndexableText $indexableText) {
1473
+ $this->indexableText = $indexableText;
1474
+ }
1475
+ public function getIndexableText() {
1476
+ return $this->indexableText;
1477
+ }
1478
+ public function setExplicitlyTrashed($explicitlyTrashed) {
1479
+ $this->explicitlyTrashed = $explicitlyTrashed;
1480
+ }
1481
+ public function getExplicitlyTrashed() {
1482
+ return $this->explicitlyTrashed;
1483
+ }
1484
+ public function setEtag($etag) {
1485
+ $this->etag = $etag;
1486
+ }
1487
+ public function getEtag() {
1488
+ return $this->etag;
1489
+ }
1490
+ public function setLastModifyingUserName($lastModifyingUserName) {
1491
+ $this->lastModifyingUserName = $lastModifyingUserName;
1492
+ }
1493
+ public function getLastModifyingUserName() {
1494
+ return $this->lastModifyingUserName;
1495
+ }
1496
+ public function setWritersCanShare($writersCanShare) {
1497
+ $this->writersCanShare = $writersCanShare;
1498
+ }
1499
+ public function getWritersCanShare() {
1500
+ return $this->writersCanShare;
1501
+ }
1502
+ public function setId($id) {
1503
+ $this->id = $id;
1504
+ }
1505
+ public function getId() {
1506
+ return $this->id;
1507
+ }
1508
+ public function setTitle($title) {
1509
+ $this->title = $title;
1510
+ }
1511
+ public function getTitle() {
1512
+ return $this->title;
1513
+ }
1514
+ public function setOwnerNames(/* array(Google_string) */ $ownerNames) {
1515
+ $this->assertIsArray($ownerNames, 'Google_string', __METHOD__);
1516
+ $this->ownerNames = $ownerNames;
1517
+ }
1518
+ public function getOwnerNames() {
1519
+ return $this->ownerNames;
1520
+ }
1521
+ public function setSharedWithMeDate($sharedWithMeDate) {
1522
+ $this->sharedWithMeDate = $sharedWithMeDate;
1523
+ }
1524
+ public function getSharedWithMeDate() {
1525
+ return $this->sharedWithMeDate;
1526
+ }
1527
+ public function setLastViewedByMeDate($lastViewedByMeDate) {
1528
+ $this->lastViewedByMeDate = $lastViewedByMeDate;
1529
+ }
1530
+ public function getLastViewedByMeDate() {
1531
+ return $this->lastViewedByMeDate;
1532
+ }
1533
+ public function setParents(/* array(Google_ParentReference) */ $parents) {
1534
+ $this->assertIsArray($parents, 'Google_ParentReference', __METHOD__);
1535
+ $this->parents = $parents;
1536
+ }
1537
+ public function getParents() {
1538
+ return $this->parents;
1539
+ }
1540
+ public function setExportLinks($exportLinks) {
1541
+ $this->exportLinks = $exportLinks;
1542
+ }
1543
+ public function getExportLinks() {
1544
+ return $this->exportLinks;
1545
+ }
1546
+ public function setOriginalFilename($originalFilename) {
1547
+ $this->originalFilename = $originalFilename;
1548
+ }
1549
+ public function getOriginalFilename() {
1550
+ return $this->originalFilename;
1551
+ }
1552
+ public function setDescription($description) {
1553
+ $this->description = $description;
1554
+ }
1555
+ public function getDescription() {
1556
+ return $this->description;
1557
+ }
1558
+ public function setWebContentLink($webContentLink) {
1559
+ $this->webContentLink = $webContentLink;
1560
+ }
1561
+ public function getWebContentLink() {
1562
+ return $this->webContentLink;
1563
+ }
1564
+ public function setEditable($editable) {
1565
+ $this->editable = $editable;
1566
+ }
1567
+ public function getEditable() {
1568
+ return $this->editable;
1569
+ }
1570
+ public function setKind($kind) {
1571
+ $this->kind = $kind;
1572
+ }
1573
+ public function getKind() {
1574
+ return $this->kind;
1575
+ }
1576
+ public function setQuotaBytesUsed($quotaBytesUsed) {
1577
+ $this->quotaBytesUsed = $quotaBytesUsed;
1578
+ }
1579
+ public function getQuotaBytesUsed() {
1580
+ return $this->quotaBytesUsed;
1581
+ }
1582
+ public function setFileSize($fileSize) {
1583
+ $this->fileSize = $fileSize;
1584
+ }
1585
+ public function getFileSize() {
1586
+ return $this->fileSize;
1587
+ }
1588
+ public function setCreatedDate($createdDate) {
1589
+ $this->createdDate = $createdDate;
1590
+ }
1591
+ public function getCreatedDate() {
1592
+ return $this->createdDate;
1593
+ }
1594
+ public function setMd5Checksum($md5Checksum) {
1595
+ $this->md5Checksum = $md5Checksum;
1596
+ }
1597
+ public function getMd5Checksum() {
1598
+ return $this->md5Checksum;
1599
+ }
1600
+ public function setImageMediaMetadata(Google_DriveFileImageMediaMetadata $imageMediaMetadata) {
1601
+ $this->imageMediaMetadata = $imageMediaMetadata;
1602
+ }
1603
+ public function getImageMediaMetadata() {
1604
+ return $this->imageMediaMetadata;
1605
+ }
1606
+ public function setEmbedLink($embedLink) {
1607
+ $this->embedLink = $embedLink;
1608
+ }
1609
+ public function getEmbedLink() {
1610
+ return $this->embedLink;
1611
+ }
1612
+ public function setAlternateLink($alternateLink) {
1613
+ $this->alternateLink = $alternateLink;
1614
+ }
1615
+ public function getAlternateLink() {
1616
+ return $this->alternateLink;
1617
+ }
1618
+ public function setModifiedByMeDate($modifiedByMeDate) {
1619
+ $this->modifiedByMeDate = $modifiedByMeDate;
1620
+ }
1621
+ public function getModifiedByMeDate() {
1622
+ return $this->modifiedByMeDate;
1623
+ }
1624
+ public function setDownloadUrl($downloadUrl) {
1625
+ $this->downloadUrl = $downloadUrl;
1626
+ }
1627
+ public function getDownloadUrl() {
1628
+ return $this->downloadUrl;
1629
+ }
1630
+ public function setUserPermission(Google_Permission $userPermission) {
1631
+ $this->userPermission = $userPermission;
1632
+ }
1633
+ public function getUserPermission() {
1634
+ return $this->userPermission;
1635
+ }
1636
+ public function setFileExtension($fileExtension) {
1637
+ $this->fileExtension = $fileExtension;
1638
+ }
1639
+ public function getFileExtension() {
1640
+ return $this->fileExtension;
1641
+ }
1642
+ public function setSelfLink($selfLink) {
1643
+ $this->selfLink = $selfLink;
1644
+ }
1645
+ public function getSelfLink() {
1646
+ return $this->selfLink;
1647
+ }
1648
+ public function setModifiedDate($modifiedDate) {
1649
+ $this->modifiedDate = $modifiedDate;
1650
+ }
1651
+ public function getModifiedDate() {
1652
+ return $this->modifiedDate;
1653
+ }
1654
+ }
1655
+
1656
+ class Google_DriveFileImageMediaMetadata extends Google_Model {
1657
+ public $width;
1658
+ public $rotation;
1659
+ protected $__locationType = 'Google_DriveFileImageMediaMetadataLocation';
1660
+ protected $__locationDataType = '';
1661
+ public $location;
1662
+ public $height;
1663
+ public function setWidth($width) {
1664
+ $this->width = $width;
1665
+ }
1666
+ public function getWidth() {
1667
+ return $this->width;
1668
+ }
1669
+ public function setRotation($rotation) {
1670
+ $this->rotation = $rotation;
1671
+ }
1672
+ public function getRotation() {
1673
+ return $this->rotation;
1674
+ }
1675
+ public function setLocation(Google_DriveFileImageMediaMetadataLocation $location) {
1676
+ $this->location = $location;
1677
+ }
1678
+ public function getLocation() {
1679
+ return $this->location;
1680
+ }
1681
+ public function setHeight($height) {
1682
+ $this->height = $height;
1683
+ }
1684
+ public function getHeight() {
1685
+ return $this->height;
1686
+ }
1687
+ }
1688
+
1689
+ class Google_DriveFileImageMediaMetadataLocation extends Google_Model {
1690
+ public $latitude;
1691
+ public $altitude;
1692
+ public $longitude;
1693
+ public function setLatitude($latitude) {
1694
+ $this->latitude = $latitude;
1695
+ }
1696
+ public function getLatitude() {
1697
+ return $this->latitude;
1698
+ }
1699
+ public function setAltitude($altitude) {
1700
+ $this->altitude = $altitude;
1701
+ }
1702
+ public function getAltitude() {
1703
+ return $this->altitude;
1704
+ }
1705
+ public function setLongitude($longitude) {
1706
+ $this->longitude = $longitude;
1707
+ }
1708
+ public function getLongitude() {
1709
+ return $this->longitude;
1710
+ }
1711
+ }
1712
+
1713
+ class Google_DriveFileIndexableText extends Google_Model {
1714
+ public $text;
1715
+ public function setText($text) {
1716
+ $this->text = $text;
1717
+ }
1718
+ public function getText() {
1719
+ return $this->text;
1720
+ }
1721
+ }
1722
+
1723
+ class Google_DriveFileLabels extends Google_Model {
1724
+ public $restricted;
1725
+ public $hidden;
1726
+ public $viewed;
1727
+ public $starred;
1728
+ public $trashed;
1729
+ public function setRestricted($restricted) {
1730
+ $this->restricted = $restricted;
1731
+ }
1732
+ public function getRestricted() {
1733
+ return $this->restricted;
1734
+ }
1735
+ public function setHidden($hidden) {
1736
+ $this->hidden = $hidden;
1737
+ }
1738
+ public function getHidden() {
1739
+ return $this->hidden;
1740
+ }
1741
+ public function setViewed($viewed) {
1742
+ $this->viewed = $viewed;
1743
+ }
1744
+ public function getViewed() {
1745
+ return $this->viewed;
1746
+ }
1747
+ public function setStarred($starred) {
1748
+ $this->starred = $starred;
1749
+ }
1750
+ public function getStarred() {
1751
+ return $this->starred;
1752
+ }
1753
+ public function setTrashed($trashed) {
1754
+ $this->trashed = $trashed;
1755
+ }
1756
+ public function getTrashed() {
1757
+ return $this->trashed;
1758
+ }
1759
+ }
1760
+
1761
+ class Google_FileList extends Google_Model {
1762
+ public $nextPageToken;
1763
+ public $kind;
1764
+ protected $__itemsType = 'Google_DriveFile';
1765
+ protected $__itemsDataType = 'array';
1766
+ public $items;
1767
+ public $nextLink;
1768
+ public $etag;
1769
+ public $selfLink;
1770
+ public function setNextPageToken($nextPageToken) {
1771
+ $this->nextPageToken = $nextPageToken;
1772
+ }
1773
+ public function getNextPageToken() {
1774
+ return $this->nextPageToken;
1775
+ }
1776
+ public function setKind($kind) {
1777
+ $this->kind = $kind;
1778
+ }
1779
+ public function getKind() {
1780
+ return $this->kind;
1781
+ }
1782
+ public function setItems(/* array(Google_DriveFile) */ $items) {
1783
+ $this->assertIsArray($items, 'Google_DriveFile', __METHOD__);
1784
+ $this->items = $items;
1785
+ }
1786
+ public function getItems() {
1787
+ return $this->items;
1788
+ }
1789
+ public function setNextLink($nextLink) {
1790
+ $this->nextLink = $nextLink;
1791
+ }
1792
+ public function getNextLink() {
1793
+ return $this->nextLink;
1794
+ }
1795
+ public function setEtag($etag) {
1796
+ $this->etag = $etag;
1797
+ }
1798
+ public function getEtag() {
1799
+ return $this->etag;
1800
+ }
1801
+ public function setSelfLink($selfLink) {
1802
+ $this->selfLink = $selfLink;
1803
+ }
1804
+ public function getSelfLink() {
1805
+ return $this->selfLink;
1806
+ }
1807
+ }
1808
+
1809
+ class Google_ParentList extends Google_Model {
1810
+ protected $__itemsType = 'Google_ParentReference';
1811
+ protected $__itemsDataType = 'array';
1812
+ public $items;
1813
+ public $kind;
1814
+ public $etag;
1815
+ public $selfLink;
1816
+ public function setItems(/* array(Google_ParentReference) */ $items) {
1817
+ $this->assertIsArray($items, 'Google_ParentReference', __METHOD__);
1818
+ $this->items = $items;
1819
+ }
1820
+ public function getItems() {
1821
+ return $this->items;
1822
+ }
1823
+ public function setKind($kind) {
1824
+ $this->kind = $kind;
1825
+ }
1826
+ public function getKind() {
1827
+ return $this->kind;
1828
+ }
1829
+ public function setEtag($etag) {
1830
+ $this->etag = $etag;
1831
+ }
1832
+ public function getEtag() {
1833
+ return $this->etag;
1834
+ }
1835
+ public function setSelfLink($selfLink) {
1836
+ $this->selfLink = $selfLink;
1837
+ }
1838
+ public function getSelfLink() {
1839
+ return $this->selfLink;
1840
+ }
1841
+ }
1842
+
1843
+ class Google_ParentReference extends Google_Model {
1844
+ public $selfLink;
1845
+ public $kind;
1846
+ public $id;
1847
+ public $isRoot;
1848
+ public $parentLink;
1849
+ public function setSelfLink($selfLink) {
1850
+ $this->selfLink = $selfLink;
1851
+ }
1852
+ public function getSelfLink() {
1853
+ return $this->selfLink;
1854
+ }
1855
+ public function setKind($kind) {
1856
+ $this->kind = $kind;
1857
+ }
1858
+ public function getKind() {
1859
+ return $this->kind;
1860
+ }
1861
+ public function setId($id) {
1862
+ $this->id = $id;
1863
+ }
1864
+ public function getId() {
1865
+ return $this->id;
1866
+ }
1867
+ public function setIsRoot($isRoot) {
1868
+ $this->isRoot = $isRoot;
1869
+ }
1870
+ public function getIsRoot() {
1871
+ return $this->isRoot;
1872
+ }
1873
+ public function setParentLink($parentLink) {
1874
+ $this->parentLink = $parentLink;
1875
+ }
1876
+ public function getParentLink() {
1877
+ return $this->parentLink;
1878
+ }
1879
+ }
1880
+
1881
+ class Google_Permission extends Google_Model {
1882
+ public $withLink;
1883
+ public $kind;
1884
+ public $name;
1885
+ public $value;
1886
+ public $id;
1887
+ public $authKey;
1888
+ public $etag;
1889
+ public $role;
1890
+ public $photoLink;
1891
+ public $type;
1892
+ public $additionalRoles;
1893
+ public $selfLink;
1894
+ public function setWithLink($withLink) {
1895
+ $this->withLink = $withLink;
1896
+ }
1897
+ public function getWithLink() {
1898
+ return $this->withLink;
1899
+ }
1900
+ public function setKind($kind) {
1901
+ $this->kind = $kind;
1902
+ }
1903
+ public function getKind() {
1904
+ return $this->kind;
1905
+ }
1906
+ public function setName($name) {
1907
+ $this->name = $name;
1908
+ }
1909
+ public function getName() {
1910
+ return $this->name;
1911
+ }
1912
+ public function setValue($value) {
1913
+ $this->value = $value;
1914
+ }
1915
+ public function getValue() {
1916
+ return $this->value;
1917
+ }
1918
+ public function setId($id) {
1919
+ $this->id = $id;
1920
+ }
1921
+ public function getId() {
1922
+ return $this->id;
1923
+ }
1924
+ public function setAuthKey($authKey) {
1925
+ $this->authKey = $authKey;
1926
+ }
1927
+ public function getAuthKey() {
1928
+ return $this->authKey;
1929
+ }
1930
+ public function setEtag($etag) {
1931
+ $this->etag = $etag;
1932
+ }
1933
+ public function getEtag() {
1934
+ return $this->etag;
1935
+ }
1936
+ public function setRole($role) {
1937
+ $this->role = $role;
1938
+ }
1939
+ public function getRole() {
1940
+ return $this->role;
1941
+ }
1942
+ public function setPhotoLink($photoLink) {
1943
+ $this->photoLink = $photoLink;
1944
+ }
1945
+ public function getPhotoLink() {
1946
+ return $this->photoLink;
1947
+ }
1948
+ public function setType($type) {
1949
+ $this->type = $type;
1950
+ }
1951
+ public function getType() {
1952
+ return $this->type;
1953
+ }
1954
+ public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
1955
+ $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
1956
+ $this->additionalRoles = $additionalRoles;
1957
+ }
1958
+ public function getAdditionalRoles() {
1959
+ return $this->additionalRoles;
1960
+ }
1961
+ public function setSelfLink($selfLink) {
1962
+ $this->selfLink = $selfLink;
1963
+ }
1964
+ public function getSelfLink() {
1965
+ return $this->selfLink;
1966
+ }
1967
+ }
1968
+
1969
+ class Google_PermissionList extends Google_Model {
1970
+ protected $__itemsType = 'Google_Permission';
1971
+ protected $__itemsDataType = 'array';
1972
+ public $items;
1973
+ public $kind;
1974
+ public $etag;
1975
+ public $selfLink;
1976
+ public function setItems(/* array(Google_Permission) */ $items) {
1977
+ $this->assertIsArray($items, 'Google_Permission', __METHOD__);
1978
+ $this->items = $items;
1979
+ }
1980
+ public function getItems() {
1981
+ return $this->items;
1982
+ }
1983
+ public function setKind($kind) {
1984
+ $this->kind = $kind;
1985
+ }
1986
+ public function getKind() {
1987
+ return $this->kind;
1988
+ }
1989
+ public function setEtag($etag) {
1990
+ $this->etag = $etag;
1991
+ }
1992
+ public function getEtag() {
1993
+ return $this->etag;
1994
+ }
1995
+ public function setSelfLink($selfLink) {
1996
+ $this->selfLink = $selfLink;
1997
+ }
1998
+ public function getSelfLink() {
1999
+ return $this->selfLink;
2000
+ }
2001
+ }
2002
+
2003
+ class Google_Revision extends Google_Model {
2004
+ public $mimeType;
2005
+ public $pinned;
2006
+ public $kind;
2007
+ public $publishedLink;
2008
+ public $publishedOutsideDomain;
2009
+ public $publishAuto;
2010
+ public $published;
2011
+ public $downloadUrl;
2012
+ public $selfLink;
2013
+ public $etag;
2014
+ public $fileSize;
2015
+ public $exportLinks;
2016
+ public $lastModifyingUserName;
2017
+ public $originalFilename;
2018
+ public $id;
2019
+ public $md5Checksum;
2020
+ public $modifiedDate;
2021
+ public function setMimeType($mimeType) {
2022
+ $this->mimeType = $mimeType;
2023
+ }
2024
+ public function getMimeType() {
2025
+ return $this->mimeType;
2026
+ }
2027
+ public function setPinned($pinned) {
2028
+ $this->pinned = $pinned;
2029
+ }
2030
+ public function getPinned() {
2031
+ return $this->pinned;
2032
+ }
2033
+ public function setKind($kind) {
2034
+ $this->kind = $kind;
2035
+ }
2036
+ public function getKind() {
2037
+ return $this->kind;
2038
+ }
2039
+ public function setPublishedLink($publishedLink) {
2040
+ $this->publishedLink = $publishedLink;
2041
+ }
2042
+ public function getPublishedLink() {
2043
+ return $this->publishedLink;
2044
+ }
2045
+ public function setPublishedOutsideDomain($publishedOutsideDomain) {
2046
+ $this->publishedOutsideDomain = $publishedOutsideDomain;
2047
+ }
2048
+ public function getPublishedOutsideDomain() {
2049
+ return $this->publishedOutsideDomain;
2050
+ }
2051
+ public function setPublishAuto($publishAuto) {
2052
+ $this->publishAuto = $publishAuto;
2053
+ }
2054
+ public function getPublishAuto() {
2055
+ return $this->publishAuto;
2056
+ }
2057
+ public function setPublished($published) {
2058
+ $this->published = $published;
2059
+ }
2060
+ public function getPublished() {
2061
+ return $this->published;
2062
+ }
2063
+ public function setDownloadUrl($downloadUrl) {
2064
+ $this->downloadUrl = $downloadUrl;
2065
+ }
2066
+ public function getDownloadUrl() {
2067
+ return $this->downloadUrl;
2068
+ }
2069
+ public function setSelfLink($selfLink) {
2070
+ $this->selfLink = $selfLink;
2071
+ }
2072
+ public function getSelfLink() {
2073
+ return $this->selfLink;
2074
+ }
2075
+ public function setEtag($etag) {
2076
+ $this->etag = $etag;
2077
+ }
2078
+ public function getEtag() {
2079
+ return $this->etag;
2080
+ }
2081
+ public function setFileSize($fileSize) {
2082
+ $this->fileSize = $fileSize;
2083
+ }
2084
+ public function getFileSize() {
2085
+ return $this->fileSize;
2086
+ }
2087
+ public function setExportLinks($exportLinks) {
2088
+ $this->exportLinks = $exportLinks;
2089
+ }
2090
+ public function getExportLinks() {
2091
+ return $this->exportLinks;
2092
+ }
2093
+ public function setLastModifyingUserName($lastModifyingUserName) {
2094
+ $this->lastModifyingUserName = $lastModifyingUserName;
2095
+ }
2096
+ public function getLastModifyingUserName() {
2097
+ return $this->lastModifyingUserName;
2098
+ }
2099
+ public function setOriginalFilename($originalFilename) {
2100
+ $this->originalFilename = $originalFilename;
2101
+ }
2102
+ public function getOriginalFilename() {
2103
+ return $this->originalFilename;
2104
+ }
2105
+ public function setId($id) {
2106
+ $this->id = $id;
2107
+ }
2108
+ public function getId() {
2109
+ return $this->id;
2110
+ }
2111
+ public function setMd5Checksum($md5Checksum) {
2112
+ $this->md5Checksum = $md5Checksum;
2113
+ }
2114
+ public function getMd5Checksum() {
2115
+ return $this->md5Checksum;
2116
+ }
2117
+ public function setModifiedDate($modifiedDate) {
2118
+ $this->modifiedDate = $modifiedDate;
2119
+ }
2120
+ public function getModifiedDate() {
2121
+ return $this->modifiedDate;
2122
+ }
2123
+ }
2124
+
2125
+ class Google_RevisionList extends Google_Model {
2126
+ protected $__itemsType = 'Google_Revision';
2127
+ protected $__itemsDataType = 'array';
2128
+ public $items;
2129
+ public $kind;
2130
+ public $etag;
2131
+ public $selfLink;
2132
+ public function setItems(/* array(Google_Revision) */ $items) {
2133
+ $this->assertIsArray($items, 'Google_Revision', __METHOD__);
2134
+ $this->items = $items;
2135
+ }
2136
+ public function getItems() {
2137
+ return $this->items;
2138
+ }
2139
+ public function setKind($kind) {
2140
+ $this->kind = $kind;
2141
+ }
2142
+ public function getKind() {
2143
+ return $this->kind;
2144
+ }
2145
+ public function setEtag($etag) {
2146
+ $this->etag = $etag;
2147
+ }
2148
+ public function getEtag() {
2149
+ return $this->etag;
2150
+ }
2151
+ public function setSelfLink($selfLink) {
2152
+ $this->selfLink = $selfLink;
2153
+ }
2154
+ public function getSelfLink() {
2155
+ return $this->selfLink;
2156
+ }
2157
+ }
google-api-php-client/src/contrib/Google_FreebaseService.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "text" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $freebaseService = new Google_FreebaseService(...);
22
+ * $text = $freebaseService->text;
23
+ * </code>
24
+ */
25
+ class Google_TextServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Returns blob attached to node at specified id as HTML (text.get)
30
+ *
31
+ * @param string $id The id of the item that you want data about
32
+ * @param array $optParams Optional parameters.
33
+ *
34
+ * @opt_param string maxlength The max number of characters to return. Valid only for 'plain' format.
35
+ * @opt_param string format Sanitizing transformation.
36
+ * @return Google_ContentserviceGet
37
+ */
38
+ public function get($id, $optParams = array()) {
39
+ $params = array('id' => $id);
40
+ $params = array_merge($params, $optParams);
41
+ $data = $this->__call('get', array($params));
42
+ if ($this->useObjects()) {
43
+ return new Google_ContentserviceGet($data);
44
+ } else {
45
+ return $data;
46
+ }
47
+ }
48
+ }
49
+
50
+ /**
51
+ * Service definition for Google_Freebase (v1).
52
+ *
53
+ * <p>
54
+ * Lets you access the Freebase repository of open data.
55
+ * </p>
56
+ *
57
+ * <p>
58
+ * For more information about this service, see the
59
+ * <a href="http://wiki.freebase.com/wiki/API" target="_blank">API Documentation</a>
60
+ * </p>
61
+ *
62
+ * @author Google, Inc.
63
+ */
64
+ class Google_FreebaseService extends Google_Service {
65
+ public $text;
66
+ /**
67
+ * Constructs the internal representation of the Freebase service.
68
+ *
69
+ * @param Google_Client $client
70
+ */
71
+ public function __construct(Google_Client $client) {
72
+ $this->servicePath = 'freebase/v1/';
73
+ $this->version = 'v1';
74
+ $this->serviceName = 'freebase';
75
+
76
+ $client->addService($this->serviceName, $this->version);
77
+ $this->text = new Google_TextServiceResource($this, $this->serviceName, 'text', json_decode('{"methods": {"get": {"httpMethod": "GET", "response": {"$ref": "ContentserviceGet"}, "id": "freebase.text.get", "parameters": {"maxlength": {"type": "integer", "location": "query", "format": "uint32"}, "id": {"repeated": true, "required": true, "type": "string", "location": "path"}, "format": {"default": "plain", "enum": ["html", "plain", "raw"], "type": "string", "location": "query"}}, "path": "text{/id*}"}}}', true));
78
+ }
79
+ }
80
+
81
+ class Google_ContentserviceGet extends Google_Model {
82
+ public $result;
83
+ public function setResult($result) {
84
+ $this->result = $result;
85
+ }
86
+ public function getResult() {
87
+ return $this->result;
88
+ }
89
+ }
google-api-php-client/src/contrib/Google_FusiontablesService.php ADDED
@@ -0,0 +1,1326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "column" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $fusiontablesService = new Google_FusiontablesService(...);
22
+ * $column = $fusiontablesService->column;
23
+ * </code>
24
+ */
25
+ class Google_ColumnServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Adds a new column to the table. (column.insert)
30
+ *
31
+ * @param string $tableId Table for which a new column is being added.
32
+ * @param Google_Column $postBody
33
+ * @param array $optParams Optional parameters.
34
+ * @return Google_Column
35
+ */
36
+ public function insert($tableId, Google_Column $postBody, $optParams = array()) {
37
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
38
+ $params = array_merge($params, $optParams);
39
+ $data = $this->__call('insert', array($params));
40
+ if ($this->useObjects()) {
41
+ return new Google_Column($data);
42
+ } else {
43
+ return $data;
44
+ }
45
+ }
46
+ /**
47
+ * Retrieves a specific column by its id. (column.get)
48
+ *
49
+ * @param string $tableId Table to which the column belongs.
50
+ * @param string $columnId Name or identifier for the column that is being requested.
51
+ * @param array $optParams Optional parameters.
52
+ * @return Google_Column
53
+ */
54
+ public function get($tableId, $columnId, $optParams = array()) {
55
+ $params = array('tableId' => $tableId, 'columnId' => $columnId);
56
+ $params = array_merge($params, $optParams);
57
+ $data = $this->__call('get', array($params));
58
+ if ($this->useObjects()) {
59
+ return new Google_Column($data);
60
+ } else {
61
+ return $data;
62
+ }
63
+ }
64
+ /**
65
+ * Retrieves a list of columns. (column.list)
66
+ *
67
+ * @param string $tableId Table whose columns are being listed.
68
+ * @param array $optParams Optional parameters.
69
+ *
70
+ * @opt_param string pageToken Continuation token specifying which result page to return. Optional.
71
+ * @opt_param string maxResults Maximum number of columns to return. Optional. Default is 5.
72
+ * @return Google_ColumnList
73
+ */
74
+ public function listColumn($tableId, $optParams = array()) {
75
+ $params = array('tableId' => $tableId);
76
+ $params = array_merge($params, $optParams);
77
+ $data = $this->__call('list', array($params));
78
+ if ($this->useObjects()) {
79
+ return new Google_ColumnList($data);
80
+ } else {
81
+ return $data;
82
+ }
83
+ }
84
+ /**
85
+ * Updates the name or type of an existing column. (column.update)
86
+ *
87
+ * @param string $tableId Table for which the column is being updated.
88
+ * @param string $columnId Name or identifier for the column that is being updated.
89
+ * @param Google_Column $postBody
90
+ * @param array $optParams Optional parameters.
91
+ * @return Google_Column
92
+ */
93
+ public function update($tableId, $columnId, Google_Column $postBody, $optParams = array()) {
94
+ $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
95
+ $params = array_merge($params, $optParams);
96
+ $data = $this->__call('update', array($params));
97
+ if ($this->useObjects()) {
98
+ return new Google_Column($data);
99
+ } else {
100
+ return $data;
101
+ }
102
+ }
103
+ /**
104
+ * Updates the name or type of an existing column. This method supports patch semantics.
105
+ * (column.patch)
106
+ *
107
+ * @param string $tableId Table for which the column is being updated.
108
+ * @param string $columnId Name or identifier for the column that is being updated.
109
+ * @param Google_Column $postBody
110
+ * @param array $optParams Optional parameters.
111
+ * @return Google_Column
112
+ */
113
+ public function patch($tableId, $columnId, Google_Column $postBody, $optParams = array()) {
114
+ $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
115
+ $params = array_merge($params, $optParams);
116
+ $data = $this->__call('patch', array($params));
117
+ if ($this->useObjects()) {
118
+ return new Google_Column($data);
119
+ } else {
120
+ return $data;
121
+ }
122
+ }
123
+ /**
124
+ * Deletes the column. (column.delete)
125
+ *
126
+ * @param string $tableId Table from which the column is being deleted.
127
+ * @param string $columnId Name or identifier for the column being deleted.
128
+ * @param array $optParams Optional parameters.
129
+ */
130
+ public function delete($tableId, $columnId, $optParams = array()) {
131
+ $params = array('tableId' => $tableId, 'columnId' => $columnId);
132
+ $params = array_merge($params, $optParams);
133
+ $data = $this->__call('delete', array($params));
134
+ return $data;
135
+ }
136
+ }
137
+
138
+ /**
139
+ * The "query" collection of methods.
140
+ * Typical usage is:
141
+ * <code>
142
+ * $fusiontablesService = new Google_FusiontablesService(...);
143
+ * $query = $fusiontablesService->query;
144
+ * </code>
145
+ */
146
+ class Google_QueryServiceResource extends Google_ServiceResource {
147
+
148
+
149
+ /**
150
+ * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet)
151
+ *
152
+ * @param string $sql An SQL SELECT/SHOW/DESCRIBE statement.
153
+ * @param array $optParams Optional parameters.
154
+ *
155
+ * @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
156
+ * @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
157
+ * @return Google_Sqlresponse
158
+ */
159
+ public function sqlGet($sql, $optParams = array()) {
160
+ $params = array('sql' => $sql);
161
+ $params = array_merge($params, $optParams);
162
+ $data = $this->__call('sqlGet', array($params));
163
+ if ($this->useObjects()) {
164
+ return new Google_Sqlresponse($data);
165
+ } else {
166
+ return $data;
167
+ }
168
+ }
169
+ /**
170
+ * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE statement. (query.sql)
171
+ *
172
+ * @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE statement.
173
+ * @param array $optParams Optional parameters.
174
+ *
175
+ * @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
176
+ * @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
177
+ * @return Google_Sqlresponse
178
+ */
179
+ public function sql($sql, $optParams = array()) {
180
+ $params = array('sql' => $sql);
181
+ $params = array_merge($params, $optParams);
182
+ $data = $this->__call('sql', array($params));
183
+ if ($this->useObjects()) {
184
+ return new Google_Sqlresponse($data);
185
+ } else {
186
+ return $data;
187
+ }
188
+ }
189
+ }
190
+
191
+ /**
192
+ * The "style" collection of methods.
193
+ * Typical usage is:
194
+ * <code>
195
+ * $fusiontablesService = new Google_FusiontablesService(...);
196
+ * $style = $fusiontablesService->style;
197
+ * </code>
198
+ */
199
+ class Google_StyleServiceResource extends Google_ServiceResource {
200
+
201
+
202
+ /**
203
+ * Adds a new style for the table. (style.insert)
204
+ *
205
+ * @param string $tableId Table for which a new style is being added
206
+ * @param Google_StyleSetting $postBody
207
+ * @param array $optParams Optional parameters.
208
+ * @return Google_StyleSetting
209
+ */
210
+ public function insert($tableId, Google_StyleSetting $postBody, $optParams = array()) {
211
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
212
+ $params = array_merge($params, $optParams);
213
+ $data = $this->__call('insert', array($params));
214
+ if ($this->useObjects()) {
215
+ return new Google_StyleSetting($data);
216
+ } else {
217
+ return $data;
218
+ }
219
+ }
220
+ /**
221
+ * Gets a specific style. (style.get)
222
+ *
223
+ * @param string $tableId Table to which the requested style belongs
224
+ * @param int $styleId Identifier (integer) for a specific style in a table
225
+ * @param array $optParams Optional parameters.
226
+ * @return Google_StyleSetting
227
+ */
228
+ public function get($tableId, $styleId, $optParams = array()) {
229
+ $params = array('tableId' => $tableId, 'styleId' => $styleId);
230
+ $params = array_merge($params, $optParams);
231
+ $data = $this->__call('get', array($params));
232
+ if ($this->useObjects()) {
233
+ return new Google_StyleSetting($data);
234
+ } else {
235
+ return $data;
236
+ }
237
+ }
238
+ /**
239
+ * Retrieves a list of styles. (style.list)
240
+ *
241
+ * @param string $tableId Table whose styles are being listed
242
+ * @param array $optParams Optional parameters.
243
+ *
244
+ * @opt_param string pageToken Continuation token specifying which result page to return. Optional.
245
+ * @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
246
+ * @return Google_StyleSettingList
247
+ */
248
+ public function listStyle($tableId, $optParams = array()) {
249
+ $params = array('tableId' => $tableId);
250
+ $params = array_merge($params, $optParams);
251
+ $data = $this->__call('list', array($params));
252
+ if ($this->useObjects()) {
253
+ return new Google_StyleSettingList($data);
254
+ } else {
255
+ return $data;
256
+ }
257
+ }
258
+ /**
259
+ * Updates an existing style. (style.update)
260
+ *
261
+ * @param string $tableId Table whose style is being updated.
262
+ * @param int $styleId Identifier (within a table) for the style being updated.
263
+ * @param Google_StyleSetting $postBody
264
+ * @param array $optParams Optional parameters.
265
+ * @return Google_StyleSetting
266
+ */
267
+ public function update($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
268
+ $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
269
+ $params = array_merge($params, $optParams);
270
+ $data = $this->__call('update', array($params));
271
+ if ($this->useObjects()) {
272
+ return new Google_StyleSetting($data);
273
+ } else {
274
+ return $data;
275
+ }
276
+ }
277
+ /**
278
+ * Updates an existing style. This method supports patch semantics. (style.patch)
279
+ *
280
+ * @param string $tableId Table whose style is being updated.
281
+ * @param int $styleId Identifier (within a table) for the style being updated.
282
+ * @param Google_StyleSetting $postBody
283
+ * @param array $optParams Optional parameters.
284
+ * @return Google_StyleSetting
285
+ */
286
+ public function patch($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
287
+ $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
288
+ $params = array_merge($params, $optParams);
289
+ $data = $this->__call('patch', array($params));
290
+ if ($this->useObjects()) {
291
+ return new Google_StyleSetting($data);
292
+ } else {
293
+ return $data;
294
+ }
295
+ }
296
+ /**
297
+ * Deletes a style. (style.delete)
298
+ *
299
+ * @param string $tableId Table from which the style is being deleted
300
+ * @param int $styleId Identifier (within a table) for the style being deleted
301
+ * @param array $optParams Optional parameters.
302
+ */
303
+ public function delete($tableId, $styleId, $optParams = array()) {
304
+ $params = array('tableId' => $tableId, 'styleId' => $styleId);
305
+ $params = array_merge($params, $optParams);
306
+ $data = $this->__call('delete', array($params));
307
+ return $data;
308
+ }
309
+ }
310
+
311
+ /**
312
+ * The "template" collection of methods.
313
+ * Typical usage is:
314
+ * <code>
315
+ * $fusiontablesService = new Google_FusiontablesService(...);
316
+ * $template = $fusiontablesService->template;
317
+ * </code>
318
+ */
319
+ class Google_TemplateServiceResource extends Google_ServiceResource {
320
+
321
+
322
+ /**
323
+ * Creates a new template for the table. (template.insert)
324
+ *
325
+ * @param string $tableId Table for which a new template is being created
326
+ * @param Google_Template $postBody
327
+ * @param array $optParams Optional parameters.
328
+ * @return Google_Template
329
+ */
330
+ public function insert($tableId, Google_Template $postBody, $optParams = array()) {
331
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
332
+ $params = array_merge($params, $optParams);
333
+ $data = $this->__call('insert', array($params));
334
+ if ($this->useObjects()) {
335
+ return new Google_Template($data);
336
+ } else {
337
+ return $data;
338
+ }
339
+ }
340
+ /**
341
+ * Retrieves a specific template by its id (template.get)
342
+ *
343
+ * @param string $tableId Table to which the template belongs
344
+ * @param int $templateId Identifier for the template that is being requested
345
+ * @param array $optParams Optional parameters.
346
+ * @return Google_Template
347
+ */
348
+ public function get($tableId, $templateId, $optParams = array()) {
349
+ $params = array('tableId' => $tableId, 'templateId' => $templateId);
350
+ $params = array_merge($params, $optParams);
351
+ $data = $this->__call('get', array($params));
352
+ if ($this->useObjects()) {
353
+ return new Google_Template($data);
354
+ } else {
355
+ return $data;
356
+ }
357
+ }
358
+ /**
359
+ * Retrieves a list of templates. (template.list)
360
+ *
361
+ * @param string $tableId Identifier for the table whose templates are being requested
362
+ * @param array $optParams Optional parameters.
363
+ *
364
+ * @opt_param string pageToken Continuation token specifying which results page to return. Optional.
365
+ * @opt_param string maxResults Maximum number of templates to return. Optional. Default is 5.
366
+ * @return Google_TemplateList
367
+ */
368
+ public function listTemplate($tableId, $optParams = array()) {
369
+ $params = array('tableId' => $tableId);
370
+ $params = array_merge($params, $optParams);
371
+ $data = $this->__call('list', array($params));
372
+ if ($this->useObjects()) {
373
+ return new Google_TemplateList($data);
374
+ } else {
375
+ return $data;
376
+ }
377
+ }
378
+ /**
379
+ * Updates an existing template (template.update)
380
+ *
381
+ * @param string $tableId Table to which the updated template belongs
382
+ * @param int $templateId Identifier for the template that is being updated
383
+ * @param Google_Template $postBody
384
+ * @param array $optParams Optional parameters.
385
+ * @return Google_Template
386
+ */
387
+ public function update($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
388
+ $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
389
+ $params = array_merge($params, $optParams);
390
+ $data = $this->__call('update', array($params));
391
+ if ($this->useObjects()) {
392
+ return new Google_Template($data);
393
+ } else {
394
+ return $data;
395
+ }
396
+ }
397
+ /**
398
+ * Updates an existing template. This method supports patch semantics. (template.patch)
399
+ *
400
+ * @param string $tableId Table to which the updated template belongs
401
+ * @param int $templateId Identifier for the template that is being updated
402
+ * @param Google_Template $postBody
403
+ * @param array $optParams Optional parameters.
404
+ * @return Google_Template
405
+ */
406
+ public function patch($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
407
+ $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
408
+ $params = array_merge($params, $optParams);
409
+ $data = $this->__call('patch', array($params));
410
+ if ($this->useObjects()) {
411
+ return new Google_Template($data);
412
+ } else {
413
+ return $data;
414
+ }
415
+ }
416
+ /**
417
+ * Deletes a template (template.delete)
418
+ *
419
+ * @param string $tableId Table from which the template is being deleted
420
+ * @param int $templateId Identifier for the template which is being deleted
421
+ * @param array $optParams Optional parameters.
422
+ */
423
+ public function delete($tableId, $templateId, $optParams = array()) {
424
+ $params = array('tableId' => $tableId, 'templateId' => $templateId);
425
+ $params = array_merge($params, $optParams);
426
+ $data = $this->__call('delete', array($params));
427
+ return $data;
428
+ }
429
+ }
430
+
431
+ /**
432
+ * The "table" collection of methods.
433
+ * Typical usage is:
434
+ * <code>
435
+ * $fusiontablesService = new Google_FusiontablesService(...);
436
+ * $table = $fusiontablesService->table;
437
+ * </code>
438
+ */
439
+ class Google_TableServiceResource extends Google_ServiceResource {
440
+
441
+
442
+ /**
443
+ * Creates a new table. (table.insert)
444
+ *
445
+ * @param Google_Table $postBody
446
+ * @param array $optParams Optional parameters.
447
+ * @return Google_Table
448
+ */
449
+ public function insert(Google_Table $postBody, $optParams = array()) {
450
+ $params = array('postBody' => $postBody);
451
+ $params = array_merge($params, $optParams);
452
+ $data = $this->__call('insert', array($params));
453
+ if ($this->useObjects()) {
454
+ return new Google_Table($data);
455
+ } else {
456
+ return $data;
457
+ }
458
+ }
459
+ /**
460
+ * Retrieves a specific table by its id. (table.get)
461
+ *
462
+ * @param string $tableId Identifier(ID) for the table being requested.
463
+ * @param array $optParams Optional parameters.
464
+ * @return Google_Table
465
+ */
466
+ public function get($tableId, $optParams = array()) {
467
+ $params = array('tableId' => $tableId);
468
+ $params = array_merge($params, $optParams);
469
+ $data = $this->__call('get', array($params));
470
+ if ($this->useObjects()) {
471
+ return new Google_Table($data);
472
+ } else {
473
+ return $data;
474
+ }
475
+ }
476
+ /**
477
+ * Retrieves a list of tables a user owns. (table.list)
478
+ *
479
+ * @param array $optParams Optional parameters.
480
+ *
481
+ * @opt_param string pageToken Continuation token specifying which result page to return. Optional.
482
+ * @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
483
+ * @return Google_TableList
484
+ */
485
+ public function listTable($optParams = array()) {
486
+ $params = array();
487
+ $params = array_merge($params, $optParams);
488
+ $data = $this->__call('list', array($params));
489
+ if ($this->useObjects()) {
490
+ return new Google_TableList($data);
491
+ } else {
492
+ return $data;
493
+ }
494
+ }
495
+ /**
496
+ * Updates an existing table. Unless explicitly requested, only the name, description, and
497
+ * attribution will be updated. (table.update)
498
+ *
499
+ * @param string $tableId Id of the table that is being updated.
500
+ * @param Google_Table $postBody
501
+ * @param array $optParams Optional parameters.
502
+ *
503
+ * @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
504
+ * @return Google_Table
505
+ */
506
+ public function update($tableId, Google_Table $postBody, $optParams = array()) {
507
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
508
+ $params = array_merge($params, $optParams);
509
+ $data = $this->__call('update', array($params));
510
+ if ($this->useObjects()) {
511
+ return new Google_Table($data);
512
+ } else {
513
+ return $data;
514
+ }
515
+ }
516
+ /**
517
+ * Updates an existing table. Unless explicitly requested, only the name, description, and
518
+ * attribution will be updated. This method supports patch semantics. (table.patch)
519
+ *
520
+ * @param string $tableId Id of the table that is being updated.
521
+ * @param Google_Table $postBody
522
+ * @param array $optParams Optional parameters.
523
+ *
524
+ * @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
525
+ * @return Google_Table
526
+ */
527
+ public function patch($tableId, Google_Table $postBody, $optParams = array()) {
528
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
529
+ $params = array_merge($params, $optParams);
530
+ $data = $this->__call('patch', array($params));
531
+ if ($this->useObjects()) {
532
+ return new Google_Table($data);
533
+ } else {
534
+ return $data;
535
+ }
536
+ }
537
+ /**
538
+ * Deletes a table. (table.delete)
539
+ *
540
+ * @param string $tableId Id of the table that is being deleted.
541
+ * @param array $optParams Optional parameters.
542
+ */
543
+ public function delete($tableId, $optParams = array()) {
544
+ $params = array('tableId' => $tableId);
545
+ $params = array_merge($params, $optParams);
546
+ $data = $this->__call('delete', array($params));
547
+ return $data;
548
+ }
549
+ }
550
+
551
+ /**
552
+ * Service definition for Google_Fusiontables (v1).
553
+ *
554
+ * <p>
555
+ * API for working with Fusion Tables data.
556
+ * </p>
557
+ *
558
+ * <p>
559
+ * For more information about this service, see the
560
+ * <a href="https://developers.google.com/fusiontables" target="_blank">API Documentation</a>
561
+ * </p>
562
+ *
563
+ * @author Google, Inc.
564
+ */
565
+ class Google_FusiontablesService extends Google_Service {
566
+ public $column;
567
+ public $query;
568
+ public $style;
569
+ public $template;
570
+ public $table;
571
+ /**
572
+ * Constructs the internal representation of the Fusiontables service.
573
+ *
574
+ * @param Google_Client $client
575
+ */
576
+ public function __construct(Google_Client $client) {
577
+ $this->servicePath = 'fusiontables/v1/';
578
+ $this->version = 'v1';
579
+ $this->serviceName = 'fusiontables';
580
+
581
+ $client->addService($this->serviceName, $this->version);
582
+ $this->column = new Google_ColumnServiceResource($this, $this->serviceName, 'column', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "POST", "path": "tables/{tableId}/columns", "id": "fusiontables.column.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.column.get", "httpMethod": "GET", "path": "tables/{tableId}/columns/{columnId}", "response": {"$ref": "Column"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.column.list", "httpMethod": "GET", "path": "tables/{tableId}/columns", "response": {"$ref": "ColumnList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PUT", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PATCH", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
583
+ $this->query = new Google_QueryServiceResource($this, $this->serviceName, 'query', json_decode('{"methods": {"sqlGet": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sqlGet", "httpMethod": "GET", "path": "query", "response": {"$ref": "Sqlresponse"}}, "sql": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sql", "httpMethod": "POST", "path": "query", "response": {"$ref": "Sqlresponse"}}}}', true));
584
+ $this->style = new Google_StyleServiceResource($this, $this->serviceName, 'style', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "POST", "path": "tables/{tableId}/styles", "id": "fusiontables.style.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.style.get", "httpMethod": "GET", "path": "tables/{tableId}/styles/{styleId}", "response": {"$ref": "StyleSetting"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.style.list", "httpMethod": "GET", "path": "tables/{tableId}/styles", "response": {"$ref": "StyleSettingList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PUT", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PATCH", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
585
+ $this->template = new Google_TemplateServiceResource($this, $this->serviceName, 'template', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "POST", "path": "tables/{tableId}/templates", "id": "fusiontables.template.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.template.get", "httpMethod": "GET", "path": "tables/{tableId}/templates/{templateId}", "response": {"$ref": "Template"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.template.list", "httpMethod": "GET", "path": "tables/{tableId}/templates", "response": {"$ref": "TemplateList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PUT", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PATCH", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
586
+ $this->table = new Google_TableServiceResource($this, $this->serviceName, 'table', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "tables", "id": "fusiontables.table.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.table.get", "httpMethod": "GET", "path": "tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "TableList"}, "httpMethod": "GET", "path": "tables", "id": "fusiontables.table.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "tables/{tableId}", "id": "fusiontables.table.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "tables/{tableId}", "id": "fusiontables.table.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}", "id": "fusiontables.table.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
587
+
588
+ }
589
+ }
590
+
591
+ class Google_Bucket extends Google_Model {
592
+ public $opacity;
593
+ public $weight;
594
+ public $min;
595
+ public $color;
596
+ public $max;
597
+ public $icon;
598
+ public function setOpacity($opacity) {
599
+ $this->opacity = $opacity;
600
+ }
601
+ public function getOpacity() {
602
+ return $this->opacity;
603
+ }
604
+ public function setWeight($weight) {
605
+ $this->weight = $weight;
606
+ }
607
+ public function getWeight() {
608
+ return $this->weight;
609
+ }
610
+ public function setMin($min) {
611
+ $this->min = $min;
612
+ }
613
+ public function getMin() {
614
+ return $this->min;
615
+ }
616
+ public function setColor($color) {
617
+ $this->color = $color;
618
+ }
619
+ public function getColor() {
620
+ return $this->color;
621
+ }
622
+ public function setMax($max) {
623
+ $this->max = $max;
624
+ }
625
+ public function getMax() {
626
+ return $this->max;
627
+ }
628
+ public function setIcon($icon) {
629
+ $this->icon = $icon;
630
+ }
631
+ public function getIcon() {
632
+ return $this->icon;
633
+ }
634
+ }
635
+
636
+ class Google_Column extends Google_Model {
637
+ public $kind;
638
+ public $type;
639
+ public $columnId;
640
+ public $name;
641
+ protected $__baseColumnType = 'Google_ColumnBaseColumn';
642
+ protected $__baseColumnDataType = '';
643
+ public $baseColumn;
644
+ public function setKind($kind) {
645
+ $this->kind = $kind;
646
+ }
647
+ public function getKind() {
648
+ return $this->kind;
649
+ }
650
+ public function setType($type) {
651
+ $this->type = $type;
652
+ }
653
+ public function getType() {
654
+ return $this->type;
655
+ }
656
+ public function setColumnId($columnId) {
657
+ $this->columnId = $columnId;
658
+ }
659
+ public function getColumnId() {
660
+ return $this->columnId;
661
+ }
662
+ public function setName($name) {
663
+ $this->name = $name;
664
+ }
665
+ public function getName() {
666
+ return $this->name;
667
+ }
668
+ public function setBaseColumn(Google_ColumnBaseColumn $baseColumn) {
669
+ $this->baseColumn = $baseColumn;
670
+ }
671
+ public function getBaseColumn() {
672
+ return $this->baseColumn;
673
+ }
674
+ }
675
+
676
+ class Google_ColumnBaseColumn extends Google_Model {
677
+ public $tableIndex;
678
+ public $columnId;
679
+ public function setTableIndex($tableIndex) {
680
+ $this->tableIndex = $tableIndex;
681
+ }
682
+ public function getTableIndex() {
683
+ return $this->tableIndex;
684
+ }
685
+ public function setColumnId($columnId) {
686
+ $this->columnId = $columnId;
687
+ }
688
+ public function getColumnId() {
689
+ return $this->columnId;
690
+ }
691
+ }
692
+
693
+ class Google_ColumnList extends Google_Model {
694
+ public $nextPageToken;
695
+ protected $__itemsType = 'Google_Column';
696
+ protected $__itemsDataType = 'array';
697
+ public $items;
698
+ public $kind;
699
+ public $totalItems;
700
+ public function setNextPageToken($nextPageToken) {
701
+ $this->nextPageToken = $nextPageToken;
702
+ }
703
+ public function getNextPageToken() {
704
+ return $this->nextPageToken;
705
+ }
706
+ public function setItems(/* array(Google_Column) */ $items) {
707
+ $this->assertIsArray($items, 'Google_Column', __METHOD__);
708
+ $this->items = $items;
709
+ }
710
+ public function getItems() {
711
+ return $this->items;
712
+ }
713
+ public function setKind($kind) {
714
+ $this->kind = $kind;
715
+ }
716
+ public function getKind() {
717
+ return $this->kind;
718
+ }
719
+ public function setTotalItems($totalItems) {
720
+ $this->totalItems = $totalItems;
721
+ }
722
+ public function getTotalItems() {
723
+ return $this->totalItems;
724
+ }
725
+ }
726
+
727
+ class Google_Geometry extends Google_Model {
728
+ public $geometry;
729
+ public $type;
730
+ public $geometries;
731
+ public function setGeometry($geometry) {
732
+ $this->geometry = $geometry;
733
+ }
734
+ public function getGeometry() {
735
+ return $this->geometry;
736
+ }
737
+ public function setType($type) {
738
+ $this->type = $type;
739
+ }
740
+ public function getType() {
741
+ return $this->type;
742
+ }
743
+ public function setGeometries(/* array(Google_object) */ $geometries) {
744
+ $this->assertIsArray($geometries, 'Google_object', __METHOD__);
745
+ $this->geometries = $geometries;
746
+ }
747
+ public function getGeometries() {
748
+ return $this->geometries;
749
+ }
750
+ }
751
+
752
+ class Google_Line extends Google_Model {
753
+ public $type;
754
+ public $coordinates;
755
+ public function setType($type) {
756
+ $this->type = $type;
757
+ }
758
+ public function getType() {
759
+ return $this->type;
760
+ }
761
+ public function setCoordinates(/* array(Google_double) */ $coordinates) {
762
+ $this->assertIsArray($coordinates, 'Google_double', __METHOD__);
763
+ $this->coordinates = $coordinates;
764
+ }
765
+ public function getCoordinates() {
766
+ return $this->coordinates;
767
+ }
768
+ }
769
+
770
+ class Google_LineStyle extends Google_Model {
771
+ public $strokeWeight;
772
+ protected $__strokeWeightStylerType = 'Google_StyleFunction';
773
+ protected $__strokeWeightStylerDataType = '';
774
+ public $strokeWeightStyler;
775
+ public $strokeColor;
776
+ public $strokeOpacity;
777
+ protected $__strokeColorStylerType = 'Google_StyleFunction';
778
+ protected $__strokeColorStylerDataType = '';
779
+ public $strokeColorStyler;
780
+ public function setStrokeWeight($strokeWeight) {
781
+ $this->strokeWeight = $strokeWeight;
782
+ }
783
+ public function getStrokeWeight() {
784
+ return $this->strokeWeight;
785
+ }
786
+ public function setStrokeWeightStyler(Google_StyleFunction $strokeWeightStyler) {
787
+ $this->strokeWeightStyler = $strokeWeightStyler;
788
+ }
789
+ public function getStrokeWeightStyler() {
790
+ return $this->strokeWeightStyler;
791
+ }
792
+ public function setStrokeColor($strokeColor) {
793
+ $this->strokeColor = $strokeColor;
794
+ }
795
+ public function getStrokeColor() {
796
+ return $this->strokeColor;
797
+ }
798
+ public function setStrokeOpacity($strokeOpacity) {
799
+ $this->strokeOpacity = $strokeOpacity;
800
+ }
801
+ public function getStrokeOpacity() {
802
+ return $this->strokeOpacity;
803
+ }
804
+ public function setStrokeColorStyler(Google_StyleFunction $strokeColorStyler) {
805
+ $this->strokeColorStyler = $strokeColorStyler;
806
+ }
807
+ public function getStrokeColorStyler() {
808
+ return $this->strokeColorStyler;
809
+ }
810
+ }
811
+
812
+ class Google_Point extends Google_Model {
813
+ public $type;
814
+ public $coordinates;
815
+ public function setType($type) {
816
+ $this->type = $type;
817
+ }
818
+ public function getType() {
819
+ return $this->type;
820
+ }
821
+ public function setCoordinates(/* array(Google_double) */ $coordinates) {
822
+ $this->assertIsArray($coordinates, 'Google_double', __METHOD__);
823
+ $this->coordinates = $coordinates;
824
+ }
825
+ public function getCoordinates() {
826
+ return $this->coordinates;
827
+ }
828
+ }
829
+
830
+ class Google_PointStyle extends Google_Model {
831
+ protected $__iconStylerType = 'Google_StyleFunction';
832
+ protected $__iconStylerDataType = '';
833
+ public $iconStyler;
834
+ public $iconName;
835
+ public function setIconStyler(Google_StyleFunction $iconStyler) {
836
+ $this->iconStyler = $iconStyler;
837
+ }
838
+ public function getIconStyler() {
839
+ return $this->iconStyler;
840
+ }
841
+ public function setIconName($iconName) {
842
+ $this->iconName = $iconName;
843
+ }
844
+ public function getIconName() {
845
+ return $this->iconName;
846
+ }
847
+ }
848
+
849
+ class Google_Polygon extends Google_Model {
850
+ public $type;
851
+ public $coordinates;
852
+ public function setType($type) {
853
+ $this->type = $type;
854
+ }
855
+ public function getType() {
856
+ return $this->type;
857
+ }
858
+ public function setCoordinates(/* array(Google_double) */ $coordinates) {
859
+ $this->assertIsArray($coordinates, 'Google_double', __METHOD__);
860
+ $this->coordinates = $coordinates;
861
+ }
862
+ public function getCoordinates() {
863
+ return $this->coordinates;
864
+ }
865
+ }
866
+
867
+ class Google_PolygonStyle extends Google_Model {
868
+ protected $__strokeColorStylerType = 'Google_StyleFunction';
869
+ protected $__strokeColorStylerDataType = '';
870
+ public $strokeColorStyler;
871
+ public $strokeWeight;
872
+ public $strokeOpacity;
873
+ protected $__strokeWeightStylerType = 'Google_StyleFunction';
874
+ protected $__strokeWeightStylerDataType = '';
875
+ public $strokeWeightStyler;
876
+ protected $__fillColorStylerType = 'Google_StyleFunction';
877
+ protected $__fillColorStylerDataType = '';
878
+ public $fillColorStyler;
879
+ public $fillColor;
880
+ public $strokeColor;
881
+ public $fillOpacity;
882
+ public function setStrokeColorStyler(Google_StyleFunction $strokeColorStyler) {
883
+ $this->strokeColorStyler = $strokeColorStyler;
884
+ }
885
+ public function getStrokeColorStyler() {
886
+ return $this->strokeColorStyler;
887
+ }
888
+ public function setStrokeWeight($strokeWeight) {
889
+ $this->strokeWeight = $strokeWeight;
890
+ }
891
+ public function getStrokeWeight() {
892
+ return $this->strokeWeight;
893
+ }
894
+ public function setStrokeOpacity($strokeOpacity) {
895
+ $this->strokeOpacity = $strokeOpacity;
896
+ }
897
+ public function getStrokeOpacity() {
898
+ return $this->strokeOpacity;
899
+ }
900
+ public function setStrokeWeightStyler(Google_StyleFunction $strokeWeightStyler) {
901
+ $this->strokeWeightStyler = $strokeWeightStyler;
902
+ }
903
+ public function getStrokeWeightStyler() {
904
+ return $this->strokeWeightStyler;
905
+ }
906
+ public function setFillColorStyler(Google_StyleFunction $fillColorStyler) {
907
+ $this->fillColorStyler = $fillColorStyler;
908
+ }
909
+ public function getFillColorStyler() {
910
+ return $this->fillColorStyler;
911
+ }
912
+ public function setFillColor($fillColor) {
913
+ $this->fillColor = $fillColor;
914
+ }
915
+ public function getFillColor() {
916
+ return $this->fillColor;
917
+ }
918
+ public function setStrokeColor($strokeColor) {
919
+ $this->strokeColor = $strokeColor;
920
+ }
921
+ public function getStrokeColor() {
922
+ return $this->strokeColor;
923
+ }
924
+ public function setFillOpacity($fillOpacity) {
925
+ $this->fillOpacity = $fillOpacity;
926
+ }
927
+ public function getFillOpacity() {
928
+ return $this->fillOpacity;
929
+ }
930
+ }
931
+
932
+ class Google_Sqlresponse extends Google_Model {
933
+ public $kind;
934
+ public $rows;
935
+ public $columns;
936
+ public function setKind($kind) {
937
+ $this->kind = $kind;
938
+ }
939
+ public function getKind() {
940
+ return $this->kind;
941
+ }
942
+ public function setRows(/* array(Google_object) */ $rows) {
943
+ $this->assertIsArray($rows, 'Google_object', __METHOD__);
944
+ $this->rows = $rows;
945
+ }
946
+ public function getRows() {
947
+ return $this->rows;
948
+ }
949
+ public function setColumns(/* array(Google_string) */ $columns) {
950
+ $this->assertIsArray($columns, 'Google_string', __METHOD__);
951
+ $this->columns = $columns;
952
+ }
953
+ public function getColumns() {
954
+ return $this->columns;
955
+ }
956
+ }
957
+
958
+ class Google_StyleFunction extends Google_Model {
959
+ protected $__gradientType = 'Google_StyleFunctionGradient';
960
+ protected $__gradientDataType = '';
961
+ public $gradient;
962
+ public $columnName;
963
+ protected $__bucketsType = 'Google_Bucket';
964
+ protected $__bucketsDataType = 'array';
965
+ public $buckets;
966
+ public $kind;
967
+ public function setGradient(Google_StyleFunctionGradient $gradient) {
968
+ $this->gradient = $gradient;
969
+ }
970
+ public function getGradient() {
971
+ return $this->gradient;
972
+ }
973
+ public function setColumnName($columnName) {
974
+ $this->columnName = $columnName;
975
+ }
976
+ public function getColumnName() {
977
+ return $this->columnName;
978
+ }
979
+ public function setBuckets(/* array(Google_Bucket) */ $buckets) {
980
+ $this->assertIsArray($buckets, 'Google_Bucket', __METHOD__);
981
+ $this->buckets = $buckets;
982
+ }
983
+ public function getBuckets() {
984
+ return $this->buckets;
985
+ }
986
+ public function setKind($kind) {
987
+ $this->kind = $kind;
988
+ }
989
+ public function getKind() {
990
+ return $this->kind;
991
+ }
992
+ }
993
+
994
+ class Google_StyleFunctionGradient extends Google_Model {
995
+ public $max;
996
+ protected $__colorsType = 'Google_StyleFunctionGradientColors';
997
+ protected $__colorsDataType = 'array';
998
+ public $colors;
999
+ public $min;
1000
+ public function setMax($max) {
1001
+ $this->max = $max;
1002
+ }
1003
+ public function getMax() {
1004
+ return $this->max;
1005
+ }
1006
+ public function setColors(/* array(Google_StyleFunctionGradientColors) */ $colors) {
1007
+ $this->assertIsArray($colors, 'Google_StyleFunctionGradientColors', __METHOD__);
1008
+ $this->colors = $colors;
1009
+ }
1010
+ public function getColors() {
1011
+ return $this->colors;
1012
+ }
1013
+ public function setMin($min) {
1014
+ $this->min = $min;
1015
+ }
1016
+ public function getMin() {
1017
+ return $this->min;
1018
+ }
1019
+ }
1020
+
1021
+ class Google_StyleFunctionGradientColors extends Google_Model {
1022
+ public $color;
1023
+ public $opacity;
1024
+ public function setColor($color) {
1025
+ $this->color = $color;
1026
+ }
1027
+ public function getColor() {
1028
+ return $this->color;
1029
+ }
1030
+ public function setOpacity($opacity) {
1031
+ $this->opacity = $opacity;
1032
+ }
1033
+ public function getOpacity() {
1034
+ return $this->opacity;
1035
+ }
1036
+ }
1037
+
1038
+ class Google_StyleSetting extends Google_Model {
1039
+ protected $__markerOptionsType = 'Google_PointStyle';
1040
+ protected $__markerOptionsDataType = '';
1041
+ public $markerOptions;
1042
+ public $kind;
1043
+ public $name;
1044
+ protected $__polygonOptionsType = 'Google_PolygonStyle';
1045
+ protected $__polygonOptionsDataType = '';
1046
+ public $polygonOptions;
1047
+ public $isDefaultForTable;
1048
+ protected $__polylineOptionsType = 'Google_LineStyle';
1049
+ protected $__polylineOptionsDataType = '';
1050
+ public $polylineOptions;
1051
+ public $tableId;
1052
+ public $styleId;
1053
+ public function setMarkerOptions(Google_PointStyle $markerOptions) {
1054
+ $this->markerOptions = $markerOptions;
1055
+ }
1056
+ public function getMarkerOptions() {
1057
+ return $this->markerOptions;
1058
+ }
1059
+ public function setKind($kind) {
1060
+ $this->kind = $kind;
1061
+ }
1062
+ public function getKind() {
1063
+ return $this->kind;
1064
+ }
1065
+ public function setName($name) {
1066
+ $this->name = $name;
1067
+ }
1068
+ public function getName() {
1069
+ return $this->name;
1070
+ }
1071
+ public function setPolygonOptions(Google_PolygonStyle $polygonOptions) {
1072
+ $this->polygonOptions = $polygonOptions;
1073
+ }
1074
+ public function getPolygonOptions() {
1075
+ return $this->polygonOptions;
1076
+ }
1077
+ public function setIsDefaultForTable($isDefaultForTable) {
1078
+ $this->isDefaultForTable = $isDefaultForTable;
1079
+ }
1080
+ public function getIsDefaultForTable() {
1081
+ return $this->isDefaultForTable;
1082
+ }
1083
+ public function setPolylineOptions(Google_LineStyle $polylineOptions) {
1084
+ $this->polylineOptions = $polylineOptions;
1085
+ }
1086
+ public function getPolylineOptions() {
1087
+ return $this->polylineOptions;
1088
+ }
1089
+ public function setTableId($tableId) {
1090
+ $this->tableId = $tableId;
1091
+ }
1092
+ public function getTableId() {
1093
+ return $this->tableId;
1094
+ }
1095
+ public function setStyleId($styleId) {
1096
+ $this->styleId = $styleId;
1097
+ }
1098
+ public function getStyleId() {
1099
+ return $this->styleId;
1100
+ }
1101
+ }
1102
+
1103
+ class Google_StyleSettingList extends Google_Model {
1104
+ public $nextPageToken;
1105
+ protected $__itemsType = 'Google_StyleSetting';
1106
+ protected $__itemsDataType = 'array';
1107
+ public $items;
1108
+ public $kind;
1109
+ public $totalItems;
1110
+ public function setNextPageToken($nextPageToken) {
1111
+ $this->nextPageToken = $nextPageToken;
1112
+ }
1113
+ public function getNextPageToken() {
1114
+ return $this->nextPageToken;
1115
+ }
1116
+ public function setItems(/* array(Google_StyleSetting) */ $items) {
1117
+ $this->assertIsArray($items, 'Google_StyleSetting', __METHOD__);
1118
+ $this->items = $items;
1119
+ }
1120
+ public function getItems() {
1121
+ return $this->items;
1122
+ }
1123
+ public function setKind($kind) {
1124
+ $this->kind = $kind;
1125
+ }
1126
+ public function getKind() {
1127
+ return $this->kind;
1128
+ }
1129
+ public function setTotalItems($totalItems) {
1130
+ $this->totalItems = $totalItems;
1131
+ }
1132
+ public function getTotalItems() {
1133
+ return $this->totalItems;
1134
+ }
1135
+ }
1136
+
1137
+ class Google_Table extends Google_Model {
1138
+ public $kind;
1139
+ public $attribution;
1140
+ public $description;
1141
+ public $isExportable;
1142
+ public $baseTableIds;
1143
+ public $attributionLink;
1144
+ public $sql;
1145
+ public $tableId;
1146
+ protected $__columnsType = 'Google_Column';
1147
+ protected $__columnsDataType = 'array';
1148
+ public $columns;
1149
+ public $name;
1150
+ public function setKind($kind) {
1151
+ $this->kind = $kind;
1152
+ }
1153
+ public function getKind() {
1154
+ return $this->kind;
1155
+ }
1156
+ public function setAttribution($attribution) {
1157
+ $this->attribution = $attribution;
1158
+ }
1159
+ public function getAttribution() {
1160
+ return $this->attribution;
1161
+ }
1162
+ public function setDescription($description) {
1163
+ $this->description = $description;
1164
+ }
1165
+ public function getDescription() {
1166
+ return $this->description;
1167
+ }
1168
+ public function setIsExportable($isExportable) {
1169
+ $this->isExportable = $isExportable;
1170
+ }
1171
+ public function getIsExportable() {
1172
+ return $this->isExportable;
1173
+ }
1174
+ public function setBaseTableIds(/* array(Google_string) */ $baseTableIds) {
1175
+ $this->assertIsArray($baseTableIds, 'Google_string', __METHOD__);
1176
+ $this->baseTableIds = $baseTableIds;
1177
+ }
1178
+ public function getBaseTableIds() {
1179
+ return $this->baseTableIds;
1180
+ }
1181
+ public function setAttributionLink($attributionLink) {
1182
+ $this->attributionLink = $attributionLink;
1183
+ }
1184
+ public function getAttributionLink() {
1185
+ return $this->attributionLink;
1186
+ }
1187
+ public function setSql($sql) {
1188
+ $this->sql = $sql;
1189
+ }
1190
+ public function getSql() {
1191
+ return $this->sql;
1192
+ }
1193
+ public function setTableId($tableId) {
1194
+ $this->tableId = $tableId;
1195
+ }
1196
+ public function getTableId() {
1197
+ return $this->tableId;
1198
+ }
1199
+ public function setColumns(/* array(Google_Column) */ $columns) {
1200
+ $this->assertIsArray($columns, 'Google_Column', __METHOD__);
1201
+ $this->columns = $columns;
1202
+ }
1203
+ public function getColumns() {
1204
+ return $this->columns;
1205
+ }
1206
+ public function setName($name) {
1207
+ $this->name = $name;
1208
+ }
1209
+ public function getName() {
1210
+ return $this->name;
1211
+ }
1212
+ }
1213
+
1214
+ class Google_TableList extends Google_Model {
1215
+ public $nextPageToken;
1216
+ protected $__itemsType = 'Google_Table';
1217
+ protected $__itemsDataType = 'array';
1218
+ public $items;
1219
+ public $kind;
1220
+ public function setNextPageToken($nextPageToken) {
1221
+ $this->nextPageToken = $nextPageToken;
1222
+ }
1223
+ public function getNextPageToken() {
1224
+ return $this->nextPageToken;
1225
+ }
1226
+ public function setItems(/* array(Google_Table) */ $items) {
1227
+ $this->assertIsArray($items, 'Google_Table', __METHOD__);
1228
+ $this->items = $items;
1229
+ }
1230
+ public function getItems() {
1231
+ return $this->items;
1232
+ }
1233
+ public function setKind($kind) {
1234
+ $this->kind = $kind;
1235
+ }
1236
+ public function getKind() {
1237
+ return $this->kind;
1238
+ }
1239
+ }
1240
+
1241
+ class Google_Template extends Google_Model {
1242
+ public $body;
1243
+ public $kind;
1244
+ public $name;
1245
+ public $automaticColumnNames;
1246
+ public $isDefaultForTable;
1247
+ public $tableId;
1248
+ public $templateId;
1249
+ public function setBody($body) {
1250
+ $this->body = $body;
1251
+ }
1252
+ public function getBody() {
1253
+ return $this->body;
1254
+ }
1255
+ public function setKind($kind) {
1256
+ $this->kind = $kind;
1257
+ }
1258
+ public function getKind() {
1259
+ return $this->kind;
1260
+ }
1261
+ public function setName($name) {
1262
+ $this->name = $name;
1263
+ }
1264
+ public function getName() {
1265
+ return $this->name;
1266
+ }
1267
+ public function setAutomaticColumnNames(/* array(Google_string) */ $automaticColumnNames) {
1268
+ $this->assertIsArray($automaticColumnNames, 'Google_string', __METHOD__);
1269
+ $this->automaticColumnNames = $automaticColumnNames;
1270
+ }
1271
+ public function getAutomaticColumnNames() {
1272
+ return $this->automaticColumnNames;
1273
+ }
1274
+ public function setIsDefaultForTable($isDefaultForTable) {
1275
+ $this->isDefaultForTable = $isDefaultForTable;
1276
+ }
1277
+ public function getIsDefaultForTable() {
1278
+ return $this->isDefaultForTable;
1279
+ }
1280
+ public function setTableId($tableId) {
1281
+ $this->tableId = $tableId;
1282
+ }
1283
+ public function getTableId() {
1284
+ return $this->tableId;
1285
+ }
1286
+ public function setTemplateId($templateId) {
1287
+ $this->templateId = $templateId;
1288
+ }
1289
+ public function getTemplateId() {
1290
+ return $this->templateId;
1291
+ }
1292
+ }
1293
+
1294
+ class Google_TemplateList extends Google_Model {
1295
+ public $nextPageToken;
1296
+ protected $__itemsType = 'Google_Template';
1297
+ protected $__itemsDataType = 'array';
1298
+ public $items;
1299
+ public $kind;
1300
+ public $totalItems;
1301
+ public function setNextPageToken($nextPageToken) {
1302
+ $this->nextPageToken = $nextPageToken;
1303
+ }
1304
+ public function getNextPageToken() {
1305
+ return $this->nextPageToken;
1306
+ }
1307
+ public function setItems(/* array(Google_Template) */ $items) {
1308
+ $this->assertIsArray($items, 'Google_Template', __METHOD__);
1309
+ $this->items = $items;
1310
+ }
1311
+ public function getItems() {
1312
+ return $this->items;
1313
+ }
1314
+ public function setKind($kind) {
1315
+ $this->kind = $kind;
1316
+ }
1317
+ public function getKind() {
1318
+ return $this->kind;
1319
+ }
1320
+ public function setTotalItems($totalItems) {
1321
+ $this->totalItems = $totalItems;
1322
+ }
1323
+ public function getTotalItems() {
1324
+ return $this->totalItems;
1325
+ }
1326
+ }
google-api-php-client/src/contrib/Google_GanService.php ADDED
@@ -0,0 +1,1605 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "advertisers" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $ganService = new Google_GanService(...);
22
+ * $advertisers = $ganService->advertisers;
23
+ * </code>
24
+ */
25
+ class Google_AdvertisersServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Retrieves data about all advertisers that the requesting advertiser/publisher has access to.
30
+ * (advertisers.list)
31
+ *
32
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
33
+ * @param string $roleId The ID of the requesting advertiser or publisher.
34
+ * @param array $optParams Optional parameters.
35
+ *
36
+ * @opt_param string relationshipStatus Filters out all advertisers for which do not have the given relationship status with the requesting publisher.
37
+ * @opt_param double minSevenDayEpc Filters out all advertisers that have a seven day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
38
+ * @opt_param string advertiserCategory Caret(^) delimted list of advertiser categories. Valid categories are defined here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en=107581. Filters out all advertisers not in one of the given advertiser categories. Optional.
39
+ * @opt_param double minNinetyDayEpc Filters out all advertisers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
40
+ * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
41
+ * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
42
+ * @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of advertisers with the lowest ranks and 4 represents the quartile of advertisers with the highest ranks. Filters out all advertisers with a lower rank than the given quartile. For example if a 2 was given only advertisers with a payout rank of 25 or higher would be included. Optional.
43
+ * @return Google_Advertisers
44
+ */
45
+ public function listAdvertisers($role, $roleId, $optParams = array()) {
46
+ $params = array('role' => $role, 'roleId' => $roleId);
47
+ $params = array_merge($params, $optParams);
48
+ $data = $this->__call('list', array($params));
49
+ if ($this->useObjects()) {
50
+ return new Google_Advertisers($data);
51
+ } else {
52
+ return $data;
53
+ }
54
+ }
55
+ /**
56
+ * Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
57
+ * to it. Only publishers can lookup advertisers. Advertisers can request information about
58
+ * themselves by omitting the advertiserId query parameter. (advertisers.get)
59
+ *
60
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
61
+ * @param string $roleId The ID of the requesting advertiser or publisher.
62
+ * @param array $optParams Optional parameters.
63
+ *
64
+ * @opt_param string advertiserId The ID of the advertiser to look up. Optional.
65
+ * @return Google_Advertiser
66
+ */
67
+ public function get($role, $roleId, $optParams = array()) {
68
+ $params = array('role' => $role, 'roleId' => $roleId);
69
+ $params = array_merge($params, $optParams);
70
+ $data = $this->__call('get', array($params));
71
+ if ($this->useObjects()) {
72
+ return new Google_Advertiser($data);
73
+ } else {
74
+ return $data;
75
+ }
76
+ }
77
+ }
78
+
79
+ /**
80
+ * The "ccOffers" collection of methods.
81
+ * Typical usage is:
82
+ * <code>
83
+ * $ganService = new Google_GanService(...);
84
+ * $ccOffers = $ganService->ccOffers;
85
+ * </code>
86
+ */
87
+ class Google_CcOffersServiceResource extends Google_ServiceResource {
88
+
89
+
90
+ /**
91
+ * Retrieves credit card offers for the given publisher. (ccOffers.list)
92
+ *
93
+ * @param string $publisher The ID of the publisher in question.
94
+ * @param array $optParams Optional parameters.
95
+ *
96
+ * @opt_param string advertiser The advertiser ID of a card issuer whose offers to include. Optional, may be repeated.
97
+ * @opt_param string projection The set of fields to return.
98
+ * @return Google_CcOffers
99
+ */
100
+ public function listCcOffers($publisher, $optParams = array()) {
101
+ $params = array('publisher' => $publisher);
102
+ $params = array_merge($params, $optParams);
103
+ $data = $this->__call('list', array($params));
104
+ if ($this->useObjects()) {
105
+ return new Google_CcOffers($data);
106
+ } else {
107
+ return $data;
108
+ }
109
+ }
110
+ }
111
+
112
+ /**
113
+ * The "events" collection of methods.
114
+ * Typical usage is:
115
+ * <code>
116
+ * $ganService = new Google_GanService(...);
117
+ * $events = $ganService->events;
118
+ * </code>
119
+ */
120
+ class Google_EventsServiceResource extends Google_ServiceResource {
121
+
122
+
123
+ /**
124
+ * Retrieves event data for a given advertiser/publisher. (events.list)
125
+ *
126
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
127
+ * @param string $roleId The ID of the requesting advertiser or publisher.
128
+ * @param array $optParams Optional parameters.
129
+ *
130
+ * @opt_param string orderId Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.
131
+ * @opt_param string sku Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.
132
+ * @opt_param string eventDateMax Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.
133
+ * @opt_param string type Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.
134
+ * @opt_param string linkId Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.
135
+ * @opt_param string modifyDateMin Filters out all events modified earlier than given date. Optional. Defaults to 24 hours before the current modifyDateMax, if modifyDateMax is explicitly set.
136
+ * @opt_param string eventDateMin Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.
137
+ * @opt_param string memberId Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.
138
+ * @opt_param string maxResults Max number of offers to return in this page. Optional. Defaults to 20.
139
+ * @opt_param string advertiserId Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.
140
+ * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
141
+ * @opt_param string productCategory Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.
142
+ * @opt_param string chargeType Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.
143
+ * @opt_param string modifyDateMax Filters out all events modified later than given date. Optional. Defaults to 24 hours after modifyDateMin, if modifyDateMin is explicitly set.
144
+ * @opt_param string status Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.
145
+ * @opt_param string publisherId Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.
146
+ * @return Google_Events
147
+ */
148
+ public function listEvents($role, $roleId, $optParams = array()) {
149
+ $params = array('role' => $role, 'roleId' => $roleId);
150
+ $params = array_merge($params, $optParams);
151
+ $data = $this->__call('list', array($params));
152
+ if ($this->useObjects()) {
153
+ return new Google_Events($data);
154
+ } else {
155
+ return $data;
156
+ }
157
+ }
158
+ }
159
+
160
+ /**
161
+ * The "links" collection of methods.
162
+ * Typical usage is:
163
+ * <code>
164
+ * $ganService = new Google_GanService(...);
165
+ * $links = $ganService->links;
166
+ * </code>
167
+ */
168
+ class Google_LinksServiceResource extends Google_ServiceResource {
169
+
170
+
171
+ /**
172
+ * Inserts a new link. (links.insert)
173
+ *
174
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
175
+ * @param string $roleId The ID of the requesting advertiser or publisher.
176
+ * @param Google_Link $postBody
177
+ * @param array $optParams Optional parameters.
178
+ * @return Google_Link
179
+ */
180
+ public function insert($role, $roleId, Google_Link $postBody, $optParams = array()) {
181
+ $params = array('role' => $role, 'roleId' => $roleId, 'postBody' => $postBody);
182
+ $params = array_merge($params, $optParams);
183
+ $data = $this->__call('insert', array($params));
184
+ if ($this->useObjects()) {
185
+ return new Google_Link($data);
186
+ } else {
187
+ return $data;
188
+ }
189
+ }
190
+ /**
191
+ * Retrieves all links that match the query parameters. (links.list)
192
+ *
193
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
194
+ * @param string $roleId The ID of the requesting advertiser or publisher.
195
+ * @param array $optParams Optional parameters.
196
+ *
197
+ * @opt_param string linkType The type of the link.
198
+ * @opt_param string startDateMin The beginning of the start date range.
199
+ * @opt_param string assetSize The size of the given asset.
200
+ * @opt_param string relationshipStatus The status of the relationship.
201
+ * @opt_param string advertiserCategory The advertiser's primary vertical.
202
+ * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
203
+ * @opt_param string advertiserId Limits the resulting links to the ones belonging to the listed advertisers.
204
+ * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
205
+ * @opt_param string startDateMax The end of the start date range.
206
+ * @opt_param string promotionType The promotion type.
207
+ * @opt_param string authorship The role of the author of the link.
208
+ * @return Google_Links
209
+ */
210
+ public function listLinks($role, $roleId, $optParams = array()) {
211
+ $params = array('role' => $role, 'roleId' => $roleId);
212
+ $params = array_merge($params, $optParams);
213
+ $data = $this->__call('list', array($params));
214
+ if ($this->useObjects()) {
215
+ return new Google_Links($data);
216
+ } else {
217
+ return $data;
218
+ }
219
+ }
220
+ /**
221
+ * Retrieves data about a single link if the requesting advertiser/publisher has access to it.
222
+ * Advertisers can look up their own links. Publishers can look up visible links or links belonging
223
+ * to advertisers they are in a relationship with. (links.get)
224
+ *
225
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
226
+ * @param string $roleId The ID of the requesting advertiser or publisher.
227
+ * @param string $linkId The ID of the link to look up.
228
+ * @param array $optParams Optional parameters.
229
+ * @return Google_Link
230
+ */
231
+ public function get($role, $roleId, $linkId, $optParams = array()) {
232
+ $params = array('role' => $role, 'roleId' => $roleId, 'linkId' => $linkId);
233
+ $params = array_merge($params, $optParams);
234
+ $data = $this->__call('get', array($params));
235
+ if ($this->useObjects()) {
236
+ return new Google_Link($data);
237
+ } else {
238
+ return $data;
239
+ }
240
+ }
241
+ }
242
+
243
+ /**
244
+ * The "publishers" collection of methods.
245
+ * Typical usage is:
246
+ * <code>
247
+ * $ganService = new Google_GanService(...);
248
+ * $publishers = $ganService->publishers;
249
+ * </code>
250
+ */
251
+ class Google_PublishersServiceResource extends Google_ServiceResource {
252
+
253
+
254
+ /**
255
+ * Retrieves data about all publishers that the requesting advertiser/publisher has access to.
256
+ * (publishers.list)
257
+ *
258
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
259
+ * @param string $roleId The ID of the requesting advertiser or publisher.
260
+ * @param array $optParams Optional parameters.
261
+ *
262
+ * @opt_param string publisherCategory Caret(^) delimted list of publisher categories. Valid categories: (unclassified|community_and_content|shopping_and_promotion|loyalty_and_rewards|network|search_specialist|comparison_shopping|email). Filters out all publishers not in one of the given advertiser categories. Optional.
263
+ * @opt_param string relationshipStatus Filters out all publishers for which do not have the given relationship status with the requesting publisher.
264
+ * @opt_param double minSevenDayEpc Filters out all publishers that have a seven day EPC average lower than the given value (inclusive). Min value 0.0. Optional.
265
+ * @opt_param double minNinetyDayEpc Filters out all publishers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
266
+ * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
267
+ * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
268
+ * @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of publishers with the lowest ranks and 4 represents the quartile of publishers with the highest ranks. Filters out all publishers with a lower rank than the given quartile. For example if a 2 was given only publishers with a payout rank of 25 or higher would be included. Optional.
269
+ * @return Google_Publishers
270
+ */
271
+ public function listPublishers($role, $roleId, $optParams = array()) {
272
+ $params = array('role' => $role, 'roleId' => $roleId);
273
+ $params = array_merge($params, $optParams);
274
+ $data = $this->__call('list', array($params));
275
+ if ($this->useObjects()) {
276
+ return new Google_Publishers($data);
277
+ } else {
278
+ return $data;
279
+ }
280
+ }
281
+ /**
282
+ * Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
283
+ * to it. Only advertisers can look up publishers. Publishers can request information about
284
+ * themselves by omitting the publisherId query parameter. (publishers.get)
285
+ *
286
+ * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
287
+ * @param string $roleId The ID of the requesting advertiser or publisher.
288
+ * @param array $optParams Optional parameters.
289
+ *
290
+ * @opt_param string publisherId The ID of the publisher to look up. Optional.
291
+ * @return Google_Publisher
292
+ */
293
+ public function get($role, $roleId, $optParams = array()) {
294
+ $params = array('role' => $role, 'roleId' => $roleId);
295
+ $params = array_merge($params, $optParams);
296
+ $data = $this->__call('get', array($params));
297
+ if ($this->useObjects()) {
298
+ return new Google_Publisher($data);
299
+ } else {
300
+ return $data;
301
+ }
302
+ }
303
+ }
304
+
305
+ /**
306
+ * Service definition for Google_Gan (v1beta1).
307
+ *
308
+ * <p>
309
+ * Lets you have programmatic access to your Google Affiliate Network data.
310
+ * </p>
311
+ *
312
+ * <p>
313
+ * For more information about this service, see the
314
+ * <a href="https://code.google.com/apis/gan/" target="_blank">API Documentation</a>
315
+ * </p>
316
+ *
317
+ * @author Google, Inc.
318
+ */
319
+ class Google_GanService extends Google_Service {
320
+ public $advertisers;
321
+ public $ccOffers;
322
+ public $events;
323
+ public $links;
324
+ public $publishers;
325
+ /**
326
+ * Constructs the internal representation of the Gan service.
327
+ *
328
+ * @param Google_Client $client
329
+ */
330
+ public function __construct(Google_Client $client) {
331
+ $this->servicePath = 'gan/v1beta1/';
332
+ $this->version = 'v1beta1';
333
+ $this->serviceName = 'gan';
334
+
335
+ $client->addService($this->serviceName, $this->version);
336
+ $this->advertisers = new Google_AdvertisersServiceResource($this, $this->serviceName, 'advertisers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"type": "number", "location": "query", "format": "double"}, "advertiserCategory": {"type": "string", "location": "query"}, "minNinetyDayEpc": {"type": "number", "location": "query", "format": "double"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"location": "query", "minimum": "1", "type": "integer", "maximum": "4", "format": "int32"}}, "id": "gan.advertisers.list", "httpMethod": "GET", "path": "{role}/{roleId}/advertisers", "response": {"$ref": "Advertisers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"advertiserId": {"type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}}, "id": "gan.advertisers.get", "httpMethod": "GET", "path": "{role}/{roleId}/advertiser", "response": {"$ref": "Advertiser"}}}}', true));
337
+ $this->ccOffers = new Google_CcOffersServiceResource($this, $this->serviceName, 'ccOffers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"advertiser": {"repeated": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "summary"], "type": "string", "location": "query"}, "publisher": {"required": true, "type": "string", "location": "path"}}, "id": "gan.ccOffers.list", "httpMethod": "GET", "path": "publishers/{publisher}/ccOffers", "response": {"$ref": "CcOffers"}}}}', true));
338
+ $this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"orderId": {"type": "string", "location": "query"}, "sku": {"type": "string", "location": "query"}, "eventDateMax": {"type": "string", "location": "query"}, "type": {"enum": ["action", "charge", "transaction"], "type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "linkId": {"type": "string", "location": "query"}, "status": {"enum": ["active", "canceled"], "type": "string", "location": "query"}, "eventDateMin": {"type": "string", "location": "query"}, "memberId": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "advertiserId": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "productCategory": {"type": "string", "location": "query"}, "chargeType": {"enum": ["credit", "debit", "monthly_minimum", "other", "slotting_fee", "tier_bonus"], "type": "string", "location": "query"}, "modifyDateMin": {"type": "string", "location": "query"}, "modifyDateMax": {"type": "string", "location": "query"}, "publisherId": {"type": "string", "location": "query"}}, "id": "gan.events.list", "httpMethod": "GET", "path": "{role}/{roleId}/events", "response": {"$ref": "Events"}}}}', true));
339
+ $this->links = new Google_LinksServiceResource($this, $this->serviceName, 'links', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/gan"], "parameters": {"roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}}, "request": {"$ref": "Link"}, "response": {"$ref": "Link"}, "httpMethod": "POST", "path": "{role}/{roleId}/link", "id": "gan.links.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"linkType": {"enum": ["banner", "text"], "type": "string", "location": "query"}, "startDateMin": {"type": "string", "location": "query"}, "assetSize": {"repeated": true, "type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "relationshipStatus": {"enum": ["approved", "available"], "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "advertiserCategory": {"repeated": true, "enum": ["apparel_accessories", "appliances_electronics", "auto_dealer", "automotive", "babies_kids", "blogs_personal_sites", "books_magazines", "computers", "dating", "department_stores", "education", "employment", "financial_credit_cards", "financial_other", "flowers_gifts", "grocery", "health_beauty", "home_garden", "hosting_domain", "internet_providers", "legal", "media_entertainment", "medical", "movies_games", "music", "nonprofit", "office_supplies", "online_games", "outdoor", "pets", "real_estate", "restaurants", "sport_fitness", "telecom", "ticketing", "toys_hobbies", "travel", "utilities", "wholesale_relationship", "wine_spirits"], "type": "string", "location": "query"}, "advertiserId": {"repeated": true, "type": "string", "location": "query", "format": "int64"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "startDateMax": {"type": "string", "location": "query"}, "promotionType": {"repeated": true, "enum": ["buy_get", "coupon", "free_gift", "free_gift_wrap", "free_shipping", "none", "ongoing", "percent_off", "price_cut", "product_promotion", "sale", "sweepstakes"], "type": "string", "location": "query"}, "authorship": {"enum": ["advertiser", "publisher"], "type": "string", "location": "query"}}, "id": "gan.links.list", "httpMethod": "GET", "path": "{role}/{roleId}/links", "response": {"$ref": "Links"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"linkId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "roleId": {"required": true, "type": "string", "location": "path"}}, "id": "gan.links.get", "httpMethod": "GET", "path": "{role}/{roleId}/link/{linkId}", "response": {"$ref": "Link"}}}}', true));
340
+ $this->publishers = new Google_PublishersServiceResource($this, $this->serviceName, 'publishers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"publisherCategory": {"type": "string", "location": "query"}, "relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"type": "number", "location": "query", "format": "double"}, "minNinetyDayEpc": {"type": "number", "location": "query", "format": "double"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"location": "query", "minimum": "1", "type": "integer", "maximum": "4", "format": "int32"}}, "id": "gan.publishers.list", "httpMethod": "GET", "path": "{role}/{roleId}/publishers", "response": {"$ref": "Publishers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "publisherId": {"type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}}, "id": "gan.publishers.get", "httpMethod": "GET", "path": "{role}/{roleId}/publisher", "response": {"$ref": "Publisher"}}}}', true));
341
+
342
+ }
343
+ }
344
+
345
+ class Google_Advertiser extends Google_Model {
346
+ public $category;
347
+ public $contactEmail;
348
+ public $kind;
349
+ public $siteUrl;
350
+ public $contactPhone;
351
+ public $description;
352
+ public $payoutRank;
353
+ public $defaultLinkId;
354
+ protected $__epcSevenDayAverageType = 'Google_Money';
355
+ protected $__epcSevenDayAverageDataType = '';
356
+ public $epcSevenDayAverage;
357
+ public $commissionDuration;
358
+ public $status;
359
+ protected $__epcNinetyDayAverageType = 'Google_Money';
360
+ protected $__epcNinetyDayAverageDataType = '';
361
+ public $epcNinetyDayAverage;
362
+ public $allowPublisherCreatedLinks;
363
+ protected $__itemType = 'Google_Advertiser';
364
+ protected $__itemDataType = '';
365
+ public $item;
366
+ public $joinDate;
367
+ public $logoUrl;
368
+ public $id;
369
+ public $productFeedsEnabled;
370
+ public $name;
371
+ public function setCategory($category) {
372
+ $this->category = $category;
373
+ }
374
+ public function getCategory() {
375
+ return $this->category;
376
+ }
377
+ public function setContactEmail($contactEmail) {
378
+ $this->contactEmail = $contactEmail;
379
+ }
380
+ public function getContactEmail() {
381
+ return $this->contactEmail;
382
+ }
383
+ public function setKind($kind) {
384
+ $this->kind = $kind;
385
+ }
386
+ public function getKind() {
387
+ return $this->kind;
388
+ }
389
+ public function setSiteUrl($siteUrl) {
390
+ $this->siteUrl = $siteUrl;
391
+ }
392
+ public function getSiteUrl() {
393
+ return $this->siteUrl;
394
+ }
395
+ public function setContactPhone($contactPhone) {
396
+ $this->contactPhone = $contactPhone;
397
+ }
398
+ public function getContactPhone() {
399
+ return $this->contactPhone;
400
+ }
401
+ public function setDescription($description) {
402
+ $this->description = $description;
403
+ }
404
+ public function getDescription() {
405
+ return $this->description;
406
+ }
407
+ public function setPayoutRank($payoutRank) {
408
+ $this->payoutRank = $payoutRank;
409
+ }
410
+ public function getPayoutRank() {
411
+ return $this->payoutRank;
412
+ }
413
+ public function setDefaultLinkId($defaultLinkId) {
414
+ $this->defaultLinkId = $defaultLinkId;
415
+ }
416
+ public function getDefaultLinkId() {
417
+ return $this->defaultLinkId;
418
+ }
419
+ public function setEpcSevenDayAverage(Google_Money $epcSevenDayAverage) {
420
+ $this->epcSevenDayAverage = $epcSevenDayAverage;
421
+ }
422
+ public function getEpcSevenDayAverage() {
423
+ return $this->epcSevenDayAverage;
424
+ }
425
+ public function setCommissionDuration($commissionDuration) {
426
+ $this->commissionDuration = $commissionDuration;
427
+ }
428
+ public function getCommissionDuration() {
429
+ return $this->commissionDuration;
430
+ }
431
+ public function setStatus($status) {
432
+ $this->status = $status;
433
+ }
434
+ public function getStatus() {
435
+ return $this->status;
436
+ }
437
+ public function setEpcNinetyDayAverage(Google_Money $epcNinetyDayAverage) {
438
+ $this->epcNinetyDayAverage = $epcNinetyDayAverage;
439
+ }
440
+ public function getEpcNinetyDayAverage() {
441
+ return $this->epcNinetyDayAverage;
442
+ }
443
+ public function setAllowPublisherCreatedLinks($allowPublisherCreatedLinks) {
444
+ $this->allowPublisherCreatedLinks = $allowPublisherCreatedLinks;
445
+ }
446
+ public function getAllowPublisherCreatedLinks() {
447
+ return $this->allowPublisherCreatedLinks;
448
+ }
449
+ public function setItem(Google_Advertiser $item) {
450
+ $this->item = $item;
451
+ }
452
+ public function getItem() {
453
+ return $this->item;
454
+ }
455
+ public function setJoinDate($joinDate) {
456
+ $this->joinDate = $joinDate;
457
+ }
458
+ public function getJoinDate() {
459
+ return $this->joinDate;
460
+ }
461
+ public function setLogoUrl($logoUrl) {
462
+ $this->logoUrl = $logoUrl;
463
+ }
464
+ public function getLogoUrl() {
465
+ return $this->logoUrl;
466
+ }
467
+ public function setId($id) {
468
+ $this->id = $id;
469
+ }
470
+ public function getId() {
471
+ return $this->id;
472
+ }
473
+ public function setProductFeedsEnabled($productFeedsEnabled) {
474
+ $this->productFeedsEnabled = $productFeedsEnabled;
475
+ }
476
+ public function getProductFeedsEnabled() {
477
+ return $this->productFeedsEnabled;
478
+ }
479
+ public function setName($name) {
480
+ $this->name = $name;
481
+ }
482
+ public function getName() {
483
+ return $this->name;
484
+ }
485
+ }
486
+
487
+ class Google_Advertisers extends Google_Model {
488
+ public $nextPageToken;
489
+ protected $__itemsType = 'Google_Advertiser';
490
+ protected $__itemsDataType = 'array';
491
+ public $items;
492
+ public $kind;
493
+ public function setNextPageToken($nextPageToken) {
494
+ $this->nextPageToken = $nextPageToken;
495
+ }
496
+ public function getNextPageToken() {
497
+ return $this->nextPageToken;
498
+ }
499
+ public function setItems($items) {
500
+ $this->assertIsArray($items, 'Google_Advertiser', __METHOD__);
501
+ $this->items = $items;
502
+ }
503
+ public function getItems() {
504
+ return $this->items;
505
+ }
506
+ public function setKind($kind) {
507
+ $this->kind = $kind;
508
+ }
509
+ public function getKind() {
510
+ return $this->kind;
511
+ }
512
+ }
513
+
514
+ class Google_CcOffer extends Google_Model {
515
+ public $luggageInsurance;
516
+ public $creditLimitMin;
517
+ public $cardName;
518
+ public $creditLimitMax;
519
+ public $gracePeriodDisplay;
520
+ public $offerId;
521
+ public $rewardUnit;
522
+ public $minPurchaseRate;
523
+ public $cardBenefits;
524
+ protected $__rewardsType = 'Google_CcOfferRewards';
525
+ protected $__rewardsDataType = 'array';
526
+ public $rewards;
527
+ public $offersImmediateCashReward;
528
+ public $travelInsurance;
529
+ public $returnedPaymentFee;
530
+ public $kind;
531
+ public $issuer;
532
+ public $maxPurchaseRate;
533
+ public $minimumFinanceCharge;
534
+ public $existingCustomerOnly;
535
+ public $annualFeeDisplay;
536
+ public $initialSetupAndProcessingFee;
537
+ public $issuerId;
538
+ public $purchaseRateAdditionalDetails;
539
+ public $prohibitedCategories;
540
+ public $fraudLiability;
541
+ public $cashAdvanceTerms;
542
+ public $landingPageUrl;
543
+ public $introCashAdvanceTerms;
544
+ public $rewardsExpire;
545
+ public $introPurchaseTerms;
546
+ protected $__defaultFeesType = 'Google_CcOfferDefaultFees';
547
+ protected $__defaultFeesDataType = 'array';
548
+ public $defaultFees;
549
+ public $extendedWarranty;
550
+ public $emergencyInsurance;
551
+ public $firstYearAnnualFee;
552
+ public $trackingUrl;
553
+ public $latePaymentFee;
554
+ public $overLimitFee;
555
+ public $cardType;
556
+ public $approvedCategories;
557
+ public $rewardPartner;
558
+ public $introBalanceTransferTerms;
559
+ public $foreignCurrencyTransactionFee;
560
+ public $annualFee;
561
+ public $issuerWebsite;
562
+ public $variableRatesUpdateFrequency;
563
+ public $carRentalInsurance;
564
+ public $additionalCardBenefits;
565
+ public $ageMinimum;
566
+ public $balanceComputationMethod;
567
+ public $aprDisplay;
568
+ public $additionalCardHolderFee;
569
+ public $variableRatesLastUpdated;
570
+ public $network;
571
+ public $purchaseRateType;
572
+ public $statementCopyFee;
573
+ public $rewardsHaveBlackoutDates;
574
+ public $creditRatingDisplay;
575
+ public $flightAccidentInsurance;
576
+ public $annualRewardMaximum;
577
+ public $balanceTransferTerms;
578
+ protected $__bonusRewardsType = 'Google_CcOfferBonusRewards';
579
+ protected $__bonusRewardsDataType = 'array';
580
+ public $bonusRewards;
581
+ public $imageUrl;
582
+ public $ageMinimumDetails;
583
+ public $disclaimer;
584
+ public function setLuggageInsurance($luggageInsurance) {
585
+ $this->luggageInsurance = $luggageInsurance;
586
+ }
587
+ public function getLuggageInsurance() {
588
+ return $this->luggageInsurance;
589
+ }
590
+ public function setCreditLimitMin($creditLimitMin) {
591
+ $this->creditLimitMin = $creditLimitMin;
592
+ }
593
+ public function getCreditLimitMin() {
594
+ return $this->creditLimitMin;
595
+ }
596
+ public function setCardName($cardName) {
597
+ $this->cardName = $cardName;
598
+ }
599
+ public function getCardName() {
600
+ return $this->cardName;
601
+ }
602
+ public function setCreditLimitMax($creditLimitMax) {
603
+ $this->creditLimitMax = $creditLimitMax;
604
+ }
605
+ public function getCreditLimitMax() {
606
+ return $this->creditLimitMax;
607
+ }
608
+ public function setGracePeriodDisplay($gracePeriodDisplay) {
609
+ $this->gracePeriodDisplay = $gracePeriodDisplay;
610
+ }
611
+ public function getGracePeriodDisplay() {
612
+ return $this->gracePeriodDisplay;
613
+ }
614
+ public function setOfferId($offerId) {
615
+ $this->offerId = $offerId;
616
+ }
617
+ public function getOfferId() {
618
+ return $this->offerId;
619
+ }
620
+ public function setRewardUnit($rewardUnit) {
621
+ $this->rewardUnit = $rewardUnit;
622
+ }
623
+ public function getRewardUnit() {
624
+ return $this->rewardUnit;
625
+ }
626
+ public function setMinPurchaseRate($minPurchaseRate) {
627
+ $this->minPurchaseRate = $minPurchaseRate;
628
+ }
629
+ public function getMinPurchaseRate() {
630
+ return $this->minPurchaseRate;
631
+ }
632
+ public function setCardBenefits($cardBenefits) {
633
+ $this->cardBenefits = $cardBenefits;
634
+ }
635
+ public function getCardBenefits() {
636
+ return $this->cardBenefits;
637
+ }
638
+ public function setRewards($rewards) {
639
+ $this->assertIsArray($rewards, 'Google_CcOfferRewards', __METHOD__);
640
+ $this->rewards = $rewards;
641
+ }
642
+ public function getRewards() {
643
+ return $this->rewards;
644
+ }
645
+ public function setOffersImmediateCashReward($offersImmediateCashReward) {
646
+ $this->offersImmediateCashReward = $offersImmediateCashReward;
647
+ }
648
+ public function getOffersImmediateCashReward() {
649
+ return $this->offersImmediateCashReward;
650
+ }
651
+ public function setTravelInsurance($travelInsurance) {
652
+ $this->travelInsurance = $travelInsurance;
653
+ }
654
+ public function getTravelInsurance() {
655
+ return $this->travelInsurance;
656
+ }
657
+ public function setReturnedPaymentFee($returnedPaymentFee) {
658
+ $this->returnedPaymentFee = $returnedPaymentFee;
659
+ }
660
+ public function getReturnedPaymentFee() {
661
+ return $this->returnedPaymentFee;
662
+ }
663
+ public function setKind($kind) {
664
+ $this->kind = $kind;
665
+ }
666
+ public function getKind() {
667
+ return $this->kind;
668
+ }
669
+ public function setIssuer($issuer) {
670
+ $this->issuer = $issuer;
671
+ }
672
+ public function getIssuer() {
673
+ return $this->issuer;
674
+ }
675
+ public function setMaxPurchaseRate($maxPurchaseRate) {
676
+ $this->maxPurchaseRate = $maxPurchaseRate;
677
+ }
678
+ public function getMaxPurchaseRate() {
679
+ return $this->maxPurchaseRate;
680
+ }
681
+ public function setMinimumFinanceCharge($minimumFinanceCharge) {
682
+ $this->minimumFinanceCharge = $minimumFinanceCharge;
683
+ }
684
+ public function getMinimumFinanceCharge() {
685
+ return $this->minimumFinanceCharge;
686
+ }
687
+ public function setExistingCustomerOnly($existingCustomerOnly) {
688
+ $this->existingCustomerOnly = $existingCustomerOnly;
689
+ }
690
+ public function getExistingCustomerOnly() {
691
+ return $this->existingCustomerOnly;
692
+ }
693
+ public function setAnnualFeeDisplay($annualFeeDisplay) {
694
+ $this->annualFeeDisplay = $annualFeeDisplay;
695
+ }
696
+ public function getAnnualFeeDisplay() {
697
+ return $this->annualFeeDisplay;
698
+ }
699
+ public function setInitialSetupAndProcessingFee($initialSetupAndProcessingFee) {
700
+ $this->initialSetupAndProcessingFee = $initialSetupAndProcessingFee;
701
+ }
702
+ public function getInitialSetupAndProcessingFee() {
703
+ return $this->initialSetupAndProcessingFee;
704
+ }
705
+ public function setIssuerId($issuerId) {
706
+ $this->issuerId = $issuerId;
707
+ }
708
+ public function getIssuerId() {
709
+ return $this->issuerId;
710
+ }
711
+ public function setPurchaseRateAdditionalDetails($purchaseRateAdditionalDetails) {
712
+ $this->purchaseRateAdditionalDetails = $purchaseRateAdditionalDetails;
713
+ }
714
+ public function getPurchaseRateAdditionalDetails() {
715
+ return $this->purchaseRateAdditionalDetails;
716
+ }
717
+ public function setProhibitedCategories($prohibitedCategories) {
718
+ $this->prohibitedCategories = $prohibitedCategories;
719
+ }
720
+ public function getProhibitedCategories() {
721
+ return $this->prohibitedCategories;
722
+ }
723
+ public function setFraudLiability($fraudLiability) {
724
+ $this->fraudLiability = $fraudLiability;
725
+ }
726
+ public function getFraudLiability() {
727
+ return $this->fraudLiability;
728
+ }
729
+ public function setCashAdvanceTerms($cashAdvanceTerms) {
730
+ $this->cashAdvanceTerms = $cashAdvanceTerms;
731
+ }
732
+ public function getCashAdvanceTerms() {
733
+ return $this->cashAdvanceTerms;
734
+ }
735
+ public function setLandingPageUrl($landingPageUrl) {
736
+ $this->landingPageUrl = $landingPageUrl;
737
+ }
738
+ public function getLandingPageUrl() {
739
+ return $this->landingPageUrl;
740
+ }
741
+ public function setIntroCashAdvanceTerms($introCashAdvanceTerms) {
742
+ $this->introCashAdvanceTerms = $introCashAdvanceTerms;
743
+ }
744
+ public function getIntroCashAdvanceTerms() {
745
+ return $this->introCashAdvanceTerms;
746
+ }
747
+ public function setRewardsExpire($rewardsExpire) {
748
+ $this->rewardsExpire = $rewardsExpire;
749
+ }
750
+ public function getRewardsExpire() {
751
+ return $this->rewardsExpire;
752
+ }
753
+ public function setIntroPurchaseTerms($introPurchaseTerms) {
754
+ $this->introPurchaseTerms = $introPurchaseTerms;
755
+ }
756
+ public function getIntroPurchaseTerms() {
757
+ return $this->introPurchaseTerms;
758
+ }
759
+ public function setDefaultFees($defaultFees) {
760
+ $this->assertIsArray($defaultFees, 'Google_CcOfferDefaultFees', __METHOD__);
761
+ $this->defaultFees = $defaultFees;
762
+ }
763
+ public function getDefaultFees() {
764
+ return $this->defaultFees;
765
+ }
766
+ public function setExtendedWarranty($extendedWarranty) {
767
+ $this->extendedWarranty = $extendedWarranty;
768
+ }
769
+ public function getExtendedWarranty() {
770
+ return $this->extendedWarranty;
771
+ }
772
+ public function setEmergencyInsurance($emergencyInsurance) {
773
+ $this->emergencyInsurance = $emergencyInsurance;
774
+ }
775
+ public function getEmergencyInsurance() {
776
+ return $this->emergencyInsurance;
777
+ }
778
+ public function setFirstYearAnnualFee($firstYearAnnualFee) {
779
+ $this->firstYearAnnualFee = $firstYearAnnualFee;
780
+ }
781
+ public function getFirstYearAnnualFee() {
782
+ return $this->firstYearAnnualFee;
783
+ }
784
+ public function setTrackingUrl($trackingUrl) {
785
+ $this->trackingUrl = $trackingUrl;
786
+ }
787
+ public function getTrackingUrl() {
788
+ return $this->trackingUrl;
789
+ }
790
+ public function setLatePaymentFee($latePaymentFee) {
791
+ $this->latePaymentFee = $latePaymentFee;
792
+ }
793
+ public function getLatePaymentFee() {
794
+ return $this->latePaymentFee;
795
+ }
796
+ public function setOverLimitFee($overLimitFee) {
797
+ $this->overLimitFee = $overLimitFee;
798
+ }
799
+ public function getOverLimitFee() {
800
+ return $this->overLimitFee;
801
+ }
802
+ public function setCardType($cardType) {
803
+ $this->cardType = $cardType;
804
+ }
805
+ public function getCardType() {
806
+ return $this->cardType;
807
+ }
808
+ public function setApprovedCategories($approvedCategories) {
809
+ $this->approvedCategories = $approvedCategories;
810
+ }
811
+ public function getApprovedCategories() {
812
+ return $this->approvedCategories;
813
+ }
814
+ public function setRewardPartner($rewardPartner) {
815
+ $this->rewardPartner = $rewardPartner;
816
+ }
817
+ public function getRewardPartner() {
818
+ return $this->rewardPartner;
819
+ }
820
+ public function setIntroBalanceTransferTerms($introBalanceTransferTerms) {
821
+ $this->introBalanceTransferTerms = $introBalanceTransferTerms;
822
+ }
823
+ public function getIntroBalanceTransferTerms() {
824
+ return $this->introBalanceTransferTerms;
825
+ }
826
+ public function setForeignCurrencyTransactionFee($foreignCurrencyTransactionFee) {
827
+ $this->foreignCurrencyTransactionFee = $foreignCurrencyTransactionFee;
828
+ }
829
+ public function getForeignCurrencyTransactionFee() {
830
+ return $this->foreignCurrencyTransactionFee;
831
+ }
832
+ public function setAnnualFee($annualFee) {
833
+ $this->annualFee = $annualFee;
834
+ }
835
+ public function getAnnualFee() {
836
+ return $this->annualFee;
837
+ }
838
+ public function setIssuerWebsite($issuerWebsite) {
839
+ $this->issuerWebsite = $issuerWebsite;
840
+ }
841
+ public function getIssuerWebsite() {
842
+ return $this->issuerWebsite;
843
+ }
844
+ public function setVariableRatesUpdateFrequency($variableRatesUpdateFrequency) {
845
+ $this->variableRatesUpdateFrequency = $variableRatesUpdateFrequency;
846
+ }
847
+ public function getVariableRatesUpdateFrequency() {
848
+ return $this->variableRatesUpdateFrequency;
849
+ }
850
+ public function setCarRentalInsurance($carRentalInsurance) {
851
+ $this->carRentalInsurance = $carRentalInsurance;
852
+ }
853
+ public function getCarRentalInsurance() {
854
+ return $this->carRentalInsurance;
855
+ }
856
+ public function setAdditionalCardBenefits($additionalCardBenefits) {
857
+ $this->additionalCardBenefits = $additionalCardBenefits;
858
+ }
859
+ public function getAdditionalCardBenefits() {
860
+ return $this->additionalCardBenefits;
861
+ }
862
+ public function setAgeMinimum($ageMinimum) {
863
+ $this->ageMinimum = $ageMinimum;
864
+ }
865
+ public function getAgeMinimum() {
866
+ return $this->ageMinimum;
867
+ }
868
+ public function setBalanceComputationMethod($balanceComputationMethod) {
869
+ $this->balanceComputationMethod = $balanceComputationMethod;
870
+ }
871
+ public function getBalanceComputationMethod() {
872
+ return $this->balanceComputationMethod;
873
+ }
874
+ public function setAprDisplay($aprDisplay) {
875
+ $this->aprDisplay = $aprDisplay;
876
+ }
877
+ public function getAprDisplay() {
878
+ return $this->aprDisplay;
879
+ }
880
+ public function setAdditionalCardHolderFee($additionalCardHolderFee) {
881
+ $this->additionalCardHolderFee = $additionalCardHolderFee;
882
+ }
883
+ public function getAdditionalCardHolderFee() {
884
+ return $this->additionalCardHolderFee;
885
+ }
886
+ public function setVariableRatesLastUpdated($variableRatesLastUpdated) {
887
+ $this->variableRatesLastUpdated = $variableRatesLastUpdated;
888
+ }
889
+ public function getVariableRatesLastUpdated() {
890
+ return $this->variableRatesLastUpdated;
891
+ }
892
+ public function setNetwork($network) {
893
+ $this->network = $network;
894
+ }
895
+ public function getNetwork() {
896
+ return $this->network;
897
+ }
898
+ public function setPurchaseRateType($purchaseRateType) {
899
+ $this->purchaseRateType = $purchaseRateType;
900
+ }
901
+ public function getPurchaseRateType() {
902
+ return $this->purchaseRateType;
903
+ }
904
+ public function setStatementCopyFee($statementCopyFee) {
905
+ $this->statementCopyFee = $statementCopyFee;
906
+ }
907
+ public function getStatementCopyFee() {
908
+ return $this->statementCopyFee;
909
+ }
910
+ public function setRewardsHaveBlackoutDates($rewardsHaveBlackoutDates) {
911
+ $this->rewardsHaveBlackoutDates = $rewardsHaveBlackoutDates;
912
+ }
913
+ public function getRewardsHaveBlackoutDates() {
914
+ return $this->rewardsHaveBlackoutDates;
915
+ }
916
+ public function setCreditRatingDisplay($creditRatingDisplay) {
917
+ $this->creditRatingDisplay = $creditRatingDisplay;
918
+ }
919
+ public function getCreditRatingDisplay() {
920
+ return $this->creditRatingDisplay;
921
+ }
922
+ public function setFlightAccidentInsurance($flightAccidentInsurance) {
923
+ $this->flightAccidentInsurance = $flightAccidentInsurance;
924
+ }
925
+ public function getFlightAccidentInsurance() {
926
+ return $this->flightAccidentInsurance;
927
+ }
928
+ public function setAnnualRewardMaximum($annualRewardMaximum) {
929
+ $this->annualRewardMaximum = $annualRewardMaximum;
930
+ }
931
+ public function getAnnualRewardMaximum() {
932
+ return $this->annualRewardMaximum;
933
+ }
934
+ public function setBalanceTransferTerms($balanceTransferTerms) {
935
+ $this->balanceTransferTerms = $balanceTransferTerms;
936
+ }
937
+ public function getBalanceTransferTerms() {
938
+ return $this->balanceTransferTerms;
939
+ }
940
+ public function setBonusRewards($bonusRewards) {
941
+ $this->assertIsArray($bonusRewards, 'Google_CcOfferBonusRewards', __METHOD__);
942
+ $this->bonusRewards = $bonusRewards;
943
+ }
944
+ public function getBonusRewards() {
945
+ return $this->bonusRewards;
946
+ }
947
+ public function setImageUrl($imageUrl) {
948
+ $this->imageUrl = $imageUrl;
949
+ }
950
+ public function getImageUrl() {
951
+ return $this->imageUrl;
952
+ }
953
+ public function setAgeMinimumDetails($ageMinimumDetails) {
954
+ $this->ageMinimumDetails = $ageMinimumDetails;
955
+ }
956
+ public function getAgeMinimumDetails() {
957
+ return $this->ageMinimumDetails;
958
+ }
959
+ public function setDisclaimer($disclaimer) {
960
+ $this->disclaimer = $disclaimer;
961
+ }
962
+ public function getDisclaimer() {
963
+ return $this->disclaimer;
964
+ }
965
+ }
966
+
967
+ class Google_CcOfferBonusRewards extends Google_Model {
968
+ public $amount;
969
+ public $details;
970
+ public function setAmount($amount) {
971
+ $this->amount = $amount;
972
+ }
973
+ public function getAmount() {
974
+ return $this->amount;
975
+ }
976
+ public function setDetails($details) {
977
+ $this->details = $details;
978
+ }
979
+ public function getDetails() {
980
+ return $this->details;
981
+ }
982
+ }
983
+
984
+ class Google_CcOfferDefaultFees extends Google_Model {
985
+ public $category;
986
+ public $maxRate;
987
+ public $minRate;
988
+ public $rateType;
989
+ public function setCategory($category) {
990
+ $this->category = $category;
991
+ }
992
+ public function getCategory() {
993
+ return $this->category;
994
+ }
995
+ public function setMaxRate($maxRate) {
996
+ $this->maxRate = $maxRate;
997
+ }
998
+ public function getMaxRate() {
999
+ return $this->maxRate;
1000
+ }
1001
+ public function setMinRate($minRate) {
1002
+ $this->minRate = $minRate;
1003
+ }
1004
+ public function getMinRate() {
1005
+ return $this->minRate;
1006
+ }
1007
+ public function setRateType($rateType) {
1008
+ $this->rateType = $rateType;
1009
+ }
1010
+ public function getRateType() {
1011
+ return $this->rateType;
1012
+ }
1013
+ }
1014
+
1015
+ class Google_CcOfferRewards extends Google_Model {
1016
+ public $category;
1017
+ public $minRewardTier;
1018
+ public $maxRewardTier;
1019
+ public $expirationMonths;
1020
+ public $amount;
1021
+ public $additionalDetails;
1022
+ public function setCategory($category) {
1023
+ $this->category = $category;
1024
+ }
1025
+ public function getCategory() {
1026
+ return $this->category;
1027
+ }
1028
+ public function setMinRewardTier($minRewardTier) {
1029
+ $this->minRewardTier = $minRewardTier;
1030
+ }
1031
+ public function getMinRewardTier() {
1032
+ return $this->minRewardTier;
1033
+ }
1034
+ public function setMaxRewardTier($maxRewardTier) {
1035
+ $this->maxRewardTier = $maxRewardTier;
1036
+ }
1037
+ public function getMaxRewardTier() {
1038
+ return $this->maxRewardTier;
1039
+ }
1040
+ public function setExpirationMonths($expirationMonths) {
1041
+ $this->expirationMonths = $expirationMonths;
1042
+ }
1043
+ public function getExpirationMonths() {
1044
+ return $this->expirationMonths;
1045
+ }
1046
+ public function setAmount($amount) {
1047
+ $this->amount = $amount;
1048
+ }
1049
+ public function getAmount() {
1050
+ return $this->amount;
1051
+ }
1052
+ public function setAdditionalDetails($additionalDetails) {
1053
+ $this->additionalDetails = $additionalDetails;
1054
+ }
1055
+ public function getAdditionalDetails() {
1056
+ return $this->additionalDetails;
1057
+ }
1058
+ }
1059
+
1060
+ class Google_CcOffers extends Google_Model {
1061
+ protected $__itemsType = 'Google_CcOffer';
1062
+ protected $__itemsDataType = 'array';
1063
+ public $items;
1064
+ public $kind;
1065
+ public function setItems($items) {
1066
+ $this->assertIsArray($items, 'Google_CcOffer', __METHOD__);
1067
+ $this->items = $items;
1068
+ }
1069
+ public function getItems() {
1070
+ return $this->items;
1071
+ }
1072
+ public function setKind($kind) {
1073
+ $this->kind = $kind;
1074
+ }
1075
+ public function getKind() {
1076
+ return $this->kind;
1077
+ }
1078
+ }
1079
+
1080
+ class Google_Event extends Google_Model {
1081
+ protected $__networkFeeType = 'Google_Money';
1082
+ protected $__networkFeeDataType = '';
1083
+ public $networkFee;
1084
+ public $advertiserName;
1085
+ public $kind;
1086
+ public $modifyDate;
1087
+ public $type;
1088
+ public $orderId;
1089
+ public $publisherName;
1090
+ public $memberId;
1091
+ public $advertiserId;
1092
+ public $status;
1093
+ public $chargeId;
1094
+ protected $__productsType = 'Google_EventProducts';
1095
+ protected $__productsDataType = 'array';
1096
+ public $products;
1097
+ protected $__earningsType = 'Google_Money';
1098
+ protected $__earningsDataType = '';
1099
+ public $earnings;
1100
+ public $chargeType;
1101
+ protected $__publisherFeeType = 'Google_Money';
1102
+ protected $__publisherFeeDataType = '';
1103
+ public $publisherFee;
1104
+ protected $__commissionableSalesType = 'Google_Money';
1105
+ protected $__commissionableSalesDataType = '';
1106
+ public $commissionableSales;
1107
+ public $publisherId;
1108
+ public $eventDate;
1109
+ public function setNetworkFee(Google_Money $networkFee) {
1110
+ $this->networkFee = $networkFee;
1111
+ }
1112
+ public function getNetworkFee() {
1113
+ return $this->networkFee;
1114
+ }
1115
+ public function setAdvertiserName($advertiserName) {
1116
+ $this->advertiserName = $advertiserName;
1117
+ }
1118
+ public function getAdvertiserName() {
1119
+ return $this->advertiserName;
1120
+ }
1121
+ public function setKind($kind) {
1122
+ $this->kind = $kind;
1123
+ }
1124
+ public function getKind() {
1125
+ return $this->kind;
1126
+ }
1127
+ public function setModifyDate($modifyDate) {
1128
+ $this->modifyDate = $modifyDate;
1129
+ }
1130
+ public function getModifyDate() {
1131
+ return $this->modifyDate;
1132
+ }
1133
+ public function setType($type) {
1134
+ $this->type = $type;
1135
+ }
1136
+ public function getType() {
1137
+ return $this->type;
1138
+ }
1139
+ public function setOrderId($orderId) {
1140
+ $this->orderId = $orderId;
1141
+ }
1142
+ public function getOrderId() {
1143
+ return $this->orderId;
1144
+ }
1145
+ public function setPublisherName($publisherName) {
1146
+ $this->publisherName = $publisherName;
1147
+ }
1148
+ public function getPublisherName() {
1149
+ return $this->publisherName;
1150
+ }
1151
+ public function setMemberId($memberId) {
1152
+ $this->memberId = $memberId;
1153
+ }
1154
+ public function getMemberId() {
1155
+ return $this->memberId;
1156
+ }
1157
+ public function setAdvertiserId($advertiserId) {
1158
+ $this->advertiserId = $advertiserId;
1159
+ }
1160
+ public function getAdvertiserId() {
1161
+ return $this->advertiserId;
1162
+ }
1163
+ public function setStatus($status) {
1164
+ $this->status = $status;
1165
+ }
1166
+ public function getStatus() {
1167
+ return $this->status;
1168
+ }
1169
+ public function setChargeId($chargeId) {
1170
+ $this->chargeId = $chargeId;
1171
+ }
1172
+ public function getChargeId() {
1173
+ return $this->chargeId;
1174
+ }
1175
+ public function setProducts($products) {
1176
+ $this->assertIsArray($products, 'Google_EventProducts', __METHOD__);
1177
+ $this->products = $products;
1178
+ }
1179
+ public function getProducts() {
1180
+ return $this->products;
1181
+ }
1182
+ public function setEarnings(Google_Money $earnings) {
1183
+ $this->earnings = $earnings;
1184
+ }
1185
+ public function getEarnings() {
1186
+ return $this->earnings;
1187
+ }
1188
+ public function setChargeType($chargeType) {
1189
+ $this->chargeType = $chargeType;
1190
+ }
1191
+ public function getChargeType() {
1192
+ return $this->chargeType;
1193
+ }
1194
+ public function setPublisherFee(Google_Money $publisherFee) {
1195
+ $this->publisherFee = $publisherFee;
1196
+ }
1197
+ public function getPublisherFee() {
1198
+ return $this->publisherFee;
1199
+ }
1200
+ public function setCommissionableSales(Google_Money $commissionableSales) {
1201
+ $this->commissionableSales = $commissionableSales;
1202
+ }
1203
+ public function getCommissionableSales() {
1204
+ return $this->commissionableSales;
1205
+ }
1206
+ public function setPublisherId($publisherId) {
1207
+ $this->publisherId = $publisherId;
1208
+ }
1209
+ public function getPublisherId() {
1210
+ return $this->publisherId;
1211
+ }
1212
+ public function setEventDate($eventDate) {
1213
+ $this->eventDate = $eventDate;
1214
+ }
1215
+ public function getEventDate() {
1216
+ return $this->eventDate;
1217
+ }
1218
+ }
1219
+
1220
+ class Google_EventProducts extends Google_Model {
1221
+ protected $__networkFeeType = 'Google_Money';
1222
+ protected $__networkFeeDataType = '';
1223
+ public $networkFee;
1224
+ public $sku;
1225
+ public $categoryName;
1226
+ public $skuName;
1227
+ protected $__publisherFeeType = 'Google_Money';
1228
+ protected $__publisherFeeDataType = '';
1229
+ public $publisherFee;
1230
+ protected $__earningsType = 'Google_Money';
1231
+ protected $__earningsDataType = '';
1232
+ public $earnings;
1233
+ protected $__unitPriceType = 'Google_Money';
1234
+ protected $__unitPriceDataType = '';
1235
+ public $unitPrice;
1236
+ public $categoryId;
1237
+ public $quantity;
1238
+ public function setNetworkFee(Google_Money $networkFee) {
1239
+ $this->networkFee = $networkFee;
1240
+ }
1241
+ public function getNetworkFee() {
1242
+ return $this->networkFee;
1243
+ }
1244
+ public function setSku($sku) {
1245
+ $this->sku = $sku;
1246
+ }
1247
+ public function getSku() {
1248
+ return $this->sku;
1249
+ }
1250
+ public function setCategoryName($categoryName) {
1251
+ $this->categoryName = $categoryName;
1252
+ }
1253
+ public function getCategoryName() {
1254
+ return $this->categoryName;
1255
+ }
1256
+ public function setSkuName($skuName) {
1257
+ $this->skuName = $skuName;
1258
+ }
1259
+ public function getSkuName() {
1260
+ return $this->skuName;
1261
+ }
1262
+ public function setPublisherFee(Google_Money $publisherFee) {
1263
+ $this->publisherFee = $publisherFee;
1264
+ }
1265
+ public function getPublisherFee() {
1266
+ return $this->publisherFee;
1267
+ }
1268
+ public function setEarnings(Google_Money $earnings) {
1269
+ $this->earnings = $earnings;
1270
+ }
1271
+ public function getEarnings() {
1272
+ return $this->earnings;
1273
+ }
1274
+ public function setUnitPrice(Google_Money $unitPrice) {
1275
+ $this->unitPrice = $unitPrice;
1276
+ }
1277
+ public function getUnitPrice() {
1278
+ return $this->unitPrice;
1279
+ }
1280
+ public function setCategoryId($categoryId) {
1281
+ $this->categoryId = $categoryId;
1282
+ }
1283
+ public function getCategoryId() {
1284
+ return $this->categoryId;
1285
+ }
1286
+ public function setQuantity($quantity) {
1287
+ $this->quantity = $quantity;
1288
+ }
1289
+ public function getQuantity() {
1290
+ return $this->quantity;
1291
+ }
1292
+ }
1293
+
1294
+ class Google_Events extends Google_Model {
1295
+ public $nextPageToken;
1296
+ protected $__itemsType = 'Google_Event';
1297
+ protected $__itemsDataType = 'array';
1298
+ public $items;
1299
+ public $kind;
1300
+ public function setNextPageToken($nextPageToken) {
1301
+ $this->nextPageToken = $nextPageToken;
1302
+ }
1303
+ public function getNextPageToken() {
1304
+ return $this->nextPageToken;
1305
+ }
1306
+ public function setItems($items) {
1307
+ $this->assertIsArray($items, 'Google_Event', __METHOD__);
1308
+ $this->items = $items;
1309
+ }
1310
+ public function getItems() {
1311
+ return $this->items;
1312
+ }
1313
+ public function setKind($kind) {
1314
+ $this->kind = $kind;
1315
+ }
1316
+ public function getKind() {
1317
+ return $this->kind;
1318
+ }
1319
+ }
1320
+
1321
+ class Google_Link extends Google_Model {
1322
+ public $isActive;
1323
+ public $linkType;
1324
+ public $kind;
1325
+ public $endDate;
1326
+ public $description;
1327
+ public $name;
1328
+ public $startDate;
1329
+ public $createDate;
1330
+ public $imageAltText;
1331
+ public $id;
1332
+ public $advertiserId;
1333
+ public $impressionTrackingUrl;
1334
+ public $promotionType;
1335
+ public $duration;
1336
+ public $authorship;
1337
+ public $availability;
1338
+ public $clickTrackingUrl;
1339
+ public $destinationUrl;
1340
+ public function setIsActive($isActive) {
1341
+ $this->isActive = $isActive;
1342
+ }
1343
+ public function getIsActive() {
1344
+ return $this->isActive;
1345
+ }
1346
+ public function setLinkType($linkType) {
1347
+ $this->linkType = $linkType;
1348
+ }
1349
+ public function getLinkType() {
1350
+ return $this->linkType;
1351
+ }
1352
+ public function setKind($kind) {
1353
+ $this->kind = $kind;
1354
+ }
1355
+ public function getKind() {
1356
+ return $this->kind;
1357
+ }
1358
+ public function setEndDate($endDate) {
1359
+ $this->endDate = $endDate;
1360
+ }
1361
+ public function getEndDate() {
1362
+ return $this->endDate;
1363
+ }
1364
+ public function setDescription($description) {
1365
+ $this->description = $description;
1366
+ }
1367
+ public function getDescription() {
1368
+ return $this->description;
1369
+ }
1370
+ public function setName($name) {
1371
+ $this->name = $name;
1372
+ }
1373
+ public function getName() {
1374
+ return $this->name;
1375
+ }
1376
+ public function setStartDate($startDate) {
1377
+ $this->startDate = $startDate;
1378
+ }
1379
+ public function getStartDate() {
1380
+ return $this->startDate;
1381
+ }
1382
+ public function setCreateDate($createDate) {
1383
+ $this->createDate = $createDate;
1384
+ }
1385
+ public function getCreateDate() {
1386
+ return $this->createDate;
1387
+ }
1388
+ public function setImageAltText($imageAltText) {
1389
+ $this->imageAltText = $imageAltText;
1390
+ }
1391
+ public function getImageAltText() {
1392
+ return $this->imageAltText;
1393
+ }
1394
+ public function setId($id) {
1395
+ $this->id = $id;
1396
+ }
1397
+ public function getId() {
1398
+ return $this->id;
1399
+ }
1400
+ public function setAdvertiserId($advertiserId) {
1401
+ $this->advertiserId = $advertiserId;
1402
+ }
1403
+ public function getAdvertiserId() {
1404
+ return $this->advertiserId;
1405
+ }
1406
+ public function setImpressionTrackingUrl($impressionTrackingUrl) {
1407
+ $this->impressionTrackingUrl = $impressionTrackingUrl;
1408
+ }
1409
+ public function getImpressionTrackingUrl() {
1410
+ return $this->impressionTrackingUrl;
1411
+ }
1412
+ public function setPromotionType($promotionType) {
1413
+ $this->promotionType = $promotionType;
1414
+ }
1415
+ public function getPromotionType() {
1416
+ return $this->promotionType;
1417
+ }
1418
+ public function setDuration($duration) {
1419
+ $this->duration = $duration;
1420
+ }
1421
+ public function getDuration() {
1422
+ return $this->duration;
1423
+ }
1424
+ public function setAuthorship($authorship) {
1425
+ $this->authorship = $authorship;
1426
+ }
1427
+ public function getAuthorship() {
1428
+ return $this->authorship;
1429
+ }
1430
+ public function setAvailability($availability) {
1431
+ $this->availability = $availability;
1432
+ }
1433
+ public function getAvailability() {
1434
+ return $this->availability;
1435
+ }
1436
+ public function setClickTrackingUrl($clickTrackingUrl) {
1437
+ $this->clickTrackingUrl = $clickTrackingUrl;
1438
+ }
1439
+ public function getClickTrackingUrl() {
1440
+ return $this->clickTrackingUrl;
1441
+ }
1442
+ public function setDestinationUrl($destinationUrl) {
1443
+ $this->destinationUrl = $destinationUrl;
1444
+ }
1445
+ public function getDestinationUrl() {
1446
+ return $this->destinationUrl;
1447
+ }
1448
+ }
1449
+
1450
+ class Google_Links extends Google_Model {
1451
+ public $nextPageToken;
1452
+ protected $__itemsType = 'Google_Link';
1453
+ protected $__itemsDataType = 'array';
1454
+ public $items;
1455
+ public $kind;
1456
+ public function setNextPageToken($nextPageToken) {
1457
+ $this->nextPageToken = $nextPageToken;
1458
+ }
1459
+ public function getNextPageToken() {
1460
+ return $this->nextPageToken;
1461
+ }
1462
+ public function setItems($items) {
1463
+ $this->assertIsArray($items, 'Google_Link', __METHOD__);
1464
+ $this->items = $items;
1465
+ }
1466
+ public function getItems() {
1467
+ return $this->items;
1468
+ }
1469
+ public function setKind($kind) {
1470
+ $this->kind = $kind;
1471
+ }
1472
+ public function getKind() {
1473
+ return $this->kind;
1474
+ }
1475
+ }
1476
+
1477
+ class Google_Money extends Google_Model {
1478
+ public $amount;
1479
+ public $currencyCode;
1480
+ public function setAmount($amount) {
1481
+ $this->amount = $amount;
1482
+ }
1483
+ public function getAmount() {
1484
+ return $this->amount;
1485
+ }
1486
+ public function setCurrencyCode($currencyCode) {
1487
+ $this->currencyCode = $currencyCode;
1488
+ }
1489
+ public function getCurrencyCode() {
1490
+ return $this->currencyCode;
1491
+ }
1492
+ }
1493
+
1494
+ class Google_Publisher extends Google_Model {
1495
+ public $status;
1496
+ public $kind;
1497
+ public $name;
1498
+ public $classification;
1499
+ protected $__epcSevenDayAverageType = 'Google_Money';
1500
+ protected $__epcSevenDayAverageDataType = '';
1501
+ public $epcSevenDayAverage;
1502
+ public $payoutRank;
1503
+ protected $__epcNinetyDayAverageType = 'Google_Money';
1504
+ protected $__epcNinetyDayAverageDataType = '';
1505
+ public $epcNinetyDayAverage;
1506
+ protected $__itemType = 'Google_Publisher';
1507
+ protected $__itemDataType = '';
1508
+ public $item;
1509
+ public $joinDate;
1510
+ public $sites;
1511
+ public $id;
1512
+ public function setStatus($status) {
1513
+ $this->status = $status;
1514
+ }
1515
+ public function getStatus() {
1516
+ return $this->status;
1517
+ }
1518
+ public function setKind($kind) {
1519
+ $this->kind = $kind;
1520
+ }
1521
+ public function getKind() {
1522
+ return $this->kind;
1523
+ }
1524
+ public function setName($name) {
1525
+ $this->name = $name;
1526
+ }
1527
+ public function getName() {
1528
+ return $this->name;
1529
+ }
1530
+ public function setClassification($classification) {
1531
+ $this->classification = $classification;
1532
+ }
1533
+ public function getClassification() {
1534
+ return $this->classification;
1535
+ }
1536
+ public function setEpcSevenDayAverage(Google_Money $epcSevenDayAverage) {
1537
+ $this->epcSevenDayAverage = $epcSevenDayAverage;
1538
+ }
1539
+ public function getEpcSevenDayAverage() {
1540
+ return $this->epcSevenDayAverage;
1541
+ }
1542
+ public function setPayoutRank($payoutRank) {
1543
+ $this->payoutRank = $payoutRank;
1544
+ }
1545
+ public function getPayoutRank() {
1546
+ return $this->payoutRank;
1547
+ }
1548
+ public function setEpcNinetyDayAverage(Google_Money $epcNinetyDayAverage) {
1549
+ $this->epcNinetyDayAverage = $epcNinetyDayAverage;
1550
+ }
1551
+ public function getEpcNinetyDayAverage() {
1552
+ return $this->epcNinetyDayAverage;
1553
+ }
1554
+ public function setItem(Google_Publisher $item) {
1555
+ $this->item = $item;
1556
+ }
1557
+ public function getItem() {
1558
+ return $this->item;
1559
+ }
1560
+ public function setJoinDate($joinDate) {
1561
+ $this->joinDate = $joinDate;
1562
+ }
1563
+ public function getJoinDate() {
1564
+ return $this->joinDate;
1565
+ }
1566
+ public function setSites($sites) {
1567
+ $this->sites = $sites;
1568
+ }
1569
+ public function getSites() {
1570
+ return $this->sites;
1571
+ }
1572
+ public function setId($id) {
1573
+ $this->id = $id;
1574
+ }
1575
+ public function getId() {
1576
+ return $this->id;
1577
+ }
1578
+ }
1579
+
1580
+ class Google_Publishers extends Google_Model {
1581
+ public $nextPageToken;
1582
+ protected $__itemsType = 'Google_Publisher';
1583
+ protected $__itemsDataType = 'array';
1584
+ public $items;
1585
+ public $kind;
1586
+ public function setNextPageToken($nextPageToken) {
1587
+ $this->nextPageToken = $nextPageToken;
1588
+ }
1589
+ public function getNextPageToken() {
1590
+ return $this->nextPageToken;
1591
+ }
1592
+ public function setItems($items) {
1593
+ $this->assertIsArray($items, 'Google_Publisher', __METHOD__);
1594
+ $this->items = $items;
1595
+ }
1596
+ public function getItems() {
1597
+ return $this->items;
1598
+ }
1599
+ public function setKind($kind) {
1600
+ $this->kind = $kind;
1601
+ }
1602
+ public function getKind() {
1603
+ return $this->kind;
1604
+ }
1605
+ }
google-api-php-client/src/contrib/Google_LatitudeService.php ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "currentLocation" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $latitudeService = new Google_LatitudeService(...);
22
+ * $currentLocation = $latitudeService->currentLocation;
23
+ * </code>
24
+ */
25
+ class Google_CurrentLocationServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Updates or creates the user's current location. (currentLocation.insert)
30
+ *
31
+ * @param Google_Location $postBody
32
+ * @param array $optParams Optional parameters.
33
+ * @return Google_Location
34
+ */
35
+ public function insert(Google_Location $postBody, $optParams = array()) {
36
+ $params = array('postBody' => $postBody);
37
+ $params = array_merge($params, $optParams);
38
+ $data = $this->__call('insert', array($params));
39
+ if ($this->useObjects()) {
40
+ return new Google_Location($data);
41
+ } else {
42
+ return $data;
43
+ }
44
+ }
45
+ /**
46
+ * Returns the authenticated user's current location. (currentLocation.get)
47
+ *
48
+ * @param array $optParams Optional parameters.
49
+ *
50
+ * @opt_param string granularity Granularity of the requested location.
51
+ * @return Google_Location
52
+ */
53
+ public function get($optParams = array()) {
54
+ $params = array();
55
+ $params = array_merge($params, $optParams);
56
+ $data = $this->__call('get', array($params));
57
+ if ($this->useObjects()) {
58
+ return new Google_Location($data);
59
+ } else {
60
+ return $data;
61
+ }
62
+ }
63
+ /**
64
+ * Deletes the authenticated user's current location. (currentLocation.delete)
65
+ *
66
+ * @param array $optParams Optional parameters.
67
+ */
68
+ public function delete($optParams = array()) {
69
+ $params = array();
70
+ $params = array_merge($params, $optParams);
71
+ $data = $this->__call('delete', array($params));
72
+ return $data;
73
+ }
74
+ }
75
+
76
+ /**
77
+ * The "location" collection of methods.
78
+ * Typical usage is:
79
+ * <code>
80
+ * $latitudeService = new Google_LatitudeService(...);
81
+ * $location = $latitudeService->location;
82
+ * </code>
83
+ */
84
+ class Google_LocationServiceResource extends Google_ServiceResource {
85
+
86
+
87
+ /**
88
+ * Inserts or updates a location in the user's location history. (location.insert)
89
+ *
90
+ * @param Google_Location $postBody
91
+ * @param array $optParams Optional parameters.
92
+ * @return Google_Location
93
+ */
94
+ public function insert(Google_Location $postBody, $optParams = array()) {
95
+ $params = array('postBody' => $postBody);
96
+ $params = array_merge($params, $optParams);
97
+ $data = $this->__call('insert', array($params));
98
+ if ($this->useObjects()) {
99
+ return new Google_Location($data);
100
+ } else {
101
+ return $data;
102
+ }
103
+ }
104
+ /**
105
+ * Reads a location from the user's location history. (location.get)
106
+ *
107
+ * @param string $locationId Timestamp of the location to read (ms since epoch).
108
+ * @param array $optParams Optional parameters.
109
+ *
110
+ * @opt_param string granularity Granularity of the location to return.
111
+ * @return Google_Location
112
+ */
113
+ public function get($locationId, $optParams = array()) {
114
+ $params = array('locationId' => $locationId);
115
+ $params = array_merge($params, $optParams);
116
+ $data = $this->__call('get', array($params));
117
+ if ($this->useObjects()) {
118
+ return new Google_Location($data);
119
+ } else {
120
+ return $data;
121
+ }
122
+ }
123
+ /**
124
+ * Lists the user's location history. (location.list)
125
+ *
126
+ * @param array $optParams Optional parameters.
127
+ *
128
+ * @opt_param string max-results Maximum number of locations to return.
129
+ * @opt_param string max-time Maximum timestamp of locations to return (ms since epoch).
130
+ * @opt_param string min-time Minimum timestamp of locations to return (ms since epoch).
131
+ * @opt_param string granularity Granularity of the requested locations.
132
+ * @return Google_LocationFeed
133
+ */
134
+ public function listLocation($optParams = array()) {
135
+ $params = array();
136
+ $params = array_merge($params, $optParams);
137
+ $data = $this->__call('list', array($params));
138
+ if ($this->useObjects()) {
139
+ return new Google_LocationFeed($data);
140
+ } else {
141
+ return $data;
142
+ }
143
+ }
144
+ /**
145
+ * Deletes a location from the user's location history. (location.delete)
146
+ *
147
+ * @param string $locationId Timestamp of the location to delete (ms since epoch).
148
+ * @param array $optParams Optional parameters.
149
+ */
150
+ public function delete($locationId, $optParams = array()) {
151
+ $params = array('locationId' => $locationId);
152
+ $params = array_merge($params, $optParams);
153
+ $data = $this->__call('delete', array($params));
154
+ return $data;
155
+ }
156
+ }
157
+
158
+ /**
159
+ * Service definition for Google_Latitude (v1).
160
+ *
161
+ * <p>
162
+ * Lets you read and update your current location and work with your location history
163
+ * </p>
164
+ *
165
+ * <p>
166
+ * For more information about this service, see the
167
+ * <a href="https://developers.google.com/latitude/v1/using" target="_blank">API Documentation</a>
168
+ * </p>
169
+ *
170
+ * @author Google, Inc.
171
+ */
172
+ class Google_LatitudeService extends Google_Service {
173
+ public $currentLocation;
174
+ public $location;
175
+ /**
176
+ * Constructs the internal representation of the Latitude service.
177
+ *
178
+ * @param Google_Client $client
179
+ */
180
+ public function __construct(Google_Client $client) {
181
+ $this->servicePath = 'latitude/v1/';
182
+ $this->version = 'v1';
183
+ $this->serviceName = 'latitude';
184
+
185
+ $client->addService($this->serviceName, $this->version);
186
+ $this->currentLocation = new Google_CurrentLocationServiceResource($this, $this->serviceName, 'currentLocation', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"], "request": {"$ref": "LatitudeCurrentlocationResourceJson"}, "response": {"$ref": "LatitudeCurrentlocationResourceJson"}, "httpMethod": "POST", "path": "currentLocation", "id": "latitude.currentLocation.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"], "parameters": {"granularity": {"default": "city", "enum": ["best", "city"], "type": "string", "location": "query"}}, "response": {"$ref": "LatitudeCurrentlocationResourceJson"}, "httpMethod": "GET", "path": "currentLocation", "id": "latitude.currentLocation.get"}, "delete": {"path": "currentLocation", "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"], "id": "latitude.currentLocation.delete", "httpMethod": "DELETE"}}}', true));
187
+ $this->location = new Google_LocationServiceResource($this, $this->serviceName, 'location', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "request": {"$ref": "Location"}, "response": {"$ref": "Location"}, "httpMethod": "POST", "path": "location", "id": "latitude.location.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "parameters": {"locationId": {"required": true, "type": "string", "location": "path"}, "granularity": {"default": "city", "enum": ["best", "city"], "type": "string", "location": "query"}}, "id": "latitude.location.get", "httpMethod": "GET", "path": "location/{locationId}", "response": {"$ref": "Location"}}, "list": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "parameters": {"max-results": {"type": "string", "location": "query"}, "max-time": {"type": "string", "location": "query"}, "min-time": {"type": "string", "location": "query"}, "granularity": {"default": "city", "enum": ["best", "city"], "type": "string", "location": "query"}}, "response": {"$ref": "LocationFeed"}, "httpMethod": "GET", "path": "location", "id": "latitude.location.list"}, "delete": {"scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"], "path": "location/{locationId}", "id": "latitude.location.delete", "parameters": {"locationId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
188
+
189
+ }
190
+ }
191
+
192
+ class Google_Location extends Google_Model {
193
+ public $kind;
194
+ public $altitude;
195
+ public $longitude;
196
+ public $activityId;
197
+ public $latitude;
198
+ public $altitudeAccuracy;
199
+ public $timestampMs;
200
+ public $speed;
201
+ public $heading;
202
+ public $accuracy;
203
+ public function setKind($kind) {
204
+ $this->kind = $kind;
205
+ }
206
+ public function getKind() {
207
+ return $this->kind;
208
+ }
209
+ public function setAltitude($altitude) {
210
+ $this->altitude = $altitude;
211
+ }
212
+ public function getAltitude() {
213
+ return $this->altitude;
214
+ }
215
+ public function setLongitude($longitude) {
216
+ $this->longitude = $longitude;
217
+ }
218
+ public function getLongitude() {
219
+ return $this->longitude;
220
+ }
221
+ public function setActivityId($activityId) {
222
+ $this->activityId = $activityId;
223
+ }
224
+ public function getActivityId() {
225
+ return $this->activityId;
226
+ }
227
+ public function setLatitude($latitude) {
228
+ $this->latitude = $latitude;
229
+ }
230
+ public function getLatitude() {
231
+ return $this->latitude;
232
+ }
233
+ public function setAltitudeAccuracy($altitudeAccuracy) {
234
+ $this->altitudeAccuracy = $altitudeAccuracy;
235
+ }
236
+ public function getAltitudeAccuracy() {
237
+ return $this->altitudeAccuracy;
238
+ }
239
+ public function setTimestampMs($timestampMs) {
240
+ $this->timestampMs = $timestampMs;
241
+ }
242
+ public function getTimestampMs() {
243
+ return $this->timestampMs;
244
+ }
245
+ public function setSpeed($speed) {
246
+ $this->speed = $speed;
247
+ }
248
+ public function getSpeed() {
249
+ return $this->speed;
250
+ }
251
+ public function setHeading($heading) {
252
+ $this->heading = $heading;
253
+ }
254
+ public function getHeading() {
255
+ return $this->heading;
256
+ }
257
+ public function setAccuracy($accuracy) {
258
+ $this->accuracy = $accuracy;
259
+ }
260
+ public function getAccuracy() {
261
+ return $this->accuracy;
262
+ }
263
+ }
264
+
265
+ class Google_LocationFeed extends Google_Model {
266
+ protected $__itemsType = 'Google_Location';
267
+ protected $__itemsDataType = 'array';
268
+ public $items;
269
+ public $kind;
270
+ public function setItems(/* array(Google_Location) */ $items) {
271
+ $this->assertIsArray($items, 'Google_Location', __METHOD__);
272
+ $this->items = $items;
273
+ }
274
+ public function getItems() {
275
+ return $this->items;
276
+ }
277
+ public function setKind($kind) {
278
+ $this->kind = $kind;
279
+ }
280
+ public function getKind() {
281
+ return $this->kind;
282
+ }
283
+ }
google-api-php-client/src/contrib/Google_LicensingService.php ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "licenseAssignments" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $licensingService = new Google_LicensingService(...);
22
+ * $licenseAssignments = $licensingService->licenseAssignments;
23
+ * </code>
24
+ */
25
+ class Google_LicenseAssignmentsServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Assign License. (licenseAssignments.insert)
30
+ *
31
+ * @param string $productId Name for product
32
+ * @param string $skuId Name for sku
33
+ * @param Google_LicenseAssignmentInsert $postBody
34
+ * @param array $optParams Optional parameters.
35
+ * @return Google_LicenseAssignment
36
+ */
37
+ public function insert($productId, $skuId, Google_LicenseAssignmentInsert $postBody, $optParams = array()) {
38
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody);
39
+ $params = array_merge($params, $optParams);
40
+ $data = $this->__call('insert', array($params));
41
+ if ($this->useObjects()) {
42
+ return new Google_LicenseAssignment($data);
43
+ } else {
44
+ return $data;
45
+ }
46
+ }
47
+ /**
48
+ * Get license assignment of a particular product and sku for a user (licenseAssignments.get)
49
+ *
50
+ * @param string $productId Name for product
51
+ * @param string $skuId Name for sku
52
+ * @param string $userId email id or unique Id of the user
53
+ * @param array $optParams Optional parameters.
54
+ * @return Google_LicenseAssignment
55
+ */
56
+ public function get($productId, $skuId, $userId, $optParams = array()) {
57
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
58
+ $params = array_merge($params, $optParams);
59
+ $data = $this->__call('get', array($params));
60
+ if ($this->useObjects()) {
61
+ return new Google_LicenseAssignment($data);
62
+ } else {
63
+ return $data;
64
+ }
65
+ }
66
+ /**
67
+ * List license assignments for given product and sku of the customer.
68
+ * (licenseAssignments.listForProductAndSku)
69
+ *
70
+ * @param string $productId Name for product
71
+ * @param string $skuId Name for sku
72
+ * @param string $customerId CustomerId represents the customer for whom licenseassignments are queried
73
+ * @param array $optParams Optional parameters.
74
+ *
75
+ * @opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
76
+ * @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
77
+ * @return Google_LicenseAssignmentList
78
+ */
79
+ public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array()) {
80
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId);
81
+ $params = array_merge($params, $optParams);
82
+ $data = $this->__call('listForProductAndSku', array($params));
83
+ if ($this->useObjects()) {
84
+ return new Google_LicenseAssignmentList($data);
85
+ } else {
86
+ return $data;
87
+ }
88
+ }
89
+ /**
90
+ * List license assignments for given product of the customer. (licenseAssignments.listForProduct)
91
+ *
92
+ * @param string $productId Name for product
93
+ * @param string $customerId CustomerId represents the customer for whom licenseassignments are queried
94
+ * @param array $optParams Optional parameters.
95
+ *
96
+ * @opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
97
+ * @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
98
+ * @return Google_LicenseAssignmentList
99
+ */
100
+ public function listForProduct($productId, $customerId, $optParams = array()) {
101
+ $params = array('productId' => $productId, 'customerId' => $customerId);
102
+ $params = array_merge($params, $optParams);
103
+ $data = $this->__call('listForProduct', array($params));
104
+ if ($this->useObjects()) {
105
+ return new Google_LicenseAssignmentList($data);
106
+ } else {
107
+ return $data;
108
+ }
109
+ }
110
+ /**
111
+ * Assign License. (licenseAssignments.update)
112
+ *
113
+ * @param string $productId Name for product
114
+ * @param string $skuId Name for sku for which license would be revoked
115
+ * @param string $userId email id or unique Id of the user
116
+ * @param Google_LicenseAssignment $postBody
117
+ * @param array $optParams Optional parameters.
118
+ * @return Google_LicenseAssignment
119
+ */
120
+ public function update($productId, $skuId, $userId, Google_LicenseAssignment $postBody, $optParams = array()) {
121
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
122
+ $params = array_merge($params, $optParams);
123
+ $data = $this->__call('update', array($params));
124
+ if ($this->useObjects()) {
125
+ return new Google_LicenseAssignment($data);
126
+ } else {
127
+ return $data;
128
+ }
129
+ }
130
+ /**
131
+ * Assign License. This method supports patch semantics. (licenseAssignments.patch)
132
+ *
133
+ * @param string $productId Name for product
134
+ * @param string $skuId Name for sku for which license would be revoked
135
+ * @param string $userId email id or unique Id of the user
136
+ * @param Google_LicenseAssignment $postBody
137
+ * @param array $optParams Optional parameters.
138
+ * @return Google_LicenseAssignment
139
+ */
140
+ public function patch($productId, $skuId, $userId, Google_LicenseAssignment $postBody, $optParams = array()) {
141
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
142
+ $params = array_merge($params, $optParams);
143
+ $data = $this->__call('patch', array($params));
144
+ if ($this->useObjects()) {
145
+ return new Google_LicenseAssignment($data);
146
+ } else {
147
+ return $data;
148
+ }
149
+ }
150
+ /**
151
+ * Revoke License. (licenseAssignments.delete)
152
+ *
153
+ * @param string $productId Name for product
154
+ * @param string $skuId Name for sku
155
+ * @param string $userId email id or unique Id of the user
156
+ * @param array $optParams Optional parameters.
157
+ */
158
+ public function delete($productId, $skuId, $userId, $optParams = array()) {
159
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
160
+ $params = array_merge($params, $optParams);
161
+ $data = $this->__call('delete', array($params));
162
+ return $data;
163
+ }
164
+ }
165
+
166
+ /**
167
+ * Service definition for Google_Licensing (v1).
168
+ *
169
+ * <p>
170
+ * Licensing API to view and manage license for your domain.
171
+ * </p>
172
+ *
173
+ * <p>
174
+ * For more information about this service, see the
175
+ * <a href="https://developers.google.com/google-apps/licensing/" target="_blank">API Documentation</a>
176
+ * </p>
177
+ *
178
+ * @author Google, Inc.
179
+ */
180
+ class Google_LicensingService extends Google_Service {
181
+ public $licenseAssignments;
182
+ /**
183
+ * Constructs the internal representation of the Licensing service.
184
+ *
185
+ * @param Google_Client $client
186
+ */
187
+ public function __construct(Google_Client $client) {
188
+ $this->servicePath = 'apps/licensing/v1/product/';
189
+ $this->version = 'v1';
190
+ $this->serviceName = 'licensing';
191
+
192
+ $client->addService($this->serviceName, $this->version);
193
+ $this->licenseAssignments = new Google_LicenseAssignmentsServiceResource($this, $this->serviceName, 'licenseAssignments', json_decode('{"methods": {"insert": {"parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "LicenseAssignmentInsert"}, "id": "licensing.licenseAssignments.insert", "httpMethod": "POST", "path": "{productId}/sku/{skuId}/user", "response": {"$ref": "LicenseAssignment"}}, "get": {"httpMethod": "GET", "response": {"$ref": "LicenseAssignment"}, "id": "licensing.licenseAssignments.get", "parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/sku/{skuId}/user/{userId}"}, "listForProductAndSku": {"httpMethod": "GET", "response": {"$ref": "LicenseAssignmentList"}, "id": "licensing.licenseAssignments.listForProductAndSku", "parameters": {"pageToken": {"default": "", "type": "string", "location": "query"}, "skuId": {"required": true, "type": "string", "location": "path"}, "customerId": {"required": true, "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "100", "maximum": "1000", "minimum": "1", "location": "query", "type": "integer"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/sku/{skuId}/users"}, "listForProduct": {"httpMethod": "GET", "response": {"$ref": "LicenseAssignmentList"}, "id": "licensing.licenseAssignments.listForProduct", "parameters": {"pageToken": {"default": "", "type": "string", "location": "query"}, "customerId": {"required": true, "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "100", "maximum": "1000", "minimum": "1", "location": "query", "type": "integer"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/users"}, "update": {"parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "LicenseAssignment"}, "id": "licensing.licenseAssignments.update", "httpMethod": "PUT", "path": "{productId}/sku/{skuId}/user/{userId}", "response": {"$ref": "LicenseAssignment"}}, "patch": {"parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "LicenseAssignment"}, "id": "licensing.licenseAssignments.patch", "httpMethod": "PATCH", "path": "{productId}/sku/{skuId}/user/{userId}", "response": {"$ref": "LicenseAssignment"}}, "delete": {"httpMethod": "DELETE", "id": "licensing.licenseAssignments.delete", "parameters": {"skuId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "productId": {"required": true, "type": "string", "location": "path"}}, "path": "{productId}/sku/{skuId}/user/{userId}"}}}', true));
194
+
195
+ }
196
+ }
197
+
198
+ class Google_LicenseAssignment extends Google_Model {
199
+ public $skuId;
200
+ public $kind;
201
+ public $userId;
202
+ public $etags;
203
+ public $selfLink;
204
+ public $productId;
205
+ public function setSkuId($skuId) {
206
+ $this->skuId = $skuId;
207
+ }
208
+ public function getSkuId() {
209
+ return $this->skuId;
210
+ }
211
+ public function setKind($kind) {
212
+ $this->kind = $kind;
213
+ }
214
+ public function getKind() {
215
+ return $this->kind;
216
+ }
217
+ public function setUserId($userId) {
218
+ $this->userId = $userId;
219
+ }
220
+ public function getUserId() {
221
+ return $this->userId;
222
+ }
223
+ public function setEtags($etags) {
224
+ $this->etags = $etags;
225
+ }
226
+ public function getEtags() {
227
+ return $this->etags;
228
+ }
229
+ public function setSelfLink($selfLink) {
230
+ $this->selfLink = $selfLink;
231
+ }
232
+ public function getSelfLink() {
233
+ return $this->selfLink;
234
+ }
235
+ public function setProductId($productId) {
236
+ $this->productId = $productId;
237
+ }
238
+ public function getProductId() {
239
+ return $this->productId;
240
+ }
241
+ }
242
+
243
+ class Google_LicenseAssignmentInsert extends Google_Model {
244
+ public $userId;
245
+ public function setUserId($userId) {
246
+ $this->userId = $userId;
247
+ }
248
+ public function getUserId() {
249
+ return $this->userId;
250
+ }
251
+ }
252
+
253
+ class Google_LicenseAssignmentList extends Google_Model {
254
+ public $nextPageToken;
255
+ protected $__itemsType = 'Google_LicenseAssignment';
256
+ protected $__itemsDataType = 'array';
257
+ public $items;
258
+ public $kind;
259
+ public $etag;
260
+ public function setNextPageToken($nextPageToken) {
261
+ $this->nextPageToken = $nextPageToken;
262
+ }
263
+ public function getNextPageToken() {
264
+ return $this->nextPageToken;
265
+ }
266
+ public function setItems(/* array(Google_LicenseAssignment) */ $items) {
267
+ $this->assertIsArray($items, 'Google_LicenseAssignment', __METHOD__);
268
+ $this->items = $items;
269
+ }
270
+ public function getItems() {
271
+ return $this->items;
272
+ }
273
+ public function setKind($kind) {
274
+ $this->kind = $kind;
275
+ }
276
+ public function getKind() {
277
+ return $this->kind;
278
+ }
279
+ public function setEtag($etag) {
280
+ $this->etag = $etag;
281
+ }
282
+ public function getEtag() {
283
+ return $this->etag;
284
+ }
285
+ }
google-api-php-client/src/contrib/Google_ModeratorService.php ADDED
@@ -0,0 +1,1888 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 resuls 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 resuls 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
+ */
883
+ class 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
+
927
+ class 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
+
939
+ class 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
+
956
+ class 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
+
973
+ class 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
+
1001
+ class 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
+
1034
+ class 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
+
1058
+ class 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
+
1068
+ class 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
+
1154
+ class 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
+
1206
+ class 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
+
1216
+ class 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
+
1236
+ class 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
+
1257
+ class 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
+
1274
+ class 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
+
1291
+ class 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
+
1403
+ class 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
+
1427
+ class 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
+
1451
+ class 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
+
1475
+ class 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
+
1492
+ class 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
+
1512
+ class 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
+
1529
+ class 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
+
1546
+ class 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
+
1572
+ class 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
+
1596
+ class 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
+
1616
+ class 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
+
1683
+ class 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
+
1728
+ class 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
+
1745
+ class 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
+
1765
+ class 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
+
1786
+ class 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
+
1803
+ class 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
+
1820
+ class 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
+
1853
+ class 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
+
1870
+ class 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
+ }
google-api-php-client/src/contrib/Google_OrkutService.php ADDED
@@ -0,0 +1,2554 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "communityMembers" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $orkutService = new Google_OrkutService(...);
22
+ * $communityMembers = $orkutService->communityMembers;
23
+ * </code>
24
+ */
25
+ class Google_CommunityMembersServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Makes the user join a community. (communityMembers.insert)
30
+ *
31
+ * @param int $communityId ID of the community.
32
+ * @param string $userId ID of the user.
33
+ * @param array $optParams Optional parameters.
34
+ * @return Google_CommunityMembers
35
+ */
36
+ public function insert($communityId, $userId, $optParams = array()) {
37
+ $params = array('communityId' => $communityId, 'userId' => $userId);
38
+ $params = array_merge($params, $optParams);
39
+ $data = $this->__call('insert', array($params));
40
+ if ($this->useObjects()) {
41
+ return new Google_CommunityMembers($data);
42
+ } else {
43
+ return $data;
44
+ }
45
+ }
46
+ /**
47
+ * Retrieves the relationship between a user and a community. (communityMembers.get)
48
+ *
49
+ * @param int $communityId ID of the community.
50
+ * @param string $userId ID of the user.
51
+ * @param array $optParams Optional parameters.
52
+ *
53
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
54
+ * @return Google_CommunityMembers
55
+ */
56
+ public function get($communityId, $userId, $optParams = array()) {
57
+ $params = array('communityId' => $communityId, 'userId' => $userId);
58
+ $params = array_merge($params, $optParams);
59
+ $data = $this->__call('get', array($params));
60
+ if ($this->useObjects()) {
61
+ return new Google_CommunityMembers($data);
62
+ } else {
63
+ return $data;
64
+ }
65
+ }
66
+ /**
67
+ * Lists members of a community. Use the pagination tokens to retrieve the full list; do not rely on
68
+ * the member count available in the community profile information to know when to stop iterating,
69
+ * as that count may be approximate. (communityMembers.list)
70
+ *
71
+ * @param int $communityId The ID of the community whose members will be listed.
72
+ * @param array $optParams Optional parameters.
73
+ *
74
+ * @opt_param string pageToken A continuation token that allows pagination.
75
+ * @opt_param bool friendsOnly Whether to list only community members who are friends of the user.
76
+ * @opt_param string maxResults The maximum number of members to include in the response.
77
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
78
+ * @return Google_CommunityMembersList
79
+ */
80
+ public function listCommunityMembers($communityId, $optParams = array()) {
81
+ $params = array('communityId' => $communityId);
82
+ $params = array_merge($params, $optParams);
83
+ $data = $this->__call('list', array($params));
84
+ if ($this->useObjects()) {
85
+ return new Google_CommunityMembersList($data);
86
+ } else {
87
+ return $data;
88
+ }
89
+ }
90
+ /**
91
+ * Makes the user leave a community. (communityMembers.delete)
92
+ *
93
+ * @param int $communityId ID of the community.
94
+ * @param string $userId ID of the user.
95
+ * @param array $optParams Optional parameters.
96
+ */
97
+ public function delete($communityId, $userId, $optParams = array()) {
98
+ $params = array('communityId' => $communityId, 'userId' => $userId);
99
+ $params = array_merge($params, $optParams);
100
+ $data = $this->__call('delete', array($params));
101
+ return $data;
102
+ }
103
+ }
104
+
105
+ /**
106
+ * The "activities" collection of methods.
107
+ * Typical usage is:
108
+ * <code>
109
+ * $orkutService = new Google_OrkutService(...);
110
+ * $activities = $orkutService->activities;
111
+ * </code>
112
+ */
113
+ class Google_ActivitiesServiceResource extends Google_ServiceResource {
114
+
115
+
116
+ /**
117
+ * Retrieves a list of activities. (activities.list)
118
+ *
119
+ * @param string $userId The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the authenticated user).
120
+ * @param string $collection The collection of activities to list.
121
+ * @param array $optParams Optional parameters.
122
+ *
123
+ * @opt_param string pageToken A continuation token that allows pagination.
124
+ * @opt_param string maxResults The maximum number of activities to include in the response.
125
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
126
+ * @return Google_ActivityList
127
+ */
128
+ public function listActivities($userId, $collection, $optParams = array()) {
129
+ $params = array('userId' => $userId, 'collection' => $collection);
130
+ $params = array_merge($params, $optParams);
131
+ $data = $this->__call('list', array($params));
132
+ if ($this->useObjects()) {
133
+ return new Google_ActivityList($data);
134
+ } else {
135
+ return $data;
136
+ }
137
+ }
138
+ /**
139
+ * Deletes an existing activity, if the access controls allow it. (activities.delete)
140
+ *
141
+ * @param string $activityId ID of the activity to remove.
142
+ * @param array $optParams Optional parameters.
143
+ */
144
+ public function delete($activityId, $optParams = array()) {
145
+ $params = array('activityId' => $activityId);
146
+ $params = array_merge($params, $optParams);
147
+ $data = $this->__call('delete', array($params));
148
+ return $data;
149
+ }
150
+ }
151
+
152
+ /**
153
+ * The "communityPollComments" collection of methods.
154
+ * Typical usage is:
155
+ * <code>
156
+ * $orkutService = new Google_OrkutService(...);
157
+ * $communityPollComments = $orkutService->communityPollComments;
158
+ * </code>
159
+ */
160
+ class Google_CommunityPollCommentsServiceResource extends Google_ServiceResource {
161
+
162
+
163
+ /**
164
+ * Adds a comment on a community poll. (communityPollComments.insert)
165
+ *
166
+ * @param int $communityId The ID of the community whose poll is being commented.
167
+ * @param string $pollId The ID of the poll being commented.
168
+ * @param Google_CommunityPollComment $postBody
169
+ * @param array $optParams Optional parameters.
170
+ * @return Google_CommunityPollComment
171
+ */
172
+ public function insert($communityId, $pollId, Google_CommunityPollComment $postBody, $optParams = array()) {
173
+ $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
174
+ $params = array_merge($params, $optParams);
175
+ $data = $this->__call('insert', array($params));
176
+ if ($this->useObjects()) {
177
+ return new Google_CommunityPollComment($data);
178
+ } else {
179
+ return $data;
180
+ }
181
+ }
182
+ /**
183
+ * Retrieves the comments of a community poll. (communityPollComments.list)
184
+ *
185
+ * @param int $communityId The ID of the community whose poll is having its comments listed.
186
+ * @param string $pollId The ID of the community whose polls will be listed.
187
+ * @param array $optParams Optional parameters.
188
+ *
189
+ * @opt_param string pageToken A continuation token that allows pagination.
190
+ * @opt_param string maxResults The maximum number of comments to include in the response.
191
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
192
+ * @return Google_CommunityPollCommentList
193
+ */
194
+ public function listCommunityPollComments($communityId, $pollId, $optParams = array()) {
195
+ $params = array('communityId' => $communityId, 'pollId' => $pollId);
196
+ $params = array_merge($params, $optParams);
197
+ $data = $this->__call('list', array($params));
198
+ if ($this->useObjects()) {
199
+ return new Google_CommunityPollCommentList($data);
200
+ } else {
201
+ return $data;
202
+ }
203
+ }
204
+ }
205
+
206
+ /**
207
+ * The "communityPolls" collection of methods.
208
+ * Typical usage is:
209
+ * <code>
210
+ * $orkutService = new Google_OrkutService(...);
211
+ * $communityPolls = $orkutService->communityPolls;
212
+ * </code>
213
+ */
214
+ class Google_CommunityPollsServiceResource extends Google_ServiceResource {
215
+
216
+
217
+ /**
218
+ * Retrieves the polls of a community. (communityPolls.list)
219
+ *
220
+ * @param int $communityId The ID of the community which polls will be listed.
221
+ * @param array $optParams Optional parameters.
222
+ *
223
+ * @opt_param string pageToken A continuation token that allows pagination.
224
+ * @opt_param string maxResults The maximum number of polls to include in the response.
225
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
226
+ * @return Google_CommunityPollList
227
+ */
228
+ public function listCommunityPolls($communityId, $optParams = array()) {
229
+ $params = array('communityId' => $communityId);
230
+ $params = array_merge($params, $optParams);
231
+ $data = $this->__call('list', array($params));
232
+ if ($this->useObjects()) {
233
+ return new Google_CommunityPollList($data);
234
+ } else {
235
+ return $data;
236
+ }
237
+ }
238
+ /**
239
+ * Retrieves one specific poll of a community. (communityPolls.get)
240
+ *
241
+ * @param int $communityId The ID of the community for whose poll will be retrieved.
242
+ * @param string $pollId The ID of the poll to get.
243
+ * @param array $optParams Optional parameters.
244
+ *
245
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
246
+ * @return Google_CommunityPoll
247
+ */
248
+ public function get($communityId, $pollId, $optParams = array()) {
249
+ $params = array('communityId' => $communityId, 'pollId' => $pollId);
250
+ $params = array_merge($params, $optParams);
251
+ $data = $this->__call('get', array($params));
252
+ if ($this->useObjects()) {
253
+ return new Google_CommunityPoll($data);
254
+ } else {
255
+ return $data;
256
+ }
257
+ }
258
+ }
259
+
260
+ /**
261
+ * The "communityMessages" collection of methods.
262
+ * Typical usage is:
263
+ * <code>
264
+ * $orkutService = new Google_OrkutService(...);
265
+ * $communityMessages = $orkutService->communityMessages;
266
+ * </code>
267
+ */
268
+ class Google_CommunityMessagesServiceResource extends Google_ServiceResource {
269
+
270
+
271
+ /**
272
+ * Adds a message to a given community topic. (communityMessages.insert)
273
+ *
274
+ * @param int $communityId The ID of the community the message should be added to.
275
+ * @param string $topicId The ID of the topic the message should be added to.
276
+ * @param Google_CommunityMessage $postBody
277
+ * @param array $optParams Optional parameters.
278
+ * @return Google_CommunityMessage
279
+ */
280
+ public function insert($communityId, $topicId, Google_CommunityMessage $postBody, $optParams = array()) {
281
+ $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody);
282
+ $params = array_merge($params, $optParams);
283
+ $data = $this->__call('insert', array($params));
284
+ if ($this->useObjects()) {
285
+ return new Google_CommunityMessage($data);
286
+ } else {
287
+ return $data;
288
+ }
289
+ }
290
+ /**
291
+ * Retrieves the messages of a topic of a community. (communityMessages.list)
292
+ *
293
+ * @param int $communityId The ID of the community which messages will be listed.
294
+ * @param string $topicId The ID of the topic which messages will be listed.
295
+ * @param array $optParams Optional parameters.
296
+ *
297
+ * @opt_param string pageToken A continuation token that allows pagination.
298
+ * @opt_param string maxResults The maximum number of messages to include in the response.
299
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
300
+ * @return Google_CommunityMessageList
301
+ */
302
+ public function listCommunityMessages($communityId, $topicId, $optParams = array()) {
303
+ $params = array('communityId' => $communityId, 'topicId' => $topicId);
304
+ $params = array_merge($params, $optParams);
305
+ $data = $this->__call('list', array($params));
306
+ if ($this->useObjects()) {
307
+ return new Google_CommunityMessageList($data);
308
+ } else {
309
+ return $data;
310
+ }
311
+ }
312
+ /**
313
+ * Moves a message of the community to the trash folder. (communityMessages.delete)
314
+ *
315
+ * @param int $communityId The ID of the community whose message will be moved to the trash folder.
316
+ * @param string $topicId The ID of the topic whose message will be moved to the trash folder.
317
+ * @param string $messageId The ID of the message to be moved to the trash folder.
318
+ * @param array $optParams Optional parameters.
319
+ */
320
+ public function delete($communityId, $topicId, $messageId, $optParams = array()) {
321
+ $params = array('communityId' => $communityId, 'topicId' => $topicId, 'messageId' => $messageId);
322
+ $params = array_merge($params, $optParams);
323
+ $data = $this->__call('delete', array($params));
324
+ return $data;
325
+ }
326
+ }
327
+
328
+ /**
329
+ * The "communityTopics" collection of methods.
330
+ * Typical usage is:
331
+ * <code>
332
+ * $orkutService = new Google_OrkutService(...);
333
+ * $communityTopics = $orkutService->communityTopics;
334
+ * </code>
335
+ */
336
+ class Google_CommunityTopicsServiceResource extends Google_ServiceResource {
337
+
338
+
339
+ /**
340
+ * Adds a topic to a given community. (communityTopics.insert)
341
+ *
342
+ * @param int $communityId The ID of the community the topic should be added to.
343
+ * @param Google_CommunityTopic $postBody
344
+ * @param array $optParams Optional parameters.
345
+ *
346
+ * @opt_param bool isShout Whether this topic is a shout.
347
+ * @return Google_CommunityTopic
348
+ */
349
+ public function insert($communityId, Google_CommunityTopic $postBody, $optParams = array()) {
350
+ $params = array('communityId' => $communityId, 'postBody' => $postBody);
351
+ $params = array_merge($params, $optParams);
352
+ $data = $this->__call('insert', array($params));
353
+ if ($this->useObjects()) {
354
+ return new Google_CommunityTopic($data);
355
+ } else {
356
+ return $data;
357
+ }
358
+ }
359
+ /**
360
+ * Retrieves a topic of a community. (communityTopics.get)
361
+ *
362
+ * @param int $communityId The ID of the community whose topic will be retrieved.
363
+ * @param string $topicId The ID of the topic to get.
364
+ * @param array $optParams Optional parameters.
365
+ *
366
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
367
+ * @return Google_CommunityTopic
368
+ */
369
+ public function get($communityId, $topicId, $optParams = array()) {
370
+ $params = array('communityId' => $communityId, 'topicId' => $topicId);
371
+ $params = array_merge($params, $optParams);
372
+ $data = $this->__call('get', array($params));
373
+ if ($this->useObjects()) {
374
+ return new Google_CommunityTopic($data);
375
+ } else {
376
+ return $data;
377
+ }
378
+ }
379
+ /**
380
+ * Retrieves the topics of a community. (communityTopics.list)
381
+ *
382
+ * @param int $communityId The ID of the community which topics will be listed.
383
+ * @param array $optParams Optional parameters.
384
+ *
385
+ * @opt_param string pageToken A continuation token that allows pagination.
386
+ * @opt_param string maxResults The maximum number of topics to include in the response.
387
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
388
+ * @return Google_CommunityTopicList
389
+ */
390
+ public function listCommunityTopics($communityId, $optParams = array()) {
391
+ $params = array('communityId' => $communityId);
392
+ $params = array_merge($params, $optParams);
393
+ $data = $this->__call('list', array($params));
394
+ if ($this->useObjects()) {
395
+ return new Google_CommunityTopicList($data);
396
+ } else {
397
+ return $data;
398
+ }
399
+ }
400
+ /**
401
+ * Moves a topic of the community to the trash folder. (communityTopics.delete)
402
+ *
403
+ * @param int $communityId The ID of the community whose topic will be moved to the trash folder.
404
+ * @param string $topicId The ID of the topic to be moved to the trash folder.
405
+ * @param array $optParams Optional parameters.
406
+ */
407
+ public function delete($communityId, $topicId, $optParams = array()) {
408
+ $params = array('communityId' => $communityId, 'topicId' => $topicId);
409
+ $params = array_merge($params, $optParams);
410
+ $data = $this->__call('delete', array($params));
411
+ return $data;
412
+ }
413
+ }
414
+
415
+ /**
416
+ * The "comments" collection of methods.
417
+ * Typical usage is:
418
+ * <code>
419
+ * $orkutService = new Google_OrkutService(...);
420
+ * $comments = $orkutService->comments;
421
+ * </code>
422
+ */
423
+ class Google_CommentsServiceResource extends Google_ServiceResource {
424
+
425
+
426
+ /**
427
+ * Inserts a new comment to an activity. (comments.insert)
428
+ *
429
+ * @param string $activityId The ID of the activity to contain the new comment.
430
+ * @param Google_Comment $postBody
431
+ * @param array $optParams Optional parameters.
432
+ * @return Google_Comment
433
+ */
434
+ public function insert($activityId, Google_Comment $postBody, $optParams = array()) {
435
+ $params = array('activityId' => $activityId, 'postBody' => $postBody);
436
+ $params = array_merge($params, $optParams);
437
+ $data = $this->__call('insert', array($params));
438
+ if ($this->useObjects()) {
439
+ return new Google_Comment($data);
440
+ } else {
441
+ return $data;
442
+ }
443
+ }
444
+ /**
445
+ * Retrieves an existing comment. (comments.get)
446
+ *
447
+ * @param string $commentId ID of the comment to get.
448
+ * @param array $optParams Optional parameters.
449
+ *
450
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
451
+ * @return Google_Comment
452
+ */
453
+ public function get($commentId, $optParams = array()) {
454
+ $params = array('commentId' => $commentId);
455
+ $params = array_merge($params, $optParams);
456
+ $data = $this->__call('get', array($params));
457
+ if ($this->useObjects()) {
458
+ return new Google_Comment($data);
459
+ } else {
460
+ return $data;
461
+ }
462
+ }
463
+ /**
464
+ * Retrieves a list of comments, possibly filtered. (comments.list)
465
+ *
466
+ * @param string $activityId The ID of the activity containing the comments.
467
+ * @param array $optParams Optional parameters.
468
+ *
469
+ * @opt_param string orderBy Sort search results.
470
+ * @opt_param string pageToken A continuation token that allows pagination.
471
+ * @opt_param string maxResults The maximum number of activities to include in the response.
472
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
473
+ * @return Google_CommentList
474
+ */
475
+ public function listComments($activityId, $optParams = array()) {
476
+ $params = array('activityId' => $activityId);
477
+ $params = array_merge($params, $optParams);
478
+ $data = $this->__call('list', array($params));
479
+ if ($this->useObjects()) {
480
+ return new Google_CommentList($data);
481
+ } else {
482
+ return $data;
483
+ }
484
+ }
485
+ /**
486
+ * Deletes an existing comment. (comments.delete)
487
+ *
488
+ * @param string $commentId ID of the comment to remove.
489
+ * @param array $optParams Optional parameters.
490
+ */
491
+ public function delete($commentId, $optParams = array()) {
492
+ $params = array('commentId' => $commentId);
493
+ $params = array_merge($params, $optParams);
494
+ $data = $this->__call('delete', array($params));
495
+ return $data;
496
+ }
497
+ }
498
+
499
+ /**
500
+ * The "acl" collection of methods.
501
+ * Typical usage is:
502
+ * <code>
503
+ * $orkutService = new Google_OrkutService(...);
504
+ * $acl = $orkutService->acl;
505
+ * </code>
506
+ */
507
+ class Google_AclServiceResource extends Google_ServiceResource {
508
+
509
+
510
+ /**
511
+ * Excludes an element from the ACL of the activity. (acl.delete)
512
+ *
513
+ * @param string $activityId ID of the activity.
514
+ * @param string $userId ID of the user to be removed from the activity.
515
+ * @param array $optParams Optional parameters.
516
+ */
517
+ public function delete($activityId, $userId, $optParams = array()) {
518
+ $params = array('activityId' => $activityId, 'userId' => $userId);
519
+ $params = array_merge($params, $optParams);
520
+ $data = $this->__call('delete', array($params));
521
+ return $data;
522
+ }
523
+ }
524
+
525
+ /**
526
+ * The "communityRelated" collection of methods.
527
+ * Typical usage is:
528
+ * <code>
529
+ * $orkutService = new Google_OrkutService(...);
530
+ * $communityRelated = $orkutService->communityRelated;
531
+ * </code>
532
+ */
533
+ class Google_CommunityRelatedServiceResource extends Google_ServiceResource {
534
+
535
+
536
+ /**
537
+ * Retrieves the communities related to another one. (communityRelated.list)
538
+ *
539
+ * @param int $communityId The ID of the community whose related communities will be listed.
540
+ * @param array $optParams Optional parameters.
541
+ *
542
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
543
+ * @return Google_CommunityList
544
+ */
545
+ public function listCommunityRelated($communityId, $optParams = array()) {
546
+ $params = array('communityId' => $communityId);
547
+ $params = array_merge($params, $optParams);
548
+ $data = $this->__call('list', array($params));
549
+ if ($this->useObjects()) {
550
+ return new Google_CommunityList($data);
551
+ } else {
552
+ return $data;
553
+ }
554
+ }
555
+ }
556
+
557
+ /**
558
+ * The "scraps" collection of methods.
559
+ * Typical usage is:
560
+ * <code>
561
+ * $orkutService = new Google_OrkutService(...);
562
+ * $scraps = $orkutService->scraps;
563
+ * </code>
564
+ */
565
+ class Google_ScrapsServiceResource extends Google_ServiceResource {
566
+
567
+
568
+ /**
569
+ * Creates a new scrap. (scraps.insert)
570
+ *
571
+ * @param Google_Activity $postBody
572
+ * @param array $optParams Optional parameters.
573
+ * @return Google_Activity
574
+ */
575
+ public function insert(Google_Activity $postBody, $optParams = array()) {
576
+ $params = array('postBody' => $postBody);
577
+ $params = array_merge($params, $optParams);
578
+ $data = $this->__call('insert', array($params));
579
+ if ($this->useObjects()) {
580
+ return new Google_Activity($data);
581
+ } else {
582
+ return $data;
583
+ }
584
+ }
585
+ }
586
+
587
+ /**
588
+ * The "communityPollVotes" collection of methods.
589
+ * Typical usage is:
590
+ * <code>
591
+ * $orkutService = new Google_OrkutService(...);
592
+ * $communityPollVotes = $orkutService->communityPollVotes;
593
+ * </code>
594
+ */
595
+ class Google_CommunityPollVotesServiceResource extends Google_ServiceResource {
596
+
597
+
598
+ /**
599
+ * Votes on a community poll. (communityPollVotes.insert)
600
+ *
601
+ * @param int $communityId The ID of the community whose poll is being voted.
602
+ * @param string $pollId The ID of the poll being voted.
603
+ * @param Google_CommunityPollVote $postBody
604
+ * @param array $optParams Optional parameters.
605
+ * @return Google_CommunityPollVote
606
+ */
607
+ public function insert($communityId, $pollId, Google_CommunityPollVote $postBody, $optParams = array()) {
608
+ $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
609
+ $params = array_merge($params, $optParams);
610
+ $data = $this->__call('insert', array($params));
611
+ if ($this->useObjects()) {
612
+ return new Google_CommunityPollVote($data);
613
+ } else {
614
+ return $data;
615
+ }
616
+ }
617
+ }
618
+
619
+ /**
620
+ * The "communities" collection of methods.
621
+ * Typical usage is:
622
+ * <code>
623
+ * $orkutService = new Google_OrkutService(...);
624
+ * $communities = $orkutService->communities;
625
+ * </code>
626
+ */
627
+ class Google_CommunitiesServiceResource extends Google_ServiceResource {
628
+
629
+
630
+ /**
631
+ * Retrieves the list of communities the current user is a member of. (communities.list)
632
+ *
633
+ * @param string $userId The ID of the user whose communities will be listed. Can be me to refer to caller.
634
+ * @param array $optParams Optional parameters.
635
+ *
636
+ * @opt_param string orderBy How to order the communities by.
637
+ * @opt_param string maxResults The maximum number of communities to include in the response.
638
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
639
+ * @return Google_CommunityList
640
+ */
641
+ public function listCommunities($userId, $optParams = array()) {
642
+ $params = array('userId' => $userId);
643
+ $params = array_merge($params, $optParams);
644
+ $data = $this->__call('list', array($params));
645
+ if ($this->useObjects()) {
646
+ return new Google_CommunityList($data);
647
+ } else {
648
+ return $data;
649
+ }
650
+ }
651
+ /**
652
+ * Retrieves the basic information (aka. profile) of a community. (communities.get)
653
+ *
654
+ * @param int $communityId The ID of the community to get.
655
+ * @param array $optParams Optional parameters.
656
+ *
657
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
658
+ * @return Google_Community
659
+ */
660
+ public function get($communityId, $optParams = array()) {
661
+ $params = array('communityId' => $communityId);
662
+ $params = array_merge($params, $optParams);
663
+ $data = $this->__call('get', array($params));
664
+ if ($this->useObjects()) {
665
+ return new Google_Community($data);
666
+ } else {
667
+ return $data;
668
+ }
669
+ }
670
+ }
671
+
672
+ /**
673
+ * The "communityFollow" collection of methods.
674
+ * Typical usage is:
675
+ * <code>
676
+ * $orkutService = new Google_OrkutService(...);
677
+ * $communityFollow = $orkutService->communityFollow;
678
+ * </code>
679
+ */
680
+ class Google_CommunityFollowServiceResource extends Google_ServiceResource {
681
+
682
+
683
+ /**
684
+ * Adds a user as a follower of a community. (communityFollow.insert)
685
+ *
686
+ * @param int $communityId ID of the community.
687
+ * @param string $userId ID of the user.
688
+ * @param array $optParams Optional parameters.
689
+ * @return Google_CommunityMembers
690
+ */
691
+ public function insert($communityId, $userId, $optParams = array()) {
692
+ $params = array('communityId' => $communityId, 'userId' => $userId);
693
+ $params = array_merge($params, $optParams);
694
+ $data = $this->__call('insert', array($params));
695
+ if ($this->useObjects()) {
696
+ return new Google_CommunityMembers($data);
697
+ } else {
698
+ return $data;
699
+ }
700
+ }
701
+ /**
702
+ * Removes a user from the followers of a community. (communityFollow.delete)
703
+ *
704
+ * @param int $communityId ID of the community.
705
+ * @param string $userId ID of the user.
706
+ * @param array $optParams Optional parameters.
707
+ */
708
+ public function delete($communityId, $userId, $optParams = array()) {
709
+ $params = array('communityId' => $communityId, 'userId' => $userId);
710
+ $params = array_merge($params, $optParams);
711
+ $data = $this->__call('delete', array($params));
712
+ return $data;
713
+ }
714
+ }
715
+
716
+ /**
717
+ * The "activityVisibility" collection of methods.
718
+ * Typical usage is:
719
+ * <code>
720
+ * $orkutService = new Google_OrkutService(...);
721
+ * $activityVisibility = $orkutService->activityVisibility;
722
+ * </code>
723
+ */
724
+ class Google_ActivityVisibilityServiceResource extends Google_ServiceResource {
725
+
726
+
727
+ /**
728
+ * Updates the visibility of an existing activity. This method supports patch semantics.
729
+ * (activityVisibility.patch)
730
+ *
731
+ * @param string $activityId ID of the activity.
732
+ * @param Google_Visibility $postBody
733
+ * @param array $optParams Optional parameters.
734
+ * @return Google_Visibility
735
+ */
736
+ public function patch($activityId, Google_Visibility $postBody, $optParams = array()) {
737
+ $params = array('activityId' => $activityId, 'postBody' => $postBody);
738
+ $params = array_merge($params, $optParams);
739
+ $data = $this->__call('patch', array($params));
740
+ if ($this->useObjects()) {
741
+ return new Google_Visibility($data);
742
+ } else {
743
+ return $data;
744
+ }
745
+ }
746
+ /**
747
+ * Updates the visibility of an existing activity. (activityVisibility.update)
748
+ *
749
+ * @param string $activityId ID of the activity.
750
+ * @param Google_Visibility $postBody
751
+ * @param array $optParams Optional parameters.
752
+ * @return Google_Visibility
753
+ */
754
+ public function update($activityId, Google_Visibility $postBody, $optParams = array()) {
755
+ $params = array('activityId' => $activityId, 'postBody' => $postBody);
756
+ $params = array_merge($params, $optParams);
757
+ $data = $this->__call('update', array($params));
758
+ if ($this->useObjects()) {
759
+ return new Google_Visibility($data);
760
+ } else {
761
+ return $data;
762
+ }
763
+ }
764
+ /**
765
+ * Gets the visibility of an existing activity. (activityVisibility.get)
766
+ *
767
+ * @param string $activityId ID of the activity to get the visibility.
768
+ * @param array $optParams Optional parameters.
769
+ * @return Google_Visibility
770
+ */
771
+ public function get($activityId, $optParams = array()) {
772
+ $params = array('activityId' => $activityId);
773
+ $params = array_merge($params, $optParams);
774
+ $data = $this->__call('get', array($params));
775
+ if ($this->useObjects()) {
776
+ return new Google_Visibility($data);
777
+ } else {
778
+ return $data;
779
+ }
780
+ }
781
+ }
782
+
783
+ /**
784
+ * The "badges" collection of methods.
785
+ * Typical usage is:
786
+ * <code>
787
+ * $orkutService = new Google_OrkutService(...);
788
+ * $badges = $orkutService->badges;
789
+ * </code>
790
+ */
791
+ class Google_BadgesServiceResource extends Google_ServiceResource {
792
+
793
+
794
+ /**
795
+ * Retrieves the list of visible badges of a user. (badges.list)
796
+ *
797
+ * @param string $userId The id of the user whose badges will be listed. Can be me to refer to caller.
798
+ * @param array $optParams Optional parameters.
799
+ * @return Google_BadgeList
800
+ */
801
+ public function listBadges($userId, $optParams = array()) {
802
+ $params = array('userId' => $userId);
803
+ $params = array_merge($params, $optParams);
804
+ $data = $this->__call('list', array($params));
805
+ if ($this->useObjects()) {
806
+ return new Google_BadgeList($data);
807
+ } else {
808
+ return $data;
809
+ }
810
+ }
811
+ /**
812
+ * Retrieves a badge from a user. (badges.get)
813
+ *
814
+ * @param string $userId The ID of the user whose badges will be listed. Can be me to refer to caller.
815
+ * @param string $badgeId The ID of the badge that will be retrieved.
816
+ * @param array $optParams Optional parameters.
817
+ * @return Google_Badge
818
+ */
819
+ public function get($userId, $badgeId, $optParams = array()) {
820
+ $params = array('userId' => $userId, 'badgeId' => $badgeId);
821
+ $params = array_merge($params, $optParams);
822
+ $data = $this->__call('get', array($params));
823
+ if ($this->useObjects()) {
824
+ return new Google_Badge($data);
825
+ } else {
826
+ return $data;
827
+ }
828
+ }
829
+ }
830
+
831
+ /**
832
+ * The "counters" collection of methods.
833
+ * Typical usage is:
834
+ * <code>
835
+ * $orkutService = new Google_OrkutService(...);
836
+ * $counters = $orkutService->counters;
837
+ * </code>
838
+ */
839
+ class Google_CountersServiceResource extends Google_ServiceResource {
840
+
841
+
842
+ /**
843
+ * Retrieves the counters of a user. (counters.list)
844
+ *
845
+ * @param string $userId The ID of the user whose counters will be listed. Can be me to refer to caller.
846
+ * @param array $optParams Optional parameters.
847
+ * @return Google_Counters
848
+ */
849
+ public function listCounters($userId, $optParams = array()) {
850
+ $params = array('userId' => $userId);
851
+ $params = array_merge($params, $optParams);
852
+ $data = $this->__call('list', array($params));
853
+ if ($this->useObjects()) {
854
+ return new Google_Counters($data);
855
+ } else {
856
+ return $data;
857
+ }
858
+ }
859
+ }
860
+
861
+ /**
862
+ * Service definition for Google_Orkut (v2).
863
+ *
864
+ * <p>
865
+ * Lets you manage activities, comments and badges in Orkut. More stuff coming in time.
866
+ * </p>
867
+ *
868
+ * <p>
869
+ * For more information about this service, see the
870
+ * <a href="http://code.google.com/apis/orkut/v2/reference.html" target="_blank">API Documentation</a>
871
+ * </p>
872
+ *
873
+ * @author Google, Inc.
874
+ */
875
+ class Google_OrkutService extends Google_Service {
876
+ public $communityMembers;
877
+ public $activities;
878
+ public $communityPollComments;
879
+ public $communityPolls;
880
+ public $communityMessages;
881
+ public $communityTopics;
882
+ public $comments;
883
+ public $acl;
884
+ public $communityRelated;
885
+ public $scraps;
886
+ public $communityPollVotes;
887
+ public $communities;
888
+ public $communityFollow;
889
+ public $activityVisibility;
890
+ public $badges;
891
+ public $counters;
892
+ /**
893
+ * Constructs the internal representation of the Orkut service.
894
+ *
895
+ * @param Google_Client $client
896
+ */
897
+ public function __construct(Google_Client $client) {
898
+ $this->servicePath = 'orkut/v2/';
899
+ $this->version = 'v2';
900
+ $this->serviceName = 'orkut';
901
+
902
+ $client->addService($this->serviceName, $this->version);
903
+ $this->communityMembers = new Google_CommunityMembersServiceResource($this, $this->serviceName, 'communityMembers', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMembers.insert", "httpMethod": "POST", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.get", "httpMethod": "GET", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "friendsOnly": {"type": "boolean", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.list", "httpMethod": "GET", "path": "communities/{communityId}/members", "response": {"$ref": "CommunityMembersList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/members/{userId}", "id": "orkut.communityMembers.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
904
+ $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["all", "scraps", "stream"]}}, "id": "orkut.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}", "id": "orkut.activities.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
905
+ $this->communityPollComments = new Google_CommunityPollCommentsServiceResource($this, $this->serviceName, 'communityPollComments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollComment"}, "response": {"$ref": "CommunityPollComment"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/comments", "id": "orkut.communityPollComments.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pollId": {"required": true, "type": "string", "location": "path"}, "pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPollComments.list", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollCommentList"}}}}', true));
906
+ $this->communityPolls = new Google_CommunityPollsServiceResource($this, $this->serviceName, 'communityPolls', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPolls.list", "httpMethod": "GET", "path": "communities/{communityId}/polls", "response": {"$ref": "CommunityPollList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPolls.get", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}", "response": {"$ref": "CommunityPoll"}}}}', true));
907
+ $this->communityMessages = new Google_CommunityMessagesServiceResource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityMessage"}, "response": {"$ref": "CommunityMessage"}, "httpMethod": "POST", "path": "communities/{communityId}/topics/{topicId}/messages", "id": "orkut.communityMessages.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}, "topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "orkut.communityMessages.list", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "id": "orkut.communityMessages.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "messageId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "httpMethod": "DELETE"}}}', true));
908
+ $this->communityTopics = new Google_CommunityTopicsServiceResource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"isShout": {"type": "boolean", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityTopic"}, "response": {"$ref": "CommunityTopic"}, "httpMethod": "POST", "path": "communities/{communityId}/topics", "id": "orkut.communityTopics.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.get", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}", "response": {"$ref": "CommunityTopic"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.list", "httpMethod": "GET", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopicList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}", "id": "orkut.communityTopics.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
909
+ $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "httpMethod": "POST", "path": "activities/{activityId}/comments", "id": "orkut.comments.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"default": "DESCENDING_SORT", "enum": ["ascending", "descending"], "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "comments/{commentId}", "id": "orkut.comments.delete", "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
910
+ $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}/acl/{userId}", "id": "orkut.acl.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
911
+ $this->communityRelated = new Google_CommunityRelatedServiceResource($this, $this->serviceName, 'communityRelated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityRelated.list", "httpMethod": "GET", "path": "communities/{communityId}/related", "response": {"$ref": "CommunityList"}}}}', true));
912
+ $this->scraps = new Google_ScrapsServiceResource($this, $this->serviceName, 'scraps', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "httpMethod": "POST", "path": "activities/scraps", "id": "orkut.scraps.insert"}}}', true));
913
+ $this->communityPollVotes = new Google_CommunityPollVotesServiceResource($this, $this->serviceName, 'communityPollVotes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollVote"}, "response": {"$ref": "CommunityPollVote"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/votes", "id": "orkut.communityPollVotes.insert"}}}', true));
914
+ $this->communities = new Google_CommunitiesServiceResource($this, $this->serviceName, 'communities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"enum": ["id", "ranked"], "type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.list", "httpMethod": "GET", "path": "people/{userId}/communities", "response": {"$ref": "CommunityList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.get", "httpMethod": "GET", "path": "communities/{communityId}", "response": {"$ref": "Community"}}}}', true));
915
+ $this->communityFollow = new Google_CommunityFollowServiceResource($this, $this->serviceName, 'communityFollow', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityFollow.insert", "httpMethod": "POST", "path": "communities/{communityId}/followers/{userId}", "response": {"$ref": "CommunityMembers"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/followers/{userId}", "id": "orkut.communityFollow.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
916
+ $this->activityVisibility = new Google_ActivityVisibilityServiceResource($this, $this->serviceName, 'activityVisibility', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "httpMethod": "PATCH", "path": "activities/{activityId}/visibility", "id": "orkut.activityVisibility.patch"}, "update": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "httpMethod": "PUT", "path": "activities/{activityId}/visibility", "id": "orkut.activityVisibility.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.activityVisibility.get", "httpMethod": "GET", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}}}', true));
917
+ $this->badges = new Google_BadgesServiceResource($this, $this->serviceName, 'badges', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.badges.list", "httpMethod": "GET", "path": "people/{userId}/badges", "response": {"$ref": "BadgeList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "badgeId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "orkut.badges.get", "httpMethod": "GET", "path": "people/{userId}/badges/{badgeId}", "response": {"$ref": "Badge"}}}}', true));
918
+ $this->counters = new Google_CountersServiceResource($this, $this->serviceName, 'counters', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.counters.list", "httpMethod": "GET", "path": "people/{userId}/counters", "response": {"$ref": "Counters"}}}}', true));
919
+
920
+ }
921
+ }
922
+
923
+ class Google_Acl extends Google_Model {
924
+ protected $__itemsType = 'Google_AclItems';
925
+ protected $__itemsDataType = 'array';
926
+ public $items;
927
+ public $kind;
928
+ public $description;
929
+ public $totalParticipants;
930
+ public function setItems(/* array(Google_AclItems) */ $items) {
931
+ $this->assertIsArray($items, 'Google_AclItems', __METHOD__);
932
+ $this->items = $items;
933
+ }
934
+ public function getItems() {
935
+ return $this->items;
936
+ }
937
+ public function setKind($kind) {
938
+ $this->kind = $kind;
939
+ }
940
+ public function getKind() {
941
+ return $this->kind;
942
+ }
943
+ public function setDescription($description) {
944
+ $this->description = $description;
945
+ }
946
+ public function getDescription() {
947
+ return $this->description;
948
+ }
949
+ public function setTotalParticipants($totalParticipants) {
950
+ $this->totalParticipants = $totalParticipants;
951
+ }
952
+ public function getTotalParticipants() {
953
+ return $this->totalParticipants;
954
+ }
955
+ }
956
+
957
+ class Google_AclItems extends Google_Model {
958
+ public $type;
959
+ public $id;
960
+ public function setType($type) {
961
+ $this->type = $type;
962
+ }
963
+ public function getType() {
964
+ return $this->type;
965
+ }
966
+ public function setId($id) {
967
+ $this->id = $id;
968
+ }
969
+ public function getId() {
970
+ return $this->id;
971
+ }
972
+ }
973
+
974
+ class Google_Activity extends Google_Model {
975
+ public $kind;
976
+ protected $__linksType = 'Google_OrkutLinkResource';
977
+ protected $__linksDataType = 'array';
978
+ public $links;
979
+ public $title;
980
+ protected $__objectType = 'Google_ActivityObject';
981
+ protected $__objectDataType = '';
982
+ public $object;
983
+ public $updated;
984
+ protected $__actorType = 'Google_OrkutAuthorResource';
985
+ protected $__actorDataType = '';
986
+ public $actor;
987
+ protected $__accessType = 'Google_Acl';
988
+ protected $__accessDataType = '';
989
+ public $access;
990
+ public $verb;
991
+ public $published;
992
+ public $id;
993
+ public function setKind($kind) {
994
+ $this->kind = $kind;
995
+ }
996
+ public function getKind() {
997
+ return $this->kind;
998
+ }
999
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
1000
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
1001
+ $this->links = $links;
1002
+ }
1003
+ public function getLinks() {
1004
+ return $this->links;
1005
+ }
1006
+ public function setTitle($title) {
1007
+ $this->title = $title;
1008
+ }
1009
+ public function getTitle() {
1010
+ return $this->title;
1011
+ }
1012
+ public function setObject(Google_ActivityObject $object) {
1013
+ $this->object = $object;
1014
+ }
1015
+ public function getObject() {
1016
+ return $this->object;
1017
+ }
1018
+ public function setUpdated($updated) {
1019
+ $this->updated = $updated;
1020
+ }
1021
+ public function getUpdated() {
1022
+ return $this->updated;
1023
+ }
1024
+ public function setActor(Google_OrkutAuthorResource $actor) {
1025
+ $this->actor = $actor;
1026
+ }
1027
+ public function getActor() {
1028
+ return $this->actor;
1029
+ }
1030
+ public function setAccess(Google_Acl $access) {
1031
+ $this->access = $access;
1032
+ }
1033
+ public function getAccess() {
1034
+ return $this->access;
1035
+ }
1036
+ public function setVerb($verb) {
1037
+ $this->verb = $verb;
1038
+ }
1039
+ public function getVerb() {
1040
+ return $this->verb;
1041
+ }
1042
+ public function setPublished($published) {
1043
+ $this->published = $published;
1044
+ }
1045
+ public function getPublished() {
1046
+ return $this->published;
1047
+ }
1048
+ public function setId($id) {
1049
+ $this->id = $id;
1050
+ }
1051
+ public function getId() {
1052
+ return $this->id;
1053
+ }
1054
+ }
1055
+
1056
+ class Google_ActivityList extends Google_Model {
1057
+ public $nextPageToken;
1058
+ protected $__itemsType = 'Google_Activity';
1059
+ protected $__itemsDataType = 'array';
1060
+ public $items;
1061
+ public $kind;
1062
+ public function setNextPageToken($nextPageToken) {
1063
+ $this->nextPageToken = $nextPageToken;
1064
+ }
1065
+ public function getNextPageToken() {
1066
+ return $this->nextPageToken;
1067
+ }
1068
+ public function setItems(/* array(Google_Activity) */ $items) {
1069
+ $this->assertIsArray($items, 'Google_Activity', __METHOD__);
1070
+ $this->items = $items;
1071
+ }
1072
+ public function getItems() {
1073
+ return $this->items;
1074
+ }
1075
+ public function setKind($kind) {
1076
+ $this->kind = $kind;
1077
+ }
1078
+ public function getKind() {
1079
+ return $this->kind;
1080
+ }
1081
+ }
1082
+
1083
+ class Google_ActivityObject extends Google_Model {
1084
+ public $content;
1085
+ protected $__itemsType = 'Google_OrkutActivityobjectsResource';
1086
+ protected $__itemsDataType = 'array';
1087
+ public $items;
1088
+ protected $__repliesType = 'Google_ActivityObjectReplies';
1089
+ protected $__repliesDataType = '';
1090
+ public $replies;
1091
+ public $objectType;
1092
+ public function setContent($content) {
1093
+ $this->content = $content;
1094
+ }
1095
+ public function getContent() {
1096
+ return $this->content;
1097
+ }
1098
+ public function setItems(/* array(Google_OrkutActivityobjectsResource) */ $items) {
1099
+ $this->assertIsArray($items, 'Google_OrkutActivityobjectsResource', __METHOD__);
1100
+ $this->items = $items;
1101
+ }
1102
+ public function getItems() {
1103
+ return $this->items;
1104
+ }
1105
+ public function setReplies(Google_ActivityObjectReplies $replies) {
1106
+ $this->replies = $replies;
1107
+ }
1108
+ public function getReplies() {
1109
+ return $this->replies;
1110
+ }
1111
+ public function setObjectType($objectType) {
1112
+ $this->objectType = $objectType;
1113
+ }
1114
+ public function getObjectType() {
1115
+ return $this->objectType;
1116
+ }
1117
+ }
1118
+
1119
+ class Google_ActivityObjectReplies extends Google_Model {
1120
+ public $totalItems;
1121
+ protected $__itemsType = 'Google_Comment';
1122
+ protected $__itemsDataType = 'array';
1123
+ public $items;
1124
+ public $url;
1125
+ public function setTotalItems($totalItems) {
1126
+ $this->totalItems = $totalItems;
1127
+ }
1128
+ public function getTotalItems() {
1129
+ return $this->totalItems;
1130
+ }
1131
+ public function setItems(/* array(Google_Comment) */ $items) {
1132
+ $this->assertIsArray($items, 'Google_Comment', __METHOD__);
1133
+ $this->items = $items;
1134
+ }
1135
+ public function getItems() {
1136
+ return $this->items;
1137
+ }
1138
+ public function setUrl($url) {
1139
+ $this->url = $url;
1140
+ }
1141
+ public function getUrl() {
1142
+ return $this->url;
1143
+ }
1144
+ }
1145
+
1146
+ class Google_Badge extends Google_Model {
1147
+ public $badgeSmallLogo;
1148
+ public $kind;
1149
+ public $description;
1150
+ public $sponsorLogo;
1151
+ public $sponsorName;
1152
+ public $badgeLargeLogo;
1153
+ public $caption;
1154
+ public $sponsorUrl;
1155
+ public $id;
1156
+ public function setBadgeSmallLogo($badgeSmallLogo) {
1157
+ $this->badgeSmallLogo = $badgeSmallLogo;
1158
+ }
1159
+ public function getBadgeSmallLogo() {
1160
+ return $this->badgeSmallLogo;
1161
+ }
1162
+ public function setKind($kind) {
1163
+ $this->kind = $kind;
1164
+ }
1165
+ public function getKind() {
1166
+ return $this->kind;
1167
+ }
1168
+ public function setDescription($description) {
1169
+ $this->description = $description;
1170
+ }
1171
+ public function getDescription() {
1172
+ return $this->description;
1173
+ }
1174
+ public function setSponsorLogo($sponsorLogo) {
1175
+ $this->sponsorLogo = $sponsorLogo;
1176
+ }
1177
+ public function getSponsorLogo() {
1178
+ return $this->sponsorLogo;
1179
+ }
1180
+ public function setSponsorName($sponsorName) {
1181
+ $this->sponsorName = $sponsorName;
1182
+ }
1183
+ public function getSponsorName() {
1184
+ return $this->sponsorName;
1185
+ }
1186
+ public function setBadgeLargeLogo($badgeLargeLogo) {
1187
+ $this->badgeLargeLogo = $badgeLargeLogo;
1188
+ }
1189
+ public function getBadgeLargeLogo() {
1190
+ return $this->badgeLargeLogo;
1191
+ }
1192
+ public function setCaption($caption) {
1193
+ $this->caption = $caption;
1194
+ }
1195
+ public function getCaption() {
1196
+ return $this->caption;
1197
+ }
1198
+ public function setSponsorUrl($sponsorUrl) {
1199
+ $this->sponsorUrl = $sponsorUrl;
1200
+ }
1201
+ public function getSponsorUrl() {
1202
+ return $this->sponsorUrl;
1203
+ }
1204
+ public function setId($id) {
1205
+ $this->id = $id;
1206
+ }
1207
+ public function getId() {
1208
+ return $this->id;
1209
+ }
1210
+ }
1211
+
1212
+ class Google_BadgeList extends Google_Model {
1213
+ protected $__itemsType = 'Google_Badge';
1214
+ protected $__itemsDataType = 'array';
1215
+ public $items;
1216
+ public $kind;
1217
+ public function setItems(/* array(Google_Badge) */ $items) {
1218
+ $this->assertIsArray($items, 'Google_Badge', __METHOD__);
1219
+ $this->items = $items;
1220
+ }
1221
+ public function getItems() {
1222
+ return $this->items;
1223
+ }
1224
+ public function setKind($kind) {
1225
+ $this->kind = $kind;
1226
+ }
1227
+ public function getKind() {
1228
+ return $this->kind;
1229
+ }
1230
+ }
1231
+
1232
+ class Google_Comment extends Google_Model {
1233
+ protected $__inReplyToType = 'Google_CommentInReplyTo';
1234
+ protected $__inReplyToDataType = '';
1235
+ public $inReplyTo;
1236
+ public $kind;
1237
+ protected $__linksType = 'Google_OrkutLinkResource';
1238
+ protected $__linksDataType = 'array';
1239
+ public $links;
1240
+ protected $__actorType = 'Google_OrkutAuthorResource';
1241
+ protected $__actorDataType = '';
1242
+ public $actor;
1243
+ public $content;
1244
+ public $published;
1245
+ public $id;
1246
+ public function setInReplyTo(Google_CommentInReplyTo $inReplyTo) {
1247
+ $this->inReplyTo = $inReplyTo;
1248
+ }
1249
+ public function getInReplyTo() {
1250
+ return $this->inReplyTo;
1251
+ }
1252
+ public function setKind($kind) {
1253
+ $this->kind = $kind;
1254
+ }
1255
+ public function getKind() {
1256
+ return $this->kind;
1257
+ }
1258
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
1259
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
1260
+ $this->links = $links;
1261
+ }
1262
+ public function getLinks() {
1263
+ return $this->links;
1264
+ }
1265
+ public function setActor(Google_OrkutAuthorResource $actor) {
1266
+ $this->actor = $actor;
1267
+ }
1268
+ public function getActor() {
1269
+ return $this->actor;
1270
+ }
1271
+ public function setContent($content) {
1272
+ $this->content = $content;
1273
+ }
1274
+ public function getContent() {
1275
+ return $this->content;
1276
+ }
1277
+ public function setPublished($published) {
1278
+ $this->published = $published;
1279
+ }
1280
+ public function getPublished() {
1281
+ return $this->published;
1282
+ }
1283
+ public function setId($id) {
1284
+ $this->id = $id;
1285
+ }
1286
+ public function getId() {
1287
+ return $this->id;
1288
+ }
1289
+ }
1290
+
1291
+ class Google_CommentInReplyTo extends Google_Model {
1292
+ public $type;
1293
+ public $href;
1294
+ public $ref;
1295
+ public $rel;
1296
+ public function setType($type) {
1297
+ $this->type = $type;
1298
+ }
1299
+ public function getType() {
1300
+ return $this->type;
1301
+ }
1302
+ public function setHref($href) {
1303
+ $this->href = $href;
1304
+ }
1305
+ public function getHref() {
1306
+ return $this->href;
1307
+ }
1308
+ public function setRef($ref) {
1309
+ $this->ref = $ref;
1310
+ }
1311
+ public function getRef() {
1312
+ return $this->ref;
1313
+ }
1314
+ public function setRel($rel) {
1315
+ $this->rel = $rel;
1316
+ }
1317
+ public function getRel() {
1318
+ return $this->rel;
1319
+ }
1320
+ }
1321
+
1322
+ class Google_CommentList extends Google_Model {
1323
+ public $nextPageToken;
1324
+ protected $__itemsType = 'Google_Comment';
1325
+ protected $__itemsDataType = 'array';
1326
+ public $items;
1327
+ public $kind;
1328
+ public $previousPageToken;
1329
+ public function setNextPageToken($nextPageToken) {
1330
+ $this->nextPageToken = $nextPageToken;
1331
+ }
1332
+ public function getNextPageToken() {
1333
+ return $this->nextPageToken;
1334
+ }
1335
+ public function setItems(/* array(Google_Comment) */ $items) {
1336
+ $this->assertIsArray($items, 'Google_Comment', __METHOD__);
1337
+ $this->items = $items;
1338
+ }
1339
+ public function getItems() {
1340
+ return $this->items;
1341
+ }
1342
+ public function setKind($kind) {
1343
+ $this->kind = $kind;
1344
+ }
1345
+ public function getKind() {
1346
+ return $this->kind;
1347
+ }
1348
+ public function setPreviousPageToken($previousPageToken) {
1349
+ $this->previousPageToken = $previousPageToken;
1350
+ }
1351
+ public function getPreviousPageToken() {
1352
+ return $this->previousPageToken;
1353
+ }
1354
+ }
1355
+
1356
+ class Google_Community extends Google_Model {
1357
+ public $category;
1358
+ public $kind;
1359
+ public $member_count;
1360
+ public $description;
1361
+ public $language;
1362
+ protected $__linksType = 'Google_OrkutLinkResource';
1363
+ protected $__linksDataType = 'array';
1364
+ public $links;
1365
+ public $creation_date;
1366
+ protected $__ownerType = 'Google_OrkutAuthorResource';
1367
+ protected $__ownerDataType = '';
1368
+ public $owner;
1369
+ protected $__moderatorsType = 'Google_OrkutAuthorResource';
1370
+ protected $__moderatorsDataType = 'array';
1371
+ public $moderators;
1372
+ public $location;
1373
+ protected $__co_ownersType = 'Google_OrkutAuthorResource';
1374
+ protected $__co_ownersDataType = 'array';
1375
+ public $co_owners;
1376
+ public $photo_url;
1377
+ public $id;
1378
+ public $name;
1379
+ public function setCategory($category) {
1380
+ $this->category = $category;
1381
+ }
1382
+ public function getCategory() {
1383
+ return $this->category;
1384
+ }
1385
+ public function setKind($kind) {
1386
+ $this->kind = $kind;
1387
+ }
1388
+ public function getKind() {
1389
+ return $this->kind;
1390
+ }
1391
+ public function setMember_count($member_count) {
1392
+ $this->member_count = $member_count;
1393
+ }
1394
+ public function getMember_count() {
1395
+ return $this->member_count;
1396
+ }
1397
+ public function setDescription($description) {
1398
+ $this->description = $description;
1399
+ }
1400
+ public function getDescription() {
1401
+ return $this->description;
1402
+ }
1403
+ public function setLanguage($language) {
1404
+ $this->language = $language;
1405
+ }
1406
+ public function getLanguage() {
1407
+ return $this->language;
1408
+ }
1409
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
1410
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
1411
+ $this->links = $links;
1412
+ }
1413
+ public function getLinks() {
1414
+ return $this->links;
1415
+ }
1416
+ public function setCreation_date($creation_date) {
1417
+ $this->creation_date = $creation_date;
1418
+ }
1419
+ public function getCreation_date() {
1420
+ return $this->creation_date;
1421
+ }
1422
+ public function setOwner(Google_OrkutAuthorResource $owner) {
1423
+ $this->owner = $owner;
1424
+ }
1425
+ public function getOwner() {
1426
+ return $this->owner;
1427
+ }
1428
+ public function setModerators(/* array(Google_OrkutAuthorResource) */ $moderators) {
1429
+ $this->assertIsArray($moderators, 'Google_OrkutAuthorResource', __METHOD__);
1430
+ $this->moderators = $moderators;
1431
+ }
1432
+ public function getModerators() {
1433
+ return $this->moderators;
1434
+ }
1435
+ public function setLocation($location) {
1436
+ $this->location = $location;
1437
+ }
1438
+ public function getLocation() {
1439
+ return $this->location;
1440
+ }
1441
+ public function setCo_owners(/* array(Google_OrkutAuthorResource) */ $co_owners) {
1442
+ $this->assertIsArray($co_owners, 'Google_OrkutAuthorResource', __METHOD__);
1443
+ $this->co_owners = $co_owners;
1444
+ }
1445
+ public function getCo_owners() {
1446
+ return $this->co_owners;
1447
+ }
1448
+ public function setPhoto_url($photo_url) {
1449
+ $this->photo_url = $photo_url;
1450
+ }
1451
+ public function getPhoto_url() {
1452
+ return $this->photo_url;
1453
+ }
1454
+ public function setId($id) {
1455
+ $this->id = $id;
1456
+ }
1457
+ public function getId() {
1458
+ return $this->id;
1459
+ }
1460
+ public function setName($name) {
1461
+ $this->name = $name;
1462
+ }
1463
+ public function getName() {
1464
+ return $this->name;
1465
+ }
1466
+ }
1467
+
1468
+ class Google_CommunityList extends Google_Model {
1469
+ protected $__itemsType = 'Google_Community';
1470
+ protected $__itemsDataType = 'array';
1471
+ public $items;
1472
+ public $kind;
1473
+ public function setItems(/* array(Google_Community) */ $items) {
1474
+ $this->assertIsArray($items, 'Google_Community', __METHOD__);
1475
+ $this->items = $items;
1476
+ }
1477
+ public function getItems() {
1478
+ return $this->items;
1479
+ }
1480
+ public function setKind($kind) {
1481
+ $this->kind = $kind;
1482
+ }
1483
+ public function getKind() {
1484
+ return $this->kind;
1485
+ }
1486
+ }
1487
+
1488
+ class Google_CommunityMembers extends Google_Model {
1489
+ protected $__communityMembershipStatusType = 'Google_CommunityMembershipStatus';
1490
+ protected $__communityMembershipStatusDataType = '';
1491
+ public $communityMembershipStatus;
1492
+ protected $__personType = 'Google_OrkutActivitypersonResource';
1493
+ protected $__personDataType = '';
1494
+ public $person;
1495
+ public $kind;
1496
+ public function setCommunityMembershipStatus(Google_CommunityMembershipStatus $communityMembershipStatus) {
1497
+ $this->communityMembershipStatus = $communityMembershipStatus;
1498
+ }
1499
+ public function getCommunityMembershipStatus() {
1500
+ return $this->communityMembershipStatus;
1501
+ }
1502
+ public function setPerson(Google_OrkutActivitypersonResource $person) {
1503
+ $this->person = $person;
1504
+ }
1505
+ public function getPerson() {
1506
+ return $this->person;
1507
+ }
1508
+ public function setKind($kind) {
1509
+ $this->kind = $kind;
1510
+ }
1511
+ public function getKind() {
1512
+ return $this->kind;
1513
+ }
1514
+ }
1515
+
1516
+ class Google_CommunityMembersList extends Google_Model {
1517
+ public $nextPageToken;
1518
+ public $kind;
1519
+ protected $__itemsType = 'Google_CommunityMembers';
1520
+ protected $__itemsDataType = 'array';
1521
+ public $items;
1522
+ public $prevPageToken;
1523
+ public $lastPageToken;
1524
+ public $firstPageToken;
1525
+ public function setNextPageToken($nextPageToken) {
1526
+ $this->nextPageToken = $nextPageToken;
1527
+ }
1528
+ public function getNextPageToken() {
1529
+ return $this->nextPageToken;
1530
+ }
1531
+ public function setKind($kind) {
1532
+ $this->kind = $kind;
1533
+ }
1534
+ public function getKind() {
1535
+ return $this->kind;
1536
+ }
1537
+ public function setItems(/* array(Google_CommunityMembers) */ $items) {
1538
+ $this->assertIsArray($items, 'Google_CommunityMembers', __METHOD__);
1539
+ $this->items = $items;
1540
+ }
1541
+ public function getItems() {
1542
+ return $this->items;
1543
+ }
1544
+ public function setPrevPageToken($prevPageToken) {
1545
+ $this->prevPageToken = $prevPageToken;
1546
+ }
1547
+ public function getPrevPageToken() {
1548
+ return $this->prevPageToken;
1549
+ }
1550
+ public function setLastPageToken($lastPageToken) {
1551
+ $this->lastPageToken = $lastPageToken;
1552
+ }
1553
+ public function getLastPageToken() {
1554
+ return $this->lastPageToken;
1555
+ }
1556
+ public function setFirstPageToken($firstPageToken) {
1557
+ $this->firstPageToken = $firstPageToken;
1558
+ }
1559
+ public function getFirstPageToken() {
1560
+ return $this->firstPageToken;
1561
+ }
1562
+ }
1563
+
1564
+ class Google_CommunityMembershipStatus extends Google_Model {
1565
+ public $status;
1566
+ public $isFollowing;
1567
+ public $isRestoreAvailable;
1568
+ public $isModerator;
1569
+ public $kind;
1570
+ public $isCoOwner;
1571
+ public $canCreatePoll;
1572
+ public $canShout;
1573
+ public $isOwner;
1574
+ public $canCreateTopic;
1575
+ public $isTakebackAvailable;
1576
+ public function setStatus($status) {
1577
+ $this->status = $status;
1578
+ }
1579
+ public function getStatus() {
1580
+ return $this->status;
1581
+ }
1582
+ public function setIsFollowing($isFollowing) {
1583
+ $this->isFollowing = $isFollowing;
1584
+ }
1585
+ public function getIsFollowing() {
1586
+ return $this->isFollowing;
1587
+ }
1588
+ public function setIsRestoreAvailable($isRestoreAvailable) {
1589
+ $this->isRestoreAvailable = $isRestoreAvailable;
1590
+ }
1591
+ public function getIsRestoreAvailable() {
1592
+ return $this->isRestoreAvailable;
1593
+ }
1594
+ public function setIsModerator($isModerator) {
1595
+ $this->isModerator = $isModerator;
1596
+ }
1597
+ public function getIsModerator() {
1598
+ return $this->isModerator;
1599
+ }
1600
+ public function setKind($kind) {
1601
+ $this->kind = $kind;
1602
+ }
1603
+ public function getKind() {
1604
+ return $this->kind;
1605
+ }
1606
+ public function setIsCoOwner($isCoOwner) {
1607
+ $this->isCoOwner = $isCoOwner;
1608
+ }
1609
+ public function getIsCoOwner() {
1610
+ return $this->isCoOwner;
1611
+ }
1612
+ public function setCanCreatePoll($canCreatePoll) {
1613
+ $this->canCreatePoll = $canCreatePoll;
1614
+ }
1615
+ public function getCanCreatePoll() {
1616
+ return $this->canCreatePoll;
1617
+ }
1618
+ public function setCanShout($canShout) {
1619
+ $this->canShout = $canShout;
1620
+ }
1621
+ public function getCanShout() {
1622
+ return $this->canShout;
1623
+ }
1624
+ public function setIsOwner($isOwner) {
1625
+ $this->isOwner = $isOwner;
1626
+ }
1627
+ public function getIsOwner() {
1628
+ return $this->isOwner;
1629
+ }
1630
+ public function setCanCreateTopic($canCreateTopic) {
1631
+ $this->canCreateTopic = $canCreateTopic;
1632
+ }
1633
+ public function getCanCreateTopic() {
1634
+ return $this->canCreateTopic;
1635
+ }
1636
+ public function setIsTakebackAvailable($isTakebackAvailable) {
1637
+ $this->isTakebackAvailable = $isTakebackAvailable;
1638
+ }
1639
+ public function getIsTakebackAvailable() {
1640
+ return $this->isTakebackAvailable;
1641
+ }
1642
+ }
1643
+
1644
+ class Google_CommunityMessage extends Google_Model {
1645
+ public $body;
1646
+ public $kind;
1647
+ protected $__linksType = 'Google_OrkutLinkResource';
1648
+ protected $__linksDataType = 'array';
1649
+ public $links;
1650
+ protected $__authorType = 'Google_OrkutAuthorResource';
1651
+ protected $__authorDataType = '';
1652
+ public $author;
1653
+ public $id;
1654
+ public $addedDate;
1655
+ public $isSpam;
1656
+ public $subject;
1657
+ public function setBody($body) {
1658
+ $this->body = $body;
1659
+ }
1660
+ public function getBody() {
1661
+ return $this->body;
1662
+ }
1663
+ public function setKind($kind) {
1664
+ $this->kind = $kind;
1665
+ }
1666
+ public function getKind() {
1667
+ return $this->kind;
1668
+ }
1669
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
1670
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
1671
+ $this->links = $links;
1672
+ }
1673
+ public function getLinks() {
1674
+ return $this->links;
1675
+ }
1676
+ public function setAuthor(Google_OrkutAuthorResource $author) {
1677
+ $this->author = $author;
1678
+ }
1679
+ public function getAuthor() {
1680
+ return $this->author;
1681
+ }
1682
+ public function setId($id) {
1683
+ $this->id = $id;
1684
+ }
1685
+ public function getId() {
1686
+ return $this->id;
1687
+ }
1688
+ public function setAddedDate($addedDate) {
1689
+ $this->addedDate = $addedDate;
1690
+ }
1691
+ public function getAddedDate() {
1692
+ return $this->addedDate;
1693
+ }
1694
+ public function setIsSpam($isSpam) {
1695
+ $this->isSpam = $isSpam;
1696
+ }
1697
+ public function getIsSpam() {
1698
+ return $this->isSpam;
1699
+ }
1700
+ public function setSubject($subject) {
1701
+ $this->subject = $subject;
1702
+ }
1703
+ public function getSubject() {
1704
+ return $this->subject;
1705
+ }
1706
+ }
1707
+
1708
+ class Google_CommunityMessageList extends Google_Model {
1709
+ public $nextPageToken;
1710
+ public $kind;
1711
+ protected $__itemsType = 'Google_CommunityMessage';
1712
+ protected $__itemsDataType = 'array';
1713
+ public $items;
1714
+ public $prevPageToken;
1715
+ public $lastPageToken;
1716
+ public $firstPageToken;
1717
+ public function setNextPageToken($nextPageToken) {
1718
+ $this->nextPageToken = $nextPageToken;
1719
+ }
1720
+ public function getNextPageToken() {
1721
+ return $this->nextPageToken;
1722
+ }
1723
+ public function setKind($kind) {
1724
+ $this->kind = $kind;
1725
+ }
1726
+ public function getKind() {
1727
+ return $this->kind;
1728
+ }
1729
+ public function setItems(/* array(Google_CommunityMessage) */ $items) {
1730
+ $this->assertIsArray($items, 'Google_CommunityMessage', __METHOD__);
1731
+ $this->items = $items;
1732
+ }
1733
+ public function getItems() {
1734
+ return $this->items;
1735
+ }
1736
+ public function setPrevPageToken($prevPageToken) {
1737
+ $this->prevPageToken = $prevPageToken;
1738
+ }
1739
+ public function getPrevPageToken() {
1740
+ return $this->prevPageToken;
1741
+ }
1742
+ public function setLastPageToken($lastPageToken) {
1743
+ $this->lastPageToken = $lastPageToken;
1744
+ }
1745
+ public function getLastPageToken() {
1746
+ return $this->lastPageToken;
1747
+ }
1748
+ public function setFirstPageToken($firstPageToken) {
1749
+ $this->firstPageToken = $firstPageToken;
1750
+ }
1751
+ public function getFirstPageToken() {
1752
+ return $this->firstPageToken;
1753
+ }
1754
+ }
1755
+
1756
+ class Google_CommunityPoll extends Google_Model {
1757
+ protected $__linksType = 'Google_OrkutLinkResource';
1758
+ protected $__linksDataType = 'array';
1759
+ public $links;
1760
+ public $isMultipleAnswers;
1761
+ protected $__imageType = 'Google_CommunityPollImage';
1762
+ protected $__imageDataType = '';
1763
+ public $image;
1764
+ public $endingTime;
1765
+ public $isVotingAllowedForNonMembers;
1766
+ public $isSpam;
1767
+ public $totalNumberOfVotes;
1768
+ protected $__authorType = 'Google_OrkutAuthorResource';
1769
+ protected $__authorDataType = '';
1770
+ public $author;
1771
+ public $question;
1772
+ public $id;
1773
+ public $isRestricted;
1774
+ public $communityId;
1775
+ public $isUsersVotePublic;
1776
+ public $lastUpdate;
1777
+ public $description;
1778
+ public $votedOptions;
1779
+ public $isOpenForVoting;
1780
+ public $isClosed;
1781
+ public $hasVoted;
1782
+ public $kind;
1783
+ public $creationTime;
1784
+ protected $__optionsType = 'Google_OrkutCommunitypolloptionResource';
1785
+ protected $__optionsDataType = 'array';
1786
+ public $options;
1787
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
1788
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
1789
+ $this->links = $links;
1790
+ }
1791
+ public function getLinks() {
1792
+ return $this->links;
1793
+ }
1794
+ public function setIsMultipleAnswers($isMultipleAnswers) {
1795
+ $this->isMultipleAnswers = $isMultipleAnswers;
1796
+ }
1797
+ public function getIsMultipleAnswers() {
1798
+ return $this->isMultipleAnswers;
1799
+ }
1800
+ public function setImage(Google_CommunityPollImage $image) {
1801
+ $this->image = $image;
1802
+ }
1803
+ public function getImage() {
1804
+ return $this->image;
1805
+ }
1806
+ public function setEndingTime($endingTime) {
1807
+ $this->endingTime = $endingTime;
1808
+ }
1809
+ public function getEndingTime() {
1810
+ return $this->endingTime;
1811
+ }
1812
+ public function setIsVotingAllowedForNonMembers($isVotingAllowedForNonMembers) {
1813
+ $this->isVotingAllowedForNonMembers = $isVotingAllowedForNonMembers;
1814
+ }
1815
+ public function getIsVotingAllowedForNonMembers() {
1816
+ return $this->isVotingAllowedForNonMembers;
1817
+ }
1818
+ public function setIsSpam($isSpam) {
1819
+ $this->isSpam = $isSpam;
1820
+ }
1821
+ public function getIsSpam() {
1822
+ return $this->isSpam;
1823
+ }
1824
+ public function setTotalNumberOfVotes($totalNumberOfVotes) {
1825
+ $this->totalNumberOfVotes = $totalNumberOfVotes;
1826
+ }
1827
+ public function getTotalNumberOfVotes() {
1828
+ return $this->totalNumberOfVotes;
1829
+ }
1830
+ public function setAuthor(Google_OrkutAuthorResource $author) {
1831
+ $this->author = $author;
1832
+ }
1833
+ public function getAuthor() {
1834
+ return $this->author;
1835
+ }
1836
+ public function setQuestion($question) {
1837
+ $this->question = $question;
1838
+ }
1839
+ public function getQuestion() {
1840
+ return $this->question;
1841
+ }
1842
+ public function setId($id) {
1843
+ $this->id = $id;
1844
+ }
1845
+ public function getId() {
1846
+ return $this->id;
1847
+ }
1848
+ public function setIsRestricted($isRestricted) {
1849
+ $this->isRestricted = $isRestricted;
1850
+ }
1851
+ public function getIsRestricted() {
1852
+ return $this->isRestricted;
1853
+ }
1854
+ public function setCommunityId($communityId) {
1855
+ $this->communityId = $communityId;
1856
+ }
1857
+ public function getCommunityId() {
1858
+ return $this->communityId;
1859
+ }
1860
+ public function setIsUsersVotePublic($isUsersVotePublic) {
1861
+ $this->isUsersVotePublic = $isUsersVotePublic;
1862
+ }
1863
+ public function getIsUsersVotePublic() {
1864
+ return $this->isUsersVotePublic;
1865
+ }
1866
+ public function setLastUpdate($lastUpdate) {
1867
+ $this->lastUpdate = $lastUpdate;
1868
+ }
1869
+ public function getLastUpdate() {
1870
+ return $this->lastUpdate;
1871
+ }
1872
+ public function setDescription($description) {
1873
+ $this->description = $description;
1874
+ }
1875
+ public function getDescription() {
1876
+ return $this->description;
1877
+ }
1878
+ public function setVotedOptions(/* array(Google_int) */ $votedOptions) {
1879
+ $this->assertIsArray($votedOptions, 'Google_int', __METHOD__);
1880
+ $this->votedOptions = $votedOptions;
1881
+ }
1882
+ public function getVotedOptions() {
1883
+ return $this->votedOptions;
1884
+ }
1885
+ public function setIsOpenForVoting($isOpenForVoting) {
1886
+ $this->isOpenForVoting = $isOpenForVoting;
1887
+ }
1888
+ public function getIsOpenForVoting() {
1889
+ return $this->isOpenForVoting;
1890
+ }
1891
+ public function setIsClosed($isClosed) {
1892
+ $this->isClosed = $isClosed;
1893
+ }
1894
+ public function getIsClosed() {
1895
+ return $this->isClosed;
1896
+ }
1897
+ public function setHasVoted($hasVoted) {
1898
+ $this->hasVoted = $hasVoted;
1899
+ }
1900
+ public function getHasVoted() {
1901
+ return $this->hasVoted;
1902
+ }
1903
+ public function setKind($kind) {
1904
+ $this->kind = $kind;
1905
+ }
1906
+ public function getKind() {
1907
+ return $this->kind;
1908
+ }
1909
+ public function setCreationTime($creationTime) {
1910
+ $this->creationTime = $creationTime;
1911
+ }
1912
+ public function getCreationTime() {
1913
+ return $this->creationTime;
1914
+ }
1915
+ public function setOptions(/* array(Google_OrkutCommunitypolloptionResource) */ $options) {
1916
+ $this->assertIsArray($options, 'Google_OrkutCommunitypolloptionResource', __METHOD__);
1917
+ $this->options = $options;
1918
+ }
1919
+ public function getOptions() {
1920
+ return $this->options;
1921
+ }
1922
+ }
1923
+
1924
+ class Google_CommunityPollComment extends Google_Model {
1925
+ public $body;
1926
+ public $kind;
1927
+ public $addedDate;
1928
+ public $id;
1929
+ protected $__authorType = 'Google_OrkutAuthorResource';
1930
+ protected $__authorDataType = '';
1931
+ public $author;
1932
+ public function setBody($body) {
1933
+ $this->body = $body;
1934
+ }
1935
+ public function getBody() {
1936
+ return $this->body;
1937
+ }
1938
+ public function setKind($kind) {
1939
+ $this->kind = $kind;
1940
+ }
1941
+ public function getKind() {
1942
+ return $this->kind;
1943
+ }
1944
+ public function setAddedDate($addedDate) {
1945
+ $this->addedDate = $addedDate;
1946
+ }
1947
+ public function getAddedDate() {
1948
+ return $this->addedDate;
1949
+ }
1950
+ public function setId($id) {
1951
+ $this->id = $id;
1952
+ }
1953
+ public function getId() {
1954
+ return $this->id;
1955
+ }
1956
+ public function setAuthor(Google_OrkutAuthorResource $author) {
1957
+ $this->author = $author;
1958
+ }
1959
+ public function getAuthor() {
1960
+ return $this->author;
1961
+ }
1962
+ }
1963
+
1964
+ class Google_CommunityPollCommentList extends Google_Model {
1965
+ public $nextPageToken;
1966
+ public $kind;
1967
+ protected $__itemsType = 'Google_CommunityPollComment';
1968
+ protected $__itemsDataType = 'array';
1969
+ public $items;
1970
+ public $prevPageToken;
1971
+ public $lastPageToken;
1972
+ public $firstPageToken;
1973
+ public function setNextPageToken($nextPageToken) {
1974
+ $this->nextPageToken = $nextPageToken;
1975
+ }
1976
+ public function getNextPageToken() {
1977
+ return $this->nextPageToken;
1978
+ }
1979
+ public function setKind($kind) {
1980
+ $this->kind = $kind;
1981
+ }
1982
+ public function getKind() {
1983
+ return $this->kind;
1984
+ }
1985
+ public function setItems(/* array(Google_CommunityPollComment) */ $items) {
1986
+ $this->assertIsArray($items, 'Google_CommunityPollComment', __METHOD__);
1987
+ $this->items = $items;
1988
+ }
1989
+ public function getItems() {
1990
+ return $this->items;
1991
+ }
1992
+ public function setPrevPageToken($prevPageToken) {
1993
+ $this->prevPageToken = $prevPageToken;
1994
+ }
1995
+ public function getPrevPageToken() {
1996
+ return $this->prevPageToken;
1997
+ }
1998
+ public function setLastPageToken($lastPageToken) {
1999
+ $this->lastPageToken = $lastPageToken;
2000
+ }
2001
+ public function getLastPageToken() {
2002
+ return $this->lastPageToken;
2003
+ }
2004
+ public function setFirstPageToken($firstPageToken) {
2005
+ $this->firstPageToken = $firstPageToken;
2006
+ }
2007
+ public function getFirstPageToken() {
2008
+ return $this->firstPageToken;
2009
+ }
2010
+ }
2011
+
2012
+ class Google_CommunityPollImage extends Google_Model {
2013
+ public $url;
2014
+ public function setUrl($url) {
2015
+ $this->url = $url;
2016
+ }
2017
+ public function getUrl() {
2018
+ return $this->url;
2019
+ }
2020
+ }
2021
+
2022
+ class Google_CommunityPollList extends Google_Model {
2023
+ public $nextPageToken;
2024
+ public $kind;
2025
+ protected $__itemsType = 'Google_CommunityPoll';
2026
+ protected $__itemsDataType = 'array';
2027
+ public $items;
2028
+ public $prevPageToken;
2029
+ public $lastPageToken;
2030
+ public $firstPageToken;
2031
+ public function setNextPageToken($nextPageToken) {
2032
+ $this->nextPageToken = $nextPageToken;
2033
+ }
2034
+ public function getNextPageToken() {
2035
+ return $this->nextPageToken;
2036
+ }
2037
+ public function setKind($kind) {
2038
+ $this->kind = $kind;
2039
+ }
2040
+ public function getKind() {
2041
+ return $this->kind;
2042
+ }
2043
+ public function setItems(/* array(Google_CommunityPoll) */ $items) {
2044
+ $this->assertIsArray($items, 'Google_CommunityPoll', __METHOD__);
2045
+ $this->items = $items;
2046
+ }
2047
+ public function getItems() {
2048
+ return $this->items;
2049
+ }
2050
+ public function setPrevPageToken($prevPageToken) {
2051
+ $this->prevPageToken = $prevPageToken;
2052
+ }
2053
+ public function getPrevPageToken() {
2054
+ return $this->prevPageToken;
2055
+ }
2056
+ public function setLastPageToken($lastPageToken) {
2057
+ $this->lastPageToken = $lastPageToken;
2058
+ }
2059
+ public function getLastPageToken() {
2060
+ return $this->lastPageToken;
2061
+ }
2062
+ public function setFirstPageToken($firstPageToken) {
2063
+ $this->firstPageToken = $firstPageToken;
2064
+ }
2065
+ public function getFirstPageToken() {
2066
+ return $this->firstPageToken;
2067
+ }
2068
+ }
2069
+
2070
+ class Google_CommunityPollVote extends Google_Model {
2071
+ public $kind;
2072
+ public $optionIds;
2073
+ public $isVotevisible;
2074
+ public function setKind($kind) {
2075
+ $this->kind = $kind;
2076
+ }
2077
+ public function getKind() {
2078
+ return $this->kind;
2079
+ }
2080
+ public function setOptionIds(/* array(Google_int) */ $optionIds) {
2081
+ $this->assertIsArray($optionIds, 'Google_int', __METHOD__);
2082
+ $this->optionIds = $optionIds;
2083
+ }
2084
+ public function getOptionIds() {
2085
+ return $this->optionIds;
2086
+ }
2087
+ public function setIsVotevisible($isVotevisible) {
2088
+ $this->isVotevisible = $isVotevisible;
2089
+ }
2090
+ public function getIsVotevisible() {
2091
+ return $this->isVotevisible;
2092
+ }
2093
+ }
2094
+
2095
+ class Google_CommunityTopic extends Google_Model {
2096
+ public $body;
2097
+ public $lastUpdate;
2098
+ public $kind;
2099
+ protected $__linksType = 'Google_OrkutLinkResource';
2100
+ protected $__linksDataType = 'array';
2101
+ public $links;
2102
+ protected $__authorType = 'Google_OrkutAuthorResource';
2103
+ protected $__authorDataType = '';
2104
+ public $author;
2105
+ public $title;
2106
+ protected $__messagesType = 'Google_CommunityMessage';
2107
+ protected $__messagesDataType = 'array';
2108
+ public $messages;
2109
+ public $latestMessageSnippet;
2110
+ public $isClosed;
2111
+ public $numberOfReplies;
2112
+ public $id;
2113
+ public function setBody($body) {
2114
+ $this->body = $body;
2115
+ }
2116
+ public function getBody() {
2117
+ return $this->body;
2118
+ }
2119
+ public function setLastUpdate($lastUpdate) {
2120
+ $this->lastUpdate = $lastUpdate;
2121
+ }
2122
+ public function getLastUpdate() {
2123
+ return $this->lastUpdate;
2124
+ }
2125
+ public function setKind($kind) {
2126
+ $this->kind = $kind;
2127
+ }
2128
+ public function getKind() {
2129
+ return $this->kind;
2130
+ }
2131
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
2132
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
2133
+ $this->links = $links;
2134
+ }
2135
+ public function getLinks() {
2136
+ return $this->links;
2137
+ }
2138
+ public function setAuthor(Google_OrkutAuthorResource $author) {
2139
+ $this->author = $author;
2140
+ }
2141
+ public function getAuthor() {
2142
+ return $this->author;
2143
+ }
2144
+ public function setTitle($title) {
2145
+ $this->title = $title;
2146
+ }
2147
+ public function getTitle() {
2148
+ return $this->title;
2149
+ }
2150
+ public function setMessages(/* array(Google_CommunityMessage) */ $messages) {
2151
+ $this->assertIsArray($messages, 'Google_CommunityMessage', __METHOD__);
2152
+ $this->messages = $messages;
2153
+ }
2154
+ public function getMessages() {
2155
+ return $this->messages;
2156
+ }
2157
+ public function setLatestMessageSnippet($latestMessageSnippet) {
2158
+ $this->latestMessageSnippet = $latestMessageSnippet;
2159
+ }
2160
+ public function getLatestMessageSnippet() {
2161
+ return $this->latestMessageSnippet;
2162
+ }
2163
+ public function setIsClosed($isClosed) {
2164
+ $this->isClosed = $isClosed;
2165
+ }
2166
+ public function getIsClosed() {
2167
+ return $this->isClosed;
2168
+ }
2169
+ public function setNumberOfReplies($numberOfReplies) {
2170
+ $this->numberOfReplies = $numberOfReplies;
2171
+ }
2172
+ public function getNumberOfReplies() {
2173
+ return $this->numberOfReplies;
2174
+ }
2175
+ public function setId($id) {
2176
+ $this->id = $id;
2177
+ }
2178
+ public function getId() {
2179
+ return $this->id;
2180
+ }
2181
+ }
2182
+
2183
+ class Google_CommunityTopicList extends Google_Model {
2184
+ public $nextPageToken;
2185
+ public $kind;
2186
+ protected $__itemsType = 'Google_CommunityTopic';
2187
+ protected $__itemsDataType = 'array';
2188
+ public $items;
2189
+ public $prevPageToken;
2190
+ public $lastPageToken;
2191
+ public $firstPageToken;
2192
+ public function setNextPageToken($nextPageToken) {
2193
+ $this->nextPageToken = $nextPageToken;
2194
+ }
2195
+ public function getNextPageToken() {
2196
+ return $this->nextPageToken;
2197
+ }
2198
+ public function setKind($kind) {
2199
+ $this->kind = $kind;
2200
+ }
2201
+ public function getKind() {
2202
+ return $this->kind;
2203
+ }
2204
+ public function setItems(/* array(Google_CommunityTopic) */ $items) {
2205
+ $this->assertIsArray($items, 'Google_CommunityTopic', __METHOD__);
2206
+ $this->items = $items;
2207
+ }
2208
+ public function getItems() {
2209
+ return $this->items;
2210
+ }
2211
+ public function setPrevPageToken($prevPageToken) {
2212
+ $this->prevPageToken = $prevPageToken;
2213
+ }
2214
+ public function getPrevPageToken() {
2215
+ return $this->prevPageToken;
2216
+ }
2217
+ public function setLastPageToken($lastPageToken) {
2218
+ $this->lastPageToken = $lastPageToken;
2219
+ }
2220
+ public function getLastPageToken() {
2221
+ return $this->lastPageToken;
2222
+ }
2223
+ public function setFirstPageToken($firstPageToken) {
2224
+ $this->firstPageToken = $firstPageToken;
2225
+ }
2226
+ public function getFirstPageToken() {
2227
+ return $this->firstPageToken;
2228
+ }
2229
+ }
2230
+
2231
+ class Google_Counters extends Google_Model {
2232
+ protected $__itemsType = 'Google_OrkutCounterResource';
2233
+ protected $__itemsDataType = 'array';
2234
+ public $items;
2235
+ public $kind;
2236
+ public function setItems(/* array(Google_OrkutCounterResource) */ $items) {
2237
+ $this->assertIsArray($items, 'Google_OrkutCounterResource', __METHOD__);
2238
+ $this->items = $items;
2239
+ }
2240
+ public function getItems() {
2241
+ return $this->items;
2242
+ }
2243
+ public function setKind($kind) {
2244
+ $this->kind = $kind;
2245
+ }
2246
+ public function getKind() {
2247
+ return $this->kind;
2248
+ }
2249
+ }
2250
+
2251
+ class Google_OrkutActivityobjectsResource extends Google_Model {
2252
+ public $displayName;
2253
+ protected $__linksType = 'Google_OrkutLinkResource';
2254
+ protected $__linksDataType = 'array';
2255
+ public $links;
2256
+ protected $__communityType = 'Google_Community';
2257
+ protected $__communityDataType = '';
2258
+ public $community;
2259
+ public $content;
2260
+ protected $__personType = 'Google_OrkutActivitypersonResource';
2261
+ protected $__personDataType = '';
2262
+ public $person;
2263
+ public $id;
2264
+ public $objectType;
2265
+ public function setDisplayName($displayName) {
2266
+ $this->displayName = $displayName;
2267
+ }
2268
+ public function getDisplayName() {
2269
+ return $this->displayName;
2270
+ }
2271
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
2272
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
2273
+ $this->links = $links;
2274
+ }
2275
+ public function getLinks() {
2276
+ return $this->links;
2277
+ }
2278
+ public function setCommunity(Google_Community $community) {
2279
+ $this->community = $community;
2280
+ }
2281
+ public function getCommunity() {
2282
+ return $this->community;
2283
+ }
2284
+ public function setContent($content) {
2285
+ $this->content = $content;
2286
+ }
2287
+ public function getContent() {
2288
+ return $this->content;
2289
+ }
2290
+ public function setPerson(Google_OrkutActivitypersonResource $person) {
2291
+ $this->person = $person;
2292
+ }
2293
+ public function getPerson() {
2294
+ return $this->person;
2295
+ }
2296
+ public function setId($id) {
2297
+ $this->id = $id;
2298
+ }
2299
+ public function getId() {
2300
+ return $this->id;
2301
+ }
2302
+ public function setObjectType($objectType) {
2303
+ $this->objectType = $objectType;
2304
+ }
2305
+ public function getObjectType() {
2306
+ return $this->objectType;
2307
+ }
2308
+ }
2309
+
2310
+ class Google_OrkutActivitypersonResource extends Google_Model {
2311
+ protected $__nameType = 'Google_OrkutActivitypersonResourceName';
2312
+ protected $__nameDataType = '';
2313
+ public $name;
2314
+ public $url;
2315
+ public $gender;
2316
+ protected $__imageType = 'Google_OrkutActivitypersonResourceImage';
2317
+ protected $__imageDataType = '';
2318
+ public $image;
2319
+ public $birthday;
2320
+ public $id;
2321
+ public function setName(Google_OrkutActivitypersonResourceName $name) {
2322
+ $this->name = $name;
2323
+ }
2324
+ public function getName() {
2325
+ return $this->name;
2326
+ }
2327
+ public function setUrl($url) {
2328
+ $this->url = $url;
2329
+ }
2330
+ public function getUrl() {
2331
+ return $this->url;
2332
+ }
2333
+ public function setGender($gender) {
2334
+ $this->gender = $gender;
2335
+ }
2336
+ public function getGender() {
2337
+ return $this->gender;
2338
+ }
2339
+ public function setImage(Google_OrkutActivitypersonResourceImage $image) {
2340
+ $this->image = $image;
2341
+ }
2342
+ public function getImage() {
2343
+ return $this->image;
2344
+ }
2345
+ public function setBirthday($birthday) {
2346
+ $this->birthday = $birthday;
2347
+ }
2348
+ public function getBirthday() {
2349
+ return $this->birthday;
2350
+ }
2351
+ public function setId($id) {
2352
+ $this->id = $id;
2353
+ }
2354
+ public function getId() {
2355
+ return $this->id;
2356
+ }
2357
+ }
2358
+
2359
+ class Google_OrkutActivitypersonResourceImage extends Google_Model {
2360
+ public $url;
2361
+ public function setUrl($url) {
2362
+ $this->url = $url;
2363
+ }
2364
+ public function getUrl() {
2365
+ return $this->url;
2366
+ }
2367
+ }
2368
+
2369
+ class Google_OrkutActivitypersonResourceName extends Google_Model {
2370
+ public $givenName;
2371
+ public $familyName;
2372
+ public function setGivenName($givenName) {
2373
+ $this->givenName = $givenName;
2374
+ }
2375
+ public function getGivenName() {
2376
+ return $this->givenName;
2377
+ }
2378
+ public function setFamilyName($familyName) {
2379
+ $this->familyName = $familyName;
2380
+ }
2381
+ public function getFamilyName() {
2382
+ return $this->familyName;
2383
+ }
2384
+ }
2385
+
2386
+ class Google_OrkutAuthorResource extends Google_Model {
2387
+ public $url;
2388
+ protected $__imageType = 'Google_OrkutAuthorResourceImage';
2389
+ protected $__imageDataType = '';
2390
+ public $image;
2391
+ public $displayName;
2392
+ public $id;
2393
+ public function setUrl($url) {
2394
+ $this->url = $url;
2395
+ }
2396
+ public function getUrl() {
2397
+ return $this->url;
2398
+ }
2399
+ public function setImage(Google_OrkutAuthorResourceImage $image) {
2400
+ $this->image = $image;
2401
+ }
2402
+ public function getImage() {
2403
+ return $this->image;
2404
+ }
2405
+ public function setDisplayName($displayName) {
2406
+ $this->displayName = $displayName;
2407
+ }
2408
+ public function getDisplayName() {
2409
+ return $this->displayName;
2410
+ }
2411
+ public function setId($id) {
2412
+ $this->id = $id;
2413
+ }
2414
+ public function getId() {
2415
+ return $this->id;
2416
+ }
2417
+ }
2418
+
2419
+ class Google_OrkutAuthorResourceImage extends Google_Model {
2420
+ public $url;
2421
+ public function setUrl($url) {
2422
+ $this->url = $url;
2423
+ }
2424
+ public function getUrl() {
2425
+ return $this->url;
2426
+ }
2427
+ }
2428
+
2429
+ class Google_OrkutCommunitypolloptionResource extends Google_Model {
2430
+ protected $__imageType = 'Google_OrkutCommunitypolloptionResourceImage';
2431
+ protected $__imageDataType = '';
2432
+ public $image;
2433
+ public $optionId;
2434
+ public $description;
2435
+ public $numberOfVotes;
2436
+ public function setImage(Google_OrkutCommunitypolloptionResourceImage $image) {
2437
+ $this->image = $image;
2438
+ }
2439
+ public function getImage() {
2440
+ return $this->image;
2441
+ }
2442
+ public function setOptionId($optionId) {
2443
+ $this->optionId = $optionId;
2444
+ }
2445
+ public function getOptionId() {
2446
+ return $this->optionId;
2447
+ }
2448
+ public function setDescription($description) {
2449
+ $this->description = $description;
2450
+ }
2451
+ public function getDescription() {
2452
+ return $this->description;
2453
+ }
2454
+ public function setNumberOfVotes($numberOfVotes) {
2455
+ $this->numberOfVotes = $numberOfVotes;
2456
+ }
2457
+ public function getNumberOfVotes() {
2458
+ return $this->numberOfVotes;
2459
+ }
2460
+ }
2461
+
2462
+ class Google_OrkutCommunitypolloptionResourceImage extends Google_Model {
2463
+ public $url;
2464
+ public function setUrl($url) {
2465
+ $this->url = $url;
2466
+ }
2467
+ public function getUrl() {
2468
+ return $this->url;
2469
+ }
2470
+ }
2471
+
2472
+ class Google_OrkutCounterResource extends Google_Model {
2473
+ public $total;
2474
+ protected $__linkType = 'Google_OrkutLinkResource';
2475
+ protected $__linkDataType = '';
2476
+ public $link;
2477
+ public $name;
2478
+ public function setTotal($total) {
2479
+ $this->total = $total;
2480
+ }
2481
+ public function getTotal() {
2482
+ return $this->total;
2483
+ }
2484
+ public function setLink(Google_OrkutLinkResource $link) {
2485
+ $this->link = $link;
2486
+ }
2487
+ public function getLink() {
2488
+ return $this->link;
2489
+ }
2490
+ public function setName($name) {
2491
+ $this->name = $name;
2492
+ }
2493
+ public function getName() {
2494
+ return $this->name;
2495
+ }
2496
+ }
2497
+
2498
+ class Google_OrkutLinkResource extends Google_Model {
2499
+ public $href;
2500
+ public $type;
2501
+ public $rel;
2502
+ public $title;
2503
+ public function setHref($href) {
2504
+ $this->href = $href;
2505
+ }
2506
+ public function getHref() {
2507
+ return $this->href;
2508
+ }
2509
+ public function setType($type) {
2510
+ $this->type = $type;
2511
+ }
2512
+ public function getType() {
2513
+ return $this->type;
2514
+ }
2515
+ public function setRel($rel) {
2516
+ $this->rel = $rel;
2517
+ }
2518
+ public function getRel() {
2519
+ return $this->rel;
2520
+ }
2521
+ public function setTitle($title) {
2522
+ $this->title = $title;
2523
+ }
2524
+ public function getTitle() {
2525
+ return $this->title;
2526
+ }
2527
+ }
2528
+
2529
+ class Google_Visibility extends Google_Model {
2530
+ public $kind;
2531
+ public $visibility;
2532
+ protected $__linksType = 'Google_OrkutLinkResource';
2533
+ protected $__linksDataType = 'array';
2534
+ public $links;
2535
+ public function setKind($kind) {
2536
+ $this->kind = $kind;
2537
+ }
2538
+ public function getKind() {
2539
+ return $this->kind;
2540
+ }
2541
+ public function setVisibility($visibility) {
2542
+ $this->visibility = $visibility;
2543
+ }
2544
+ public function getVisibility() {
2545
+ return $this->visibility;
2546
+ }
2547
+ public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
2548
+ $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
2549
+ $this->links = $links;
2550
+ }
2551
+ public function getLinks() {
2552
+ return $this->links;
2553
+ }
2554
+ }
google-api-php-client/src/contrib/Google_PagespeedonlineService.php ADDED
@@ -0,0 +1,474 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "pagespeedapi" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $pagespeedonlineService = new Google_PagespeedonlineService(...);
22
+ * $pagespeedapi = $pagespeedonlineService->pagespeedapi;
23
+ * </code>
24
+ */
25
+ class Google_PagespeedapiServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Runs Page Speed analysis on the page at the specified URL, and returns a Page Speed score, a list
30
+ * of suggestions to make that page faster, and other information. (pagespeedapi.runpagespeed)
31
+ *
32
+ * @param string $url The URL to fetch and analyze
33
+ * @param array $optParams Optional parameters.
34
+ *
35
+ * @opt_param string locale The locale used to localize formatted results
36
+ * @opt_param string rule A Page Speed rule to run; if none are given, all rules are run
37
+ * @opt_param string strategy The analysis strategy to use
38
+ * @return Google_Result
39
+ */
40
+ public function runpagespeed($url, $optParams = array()) {
41
+ $params = array('url' => $url);
42
+ $params = array_merge($params, $optParams);
43
+ $data = $this->__call('runpagespeed', array($params));
44
+ if ($this->useObjects()) {
45
+ return new Google_Result($data);
46
+ } else {
47
+ return $data;
48
+ }
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Service definition for Google_Pagespeedonline (v1).
54
+ *
55
+ * <p>
56
+ * Lets you analyze the performance of a web page and get tailored suggestions to make that page faster.
57
+ * </p>
58
+ *
59
+ * <p>
60
+ * For more information about this service, see the
61
+ * <a href="https://code.google.com/apis/pagespeedonline/v1/getting_started.html" target="_blank">API Documentation</a>
62
+ * </p>
63
+ *
64
+ * @author Google, Inc.
65
+ */
66
+ class Google_PagespeedonlineService extends Google_Service {
67
+ public $pagespeedapi;
68
+ /**
69
+ * Constructs the internal representation of the Pagespeedonline service.
70
+ *
71
+ * @param Google_Client $client
72
+ */
73
+ public function __construct(Google_Client $client) {
74
+ $this->servicePath = 'pagespeedonline/v1/';
75
+ $this->version = 'v1';
76
+ $this->serviceName = 'pagespeedonline';
77
+
78
+ $client->addService($this->serviceName, $this->version);
79
+ $this->pagespeedapi = new Google_PagespeedapiServiceResource($this, $this->serviceName, 'pagespeedapi', json_decode('{"methods": {"runpagespeed": {"httpMethod": "GET", "response": {"$ref": "Result"}, "id": "pagespeedonline.pagespeedapi.runpagespeed", "parameters": {"locale": {"type": "string", "location": "query"}, "url": {"required": true, "type": "string", "location": "query"}, "rule": {"repeated": true, "type": "string", "location": "query"}, "strategy": {"enum": ["desktop", "mobile"], "type": "string", "location": "query"}}, "path": "runPagespeed"}}}', true));
80
+
81
+ }
82
+ }
83
+
84
+ class Google_Result extends Google_Model {
85
+ public $kind;
86
+ protected $__formattedResultsType = 'Google_ResultFormattedResults';
87
+ protected $__formattedResultsDataType = '';
88
+ public $formattedResults;
89
+ public $title;
90
+ protected $__versionType = 'Google_ResultVersion';
91
+ protected $__versionDataType = '';
92
+ public $version;
93
+ public $score;
94
+ public $responseCode;
95
+ public $invalidRules;
96
+ protected $__pageStatsType = 'Google_ResultPageStats';
97
+ protected $__pageStatsDataType = '';
98
+ public $pageStats;
99
+ public $id;
100
+ public function setKind($kind) {
101
+ $this->kind = $kind;
102
+ }
103
+ public function getKind() {
104
+ return $this->kind;
105
+ }
106
+ public function setFormattedResults(Google_ResultFormattedResults $formattedResults) {
107
+ $this->formattedResults = $formattedResults;
108
+ }
109
+ public function getFormattedResults() {
110
+ return $this->formattedResults;
111
+ }
112
+ public function setTitle($title) {
113
+ $this->title = $title;
114
+ }
115
+ public function getTitle() {
116
+ return $this->title;
117
+ }
118
+ public function setVersion(Google_ResultVersion $version) {
119
+ $this->version = $version;
120
+ }
121
+ public function getVersion() {
122
+ return $this->version;
123
+ }
124
+ public function setScore($score) {
125
+ $this->score = $score;
126
+ }
127
+ public function getScore() {
128
+ return $this->score;
129
+ }
130
+ public function setResponseCode($responseCode) {
131
+ $this->responseCode = $responseCode;
132
+ }
133
+ public function getResponseCode() {
134
+ return $this->responseCode;
135
+ }
136
+ public function setInvalidRules(/* array(Google_string) */ $invalidRules) {
137
+ $this->assertIsArray($invalidRules, 'Google_string', __METHOD__);
138
+ $this->invalidRules = $invalidRules;
139
+ }
140
+ public function getInvalidRules() {
141
+ return $this->invalidRules;
142
+ }
143
+ public function setPageStats(Google_ResultPageStats $pageStats) {
144
+ $this->pageStats = $pageStats;
145
+ }
146
+ public function getPageStats() {
147
+ return $this->pageStats;
148
+ }
149
+ public function setId($id) {
150
+ $this->id = $id;
151
+ }
152
+ public function getId() {
153
+ return $this->id;
154
+ }
155
+ }
156
+
157
+ class Google_ResultFormattedResults extends Google_Model {
158
+ public $locale;
159
+ protected $__ruleResultsType = 'Google_ResultFormattedResultsRuleResults';
160
+ protected $__ruleResultsDataType = 'map';
161
+ public $ruleResults;
162
+ public function setLocale($locale) {
163
+ $this->locale = $locale;
164
+ }
165
+ public function getLocale() {
166
+ return $this->locale;
167
+ }
168
+ public function setRuleResults(Google_ResultFormattedResultsRuleResults $ruleResults) {
169
+ $this->ruleResults = $ruleResults;
170
+ }
171
+ public function getRuleResults() {
172
+ return $this->ruleResults;
173
+ }
174
+ }
175
+
176
+ class Google_ResultFormattedResultsRuleResults extends Google_Model {
177
+ public $localizedRuleName;
178
+ protected $__urlBlocksType = 'Google_ResultFormattedResultsRuleResultsUrlBlocks';
179
+ protected $__urlBlocksDataType = 'array';
180
+ public $urlBlocks;
181
+ public $ruleScore;
182
+ public $ruleImpact;
183
+ public function setLocalizedRuleName($localizedRuleName) {
184
+ $this->localizedRuleName = $localizedRuleName;
185
+ }
186
+ public function getLocalizedRuleName() {
187
+ return $this->localizedRuleName;
188
+ }
189
+ public function setUrlBlocks(/* array(Google_ResultFormattedResultsRuleResultsUrlBlocks) */ $urlBlocks) {
190
+ $this->assertIsArray($urlBlocks, 'Google_ResultFormattedResultsRuleResultsUrlBlocks', __METHOD__);
191
+ $this->urlBlocks = $urlBlocks;
192
+ }
193
+ public function getUrlBlocks() {
194
+ return $this->urlBlocks;
195
+ }
196
+ public function setRuleScore($ruleScore) {
197
+ $this->ruleScore = $ruleScore;
198
+ }
199
+ public function getRuleScore() {
200
+ return $this->ruleScore;
201
+ }
202
+ public function setRuleImpact($ruleImpact) {
203
+ $this->ruleImpact = $ruleImpact;
204
+ }
205
+ public function getRuleImpact() {
206
+ return $this->ruleImpact;
207
+ }
208
+ }
209
+
210
+ class Google_ResultFormattedResultsRuleResultsUrlBlocks extends Google_Model {
211
+ protected $__headerType = 'Google_ResultFormattedResultsRuleResultsUrlBlocksHeader';
212
+ protected $__headerDataType = '';
213
+ public $header;
214
+ protected $__urlsType = 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrls';
215
+ protected $__urlsDataType = 'array';
216
+ public $urls;
217
+ public function setHeader(Google_ResultFormattedResultsRuleResultsUrlBlocksHeader $header) {
218
+ $this->header = $header;
219
+ }
220
+ public function getHeader() {
221
+ return $this->header;
222
+ }
223
+ public function setUrls(/* array(Google_ResultFormattedResultsRuleResultsUrlBlocksUrls) */ $urls) {
224
+ $this->assertIsArray($urls, 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrls', __METHOD__);
225
+ $this->urls = $urls;
226
+ }
227
+ public function getUrls() {
228
+ return $this->urls;
229
+ }
230
+ }
231
+
232
+ class Google_ResultFormattedResultsRuleResultsUrlBlocksHeader extends Google_Model {
233
+ protected $__argsType = 'Google_ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs';
234
+ protected $__argsDataType = 'array';
235
+ public $args;
236
+ public $format;
237
+ public function setArgs(/* array(Google_ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs) */ $args) {
238
+ $this->assertIsArray($args, 'Google_ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs', __METHOD__);
239
+ $this->args = $args;
240
+ }
241
+ public function getArgs() {
242
+ return $this->args;
243
+ }
244
+ public function setFormat($format) {
245
+ $this->format = $format;
246
+ }
247
+ public function getFormat() {
248
+ return $this->format;
249
+ }
250
+ }
251
+
252
+ class Google_ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs extends Google_Model {
253
+ public $type;
254
+ public $value;
255
+ public function setType($type) {
256
+ $this->type = $type;
257
+ }
258
+ public function getType() {
259
+ return $this->type;
260
+ }
261
+ public function setValue($value) {
262
+ $this->value = $value;
263
+ }
264
+ public function getValue() {
265
+ return $this->value;
266
+ }
267
+ }
268
+
269
+ class Google_ResultFormattedResultsRuleResultsUrlBlocksUrls extends Google_Model {
270
+ protected $__detailsType = 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails';
271
+ protected $__detailsDataType = 'array';
272
+ public $details;
273
+ protected $__resultType = 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsResult';
274
+ protected $__resultDataType = '';
275
+ public $result;
276
+ public function setDetails(/* array(Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails) */ $details) {
277
+ $this->assertIsArray($details, 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails', __METHOD__);
278
+ $this->details = $details;
279
+ }
280
+ public function getDetails() {
281
+ return $this->details;
282
+ }
283
+ public function setResult(Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsResult $result) {
284
+ $this->result = $result;
285
+ }
286
+ public function getResult() {
287
+ return $this->result;
288
+ }
289
+ }
290
+
291
+ class Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails extends Google_Model {
292
+ protected $__argsType = 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs';
293
+ protected $__argsDataType = 'array';
294
+ public $args;
295
+ public $format;
296
+ public function setArgs(/* array(Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs) */ $args) {
297
+ $this->assertIsArray($args, 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs', __METHOD__);
298
+ $this->args = $args;
299
+ }
300
+ public function getArgs() {
301
+ return $this->args;
302
+ }
303
+ public function setFormat($format) {
304
+ $this->format = $format;
305
+ }
306
+ public function getFormat() {
307
+ return $this->format;
308
+ }
309
+ }
310
+
311
+ class Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs extends Google_Model {
312
+ public $type;
313
+ public $value;
314
+ public function setType($type) {
315
+ $this->type = $type;
316
+ }
317
+ public function getType() {
318
+ return $this->type;
319
+ }
320
+ public function setValue($value) {
321
+ $this->value = $value;
322
+ }
323
+ public function getValue() {
324
+ return $this->value;
325
+ }
326
+ }
327
+
328
+ class Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsResult extends Google_Model {
329
+ protected $__argsType = 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs';
330
+ protected $__argsDataType = 'array';
331
+ public $args;
332
+ public $format;
333
+ public function setArgs(/* array(Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs) */ $args) {
334
+ $this->assertIsArray($args, 'Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs', __METHOD__);
335
+ $this->args = $args;
336
+ }
337
+ public function getArgs() {
338
+ return $this->args;
339
+ }
340
+ public function setFormat($format) {
341
+ $this->format = $format;
342
+ }
343
+ public function getFormat() {
344
+ return $this->format;
345
+ }
346
+ }
347
+
348
+ class Google_ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs extends Google_Model {
349
+ public $type;
350
+ public $value;
351
+ public function setType($type) {
352
+ $this->type = $type;
353
+ }
354
+ public function getType() {
355
+ return $this->type;
356
+ }
357
+ public function setValue($value) {
358
+ $this->value = $value;
359
+ }
360
+ public function getValue() {
361
+ return $this->value;
362
+ }
363
+ }
364
+
365
+ class Google_ResultPageStats extends Google_Model {
366
+ public $otherResponseBytes;
367
+ public $flashResponseBytes;
368
+ public $totalRequestBytes;
369
+ public $numberCssResources;
370
+ public $numberResources;
371
+ public $cssResponseBytes;
372
+ public $javascriptResponseBytes;
373
+ public $imageResponseBytes;
374
+ public $numberHosts;
375
+ public $numberStaticResources;
376
+ public $htmlResponseBytes;
377
+ public $numberJsResources;
378
+ public $textResponseBytes;
379
+ public function setOtherResponseBytes($otherResponseBytes) {
380
+ $this->otherResponseBytes = $otherResponseBytes;
381
+ }
382
+ public function getOtherResponseBytes() {
383
+ return $this->otherResponseBytes;
384
+ }
385
+ public function setFlashResponseBytes($flashResponseBytes) {
386
+ $this->flashResponseBytes = $flashResponseBytes;
387
+ }
388
+ public function getFlashResponseBytes() {
389
+ return $this->flashResponseBytes;
390
+ }
391
+ public function setTotalRequestBytes($totalRequestBytes) {
392
+ $this->totalRequestBytes = $totalRequestBytes;
393
+ }
394
+ public function getTotalRequestBytes() {
395
+ return $this->totalRequestBytes;
396
+ }
397
+ public function setNumberCssResources($numberCssResources) {
398
+ $this->numberCssResources = $numberCssResources;
399
+ }
400
+ public function getNumberCssResources() {
401
+ return $this->numberCssResources;
402
+ }
403
+ public function setNumberResources($numberResources) {
404
+ $this->numberResources = $numberResources;
405
+ }
406
+ public function getNumberResources() {
407
+ return $this->numberResources;
408
+ }
409
+ public function setCssResponseBytes($cssResponseBytes) {
410
+ $this->cssResponseBytes = $cssResponseBytes;
411
+ }
412
+ public function getCssResponseBytes() {
413
+ return $this->cssResponseBytes;
414
+ }
415
+ public function setJavascriptResponseBytes($javascriptResponseBytes) {
416
+ $this->javascriptResponseBytes = $javascriptResponseBytes;
417
+ }
418
+ public function getJavascriptResponseBytes() {
419
+ return $this->javascriptResponseBytes;
420
+ }
421
+ public function setImageResponseBytes($imageResponseBytes) {
422
+ $this->imageResponseBytes = $imageResponseBytes;
423
+ }
424
+ public function getImageResponseBytes() {
425
+ return $this->imageResponseBytes;
426
+ }
427
+ public function setNumberHosts($numberHosts) {
428
+ $this->numberHosts = $numberHosts;
429
+ }
430
+ public function getNumberHosts() {
431
+ return $this->numberHosts;
432
+ }
433
+ public function setNumberStaticResources($numberStaticResources) {
434
+ $this->numberStaticResources = $numberStaticResources;
435
+ }
436
+ public function getNumberStaticResources() {
437
+ return $this->numberStaticResources;
438
+ }
439
+ public function setHtmlResponseBytes($htmlResponseBytes) {
440
+ $this->htmlResponseBytes = $htmlResponseBytes;
441
+ }
442
+ public function getHtmlResponseBytes() {
443
+ return $this->htmlResponseBytes;
444
+ }
445
+ public function setNumberJsResources($numberJsResources) {
446
+ $this->numberJsResources = $numberJsResources;
447
+ }
448
+ public function getNumberJsResources() {
449
+ return $this->numberJsResources;
450
+ }
451
+ public function setTextResponseBytes($textResponseBytes) {
452
+ $this->textResponseBytes = $textResponseBytes;
453
+ }
454
+ public function getTextResponseBytes() {
455
+ return $this->textResponseBytes;
456
+ }
457
+ }
458
+
459
+ class Google_ResultVersion extends Google_Model {
460
+ public $major;
461
+ public $minor;
462
+ public function setMajor($major) {
463
+ $this->major = $major;
464
+ }
465
+ public function getMajor() {
466
+ return $this->major;
467
+ }
468
+ public function setMinor($minor) {
469
+ $this->minor = $minor;
470
+ }
471
+ public function getMinor() {
472
+ return $this->minor;
473
+ }
474
+ }
google-api-php-client/src/contrib/Google_PlusMomentsService.php ADDED
@@ -0,0 +1,567 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "moments" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $plusService = new Google_PlusMomentsService(...);
22
+ * $moments = $plusService->moments;
23
+ * </code>
24
+ */
25
+ class Google_MomentsServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Record a user activity (e.g Bill watched a video on Youtube) (moments.insert)
30
+ *
31
+ * @param string $userId The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user.
32
+ * @param string $collection The collection to which to write moments.
33
+ * @param Google_Moment $postBody
34
+ * @param array $optParams Optional parameters.
35
+ *
36
+ * @opt_param bool debug Return the moment as written. Should be used only for debugging.
37
+ * @return Google_Moment
38
+ */
39
+ public function insert($userId, $collection, Google_Moment $postBody, $optParams = array()) {
40
+ $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody);
41
+ $params = array_merge($params, $optParams);
42
+ $data = $this->__call('insert', array($params));
43
+ if ($this->useObjects()) {
44
+ return new Google_Moment($data);
45
+ } else {
46
+ return $data;
47
+ }
48
+ }
49
+ }
50
+
51
+ /**
52
+ * Service definition for Google_Plus (v1moments).
53
+ *
54
+ * <p>
55
+ * The Google+ API enables developers to build on top of the Google+ platform.
56
+ * </p>
57
+ *
58
+ * <p>
59
+ * For more information about this service, see the
60
+ * <a href="https://developers.google.com/+/history/" target="_blank">API Documentation</a>
61
+ * </p>
62
+ *
63
+ * @author Google, Inc.
64
+ */
65
+ class Google_PlusMomentsService extends Google_Service {
66
+ public $moments;
67
+ /**
68
+ * Constructs the internal representation of the Plus service.
69
+ *
70
+ * @param Google_Client $client
71
+ */
72
+ public function __construct(Google_Client $client) {
73
+ $this->servicePath = 'plus/v1moments/people/';
74
+ $this->version = 'v1moments';
75
+ $this->serviceName = 'plus';
76
+
77
+ $client->addService($this->serviceName, $this->version);
78
+ $this->moments = new Google_MomentsServiceResource($this, $this->serviceName, 'moments',
79
+ json_decode('{"methods": {"insert": {"parameters": {"debug": {"type": "boolean", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["vault"]}}, "request": {"$ref": "Moment"}, "response": {"$ref": "Moment"}, "httpMethod": "POST", "path": "{userId}/moments/{collection}", "id": "plus.moments.insert"}}}', true));
80
+
81
+ }
82
+ }
83
+
84
+ class Google_ItemScope extends Google_Model {
85
+ public $startDate;
86
+ public $endDate;
87
+ public $text;
88
+ public $image;
89
+ protected $__addressType = 'Google_ItemScope';
90
+ protected $__addressDataType = '';
91
+ public $address;
92
+ public $birthDate;
93
+ public $datePublished;
94
+ public $addressLocality;
95
+ public $duration;
96
+ public $additionalName;
97
+ public $worstRating;
98
+ protected $__contributorType = 'Google_ItemScope';
99
+ protected $__contributorDataType = 'array';
100
+ public $contributor;
101
+ public $thumbnailUrl;
102
+ public $id;
103
+ public $postOfficeBoxNumber;
104
+ protected $__attendeesType = 'Google_ItemScope';
105
+ protected $__attendeesDataType = 'array';
106
+ public $attendees;
107
+ protected $__authorType = 'Google_ItemScope';
108
+ protected $__authorDataType = 'array';
109
+ public $author;
110
+ protected $__associated_mediaType = 'Google_ItemScope';
111
+ protected $__associated_mediaDataType = 'array';
112
+ public $associated_media;
113
+ public $bestRating;
114
+ public $addressCountry;
115
+ public $width;
116
+ public $streetAddress;
117
+ protected $__locationType = 'Google_ItemScope';
118
+ protected $__locationDataType = '';
119
+ public $location;
120
+ public $latitude;
121
+ protected $__byArtistType = 'Google_ItemScope';
122
+ protected $__byArtistDataType = '';
123
+ public $byArtist;
124
+ public $type;
125
+ public $dateModified;
126
+ public $contentSize;
127
+ public $contentUrl;
128
+ protected $__partOfTVSeriesType = 'Google_ItemScope';
129
+ protected $__partOfTVSeriesDataType = '';
130
+ public $partOfTVSeries;
131
+ public $description;
132
+ public $familyName;
133
+ public $kind;
134
+ public $dateCreated;
135
+ public $postalCode;
136
+ public $attendeeCount;
137
+ protected $__inAlbumType = 'Google_ItemScope';
138
+ protected $__inAlbumDataType = '';
139
+ public $inAlbum;
140
+ public $addressRegion;
141
+ public $height;
142
+ protected $__geoType = 'Google_ItemScope';
143
+ protected $__geoDataType = '';
144
+ public $geo;
145
+ public $embedUrl;
146
+ public $tickerSymbol;
147
+ public $playerType;
148
+ protected $__aboutType = 'Google_ItemScope';
149
+ protected $__aboutDataType = '';
150
+ public $about;
151
+ public $givenName;
152
+ public $name;
153
+ protected $__performersType = 'Google_ItemScope';
154
+ protected $__performersDataType = 'array';
155
+ public $performers;
156
+ public $url;
157
+ public $gender;
158
+ public $longitude;
159
+ protected $__thumbnailType = 'Google_ItemScope';
160
+ protected $__thumbnailDataType = '';
161
+ public $thumbnail;
162
+ public $caption;
163
+ public $ratingValue;
164
+ protected $__reviewRatingType = 'Google_ItemScope';
165
+ protected $__reviewRatingDataType = '';
166
+ public $reviewRating;
167
+ protected $__audioType = 'Google_ItemScope';
168
+ protected $__audioDataType = '';
169
+ public $audio;
170
+ public function setStartDate($startDate) {
171
+ $this->startDate = $startDate;
172
+ }
173
+ public function getStartDate() {
174
+ return $this->startDate;
175
+ }
176
+ public function setEndDate($endDate) {
177
+ $this->endDate = $endDate;
178
+ }
179
+ public function getEndDate() {
180
+ return $this->endDate;
181
+ }
182
+ public function setText($text) {
183
+ $this->text = $text;
184
+ }
185
+ public function getText() {
186
+ return $this->text;
187
+ }
188
+ public function setImage($image) {
189
+ $this->image = $image;
190
+ }
191
+ public function getImage() {
192
+ return $this->image;
193
+ }
194
+ public function setAddress(Google_ItemScope $address) {
195
+ $this->address = $address;
196
+ }
197
+ public function getAddress() {
198
+ return $this->address;
199
+ }
200
+ public function setBirthDate($birthDate) {
201
+ $this->birthDate = $birthDate;
202
+ }
203
+ public function getBirthDate() {
204
+ return $this->birthDate;
205
+ }
206
+ public function setDatePublished($datePublished) {
207
+ $this->datePublished = $datePublished;
208
+ }
209
+ public function getDatePublished() {
210
+ return $this->datePublished;
211
+ }
212
+ public function setAddressLocality($addressLocality) {
213
+ $this->addressLocality = $addressLocality;
214
+ }
215
+ public function getAddressLocality() {
216
+ return $this->addressLocality;
217
+ }
218
+ public function setDuration($duration) {
219
+ $this->duration = $duration;
220
+ }
221
+ public function getDuration() {
222
+ return $this->duration;
223
+ }
224
+ public function setAdditionalName(/* array(Google_string) */ $additionalName) {
225
+ $this->assertIsArray($additionalName, 'Google_string', __METHOD__);
226
+ $this->additionalName = $additionalName;
227
+ }
228
+ public function getAdditionalName() {
229
+ return $this->additionalName;
230
+ }
231
+ public function setWorstRating($worstRating) {
232
+ $this->worstRating = $worstRating;
233
+ }
234
+ public function getWorstRating() {
235
+ return $this->worstRating;
236
+ }
237
+ public function setContributor(/* array(Google_ItemScope) */ $contributor) {
238
+ $this->assertIsArray($contributor, 'Google_ItemScope', __METHOD__);
239
+ $this->contributor = $contributor;
240
+ }
241
+ public function getContributor() {
242
+ return $this->contributor;
243
+ }
244
+ public function setThumbnailUrl($thumbnailUrl) {
245
+ $this->thumbnailUrl = $thumbnailUrl;
246
+ }
247
+ public function getThumbnailUrl() {
248
+ return $this->thumbnailUrl;
249
+ }
250
+ public function setId($id) {
251
+ $this->id = $id;
252
+ }
253
+ public function getId() {
254
+ return $this->id;
255
+ }
256
+ public function setPostOfficeBoxNumber($postOfficeBoxNumber) {
257
+ $this->postOfficeBoxNumber = $postOfficeBoxNumber;
258
+ }
259
+ public function getPostOfficeBoxNumber() {
260
+ return $this->postOfficeBoxNumber;
261
+ }
262
+ public function setAttendees(/* array(Google_ItemScope) */ $attendees) {
263
+ $this->assertIsArray($attendees, 'Google_ItemScope', __METHOD__);
264
+ $this->attendees = $attendees;
265
+ }
266
+ public function getAttendees() {
267
+ return $this->attendees;
268
+ }
269
+ public function setAuthor(/* array(Google_ItemScope) */ $author) {
270
+ $this->assertIsArray($author, 'Google_ItemScope', __METHOD__);
271
+ $this->author = $author;
272
+ }
273
+ public function getAuthor() {
274
+ return $this->author;
275
+ }
276
+ public function setAssociated_media(/* array(Google_ItemScope) */ $associated_media) {
277
+ $this->assertIsArray($associated_media, 'Google_ItemScope', __METHOD__);
278
+ $this->associated_media = $associated_media;
279
+ }
280
+ public function getAssociated_media() {
281
+ return $this->associated_media;
282
+ }
283
+ public function setBestRating($bestRating) {
284
+ $this->bestRating = $bestRating;
285
+ }
286
+ public function getBestRating() {
287
+ return $this->bestRating;
288
+ }
289
+ public function setAddressCountry($addressCountry) {
290
+ $this->addressCountry = $addressCountry;
291
+ }
292
+ public function getAddressCountry() {
293
+ return $this->addressCountry;
294
+ }
295
+ public function setWidth($width) {
296
+ $this->width = $width;
297
+ }
298
+ public function getWidth() {
299
+ return $this->width;
300
+ }
301
+ public function setStreetAddress($streetAddress) {
302
+ $this->streetAddress = $streetAddress;
303
+ }
304
+ public function getStreetAddress() {
305
+ return $this->streetAddress;
306
+ }
307
+ public function setLocation(Google_ItemScope $location) {
308
+ $this->location = $location;
309
+ }
310
+ public function getLocation() {
311
+ return $this->location;
312
+ }
313
+ public function setLatitude($latitude) {
314
+ $this->latitude = $latitude;
315
+ }
316
+ public function getLatitude() {
317
+ return $this->latitude;
318
+ }
319
+ public function setByArtist(Google_ItemScope $byArtist) {
320
+ $this->byArtist = $byArtist;
321
+ }
322
+ public function getByArtist() {
323
+ return $this->byArtist;
324
+ }
325
+ public function setType($type) {
326
+ $this->type = $type;
327
+ }
328
+ public function getType() {
329
+ return $this->type;
330
+ }
331
+ public function setDateModified($dateModified) {
332
+ $this->dateModified = $dateModified;
333
+ }
334
+ public function getDateModified() {
335
+ return $this->dateModified;
336
+ }
337
+ public function setContentSize($contentSize) {
338
+ $this->contentSize = $contentSize;
339
+ }
340
+ public function getContentSize() {
341
+ return $this->contentSize;
342
+ }
343
+ public function setContentUrl($contentUrl) {
344
+ $this->contentUrl = $contentUrl;
345
+ }
346
+ public function getContentUrl() {
347
+ return $this->contentUrl;
348
+ }
349
+ public function setPartOfTVSeries(Google_ItemScope $partOfTVSeries) {
350
+ $this->partOfTVSeries = $partOfTVSeries;
351
+ }
352
+ public function getPartOfTVSeries() {
353
+ return $this->partOfTVSeries;
354
+ }
355
+ public function setDescription($description) {
356
+ $this->description = $description;
357
+ }
358
+ public function getDescription() {
359
+ return $this->description;
360
+ }
361
+ public function setFamilyName($familyName) {
362
+ $this->familyName = $familyName;
363
+ }
364
+ public function getFamilyName() {
365
+ return $this->familyName;
366
+ }
367
+ public function setKind($kind) {
368
+ $this->kind = $kind;
369
+ }
370
+ public function getKind() {
371
+ return $this->kind;
372
+ }
373
+ public function setDateCreated($dateCreated) {
374
+ $this->dateCreated = $dateCreated;
375
+ }
376
+ public function getDateCreated() {
377
+ return $this->dateCreated;
378
+ }
379
+ public function setPostalCode($postalCode) {
380
+ $this->postalCode = $postalCode;
381
+ }
382
+ public function getPostalCode() {
383
+ return $this->postalCode;
384
+ }
385
+ public function setAttendeeCount($attendeeCount) {
386
+ $this->attendeeCount = $attendeeCount;
387
+ }
388
+ public function getAttendeeCount() {
389
+ return $this->attendeeCount;
390
+ }
391
+ public function setInAlbum(Google_ItemScope $inAlbum) {
392
+ $this->inAlbum = $inAlbum;
393
+ }
394
+ public function getInAlbum() {
395
+ return $this->inAlbum;
396
+ }
397
+ public function setAddressRegion($addressRegion) {
398
+ $this->addressRegion = $addressRegion;
399
+ }
400
+ public function getAddressRegion() {
401
+ return $this->addressRegion;
402
+ }
403
+ public function setHeight($height) {
404
+ $this->height = $height;
405
+ }
406
+ public function getHeight() {
407
+ return $this->height;
408
+ }
409
+ public function setGeo(Google_ItemScope $geo) {
410
+ $this->geo = $geo;
411
+ }
412
+ public function getGeo() {
413
+ return $this->geo;
414
+ }
415
+ public function setEmbedUrl($embedUrl) {
416
+ $this->embedUrl = $embedUrl;
417
+ }
418
+ public function getEmbedUrl() {
419
+ return $this->embedUrl;
420
+ }
421
+ public function setTickerSymbol($tickerSymbol) {
422
+ $this->tickerSymbol = $tickerSymbol;
423
+ }
424
+ public function getTickerSymbol() {
425
+ return $this->tickerSymbol;
426
+ }
427
+ public function setPlayerType($playerType) {
428
+ $this->playerType = $playerType;
429
+ }
430
+ public function getPlayerType() {
431
+ return $this->playerType;
432
+ }
433
+ public function setAbout(Google_ItemScope $about) {
434
+ $this->about = $about;
435
+ }
436
+ public function getAbout() {
437
+ return $this->about;
438
+ }
439
+ public function setGivenName($givenName) {
440
+ $this->givenName = $givenName;
441
+ }
442
+ public function getGivenName() {
443
+ return $this->givenName;
444
+ }
445
+ public function setName($name) {
446
+ $this->name = $name;
447
+ }
448
+ public function getName() {
449
+ return $this->name;
450
+ }
451
+ public function setPerformers(/* array(Google_ItemScope) */ $performers) {
452
+ $this->assertIsArray($performers, 'Google_ItemScope', __METHOD__);
453
+ $this->performers = $performers;
454
+ }
455
+ public function getPerformers() {
456
+ return $this->performers;
457
+ }
458
+ public function setUrl($url) {
459
+ $this->url = $url;
460
+ }
461
+ public function getUrl() {
462
+ return $this->url;
463
+ }
464
+ public function setGender($gender) {
465
+ $this->gender = $gender;
466
+ }
467
+ public function getGender() {
468
+ return $this->gender;
469
+ }
470
+ public function setLongitude($longitude) {
471
+ $this->longitude = $longitude;
472
+ }
473
+ public function getLongitude() {
474
+ return $this->longitude;
475
+ }
476
+ public function setThumbnail(Google_ItemScope $thumbnail) {
477
+ $this->thumbnail = $thumbnail;
478
+ }
479
+ public function getThumbnail() {
480
+ return $this->thumbnail;
481
+ }
482
+ public function setCaption($caption) {
483
+ $this->caption = $caption;
484
+ }
485
+ public function getCaption() {
486
+ return $this->caption;
487
+ }
488
+ public function setRatingValue($ratingValue) {
489
+ $this->ratingValue = $ratingValue;
490
+ }
491
+ public function getRatingValue() {
492
+ return $this->ratingValue;
493
+ }
494
+ public function setReviewRating(Google_ItemScope $reviewRating) {
495
+ $this->reviewRating = $reviewRating;
496
+ }
497
+ public function getReviewRating() {
498
+ return $this->reviewRating;
499
+ }
500
+ public function setAudio(Google_ItemScope $audio) {
501
+ $this->audio = $audio;
502
+ }
503
+ public function getAudio() {
504
+ return $this->audio;
505
+ }
506
+ }
507
+
508
+ class Google_Moment extends Google_Model {
509
+ public $startDate;
510
+ public $kind;
511
+ protected $__targetType = 'Google_ItemScope';
512
+ protected $__targetDataType = '';
513
+ public $target;
514
+ protected $__verbType = 'Google_MomentVerb';
515
+ protected $__verbDataType = '';
516
+ public $verb;
517
+ protected $__resultType = 'Google_ItemScope';
518
+ protected $__resultDataType = '';
519
+ public $result;
520
+ public $type;
521
+ public function setStartDate($startDate) {
522
+ $this->startDate = $startDate;
523
+ }
524
+ public function getStartDate() {
525
+ return $this->startDate;
526
+ }
527
+ public function setKind($kind) {
528
+ $this->kind = $kind;
529
+ }
530
+ public function getKind() {
531
+ return $this->kind;
532
+ }
533
+ public function setTarget(Google_ItemScope $target) {
534
+ $this->target = $target;
535
+ }
536
+ public function getTarget() {
537
+ return $this->target;
538
+ }
539
+ public function setVerb(Google_MomentVerb $verb) {
540
+ $this->verb = $verb;
541
+ }
542
+ public function getVerb() {
543
+ return $this->verb;
544
+ }
545
+ public function setResult(Google_ItemScope $result) {
546
+ $this->result = $result;
547
+ }
548
+ public function getResult() {
549
+ return $this->result;
550
+ }
551
+ public function setType($type) {
552
+ $this->type = $type;
553
+ }
554
+ public function getType() {
555
+ return $this->type;
556
+ }
557
+ }
558
+
559
+ class Google_MomentVerb extends Google_Model {
560
+ public $url;
561
+ public function setUrl($url) {
562
+ $this->url = $url;
563
+ }
564
+ public function getUrl() {
565
+ return $this->url;
566
+ }
567
+ }
google-api-php-client/src/contrib/Google_PlusService.php ADDED
@@ -0,0 +1,1525 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "activities" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $plusService = new Google_PlusService(...);
22
+ * $activities = $plusService->activities;
23
+ * </code>
24
+ */
25
+ class Google_ActivitiesServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Search public activities. (activities.search)
30
+ *
31
+ * @param string $query Full-text search query string.
32
+ * @param array $optParams Optional parameters.
33
+ *
34
+ * @opt_param string orderBy Specifies how to order search results.
35
+ * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token may be of any length.
36
+ * @opt_param string maxResults The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
37
+ * @opt_param string language Specify the preferred language to search with. See search language codes for available values.
38
+ * @return Google_ActivityFeed
39
+ */
40
+ public function search($query, $optParams = array()) {
41
+ $params = array('query' => $query);
42
+ $params = array_merge($params, $optParams);
43
+ $data = $this->__call('search', array($params));
44
+ if ($this->useObjects()) {
45
+ return new Google_ActivityFeed($data);
46
+ } else {
47
+ return $data;
48
+ }
49
+ }
50
+ /**
51
+ * List all of the activities in the specified collection for a particular user. (activities.list)
52
+ *
53
+ * @param string $userId The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user.
54
+ * @param string $collection The collection of activities to list.
55
+ * @param array $optParams Optional parameters.
56
+ *
57
+ * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
58
+ * @opt_param string maxResults The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
59
+ * @return Google_ActivityFeed
60
+ */
61
+ public function listActivities($userId, $collection, $optParams = array()) {
62
+ $params = array('userId' => $userId, 'collection' => $collection);
63
+ $params = array_merge($params, $optParams);
64
+ $data = $this->__call('list', array($params));
65
+ if ($this->useObjects()) {
66
+ return new Google_ActivityFeed($data);
67
+ } else {
68
+ return $data;
69
+ }
70
+ }
71
+ /**
72
+ * Get an activity. (activities.get)
73
+ *
74
+ * @param string $activityId The ID of the activity to get.
75
+ * @param array $optParams Optional parameters.
76
+ * @return Google_Activity
77
+ */
78
+ public function get($activityId, $optParams = array()) {
79
+ $params = array('activityId' => $activityId);
80
+ $params = array_merge($params, $optParams);
81
+ $data = $this->__call('get', array($params));
82
+ if ($this->useObjects()) {
83
+ return new Google_Activity($data);
84
+ } else {
85
+ return $data;
86
+ }
87
+ }
88
+ }
89
+
90
+ /**
91
+ * The "comments" collection of methods.
92
+ * Typical usage is:
93
+ * <code>
94
+ * $plusService = new Google_PlusService(...);
95
+ * $comments = $plusService->comments;
96
+ * </code>
97
+ */
98
+ class Google_CommentsServiceResource extends Google_ServiceResource {
99
+
100
+
101
+ /**
102
+ * List all of the comments for an activity. (comments.list)
103
+ *
104
+ * @param string $activityId The ID of the activity to get comments for.
105
+ * @param array $optParams Optional parameters.
106
+ *
107
+ * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
108
+ * @opt_param string maxResults The maximum number of comments to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
109
+ * @opt_param string sortOrder The order in which to sort the list of comments.
110
+ * @return Google_CommentFeed
111
+ */
112
+ public function listComments($activityId, $optParams = array()) {
113
+ $params = array('activityId' => $activityId);
114
+ $params = array_merge($params, $optParams);
115
+ $data = $this->__call('list', array($params));
116
+ if ($this->useObjects()) {
117
+ return new Google_CommentFeed($data);
118
+ } else {
119
+ return $data;
120
+ }
121
+ }
122
+ /**
123
+ * Get a comment. (comments.get)
124
+ *
125
+ * @param string $commentId The ID of the comment to get.
126
+ * @param array $optParams Optional parameters.
127
+ * @return Google_Comment
128
+ */
129
+ public function get($commentId, $optParams = array()) {
130
+ $params = array('commentId' => $commentId);
131
+ $params = array_merge($params, $optParams);
132
+ $data = $this->__call('get', array($params));
133
+ if ($this->useObjects()) {
134
+ return new Google_Comment($data);
135
+ } else {
136
+ return $data;
137
+ }
138
+ }
139
+ }
140
+
141
+ /**
142
+ * The "people" collection of methods.
143
+ * Typical usage is:
144
+ * <code>
145
+ * $plusService = new Google_PlusService(...);
146
+ * $people = $plusService->people;
147
+ * </code>
148
+ */
149
+ class Google_PeopleServiceResource extends Google_ServiceResource {
150
+
151
+
152
+ /**
153
+ * List all of the people in the specified collection for a particular activity.
154
+ * (people.listByActivity)
155
+ *
156
+ * @param string $activityId The ID of the activity to get the list of people for.
157
+ * @param string $collection The collection of people to list.
158
+ * @param array $optParams Optional parameters.
159
+ *
160
+ * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
161
+ * @opt_param string maxResults The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
162
+ * @return Google_PeopleFeed
163
+ */
164
+ public function listByActivity($activityId, $collection, $optParams = array()) {
165
+ $params = array('activityId' => $activityId, 'collection' => $collection);
166
+ $params = array_merge($params, $optParams);
167
+ $data = $this->__call('listByActivity', array($params));
168
+ if ($this->useObjects()) {
169
+ return new Google_PeopleFeed($data);
170
+ } else {
171
+ return $data;
172
+ }
173
+ }
174
+ /**
175
+ * Search all public profiles. (people.search)
176
+ *
177
+ * @param string $query Specify a query string for full text search of public text in all profiles.
178
+ * @param array $optParams Optional parameters.
179
+ *
180
+ * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token may be of any length.
181
+ * @opt_param string maxResults The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
182
+ * @opt_param string language Specify the preferred language to search with. See search language codes for available values.
183
+ * @return Google_PeopleFeed
184
+ */
185
+ public function search($query, $optParams = array()) {
186
+ $params = array('query' => $query);
187
+ $params = array_merge($params, $optParams);
188
+ $data = $this->__call('search', array($params));
189
+ if ($this->useObjects()) {
190
+ return new Google_PeopleFeed($data);
191
+ } else {
192
+ return $data;
193
+ }
194
+ }
195
+ /**
196
+ * Get a person's profile. (people.get)
197
+ *
198
+ * @param string $userId The ID of the person to get the profile for. The special value "me" can be used to indicate the authenticated user.
199
+ * @param array $optParams Optional parameters.
200
+ * @return Google_Person
201
+ */
202
+ public function get($userId, $optParams = array()) {
203
+ $params = array('userId' => $userId);
204
+ $params = array_merge($params, $optParams);
205
+ $data = $this->__call('get', array($params));
206
+ if ($this->useObjects()) {
207
+ return new Google_Person($data);
208
+ } else {
209
+ return $data;
210
+ }
211
+ }
212
+ }
213
+
214
+ /**
215
+ * Service definition for Google_Plus (v1).
216
+ *
217
+ * <p>
218
+ * The Google+ API enables developers to build on top of the Google+ platform.
219
+ * </p>
220
+ *
221
+ * <p>
222
+ * For more information about this service, see the
223
+ * <a href="https://developers.google.com/+/api/" target="_blank">API Documentation</a>
224
+ * </p>
225
+ *
226
+ * @author Google, Inc.
227
+ */
228
+ class Google_PlusService extends Google_Service {
229
+ public $activities;
230
+ public $comments;
231
+ public $people;
232
+ /**
233
+ * Constructs the internal representation of the Plus service.
234
+ *
235
+ * @param Google_Client $client
236
+ */
237
+ public function __construct(Google_Client $client) {
238
+ $this->servicePath = 'plus/v1/';
239
+ $this->version = 'v1';
240
+ $this->serviceName = 'plus';
241
+
242
+ $client->addService($this->serviceName, $this->version);
243
+ $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"orderBy": {"default": "recent", "enum": ["best", "recent"], "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "language": {"default": "", "type": "string", "location": "query"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.activities.search", "httpMethod": "GET", "path": "activities", "response": {"$ref": "ActivityFeed"}}, "list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "alt": {"default": "json", "enum": ["json"], "type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["public"]}}, "id": "plus.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "type": "string", "location": "query"}}, "id": "plus.activities.get", "httpMethod": "GET", "path": "activities/{activityId}", "response": {"$ref": "Activity"}}}}', true));
244
+ $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}, "sortOrder": {"default": "ascending", "enum": ["ascending", "descending"], "type": "string", "location": "query"}}, "id": "plus.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
245
+ $this->people = new Google_PeopleServiceResource($this, $this->serviceName, 'people', json_decode('{"methods": {"listByActivity": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["plusoners", "resharers"]}}, "id": "plus.people.listByActivity", "httpMethod": "GET", "path": "activities/{activityId}/people/{collection}", "response": {"$ref": "PeopleFeed"}}, "search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "language": {"default": "", "type": "string", "location": "query"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.people.search", "httpMethod": "GET", "path": "people", "response": {"$ref": "PeopleFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.people.get", "httpMethod": "GET", "path": "people/{userId}", "response": {"$ref": "Person"}}}}', true));
246
+
247
+ }
248
+ }
249
+
250
+ class Google_Acl extends Google_Model {
251
+ protected $__itemsType = 'Google_PlusAclentryResource';
252
+ protected $__itemsDataType = 'array';
253
+ public $items;
254
+ public $kind;
255
+ public $description;
256
+ public function setItems($items) {
257
+ $this->assertIsArray($items, 'Google_PlusAclentryResource', __METHOD__);
258
+ $this->items = $items;
259
+ }
260
+ public function getItems() {
261
+ return $this->items;
262
+ }
263
+ public function setKind($kind) {
264
+ $this->kind = $kind;
265
+ }
266
+ public function getKind() {
267
+ return $this->kind;
268
+ }
269
+ public function setDescription($description) {
270
+ $this->description = $description;
271
+ }
272
+ public function getDescription() {
273
+ return $this->description;
274
+ }
275
+ }
276
+
277
+ class Google_Activity extends Google_Model {
278
+ public $placeName;
279
+ public $kind;
280
+ public $updated;
281
+ protected $__providerType = 'Google_ActivityProvider';
282
+ protected $__providerDataType = '';
283
+ public $provider;
284
+ public $title;
285
+ public $url;
286
+ public $geocode;
287
+ protected $__objectType = 'Google_ActivityObject';
288
+ protected $__objectDataType = '';
289
+ public $object;
290
+ public $placeId;
291
+ protected $__actorType = 'Google_ActivityActor';
292
+ protected $__actorDataType = '';
293
+ public $actor;
294
+ public $id;
295
+ protected $__accessType = 'Google_Acl';
296
+ protected $__accessDataType = '';
297
+ public $access;
298
+ public $verb;
299
+ public $etag;
300
+ public $radius;
301
+ public $address;
302
+ public $crosspostSource;
303
+ public $annotation;
304
+ public $published;
305
+ public function setPlaceName($placeName) {
306
+ $this->placeName = $placeName;
307
+ }
308
+ public function getPlaceName() {
309
+ return $this->placeName;
310
+ }
311
+ public function setKind($kind) {
312
+ $this->kind = $kind;
313
+ }
314
+ public function getKind() {
315
+ return $this->kind;
316
+ }
317
+ public function setUpdated($updated) {
318
+ $this->updated = $updated;
319
+ }
320
+ public function getUpdated() {
321
+ return $this->updated;
322
+ }
323
+ public function setProvider(Google_ActivityProvider $provider) {
324
+ $this->provider = $provider;
325
+ }
326
+ public function getProvider() {
327
+ return $this->provider;
328
+ }
329
+ public function setTitle($title) {
330
+ $this->title = $title;
331
+ }
332
+ public function getTitle() {
333
+ return $this->title;
334
+ }
335
+ public function setUrl($url) {
336
+ $this->url = $url;
337
+ }
338
+ public function getUrl() {
339
+ return $this->url;
340
+ }
341
+ public function setGeocode($geocode) {
342
+ $this->geocode = $geocode;
343
+ }
344
+ public function getGeocode() {
345
+ return $this->geocode;
346
+ }
347
+ public function setObject(Google_ActivityObject $object) {
348
+ $this->object = $object;
349
+ }
350
+ public function getObject() {
351
+ return $this->object;
352
+ }
353
+ public function setPlaceId($placeId) {
354
+ $this->placeId = $placeId;
355
+ }
356
+ public function getPlaceId() {
357
+ return $this->placeId;
358
+ }
359
+ public function setActor(Google_ActivityActor $actor) {
360
+ $this->actor = $actor;
361
+ }
362
+ public function getActor() {
363
+ return $this->actor;
364
+ }
365
+ public function setId($id) {
366
+ $this->id = $id;
367
+ }
368
+ public function getId() {
369
+ return $this->id;
370
+ }
371
+ public function setAccess(Google_Acl $access) {
372
+ $this->access = $access;
373
+ }
374
+ public function getAccess() {
375
+ return $this->access;
376
+ }
377
+ public function setVerb($verb) {
378
+ $this->verb = $verb;
379
+ }
380
+ public function getVerb() {
381
+ return $this->verb;
382
+ }
383
+ public function setEtag($etag) {
384
+ $this->etag = $etag;
385
+ }
386
+ public function getEtag() {
387
+ return $this->etag;
388
+ }
389
+ public function setRadius($radius) {
390
+ $this->radius = $radius;
391
+ }
392
+ public function getRadius() {
393
+ return $this->radius;
394
+ }
395
+ public function setAddress($address) {
396
+ $this->address = $address;
397
+ }
398
+ public function getAddress() {
399
+ return $this->address;
400
+ }
401
+ public function setCrosspostSource($crosspostSource) {
402
+ $this->crosspostSource = $crosspostSource;
403
+ }
404
+ public function getCrosspostSource() {
405
+ return $this->crosspostSource;
406
+ }
407
+ public function setAnnotation($annotation) {
408
+ $this->annotation = $annotation;
409
+ }
410
+ public function getAnnotation() {
411
+ return $this->annotation;
412
+ }
413
+ public function setPublished($published) {
414
+ $this->published = $published;
415
+ }
416
+ public function getPublished() {
417
+ return $this->published;
418
+ }
419
+ }
420
+
421
+ class Google_ActivityActor extends Google_Model {
422
+ public $url;
423
+ protected $__imageType = 'Google_ActivityActorImage';
424
+ protected $__imageDataType = '';
425
+ public $image;
426
+ public $displayName;
427
+ public $id;
428
+ protected $__nameType = 'Google_ActivityActorName';
429
+ protected $__nameDataType = '';
430
+ public $name;
431
+ public function setUrl($url) {
432
+ $this->url = $url;
433
+ }
434
+ public function getUrl() {
435
+ return $this->url;
436
+ }
437
+ public function setImage(Google_ActivityActorImage $image) {
438
+ $this->image = $image;
439
+ }
440
+ public function getImage() {
441
+ return $this->image;
442
+ }
443
+ public function setDisplayName($displayName) {
444
+ $this->displayName = $displayName;
445
+ }
446
+ public function getDisplayName() {
447
+ return $this->displayName;
448
+ }
449
+ public function setId($id) {
450
+ $this->id = $id;
451
+ }
452
+ public function getId() {
453
+ return $this->id;
454
+ }
455
+ public function setName(Google_ActivityActorName $name) {
456
+ $this->name = $name;
457
+ }
458
+ public function getName() {
459
+ return $this->name;
460
+ }
461
+ }
462
+
463
+ class Google_ActivityActorImage extends Google_Model {
464
+ public $url;
465
+ public function setUrl($url) {
466
+ $this->url = $url;
467
+ }
468
+ public function getUrl() {
469
+ return $this->url;
470
+ }
471
+ }
472
+
473
+ class Google_ActivityActorName extends Google_Model {
474
+ public $givenName;
475
+ public $familyName;
476
+ public function setGivenName($givenName) {
477
+ $this->givenName = $givenName;
478
+ }
479
+ public function getGivenName() {
480
+ return $this->givenName;
481
+ }
482
+ public function setFamilyName($familyName) {
483
+ $this->familyName = $familyName;
484
+ }
485
+ public function getFamilyName() {
486
+ return $this->familyName;
487
+ }
488
+ }
489
+
490
+ class Google_ActivityFeed extends Google_Model {
491
+ public $nextPageToken;
492
+ public $kind;
493
+ public $title;
494
+ protected $__itemsType = 'Google_Activity';
495
+ protected $__itemsDataType = 'array';
496
+ public $items;
497
+ public $updated;
498
+ public $nextLink;
499
+ public $etag;
500
+ public $id;
501
+ public $selfLink;
502
+ public function setNextPageToken($nextPageToken) {
503
+ $this->nextPageToken = $nextPageToken;
504
+ }
505
+ public function getNextPageToken() {
506
+ return $this->nextPageToken;
507
+ }
508
+ public function setKind($kind) {
509
+ $this->kind = $kind;
510
+ }
511
+ public function getKind() {
512
+ return $this->kind;
513
+ }
514
+ public function setTitle($title) {
515
+ $this->title = $title;
516
+ }
517
+ public function getTitle() {
518
+ return $this->title;
519
+ }
520
+ public function setItems($items) {
521
+ $this->assertIsArray($items, 'Google_Activity', __METHOD__);
522
+ $this->items = $items;
523
+ }
524
+ public function getItems() {
525
+ return $this->items;
526
+ }
527
+ public function setUpdated($updated) {
528
+ $this->updated = $updated;
529
+ }
530
+ public function getUpdated() {
531
+ return $this->updated;
532
+ }
533
+ public function setNextLink($nextLink) {
534
+ $this->nextLink = $nextLink;
535
+ }
536
+ public function getNextLink() {
537
+ return $this->nextLink;
538
+ }
539
+ public function setEtag($etag) {
540
+ $this->etag = $etag;
541
+ }
542
+ public function getEtag() {
543
+ return $this->etag;
544
+ }
545
+ public function setId($id) {
546
+ $this->id = $id;
547
+ }
548
+ public function getId() {
549
+ return $this->id;
550
+ }
551
+ public function setSelfLink($selfLink) {
552
+ $this->selfLink = $selfLink;
553
+ }
554
+ public function getSelfLink() {
555
+ return $this->selfLink;
556
+ }
557
+ }
558
+
559
+ class Google_ActivityObject extends Google_Model {
560
+ protected $__resharersType = 'Google_ActivityObjectResharers';
561
+ protected $__resharersDataType = '';
562
+ public $resharers;
563
+ protected $__attachmentsType = 'Google_ActivityObjectAttachments';
564
+ protected $__attachmentsDataType = 'array';
565
+ public $attachments;
566
+ public $originalContent;
567
+ protected $__plusonersType = 'Google_ActivityObjectPlusoners';
568
+ protected $__plusonersDataType = '';
569
+ public $plusoners;
570
+ protected $__actorType = 'Google_ActivityObjectActor';
571
+ protected $__actorDataType = '';
572
+ public $actor;
573
+ public $content;
574
+ public $url;
575
+ protected $__repliesType = 'Google_ActivityObjectReplies';
576
+ protected $__repliesDataType = '';
577
+ public $replies;
578
+ public $id;
579
+ public $objectType;
580
+ public function setResharers(Google_ActivityObjectResharers $resharers) {
581
+ $this->resharers = $resharers;
582
+ }
583
+ public function getResharers() {
584
+ return $this->resharers;
585
+ }
586
+ public function setAttachments($attachments) {
587
+ $this->assertIsArray($attachments, 'Google_ActivityObjectAttachments', __METHOD__);
588
+ $this->attachments = $attachments;
589
+ }
590
+ public function getAttachments() {
591
+ return $this->attachments;
592
+ }
593
+ public function setOriginalContent($originalContent) {
594
+ $this->originalContent = $originalContent;
595
+ }
596
+ public function getOriginalContent() {
597
+ return $this->originalContent;
598
+ }
599
+ public function setPlusoners(Google_ActivityObjectPlusoners $plusoners) {
600
+ $this->plusoners = $plusoners;
601
+ }
602
+ public function getPlusoners() {
603
+ return $this->plusoners;
604
+ }
605
+ public function setActor(Google_ActivityObjectActor $actor) {
606
+ $this->actor = $actor;
607
+ }
608
+ public function getActor() {
609
+ return $this->actor;
610
+ }
611
+ public function setContent($content) {
612
+ $this->content = $content;
613
+ }
614
+ public function getContent() {
615
+ return $this->content;
616
+ }
617
+ public function setUrl($url) {
618
+ $this->url = $url;
619
+ }
620
+ public function getUrl() {
621
+ return $this->url;
622
+ }
623
+ public function setReplies(Google_ActivityObjectReplies $replies) {
624
+ $this->replies = $replies;
625
+ }
626
+ public function getReplies() {
627
+ return $this->replies;
628
+ }
629
+ public function setId($id) {
630
+ $this->id = $id;
631
+ }
632
+ public function getId() {
633
+ return $this->id;
634
+ }
635
+ public function setObjectType($objectType) {
636
+ $this->objectType = $objectType;
637
+ }
638
+ public function getObjectType() {
639
+ return $this->objectType;
640
+ }
641
+ }
642
+
643
+ class Google_ActivityObjectActor extends Google_Model {
644
+ public $url;
645
+ protected $__imageType = 'Google_ActivityObjectActorImage';
646
+ protected $__imageDataType = '';
647
+ public $image;
648
+ public $displayName;
649
+ public $id;
650
+ public function setUrl($url) {
651
+ $this->url = $url;
652
+ }
653
+ public function getUrl() {
654
+ return $this->url;
655
+ }
656
+ public function setImage(Google_ActivityObjectActorImage $image) {
657
+ $this->image = $image;
658
+ }
659
+ public function getImage() {
660
+ return $this->image;
661
+ }
662
+ public function setDisplayName($displayName) {
663
+ $this->displayName = $displayName;
664
+ }
665
+ public function getDisplayName() {
666
+ return $this->displayName;
667
+ }
668
+ public function setId($id) {
669
+ $this->id = $id;
670
+ }
671
+ public function getId() {
672
+ return $this->id;
673
+ }
674
+ }
675
+
676
+ class Google_ActivityObjectActorImage extends Google_Model {
677
+ public $url;
678
+ public function setUrl($url) {
679
+ $this->url = $url;
680
+ }
681
+ public function getUrl() {
682
+ return $this->url;
683
+ }
684
+ }
685
+
686
+ class Google_ActivityObjectAttachments extends Google_Model {
687
+ public $displayName;
688
+ protected $__fullImageType = 'Google_ActivityObjectAttachmentsFullImage';
689
+ protected $__fullImageDataType = '';
690
+ public $fullImage;
691
+ public $url;
692
+ protected $__imageType = 'Google_ActivityObjectAttachmentsImage';
693
+ protected $__imageDataType = '';
694
+ public $image;
695
+ public $content;
696
+ protected $__embedType = 'Google_ActivityObjectAttachmentsEmbed';
697
+ protected $__embedDataType = '';
698
+ public $embed;
699
+ public $id;
700
+ public $objectType;
701
+ public function setDisplayName($displayName) {
702
+ $this->displayName = $displayName;
703
+ }
704
+ public function getDisplayName() {
705
+ return $this->displayName;
706
+ }
707
+ public function setFullImage(Google_ActivityObjectAttachmentsFullImage $fullImage) {
708
+ $this->fullImage = $fullImage;
709
+ }
710
+ public function getFullImage() {
711
+ return $this->fullImage;
712
+ }
713
+ public function setUrl($url) {
714
+ $this->url = $url;
715
+ }
716
+ public function getUrl() {
717
+ return $this->url;
718
+ }
719
+ public function setImage(Google_ActivityObjectAttachmentsImage $image) {
720
+ $this->image = $image;
721
+ }
722
+ public function getImage() {
723
+ return $this->image;
724
+ }
725
+ public function setContent($content) {
726
+ $this->content = $content;
727
+ }
728
+ public function getContent() {
729
+ return $this->content;
730
+ }
731
+ public function setEmbed(Google_ActivityObjectAttachmentsEmbed $embed) {
732
+ $this->embed = $embed;
733
+ }
734
+ public function getEmbed() {
735
+ return $this->embed;
736
+ }
737
+ public function setId($id) {
738
+ $this->id = $id;
739
+ }
740
+ public function getId() {
741
+ return $this->id;
742
+ }
743
+ public function setObjectType($objectType) {
744
+ $this->objectType = $objectType;
745
+ }
746
+ public function getObjectType() {
747
+ return $this->objectType;
748
+ }
749
+ }
750
+
751
+ class Google_ActivityObjectAttachmentsEmbed extends Google_Model {
752
+ public $url;
753
+ public $type;
754
+ public function setUrl($url) {
755
+ $this->url = $url;
756
+ }
757
+ public function getUrl() {
758
+ return $this->url;
759
+ }
760
+ public function setType($type) {
761
+ $this->type = $type;
762
+ }
763
+ public function getType() {
764
+ return $this->type;
765
+ }
766
+ }
767
+
768
+ class Google_ActivityObjectAttachmentsFullImage extends Google_Model {
769
+ public $url;
770
+ public $width;
771
+ public $type;
772
+ public $height;
773
+ public function setUrl($url) {
774
+ $this->url = $url;
775
+ }
776
+ public function getUrl() {
777
+ return $this->url;
778
+ }
779
+ public function setWidth($width) {
780
+ $this->width = $width;
781
+ }
782
+ public function getWidth() {
783
+ return $this->width;
784
+ }
785
+ public function setType($type) {
786
+ $this->type = $type;
787
+ }
788
+ public function getType() {
789
+ return $this->type;
790
+ }
791
+ public function setHeight($height) {
792
+ $this->height = $height;
793
+ }
794
+ public function getHeight() {
795
+ return $this->height;
796
+ }
797
+ }
798
+
799
+ class Google_ActivityObjectAttachmentsImage extends Google_Model {
800
+ public $url;
801
+ public $width;
802
+ public $type;
803
+ public $height;
804
+ public function setUrl($url) {
805
+ $this->url = $url;
806
+ }
807
+ public function getUrl() {
808
+ return $this->url;
809
+ }
810
+ public function setWidth($width) {
811
+ $this->width = $width;
812
+ }
813
+ public function getWidth() {
814
+ return $this->width;
815
+ }
816
+ public function setType($type) {
817
+ $this->type = $type;
818
+ }
819
+ public function getType() {
820
+ return $this->type;
821
+ }
822
+ public function setHeight($height) {
823
+ $this->height = $height;
824
+ }
825
+ public function getHeight() {
826
+ return $this->height;
827
+ }
828
+ }
829
+
830
+ class Google_ActivityObjectPlusoners extends Google_Model {
831
+ public $totalItems;
832
+ public $selfLink;
833
+ public function setTotalItems($totalItems) {
834
+ $this->totalItems = $totalItems;
835
+ }
836
+ public function getTotalItems() {
837
+ return $this->totalItems;
838
+ }
839
+ public function setSelfLink($selfLink) {
840
+ $this->selfLink = $selfLink;
841
+ }
842
+ public function getSelfLink() {
843
+ return $this->selfLink;
844
+ }
845
+ }
846
+
847
+ class Google_ActivityObjectReplies extends Google_Model {
848
+ public $totalItems;
849
+ public $selfLink;
850
+ public function setTotalItems($totalItems) {
851
+ $this->totalItems = $totalItems;
852
+ }
853
+ public function getTotalItems() {
854
+ return $this->totalItems;
855
+ }
856
+ public function setSelfLink($selfLink) {
857
+ $this->selfLink = $selfLink;
858
+ }
859
+ public function getSelfLink() {
860
+ return $this->selfLink;
861
+ }
862
+ }
863
+
864
+ class Google_ActivityObjectResharers extends Google_Model {
865
+ public $totalItems;
866
+ public $selfLink;
867
+ public function setTotalItems($totalItems) {
868
+ $this->totalItems = $totalItems;
869
+ }
870
+ public function getTotalItems() {
871
+ return $this->totalItems;
872
+ }
873
+ public function setSelfLink($selfLink) {
874
+ $this->selfLink = $selfLink;
875
+ }
876
+ public function getSelfLink() {
877
+ return $this->selfLink;
878
+ }
879
+ }
880
+
881
+ class Google_ActivityProvider extends Google_Model {
882
+ public $title;
883
+ public function setTitle($title) {
884
+ $this->title = $title;
885
+ }
886
+ public function getTitle() {
887
+ return $this->title;
888
+ }
889
+ }
890
+
891
+ class Google_Comment extends Google_Model {
892
+ protected $__inReplyToType = 'Google_CommentInReplyTo';
893
+ protected $__inReplyToDataType = 'array';
894
+ public $inReplyTo;
895
+ public $kind;
896
+ protected $__objectType = 'Google_CommentObject';
897
+ protected $__objectDataType = '';
898
+ public $object;
899
+ public $updated;
900
+ protected $__actorType = 'Google_CommentActor';
901
+ protected $__actorDataType = '';
902
+ public $actor;
903
+ public $verb;
904
+ public $etag;
905
+ public $published;
906
+ public $id;
907
+ public $selfLink;
908
+ public function setInReplyTo($inReplyTo) {
909
+ $this->assertIsArray($inReplyTo, 'Google_CommentInReplyTo', __METHOD__);
910
+ $this->inReplyTo = $inReplyTo;
911
+ }
912
+ public function getInReplyTo() {
913
+ return $this->inReplyTo;
914
+ }
915
+ public function setKind($kind) {
916
+ $this->kind = $kind;
917
+ }
918
+ public function getKind() {
919
+ return $this->kind;
920
+ }
921
+ public function setObject(Google_CommentObject $object) {
922
+ $this->object = $object;
923
+ }
924
+ public function getObject() {
925
+ return $this->object;
926
+ }
927
+ public function setUpdated($updated) {
928
+ $this->updated = $updated;
929
+ }
930
+ public function getUpdated() {
931
+ return $this->updated;
932
+ }
933
+ public function setActor(Google_CommentActor $actor) {
934
+ $this->actor = $actor;
935
+ }
936
+ public function getActor() {
937
+ return $this->actor;
938
+ }
939
+ public function setVerb($verb) {
940
+ $this->verb = $verb;
941
+ }
942
+ public function getVerb() {
943
+ return $this->verb;
944
+ }
945
+ public function setEtag($etag) {
946
+ $this->etag = $etag;
947
+ }
948
+ public function getEtag() {
949
+ return $this->etag;
950
+ }
951
+ public function setPublished($published) {
952
+ $this->published = $published;
953
+ }
954
+ public function getPublished() {
955
+ return $this->published;
956
+ }
957
+ public function setId($id) {
958
+ $this->id = $id;
959
+ }
960
+ public function getId() {
961
+ return $this->id;
962
+ }
963
+ public function setSelfLink($selfLink) {
964
+ $this->selfLink = $selfLink;
965
+ }
966
+ public function getSelfLink() {
967
+ return $this->selfLink;
968
+ }
969
+ }
970
+
971
+ class Google_CommentActor extends Google_Model {
972
+ public $url;
973
+ protected $__imageType = 'Google_CommentActorImage';
974
+ protected $__imageDataType = '';
975
+ public $image;
976
+ public $displayName;
977
+ public $id;
978
+ public function setUrl($url) {
979
+ $this->url = $url;
980
+ }
981
+ public function getUrl() {
982
+ return $this->url;
983
+ }
984
+ public function setImage(Google_CommentActorImage $image) {
985
+ $this->image = $image;
986
+ }
987
+ public function getImage() {
988
+ return $this->image;
989
+ }
990
+ public function setDisplayName($displayName) {
991
+ $this->displayName = $displayName;
992
+ }
993
+ public function getDisplayName() {
994
+ return $this->displayName;
995
+ }
996
+ public function setId($id) {
997
+ $this->id = $id;
998
+ }
999
+ public function getId() {
1000
+ return $this->id;
1001
+ }
1002
+ }
1003
+
1004
+ class Google_CommentActorImage extends Google_Model {
1005
+ public $url;
1006
+ public function setUrl($url) {
1007
+ $this->url = $url;
1008
+ }
1009
+ public function getUrl() {
1010
+ return $this->url;
1011
+ }
1012
+ }
1013
+
1014
+ class Google_CommentFeed extends Google_Model {
1015
+ public $nextPageToken;
1016
+ public $kind;
1017
+ public $title;
1018
+ protected $__itemsType = 'Google_Comment';
1019
+ protected $__itemsDataType = 'array';
1020
+ public $items;
1021
+ public $updated;
1022
+ public $nextLink;
1023
+ public $etag;
1024
+ public $id;
1025
+ public function setNextPageToken($nextPageToken) {
1026
+ $this->nextPageToken = $nextPageToken;
1027
+ }
1028
+ public function getNextPageToken() {
1029
+ return $this->nextPageToken;
1030
+ }
1031
+ public function setKind($kind) {
1032
+ $this->kind = $kind;
1033
+ }
1034
+ public function getKind() {
1035
+ return $this->kind;
1036
+ }
1037
+ public function setTitle($title) {
1038
+ $this->title = $title;
1039
+ }
1040
+ public function getTitle() {
1041
+ return $this->title;
1042
+ }
1043
+ public function setItems($items) {
1044
+ $this->assertIsArray($items, 'Google_Comment', __METHOD__);
1045
+ $this->items = $items;
1046
+ }
1047
+ public function getItems() {
1048
+ return $this->items;
1049
+ }
1050
+ public function setUpdated($updated) {
1051
+ $this->updated = $updated;
1052
+ }
1053
+ public function getUpdated() {
1054
+ return $this->updated;
1055
+ }
1056
+ public function setNextLink($nextLink) {
1057
+ $this->nextLink = $nextLink;
1058
+ }
1059
+ public function getNextLink() {
1060
+ return $this->nextLink;
1061
+ }
1062
+ public function setEtag($etag) {
1063
+ $this->etag = $etag;
1064
+ }
1065
+ public function getEtag() {
1066
+ return $this->etag;
1067
+ }
1068
+ public function setId($id) {
1069
+ $this->id = $id;
1070
+ }
1071
+ public function getId() {
1072
+ return $this->id;
1073
+ }
1074
+ }
1075
+
1076
+ class Google_CommentInReplyTo extends Google_Model {
1077
+ public $url;
1078
+ public $id;
1079
+ public function setUrl($url) {
1080
+ $this->url = $url;
1081
+ }
1082
+ public function getUrl() {
1083
+ return $this->url;
1084
+ }
1085
+ public function setId($id) {
1086
+ $this->id = $id;
1087
+ }
1088
+ public function getId() {
1089
+ return $this->id;
1090
+ }
1091
+ }
1092
+
1093
+ class Google_CommentObject extends Google_Model {
1094
+ public $content;
1095
+ public $objectType;
1096
+ public function setContent($content) {
1097
+ $this->content = $content;
1098
+ }
1099
+ public function getContent() {
1100
+ return $this->content;
1101
+ }
1102
+ public function setObjectType($objectType) {
1103
+ $this->objectType = $objectType;
1104
+ }
1105
+ public function getObjectType() {
1106
+ return $this->objectType;
1107
+ }
1108
+ }
1109
+
1110
+ class Google_PeopleFeed extends Google_Model {
1111
+ public $nextPageToken;
1112
+ public $kind;
1113
+ public $title;
1114
+ protected $__itemsType = 'Google_Person';
1115
+ protected $__itemsDataType = 'array';
1116
+ public $items;
1117
+ public $etag;
1118
+ public $selfLink;
1119
+ public function setNextPageToken($nextPageToken) {
1120
+ $this->nextPageToken = $nextPageToken;
1121
+ }
1122
+ public function getNextPageToken() {
1123
+ return $this->nextPageToken;
1124
+ }
1125
+ public function setKind($kind) {
1126
+ $this->kind = $kind;
1127
+ }
1128
+ public function getKind() {
1129
+ return $this->kind;
1130
+ }
1131
+ public function setTitle($title) {
1132
+ $this->title = $title;
1133
+ }
1134
+ public function getTitle() {
1135
+ return $this->title;
1136
+ }
1137
+ public function setItems($items) {
1138
+ $this->assertIsArray($items, 'Google_Person', __METHOD__);
1139
+ $this->items = $items;
1140
+ }
1141
+ public function getItems() {
1142
+ return $this->items;
1143
+ }
1144
+ public function setEtag($etag) {
1145
+ $this->etag = $etag;
1146
+ }
1147
+ public function getEtag() {
1148
+ return $this->etag;
1149
+ }
1150
+ public function setSelfLink($selfLink) {
1151
+ $this->selfLink = $selfLink;
1152
+ }
1153
+ public function getSelfLink() {
1154
+ return $this->selfLink;
1155
+ }
1156
+ }
1157
+
1158
+ class Google_Person extends Google_Model {
1159
+ public $relationshipStatus;
1160
+ protected $__organizationsType = 'Google_PersonOrganizations';
1161
+ protected $__organizationsDataType = 'array';
1162
+ public $organizations;
1163
+ public $kind;
1164
+ public $displayName;
1165
+ protected $__nameType = 'Google_PersonName';
1166
+ protected $__nameDataType = '';
1167
+ public $name;
1168
+ public $url;
1169
+ public $gender;
1170
+ public $aboutMe;
1171
+ public $tagline;
1172
+ protected $__urlsType = 'Google_PersonUrls';
1173
+ protected $__urlsDataType = 'array';
1174
+ public $urls;
1175
+ protected $__placesLivedType = 'Google_PersonPlacesLived';
1176
+ protected $__placesLivedDataType = 'array';
1177
+ public $placesLived;
1178
+ protected $__emailsType = 'Google_PersonEmails';
1179
+ protected $__emailsDataType = 'array';
1180
+ public $emails;
1181
+ public $nickname;
1182
+ public $birthday;
1183
+ public $etag;
1184
+ protected $__imageType = 'Google_PersonImage';
1185
+ protected $__imageDataType = '';
1186
+ public $image;
1187
+ public $hasApp;
1188
+ public $id;
1189
+ public $languagesSpoken;
1190
+ public $currentLocation;
1191
+ public $objectType;
1192
+ public function setRelationshipStatus($relationshipStatus) {
1193
+ $this->relationshipStatus = $relationshipStatus;
1194
+ }
1195
+ public function getRelationshipStatus() {
1196
+ return $this->relationshipStatus;
1197
+ }
1198
+ public function setOrganizations($organizations) {
1199
+ $this->assertIsArray($organizations, 'Google_PersonOrganizations', __METHOD__);
1200
+ $this->organizations = $organizations;
1201
+ }
1202
+ public function getOrganizations() {
1203
+ return $this->organizations;
1204
+ }
1205
+ public function setKind($kind) {
1206
+ $this->kind = $kind;
1207
+ }
1208
+ public function getKind() {
1209
+ return $this->kind;
1210
+ }
1211
+ public function setDisplayName($displayName) {
1212
+ $this->displayName = $displayName;
1213
+ }
1214
+ public function getDisplayName() {
1215
+ return $this->displayName;
1216
+ }
1217
+ public function setName(Google_PersonName $name) {
1218
+ $this->name = $name;
1219
+ }
1220
+ public function getName() {
1221
+ return $this->name;
1222
+ }
1223
+ public function setUrl($url) {
1224
+ $this->url = $url;
1225
+ }
1226
+ public function getUrl() {
1227
+ return $this->url;
1228
+ }
1229
+ public function setGender($gender) {
1230
+ $this->gender = $gender;
1231
+ }
1232
+ public function getGender() {
1233
+ return $this->gender;
1234
+ }
1235
+ public function setAboutMe($aboutMe) {
1236
+ $this->aboutMe = $aboutMe;
1237
+ }
1238
+ public function getAboutMe() {
1239
+ return $this->aboutMe;
1240
+ }
1241
+ public function setTagline($tagline) {
1242
+ $this->tagline = $tagline;
1243
+ }
1244
+ public function getTagline() {
1245
+ return $this->tagline;
1246
+ }
1247
+ public function setUrls($urls) {
1248
+ $this->assertIsArray($urls, 'Google_PersonUrls', __METHOD__);
1249
+ $this->urls = $urls;
1250
+ }
1251
+ public function getUrls() {
1252
+ return $this->urls;
1253
+ }
1254
+ public function setPlacesLived($placesLived) {
1255
+ $this->assertIsArray($placesLived, 'Google_PersonPlacesLived', __METHOD__);
1256
+ $this->placesLived = $placesLived;
1257
+ }
1258
+ public function getPlacesLived() {
1259
+ return $this->placesLived;
1260
+ }
1261
+ public function setEmails($emails) {
1262
+ $this->assertIsArray($emails, 'Google_PersonEmails', __METHOD__);
1263
+ $this->emails = $emails;
1264
+ }
1265
+ public function getEmails() {
1266
+ return $this->emails;
1267
+ }
1268
+ public function setNickname($nickname) {
1269
+ $this->nickname = $nickname;
1270
+ }
1271
+ public function getNickname() {
1272
+ return $this->nickname;
1273
+ }
1274
+ public function setBirthday($birthday) {
1275
+ $this->birthday = $birthday;
1276
+ }
1277
+ public function getBirthday() {
1278
+ return $this->birthday;
1279
+ }
1280
+ public function setEtag($etag) {
1281
+ $this->etag = $etag;
1282
+ }
1283
+ public function getEtag() {
1284
+ return $this->etag;
1285
+ }
1286
+ public function setImage(Google_PersonImage $image) {
1287
+ $this->image = $image;
1288
+ }
1289
+ public function getImage() {
1290
+ return $this->image;
1291
+ }
1292
+ public function setHasApp($hasApp) {
1293
+ $this->hasApp = $hasApp;
1294
+ }
1295
+ public function getHasApp() {
1296
+ return $this->hasApp;
1297
+ }
1298
+ public function setId($id) {
1299
+ $this->id = $id;
1300
+ }
1301
+ public function getId() {
1302
+ return $this->id;
1303
+ }
1304
+ public function setLanguagesSpoken($languagesSpoken) {
1305
+ $this->languagesSpoken = $languagesSpoken;
1306
+ }
1307
+ public function getLanguagesSpoken() {
1308
+ return $this->languagesSpoken;
1309
+ }
1310
+ public function setCurrentLocation($currentLocation) {
1311
+ $this->currentLocation = $currentLocation;
1312
+ }
1313
+ public function getCurrentLocation() {
1314
+ return $this->currentLocation;
1315
+ }
1316
+ public function setObjectType($objectType) {
1317
+ $this->objectType = $objectType;
1318
+ }
1319
+ public function getObjectType() {
1320
+ return $this->objectType;
1321
+ }
1322
+ }
1323
+
1324
+ class Google_PersonEmails extends Google_Model {
1325
+ public $type;
1326
+ public $primary;
1327
+ public $value;
1328
+ public function setType($type) {
1329
+ $this->type = $type;
1330
+ }
1331
+ public function getType() {
1332
+ return $this->type;
1333
+ }
1334
+ public function setPrimary($primary) {
1335
+ $this->primary = $primary;
1336
+ }
1337
+ public function getPrimary() {
1338
+ return $this->primary;
1339
+ }
1340
+ public function setValue($value) {
1341
+ $this->value = $value;
1342
+ }
1343
+ public function getValue() {
1344
+ return $this->value;
1345
+ }
1346
+ }
1347
+
1348
+ class Google_PersonImage extends Google_Model {
1349
+ public $url;
1350
+ public function setUrl($url) {
1351
+ $this->url = $url;
1352
+ }
1353
+ public function getUrl() {
1354
+ return $this->url;
1355
+ }
1356
+ }
1357
+
1358
+ class Google_PersonName extends Google_Model {
1359
+ public $honorificPrefix;
1360
+ public $middleName;
1361
+ public $familyName;
1362
+ public $formatted;
1363
+ public $givenName;
1364
+ public $honorificSuffix;
1365
+ public function setHonorificPrefix($honorificPrefix) {
1366
+ $this->honorificPrefix = $honorificPrefix;
1367
+ }
1368
+ public function getHonorificPrefix() {
1369
+ return $this->honorificPrefix;
1370
+ }
1371
+ public function setMiddleName($middleName) {
1372
+ $this->middleName = $middleName;
1373
+ }
1374
+ public function getMiddleName() {
1375
+ return $this->middleName;
1376
+ }
1377
+ public function setFamilyName($familyName) {
1378
+ $this->familyName = $familyName;
1379
+ }
1380
+ public function getFamilyName() {
1381
+ return $this->familyName;
1382
+ }
1383
+ public function setFormatted($formatted) {
1384
+ $this->formatted = $formatted;
1385
+ }
1386
+ public function getFormatted() {
1387
+ return $this->formatted;
1388
+ }
1389
+ public function setGivenName($givenName) {
1390
+ $this->givenName = $givenName;
1391
+ }
1392
+ public function getGivenName() {
1393
+ return $this->givenName;
1394
+ }
1395
+ public function setHonorificSuffix($honorificSuffix) {
1396
+ $this->honorificSuffix = $honorificSuffix;
1397
+ }
1398
+ public function getHonorificSuffix() {
1399
+ return $this->honorificSuffix;
1400
+ }
1401
+ }
1402
+
1403
+ class Google_PersonOrganizations extends Google_Model {
1404
+ public $startDate;
1405
+ public $endDate;
1406
+ public $description;
1407
+ public $title;
1408
+ public $primary;
1409
+ public $location;
1410
+ public $department;
1411
+ public $type;
1412
+ public $name;
1413
+ public function setStartDate($startDate) {
1414
+ $this->startDate = $startDate;
1415
+ }
1416
+ public function getStartDate() {
1417
+ return $this->startDate;
1418
+ }
1419
+ public function setEndDate($endDate) {
1420
+ $this->endDate = $endDate;
1421
+ }
1422
+ public function getEndDate() {
1423
+ return $this->endDate;
1424
+ }
1425
+ public function setDescription($description) {
1426
+ $this->description = $description;
1427
+ }
1428
+ public function getDescription() {
1429
+ return $this->description;
1430
+ }
1431
+ public function setTitle($title) {
1432
+ $this->title = $title;
1433
+ }
1434
+ public function getTitle() {
1435
+ return $this->title;
1436
+ }
1437
+ public function setPrimary($primary) {
1438
+ $this->primary = $primary;
1439
+ }
1440
+ public function getPrimary() {
1441
+ return $this->primary;
1442
+ }
1443
+ public function setLocation($location) {
1444
+ $this->location = $location;
1445
+ }
1446
+ public function getLocation() {
1447
+ return $this->location;
1448
+ }
1449
+ public function setDepartment($department) {
1450
+ $this->department = $department;
1451
+ }
1452
+ public function getDepartment() {
1453
+ return $this->department;
1454
+ }
1455
+ public function setType($type) {
1456
+ $this->type = $type;
1457
+ }
1458
+ public function getType() {
1459
+ return $this->type;
1460
+ }
1461
+ public function setName($name) {
1462
+ $this->name = $name;
1463
+ }
1464
+ public function getName() {
1465
+ return $this->name;
1466
+ }
1467
+ }
1468
+
1469
+ class Google_PersonPlacesLived extends Google_Model {
1470
+ public $primary;
1471
+ public $value;
1472
+ public function setPrimary($primary) {
1473
+ $this->primary = $primary;
1474
+ }
1475
+ public function getPrimary() {
1476
+ return $this->primary;
1477
+ }
1478
+ public function setValue($value) {
1479
+ $this->value = $value;
1480
+ }
1481
+ public function getValue() {
1482
+ return $this->value;
1483
+ }
1484
+ }
1485
+
1486
+ class Google_PersonUrls extends Google_Model {
1487
+ public $type;
1488
+ public $primary;
1489
+ public $value;
1490
+ public function setType($type) {
1491
+ $this->type = $type;
1492
+ }
1493
+ public function getType() {
1494
+ return $this->type;
1495
+ }
1496
+ public function setPrimary($primary) {
1497
+ $this->primary = $primary;
1498
+ }
1499
+ public function getPrimary() {
1500
+ return $this->primary;
1501
+ }
1502
+ public function setValue($value) {
1503
+ $this->value = $value;
1504
+ }
1505
+ public function getValue() {
1506
+ return $this->value;
1507
+ }
1508
+ }
1509
+
1510
+ class Google_PlusAclentryResource extends Google_Model {
1511
+ public $type;
1512
+ public $id;
1513
+ public function setType($type) {
1514
+ $this->type = $type;
1515
+ }
1516
+ public function getType() {
1517
+ return $this->type;
1518
+ }
1519
+ public function setId($id) {
1520
+ $this->id = $id;
1521
+ }
1522
+ public function getId() {
1523
+ return $this->id;
1524
+ }
1525
+ }
google-api-php-client/src/contrib/Google_PredictionService.php ADDED
@@ -0,0 +1,429 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "trainedmodels" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $predictionService = new Google_PredictionService(...);
22
+ * $trainedmodels = $predictionService->trainedmodels;
23
+ * </code>
24
+ */
25
+ class Google_TrainedmodelsServiceResource extends Google_ServiceResource {
26
+
27
+
28
+ /**
29
+ * Submit model id and request a prediction (trainedmodels.predict)
30
+ *
31
+ * @param string $id The unique name for the predictive model.
32
+ * @param Google_Input $postBody
33
+ * @param array $optParams Optional parameters.
34
+ * @return Google_Output
35
+ */
36
+ public function predict($id, Google_Input $postBody, $optParams = array()) {
37
+ $params = array('id' => $id, 'postBody' => $postBody);
38
+ $params = array_merge($params, $optParams);
39
+ $data = $this->__call('predict', array($params));
40
+ if ($this->useObjects()) {
41
+ return new Google_Output($data);
42
+ } else {
43
+ return $data;
44
+ }
45
+ }
46
+ /**
47
+