{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/toolkit/pulls/comments/76636025","id":76636025,"diff_hunk":"@@ -108,9 +109,16 @@ public InitCodeView generateMockResponseObjectInitCode(\n   }\n \n   private InitCodeView buildInitCodeView(MethodTransformerContext context, InitCode initCode) {\n+    ModelTypeTable sampleTypeTable = generateInitCodeTypeTable(context);","path":"src/main/java/com/google/api/codegen/transformer/InitCodeTransformer.java","position":12,"original_position":12,"commit_id":"7db2367fd0aa3d288075589340364fbe84785604","original_commit_id":"7db2367fd0aa3d288075589340364fbe84785604","user":{"login":"garrettjonesgoogle","id":13341017,"avatar_url":"https://avatars.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":"MethodTransformerContext already has a ModelTypeTable in it. We should just use that. If sample code always needs a separate type table (I think this may be the case), we should make the init code transformer create a new MethodTransformerContext with a newly-created type table at each entry point. This could be done with a method in MethodTransformerContext to create a copy of itself in that fashion, maybe called \"cloneWithEmptyTypeTable\" or something like that.","created_at":"2016-08-29T16:13:51Z","updated_at":"2016-08-29T16:13:51Z","html_url":"https://github.com/googleapis/toolkit/pull/420#discussion_r76636025","pull_request_url":"https://api.github.com/repos/googleapis/toolkit/pulls/420","_links":{"self":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/comments/76636025"},"html":{"href":"https://github.com/googleapis/toolkit/pull/420#discussion_r76636025"},"pull_request":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/420"}}},"pull_request":{"url":"https://api.github.com/repos/googleapis/toolkit/pulls/420","id":82777719,"html_url":"https://github.com/googleapis/toolkit/pull/420","diff_url":"https://github.com/googleapis/toolkit/pull/420.diff","patch_url":"https://github.com/googleapis/toolkit/pull/420.patch","issue_url":"https://api.github.com/repos/googleapis/toolkit/issues/420","number":420,"state":"open","locked":false,"title":"Implement Samplegen Ruby using MVVM","user":{"login":"Landrito","id":8572251,"avatar_url":"https://avatars.githubusercontent.com/u/8572251?v=3","gravatar_id":"","url":"https://api.github.com/users/Landrito","html_url":"https://github.com/Landrito","followers_url":"https://api.github.com/users/Landrito/followers","following_url":"https://api.github.com/users/Landrito/following{/other_user}","gists_url":"https://api.github.com/users/Landrito/gists{/gist_id}","starred_url":"https://api.github.com/users/Landrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Landrito/subscriptions","organizations_url":"https://api.github.com/users/Landrito/orgs","repos_url":"https://api.github.com/users/Landrito/repos","events_url":"https://api.github.com/users/Landrito/events{/privacy}","received_events_url":"https://api.github.com/users/Landrito/received_events","type":"User","site_admin":false},"body":"PR to resolve #288.","created_at":"2016-08-25T19:23:13Z","updated_at":"2016-08-29T16:13:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b021eced3cd0a81e87e5d99c8b21f01d768b9740","assignee":{"login":"jmuk","id":816093,"avatar_url":"https://avatars.githubusercontent.com/u/816093?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuk","html_url":"https://github.com/jmuk","followers_url":"https://api.github.com/users/jmuk/followers","following_url":"https://api.github.com/users/jmuk/following{/other_user}","gists_url":"https://api.github.com/users/jmuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuk/subscriptions","organizations_url":"https://api.github.com/users/jmuk/orgs","repos_url":"https://api.github.com/users/jmuk/repos","events_url":"https://api.github.com/users/jmuk/events{/privacy}","received_events_url":"https://api.github.com/users/jmuk/received_events","type":"User","site_admin":false},"assignees":[{"login":"jmuk","id":816093,"avatar_url":"https://avatars.githubusercontent.com/u/816093?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuk","html_url":"https://github.com/jmuk","followers_url":"https://api.github.com/users/jmuk/followers","following_url":"https://api.github.com/users/jmuk/following{/other_user}","gists_url":"https://api.github.com/users/jmuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuk/subscriptions","organizations_url":"https://api.github.com/users/jmuk/orgs","repos_url":"https://api.github.com/users/jmuk/repos","events_url":"https://api.github.com/users/jmuk/events{/privacy}","received_events_url":"https://api.github.com/users/jmuk/received_events","type":"User","site_admin":false},{"login":"garrettjonesgoogle","id":13341017,"avatar_url":"https://avatars.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}],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/toolkit/pulls/420/commits","review_comments_url":"https://api.github.com/repos/googleapis/toolkit/pulls/420/comments","review_comment_url":"https://api.github.com/repos/googleapis/toolkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/toolkit/issues/420/comments","statuses_url":"https://api.github.com/repos/googleapis/toolkit/statuses/7db2367fd0aa3d288075589340364fbe84785604","head":{"label":"Landrito:ruby-sample-gen","ref":"ruby-sample-gen","sha":"7db2367fd0aa3d288075589340364fbe84785604","user":{"login":"Landrito","id":8572251,"avatar_url":"https://avatars.githubusercontent.com/u/8572251?v=3","gravatar_id":"","url":"https://api.github.com/users/Landrito","html_url":"https://github.com/Landrito","followers_url":"https://api.github.com/users/Landrito/followers","following_url":"https://api.github.com/users/Landrito/following{/other_user}","gists_url":"https://api.github.com/users/Landrito/gists{/gist_id}","starred_url":"https://api.github.com/users/Landrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Landrito/subscriptions","organizations_url":"https://api.github.com/users/Landrito/orgs","repos_url":"https://api.github.com/users/Landrito/repos","events_url":"https://api.github.com/users/Landrito/events{/privacy}","received_events_url":"https://api.github.com/users/Landrito/received_events","type":"User","site_admin":false},"repo":{"id":62097026,"name":"toolkit","full_name":"Landrito/toolkit","owner":{"login":"Landrito","id":8572251,"avatar_url":"https://avatars.githubusercontent.com/u/8572251?v=3","gravatar_id":"","url":"https://api.github.com/users/Landrito","html_url":"https://github.com/Landrito","followers_url":"https://api.github.com/users/Landrito/followers","following_url":"https://api.github.com/users/Landrito/following{/other_user}","gists_url":"https://api.github.com/users/Landrito/gists{/gist_id}","starred_url":"https://api.github.com/users/Landrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Landrito/subscriptions","organizations_url":"https://api.github.com/users/Landrito/orgs","repos_url":"https://api.github.com/users/Landrito/repos","events_url":"https://api.github.com/users/Landrito/events{/privacy}","received_events_url":"https://api.github.com/users/Landrito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Landrito/toolkit","description":null,"fork":true,"url":"https://api.github.com/repos/Landrito/toolkit","forks_url":"https://api.github.com/repos/Landrito/toolkit/forks","keys_url":"https://api.github.com/repos/Landrito/toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Landrito/toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Landrito/toolkit/teams","hooks_url":"https://api.github.com/repos/Landrito/toolkit/hooks","issue_events_url":"https://api.github.com/repos/Landrito/toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/Landrito/toolkit/events","assignees_url":"https://api.github.com/repos/Landrito/toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/Landrito/toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/Landrito/toolkit/tags","blobs_url":"https://api.github.com/repos/Landrito/toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Landrito/toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Landrito/toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/Landrito/toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Landrito/toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/Landrito/toolkit/languages","stargazers_url":"https://api.github.com/repos/Landrito/toolkit/stargazers","contributors_url":"https://api.github.com/repos/Landrito/toolkit/contributors","subscribers_url":"https://api.github.com/repos/Landrito/toolkit/subscribers","subscription_url":"https://api.github.com/repos/Landrito/toolkit/subscription","commits_url":"https://api.github.com/repos/Landrito/toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/Landrito/toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/Landrito/toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/Landrito/toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/Landrito/toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/Landrito/toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Landrito/toolkit/merges","archive_url":"https://api.github.com/repos/Landrito/toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Landrito/toolkit/downloads","issues_url":"https://api.github.com/repos/Landrito/toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/Landrito/toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/Landrito/toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/Landrito/toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Landrito/toolkit/labels{/name}","releases_url":"https://api.github.com/repos/Landrito/toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/Landrito/toolkit/deployments","created_at":"2016-06-28T00:18:51Z","updated_at":"2016-06-28T00:18:55Z","pushed_at":"2016-08-27T00:48:50Z","git_url":"git://github.com/Landrito/toolkit.git","ssh_url":"git@github.com:Landrito/toolkit.git","clone_url":"https://github.com/Landrito/toolkit.git","svn_url":"https://github.com/Landrito/toolkit","homepage":null,"size":6887,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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:master","ref":"master","sha":"25d9eda85be5da6db69170a5fac29ff344f86c02","user":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars.githubusercontent.com/u/16785467?v=3","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://avatars.githubusercontent.com/u/16785467?v=3","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":"","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":"2016-08-08T23:29:39Z","pushed_at":"2016-08-29T08:02:44Z","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":9419,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":71,"forks":19,"open_issues":71,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/420"},"html":{"href":"https://github.com/googleapis/toolkit/pull/420"},"issue":{"href":"https://api.github.com/repos/googleapis/toolkit/issues/420"},"comments":{"href":"https://api.github.com/repos/googleapis/toolkit/issues/420/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/420/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/420/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/toolkit/statuses/7db2367fd0aa3d288075589340364fbe84785604"}}}}
{"actor":{"display_login":"garrettjonesgoogle"}}