{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/304","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/304/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/304/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/304","id":59404693,"number":304,"title":"Inner classes for unnamed objects in generated Java library","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.4.0","name":"Milestone-CodeGenVersion1.4.0","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-01T16:44:07Z","updated_at":"2015-03-01T16:44:09Z","closed_at":"2015-03-01T16:44:07Z","body":"```\nCurrently we generate top-level classes like this:\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/apis/discovery/com/googl\ne/api/services/discovery/model/RestDescriptionAuthOauth2Scopes.html\n\nI am not happy with two aspects of this:\n\n1. Class name is too long.  It should be simpler.\n\n2. It clutters up the top-level class names list: \nhttp://javadoc.google-api-java-client.googlecode.com/hg/apis/discovery/com/googl\ne/api/services/discovery/model/package-frame.html\n\nInstead, if we generated these as inner classes, it would solve both of these \nissues.  So it should instead generate something like this:\n\npublic class RestDescription {\n public static class Auth {\n   public static class Oauth2 {\n     public static class Scopes {\n...\n\nNote that this way I can declare the import like this:\n\nimport \ncom.google.api.services.discovery.model.RestDescription.Auth.Oauth2.Scopes;\n\nand then refer to it simply as Scopes in my code.\n\n\n```\n\nOriginal issue reported on code.google.com by `rmis...@google.com` on 27 Sep 2011 at 3:46"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76610026","html_url":"https://github.com/chrsmith/google-api-java-client/issues/304#issuecomment-76610026","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/304","id":76610026,"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-01T16:44:08Z","updated_at":"2015-03-01T16:44:08Z","body":"\n\nOriginal comment by `yan...@google.com` on 11 Nov 2011 at 10:02\n* Changed state: **Accepted**"}}