{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/483","labels_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/483/comments","events_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/483/events","html_url":"https://github.com/chrsmithdemos/google-api-java-client/issues/483","id":59552412,"number":483,"title":"Override setFields","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Component-Google-APIs","name":"Component-Google-APIs","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Milestone-CodeGenVersion1.7.0","name":"Milestone-CodeGenVersion1.7.0","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T21:18:56Z","updated_at":"2015-03-02T21:18:57Z","closed_at":"2015-03-02T21:18:57Z","body":"```\nExternal references, such as a standards document, or specification?\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/apis/plus/v1/com/google/\napi/services/plus/Plus.Activities.List.html\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/apis/plus/v1/com/google/\napi/services/plus/PlusRequest.html#setFields(java.lang.String)\n\nhttp://code.google.com/p/google-api-java-client/source/browse/plus-cmdline-sampl\ne/src/main/java/com/google/api/services/samples/plus/cmdline/PlusSample.java?rep\no=samples\n\nJava environments (e.g. Java 6, Android 2.3, App Engine, or All)?\n\nAll\n\nPlease describe the feature requested.\n\nTake a look at this snippet of sample code from plus-cmdline-sample:\n\n    Plus.Activities.List listActivities = plus.activities().list(\"me\", \"public\");\n    // Pro tip: Use partial responses to improve response time considerably\nlistActivities.setFields(\"nextPageToken,items(id,url,object/content)\");\n    ActivityFeed feed = listActivities.execute();\n\nNow, you may wonder why the setFields is on its own line.  That's because \nsetFields is declared in PlusRequest, not Plus.Activities.List, so it returns a \ntype of PlusRequest.  Therefore, you cannot call execute() on it.\n\nInstead, I'd expect Plus.Activities.List to override setFields and return the \ntype Plus.Activities.List (itself).  Then, I'd be able to do:\n\n\n    Plus.Activities.List listActivities = plus.activities().list(\"me\", \"public\")\n        .setFields(\"nextPageToken,items(id,url,object/content)\")\n        .execute();\n\n```\n\nOriginal issue reported on code.google.com by `yan...@google.com` on 8 May 2012 at 4:00"},"comment":{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/comments/76826305","html_url":"https://github.com/chrsmithdemos/google-api-java-client/issues/483#issuecomment-76826305","issue_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/483","id":76826305,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T21:18:57Z","updated_at":"2015-03-02T21:18:57Z","body":"\n\nOriginal comment by `rmis...@google.com` on 16 May 2012 at 1:24\n* Added labels: **Milestone-CodeGenVersion1.7.0**\n* Removed labels: **Milestone-CodeGenVersion1.6.0**"}}