Package com.google.api.client.googleapis.json

Examples of com.google.api.client.googleapis.json.JsonCContent


  /* Makes a prediction call to the Google Prediction API */
  private static float predict(HttpTransport transport, float[] signals) throws IOException {
    HttpRequest request = transport.buildPostRequest();
    request.url = PredictionUrl.forPrediction(ClientLoginCredentials.OBJECT_PATH);
    JsonCContent content = new JsonCContent();
    InputData inputData = new InputData();

    // inputData holds the signals to be sent to the Prediction API.
    for (int i = 0; i < signals.length; i++) {
      inputData.input.numeric.add(signals[i]);
View Full Code Here

TOP

Related Classes of com.google.api.client.googleapis.json.JsonCContent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.