{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/toolkit/pulls/comments/127493911","pull_request_review_id":50087386,"id":127493911,"diff_hunk":"@@ -32,11 +32,46 @@ public String getFieldVarName(String fieldName) {\n \n   /** Returns the resource getter method name for a resource field. */\n   public String getResourceGetterName(String fieldName) {\n-    return publicMethodName(Name.anyCamel(\"get\", fieldName));\n+    Name name;\n+    if (fieldName.contains(\"_\")) {\n+      name = Name.anyCamel(fieldName.split(\"_\"));","path":"src/main/java/com/google/api/codegen/discogapic/transformer/DiscoGapicNamer.java","position":7,"original_position":7,"commit_id":"589d97d5c5daf5e42effafdc66d674dc8c97ed23","original_commit_id":"589d97d5c5daf5e42effafdc66d674dc8c97ed23","user":{"login":"garrettjonesgoogle","id":13341017,"avatar_url":"https://avatars6.githubusercontent.com/u/13341017?v=4","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":"Interesting, why is this necessary?","created_at":"2017-07-14T16:19:33Z","updated_at":"2017-07-14T16:45:48Z","html_url":"https://github.com/googleapis/toolkit/pull/1392#discussion_r127493911","pull_request_url":"https://api.github.com/repos/googleapis/toolkit/pulls/1392","_links":{"self":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/comments/127493911"},"html":{"href":"https://github.com/googleapis/toolkit/pull/1392#discussion_r127493911"},"pull_request":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/1392"}}},"pull_request":{"url":"https://api.github.com/repos/googleapis/toolkit/pulls/1392","id":127856691,"html_url":"https://github.com/googleapis/toolkit/pull/1392","diff_url":"https://github.com/googleapis/toolkit/pull/1392.diff","patch_url":"https://github.com/googleapis/toolkit/pull/1392.patch","issue_url":"https://api.github.com/repos/googleapis/toolkit/issues/1392","number":1392,"state":"open","locked":false,"title":"Generate request classes","user":{"login":"andreamlin","id":4016818,"avatar_url":"https://avatars6.githubusercontent.com/u/4016818?v=4","gravatar_id":"","url":"https://api.github.com/users/andreamlin","html_url":"https://github.com/andreamlin","followers_url":"https://api.github.com/users/andreamlin/followers","following_url":"https://api.github.com/users/andreamlin/following{/other_user}","gists_url":"https://api.github.com/users/andreamlin/gists{/gist_id}","starred_url":"https://api.github.com/users/andreamlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreamlin/subscriptions","organizations_url":"https://api.github.com/users/andreamlin/orgs","repos_url":"https://api.github.com/users/andreamlin/repos","events_url":"https://api.github.com/users/andreamlin/events{/privacy}","received_events_url":"https://api.github.com/users/andreamlin/received_events","type":"User","site_admin":false},"body":"This PR generates Request objects analogous to protobuf RPC request objects.","created_at":"2017-06-28T07:17:16Z","updated_at":"2017-07-14T16:45:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1af53bcb23709601601547b01cfc86b2e18d617","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/toolkit/pulls/1392/commits","review_comments_url":"https://api.github.com/repos/googleapis/toolkit/pulls/1392/comments","review_comment_url":"https://api.github.com/repos/googleapis/toolkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/toolkit/issues/1392/comments","statuses_url":"https://api.github.com/repos/googleapis/toolkit/statuses/589d97d5c5daf5e42effafdc66d674dc8c97ed23","head":{"label":"andreamlin:methods_under_resources","ref":"methods_under_resources","sha":"589d97d5c5daf5e42effafdc66d674dc8c97ed23","user":{"login":"andreamlin","id":4016818,"avatar_url":"https://avatars6.githubusercontent.com/u/4016818?v=4","gravatar_id":"","url":"https://api.github.com/users/andreamlin","html_url":"https://github.com/andreamlin","followers_url":"https://api.github.com/users/andreamlin/followers","following_url":"https://api.github.com/users/andreamlin/following{/other_user}","gists_url":"https://api.github.com/users/andreamlin/gists{/gist_id}","starred_url":"https://api.github.com/users/andreamlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreamlin/subscriptions","organizations_url":"https://api.github.com/users/andreamlin/orgs","repos_url":"https://api.github.com/users/andreamlin/repos","events_url":"https://api.github.com/users/andreamlin/events{/privacy}","received_events_url":"https://api.github.com/users/andreamlin/received_events","type":"User","site_admin":false},"repo":{"id":90909131,"name":"toolkit","full_name":"andreamlin/toolkit","owner":{"login":"andreamlin","id":4016818,"avatar_url":"https://avatars6.githubusercontent.com/u/4016818?v=4","gravatar_id":"","url":"https://api.github.com/users/andreamlin","html_url":"https://github.com/andreamlin","followers_url":"https://api.github.com/users/andreamlin/followers","following_url":"https://api.github.com/users/andreamlin/following{/other_user}","gists_url":"https://api.github.com/users/andreamlin/gists{/gist_id}","starred_url":"https://api.github.com/users/andreamlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreamlin/subscriptions","organizations_url":"https://api.github.com/users/andreamlin/orgs","repos_url":"https://api.github.com/users/andreamlin/repos","events_url":"https://api.github.com/users/andreamlin/events{/privacy}","received_events_url":"https://api.github.com/users/andreamlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreamlin/toolkit","description":null,"fork":true,"url":"https://api.github.com/repos/andreamlin/toolkit","forks_url":"https://api.github.com/repos/andreamlin/toolkit/forks","keys_url":"https://api.github.com/repos/andreamlin/toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreamlin/toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreamlin/toolkit/teams","hooks_url":"https://api.github.com/repos/andreamlin/toolkit/hooks","issue_events_url":"https://api.github.com/repos/andreamlin/toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/andreamlin/toolkit/events","assignees_url":"https://api.github.com/repos/andreamlin/toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/andreamlin/toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/andreamlin/toolkit/tags","blobs_url":"https://api.github.com/repos/andreamlin/toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreamlin/toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreamlin/toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreamlin/toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreamlin/toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/andreamlin/toolkit/languages","stargazers_url":"https://api.github.com/repos/andreamlin/toolkit/stargazers","contributors_url":"https://api.github.com/repos/andreamlin/toolkit/contributors","subscribers_url":"https://api.github.com/repos/andreamlin/toolkit/subscribers","subscription_url":"https://api.github.com/repos/andreamlin/toolkit/subscription","commits_url":"https://api.github.com/repos/andreamlin/toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreamlin/toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreamlin/toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreamlin/toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreamlin/toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/andreamlin/toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreamlin/toolkit/merges","archive_url":"https://api.github.com/repos/andreamlin/toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreamlin/toolkit/downloads","issues_url":"https://api.github.com/repos/andreamlin/toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/andreamlin/toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/andreamlin/toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/andreamlin/toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreamlin/toolkit/labels{/name}","releases_url":"https://api.github.com/repos/andreamlin/toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/andreamlin/toolkit/deployments","created_at":"2017-05-10T21:16:54Z","updated_at":"2017-05-10T21:16:59Z","pushed_at":"2017-07-14T01:06:07Z","git_url":"git://github.com/andreamlin/toolkit.git","ssh_url":"git@github.com:andreamlin/toolkit.git","clone_url":"https://github.com/andreamlin/toolkit.git","svn_url":"https://github.com/andreamlin/toolkit","homepage":null,"size":16163,"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":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"googleapis:discogapic","ref":"discogapic","sha":"7879db8747384531451826dc00e1b0d40fd7f5c5","user":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars7.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":56533838,"name":"toolkit","full_name":"googleapis/toolkit","owner":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars7.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googleapis/toolkit","description":null,"fork":false,"url":"https://api.github.com/repos/googleapis/toolkit","forks_url":"https://api.github.com/repos/googleapis/toolkit/forks","keys_url":"https://api.github.com/repos/googleapis/toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/toolkit/teams","hooks_url":"https://api.github.com/repos/googleapis/toolkit/hooks","issue_events_url":"https://api.github.com/repos/googleapis/toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/toolkit/events","assignees_url":"https://api.github.com/repos/googleapis/toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/toolkit/tags","blobs_url":"https://api.github.com/repos/googleapis/toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/toolkit/languages","stargazers_url":"https://api.github.com/repos/googleapis/toolkit/stargazers","contributors_url":"https://api.github.com/repos/googleapis/toolkit/contributors","subscribers_url":"https://api.github.com/repos/googleapis/toolkit/subscribers","subscription_url":"https://api.github.com/repos/googleapis/toolkit/subscription","commits_url":"https://api.github.com/repos/googleapis/toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/toolkit/merges","archive_url":"https://api.github.com/repos/googleapis/toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/toolkit/downloads","issues_url":"https://api.github.com/repos/googleapis/toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/toolkit/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/toolkit/deployments","created_at":"2016-04-18T18:58:04Z","updated_at":"2017-06-16T22:44:06Z","pushed_at":"2017-07-14T05:00:26Z","git_url":"git://github.com/googleapis/toolkit.git","ssh_url":"git@github.com:googleapis/toolkit.git","clone_url":"https://github.com/googleapis/toolkit.git","svn_url":"https://github.com/googleapis/toolkit","homepage":null,"size":15727,"stargazers_count":28,"watchers_count":28,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":184,"forks":31,"open_issues":184,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/1392"},"html":{"href":"https://github.com/googleapis/toolkit/pull/1392"},"issue":{"href":"https://api.github.com/repos/googleapis/toolkit/issues/1392"},"comments":{"href":"https://api.github.com/repos/googleapis/toolkit/issues/1392/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/1392/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/1392/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/toolkit/statuses/589d97d5c5daf5e42effafdc66d674dc8c97ed23"}}}}
{"actor":{"display_login":"garrettjonesgoogle"}}