lib/google/cloud/automl/v1beta1/prediction_service/client.rb in google-cloud-automl-v1beta1-0.6.0 vs lib/google/cloud/automl/v1beta1/prediction_service/client.rb in google-cloud-automl-v1beta1-0.6.1
- old
+ new
@@ -417,17 +417,17 @@
# request = Google::Cloud::AutoML::V1beta1::BatchPredictRequest.new
#
# # Call the batch_predict method.
# result = client.batch_predict request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def batch_predict request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?