{"action":"closed","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/22","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/22/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/22/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/22","id":59381424,"number":22,"title":"Defect in Prediction API - need to add access method for mixture and numeric data type","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/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-01T05:41:39Z","updated_at":"2015-03-01T05:41:40Z","closed_at":"2015-03-01T05:41:39Z","body":"```\nIn the code for \ncom.google.api.client.sample.prediction.PredictionSample \n\nthere is a method for Predict (Shown below).  In the API we need a way to set \nthe inout type to be mixture and numeric \n\nCurrently you can only do this: \nnputData.input.text.add(text); \n\n\n private static void predict(HttpTransport transport, String text) \n      throws IOException { \n    HttpRequest request = transport.buildPostRequest(); \n    request.url = \nPredictionUrl.forPrediction(ClientLoginCredentials.OBJECT_PATH); \n    JsonCContent content = new JsonCContent(); \n    InputData inputData = new InputData(); \n    inputData.input.text.add(text); \n    content.data = inputData; \n    request.content = content; \n    OutputData outputData = \nrequest.execute().parseAs(OutputData.class); \n    System.out.println(\"Text: \" + text); \n    System.out.println(\"Predicted language: \" + \noutputData.output.outputLabel); \n  } \n```\n\nOriginal issue reported on code.google.com by `njun...@gmail.com` on 21 Sep 2010 at 9:30"}}