{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/451","labels_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/451/comments","events_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/451/events","html_url":"https://github.com/chrsmithdemos/google-api-java-client/issues/451","id":59552293,"number":451,"title":"Generate a deleteX() method for use with PATCH to delete a field","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/chrsmithdemos/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Component-Google-APIs","name":"Component-Google-APIs","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-02T21:18:21Z","updated_at":"2015-03-02T21:18:23Z","closed_at":null,"body":"```\nExternal references, such as a standards document, or specification?\n\nhttp://googlecode.blogspot.com/2011/07/lightning-fast-performance-tips-for.html\n\nhttps://developers.google.com/google-apps/tasks/performance#patch\n\nJava environments (e.g. Java 6, Android 2.3, App Engine, or All)?\n\nAll\n\nPlease describe the feature requested.\n\nSee the example from the Tasks API documentation that shows deleting a \n\"comment\" field from some fictional \"demo\" API:\n\nPATCH \nhttps://www.googleapis.com/demo/v1/324?fields=etag,title,comment,characteristics\nAuthorization: /* Auth token goes here */\nContent-Type: application/json\nIf-Match: \"ETagString\"\n\n{\n  \"etag\": \"ETagString\"\n  \"title\": \"\",                  /* Clear the value of the title by setting it to the empty string. */\n  \"comment\": null,              /* Delete the comment by replacing its value with null. */\n  \"characteristics\": {          /* Omit the length field, since it's not changing. */\n    \"length\": \"short\",\n    \"level\": \"10\",              /* Modify the level value. */\n    \"followers\": [\"Jo\", \"Liz\"], /* Replace the followers array to delete Will and add Liz. */\n    \"accuracy\": \"high\"          /* Add a new characteristic. */\n  },\n}\n\nIn order to accomplish this with the generated service-specific library, you \nwould have to do something like this:\n\nresource.setComment(Data.NULL_STRING);\n\nbut this is not intuitive.  Most users will honestly give up trying by this \npoint.\n\nWhat might be more intuitive is if we generated a method like deleteComment() \nthat would encapsulate that logic, e.g.:\n\n/** Deletes the comment field for use with a PATCH request. */\npublic Resource deleteComment() {\n  return setComment(Data.NULL_STRING);\n}\n\nTrivial to implement for us, and hopefully be more intuitive to find and use.\n```\n\nOriginal issue reported on code.google.com by `yan...@google.com` on 6 Apr 2012 at 9:03"},"comment":{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/comments/76826116","html_url":"https://github.com/chrsmithdemos/google-api-java-client/issues/451#issuecomment-76826116","issue_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/451","id":76826116,"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-02T21:18:22Z","updated_at":"2015-03-02T21:18:22Z","body":"\n\nOriginal comment by `yan...@google.com` on 26 Sep 2012 at 12:43\n* Changed state: **Accepted**\n* Added labels: **Priority-High**\n* Removed labels: **Priority-Low**, **Milestone-CodeGenVersion1.9.0**"}}