{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/296","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/296/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/296/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/296","id":59532524,"number":296,"title":"ApiClient.setFields() doesn't do anything","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/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Component-Google-APIs","name":"Component-Google-APIs","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Milestone-CodeGenVersion1.2.2","name":"Milestone-CodeGenVersion1.2.2","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-Critical","name":"Priority-Critical","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-02T19:22:20Z","updated_at":"2015-03-02T19:22:22Z","closed_at":"2015-03-02T19:22:20Z","body":"```\nVersion of google-api-java-client (e.g. 1.5.0-beta)?\n\nCode generator version 1.2.2-beta\n\nJava environment (e.g. Java 6, Android 2.3, App Engine)?\n\nAll\n\nDescribe the problem.\n\nThis code snippet:\n\n    plus.setFields(\"id\");\n    Person profile = plus.people().get(\"me\").execute();\n    System.out.println(\"ID: \" + profile.getId());\n    System.out.println(\"Name: \" + profile.getDisplayName());\n    System.out.println(\"Image Url: \" + profile.getImage().getUrl());\n    System.out.println(\"Profile Url: \" + profile.getUrl());\n\nPrints:\n\nID: 112550920411899420633\nName: I/O 2010 Buzz Demo Account\nImage URL: http://www.google.com/friendconnect/scs/images/NoPictureDark65.jpg\nProfile URL: https://profiles.google.com/112550920411899420633\n\nHow would you expect it to be fixed?\n\nThe problem is that Plus.setFields() doesn't actually set the fields.  \nUnfortunately we need to call RemoteRequest.setFields whenever we create a new \nremote request.  We will design this better with the next release of the \nservice-specific generator.\n\nSee:\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/apis/plus/v1/com/google/\napi/services/plus/Plus.html#setFields(java.lang.String)\n\nThis reported for the Google+ API here:\n\nhttp://code.google.com/p/google-plus-platform/issues/detail?id=6\n```\n\nOriginal issue reported on code.google.com by `yan...@google.com` on 20 Sep 2011 at 1:21"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76789592","html_url":"https://github.com/chrsmith/google-api-java-client/issues/296#issuecomment-76789592","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/296","id":76789592,"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-02T19:22:22Z","updated_at":"2015-03-02T19:22:22Z","body":"```\nThe referenced issue is:\nhttp://code.google.com/p/google-plus-platform/issues/detail?id=51\n\nBut as stated in that issue report, ApiClient.setFields() is doing its intended \nbehavior.  The issue is that the server is apparently not returning the correct \nresponse.\n```\n\nOriginal comment by `yan...@google.com` on 3 Oct 2011 at 12:30"}}