/// <summary>Snippet for RawPredict</summary> public void RawPredict() { // Snippet: RawPredict(string, HttpBody, CallSettings) // Create client PredictionServiceClient predictionServiceClient = PredictionServiceClient.Create(); // Initialize request argument(s) string endpoint = "projects/[PROJECT]/locations/[LOCATION]/endpoints/[ENDPOINT]"; HttpBody httpBody = new HttpBody(); // Make the request HttpBody response = predictionServiceClient.RawPredict(endpoint, httpBody); // End snippet }
/// <summary>Snippet for RawPredict</summary> public void RawPredictResourceNames() { // Snippet: RawPredict(EndpointName, HttpBody, CallSettings) // Create client PredictionServiceClient predictionServiceClient = PredictionServiceClient.Create(); // Initialize request argument(s) EndpointName endpoint = EndpointName.FromProjectLocationEndpoint("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); HttpBody httpBody = new HttpBody(); // Make the request HttpBody response = predictionServiceClient.RawPredict(endpoint, httpBody); // End snippet }
/// <summary>Snippet for RawPredict</summary> public void RawPredictRequestObject() { // Snippet: RawPredict(RawPredictRequest, CallSettings) // Create client PredictionServiceClient predictionServiceClient = PredictionServiceClient.Create(); // Initialize request argument(s) RawPredictRequest request = new RawPredictRequest { EndpointAsEndpointName = EndpointName.FromProjectLocationEndpoint("[PROJECT]", "[LOCATION]", "[ENDPOINT]"), HttpBody = new HttpBody(), }; // Make the request HttpBody response = predictionServiceClient.RawPredict(request); // End snippet }