{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments/112093935","pull_request_review_id":33382671,"id":112093935,"diff_hunk":"@@ -48,52 +49,91 @@\n   /**\n    * The types of IAM identities.\n    */\n-  public enum Type {\n+  public static final class Type extends StringEnumValue {\n+    private static final long serialVersionUID = 3809891273596003916L;\n+\n+    private Type(String constant) {\n+      super(constant);\n+    }\n+\n+    private static final ApiFunction<String, Type> CONSTRUCTOR =\n+        new ApiFunction<String, Type>() {\n+          @Override\n+          public Type apply(String constant) {\n+            return new Type(constant);\n+          }\n+        };\n+\n+    private static final StringEnumType<Type> type = new StringEnumType(","path":"google-cloud-core/src/main/java/com/google/cloud/Identity.java","position":28,"original_position":28,"commit_id":"f6fffdacd0f2ad72a8442caf1a5b23a600213fb3","original_commit_id":"f6fffdacd0f2ad72a8442caf1a5b23a600213fb3","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.](https://www.codacy.com/app/mziccard/google-cloud-java/pullRequest?prid=613148)","created_at":"2017-04-19T00:24:19Z","updated_at":"2017-04-19T00:24:19Z","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1940#discussion_r112093935","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments/112093935"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1940#discussion_r112093935"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940","id":116443488,"html_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1940","diff_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1940.diff","patch_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1940.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1940","number":1940,"state":"open","locked":false,"title":"Converting all Storage deserialized enum types to StringEnumValue","user":{"login":"garrettjonesgoogle","id":13341017,"avatar_url":"https://avatars1.githubusercontent.com/u/13341017?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettjonesgoogle","html_url":"https://github.com/garrettjonesgoogle","followers_url":"https://api.github.com/users/garrettjonesgoogle/followers","following_url":"https://api.github.com/users/garrettjonesgoogle/following{/other_user}","gists_url":"https://api.github.com/users/garrettjonesgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettjonesgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettjonesgoogle/subscriptions","organizations_url":"https://api.github.com/users/garrettjonesgoogle/orgs","repos_url":"https://api.github.com/users/garrettjonesgoogle/repos","events_url":"https://api.github.com/users/garrettjonesgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/garrettjonesgoogle/received_events","type":"User","site_admin":false},"body":"Converting everything Storage-related where X.valueOf is called on it during proto deserialization. \r\n\r\nUpdates https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1832 .","created_at":"2017-04-18T23:46:01Z","updated_at":"2017-04-19T00:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c66753626d662417abd51e4b5c0049397eb59b37","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1940/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/statuses/f6fffdacd0f2ad72a8442caf1a5b23a600213fb3","head":{"label":"garrettjonesgoogle:alt","ref":"alt","sha":"f6fffdacd0f2ad72a8442caf1a5b23a600213fb3","user":{"login":"garrettjonesgoogle","id":13341017,"avatar_url":"https://avatars1.githubusercontent.com/u/13341017?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettjonesgoogle","html_url":"https://github.com/garrettjonesgoogle","followers_url":"https://api.github.com/users/garrettjonesgoogle/followers","following_url":"https://api.github.com/users/garrettjonesgoogle/following{/other_user}","gists_url":"https://api.github.com/users/garrettjonesgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettjonesgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettjonesgoogle/subscriptions","organizations_url":"https://api.github.com/users/garrettjonesgoogle/orgs","repos_url":"https://api.github.com/users/garrettjonesgoogle/repos","events_url":"https://api.github.com/users/garrettjonesgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/garrettjonesgoogle/received_events","type":"User","site_admin":false},"repo":{"id":41181033,"name":"gcloud-java","full_name":"garrettjonesgoogle/gcloud-java","owner":{"login":"garrettjonesgoogle","id":13341017,"avatar_url":"https://avatars1.githubusercontent.com/u/13341017?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettjonesgoogle","html_url":"https://github.com/garrettjonesgoogle","followers_url":"https://api.github.com/users/garrettjonesgoogle/followers","following_url":"https://api.github.com/users/garrettjonesgoogle/following{/other_user}","gists_url":"https://api.github.com/users/garrettjonesgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettjonesgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettjonesgoogle/subscriptions","organizations_url":"https://api.github.com/users/garrettjonesgoogle/orgs","repos_url":"https://api.github.com/users/garrettjonesgoogle/repos","events_url":"https://api.github.com/users/garrettjonesgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/garrettjonesgoogle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/garrettjonesgoogle/gcloud-java","description":"Google Cloud Client Library for Java","fork":true,"url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java","forks_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/forks","keys_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/teams","hooks_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/events","assignees_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/tags","blobs_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/subscription","commits_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/merges","archive_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/downloads","issues_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/garrettjonesgoogle/gcloud-java/deployments","created_at":"2015-08-21T23:00:59Z","updated_at":"2016-02-23T23:27:33Z","pushed_at":"2017-04-19T00:18:50Z","git_url":"git://github.com/garrettjonesgoogle/gcloud-java.git","ssh_url":"git@github.com:garrettjonesgoogle/gcloud-java.git","clone_url":"https://github.com/garrettjonesgoogle/gcloud-java.git","svn_url":"https://github.com/garrettjonesgoogle/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/site/0.0.6/","size":24231,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"b355f4db156d70107d0e122e2ee7d774fd660600","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars3.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":26181278,"name":"google-cloud-java","full_name":"GoogleCloudPlatform/google-cloud-java","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars3.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/google-cloud-java","description":"Google Cloud Client Library for Java","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/deployments","created_at":"2014-11-04T17:57:16Z","updated_at":"2017-04-18T16:54:05Z","pushed_at":"2017-04-19T00:18:51Z","git_url":"git://github.com/GoogleCloudPlatform/google-cloud-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/google-cloud-java.git","clone_url":"https://github.com/GoogleCloudPlatform/google-cloud-java.git","svn_url":"https://github.com/GoogleCloudPlatform/google-cloud-java","homepage":"http://googlecloudplatform.github.io/google-cloud-java/","size":133710,"stargazers_count":298,"watchers_count":298,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":170,"mirror_url":null,"open_issues_count":218,"forks":170,"open_issues":218,"watchers":298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1940"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1940"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1940/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1940/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/statuses/f6fffdacd0f2ad72a8442caf1a5b23a600213fb3"}}}}
{"actor":{"display_login":"codacy-bot"}}