Exemple #1
0
 /// <summary>
 /// Perform a batch prediction. Unlike the online
 /// [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
 /// prediction result won't be immediately available in the response. Instead,
 /// a long running operation object is returned. User can poll the operation
 /// result via [GetOperation][google.longrunning.Operations.GetOperation]
 /// method. Once the operation is done,
 /// [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned
 /// in the [response][google.longrunning.Operation.response] field. Available
 /// for following ML problems:
 /// * Image Classification
 /// * Image Object Detection
 /// * Text Extraction
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public override async stt::Task <lro::Operation <BatchPredictResult, OperationMetadata> > BatchPredictAsync(BatchPredictRequest request, gaxgrpc::CallSettings callSettings = null)
 {
     Modify_BatchPredictRequest(ref request, ref callSettings);
     return(new lro::Operation <BatchPredictResult, OperationMetadata>(await _callBatchPredict.Async(request, callSettings).ConfigureAwait(false), BatchPredictOperationsClient));
 }
Exemple #2
0
 /// <summary>
 /// Perform a batch prediction. Unlike the online
 /// [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
 /// prediction result won't be immediately available in the response. Instead,
 /// a long running operation object is returned. User can poll the operation
 /// result via [GetOperation][google.longrunning.Operations.GetOperation]
 /// method. Once the operation is done,
 /// [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned
 /// in the [response][google.longrunning.Operation.response] field. Available
 /// for following ML problems:
 /// * Image Classification
 /// * Image Object Detection
 /// * Text Extraction
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The RPC response.</returns>
 public override lro::Operation <BatchPredictResult, OperationMetadata> BatchPredict(BatchPredictRequest request, gaxgrpc::CallSettings callSettings = null)
 {
     Modify_BatchPredictRequest(ref request, ref callSettings);
     return(new lro::Operation <BatchPredictResult, OperationMetadata>(_callBatchPredict.Sync(request, callSettings), BatchPredictOperationsClient));
 }
Exemple #3
0
 /// <summary>
 /// Perform a batch prediction. Unlike the online
 /// [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
 /// prediction result won't be immediately available in the response. Instead,
 /// a long running operation object is returned. User can poll the operation
 /// result via [GetOperation][google.longrunning.Operations.GetOperation]
 /// method. Once the operation is done,
 /// [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned
 /// in the [response][google.longrunning.Operation.response] field. Available
 /// for following ML problems:
 /// * Image Classification
 /// * Image Object Detection
 /// * Text Extraction
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <lro::Operation <BatchPredictResult, OperationMetadata> > BatchPredictAsync(BatchPredictRequest request, st::CancellationToken cancellationToken) =>
 BatchPredictAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
Exemple #4
0
 partial void Modify_BatchPredictRequest(ref BatchPredictRequest request, ref gaxgrpc::CallSettings settings);
Exemple #5
0
 /// <summary>
 /// Perform a batch prediction. Unlike the online
 /// [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
 /// prediction result won't be immediately available in the response. Instead,
 /// a long running operation object is returned. User can poll the operation
 /// result via [GetOperation][google.longrunning.Operations.GetOperation]
 /// method. Once the operation is done,
 /// [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned
 /// in the [response][google.longrunning.Operation.response] field. Available
 /// for following ML problems:
 /// * Image Classification
 /// * Image Object Detection
 /// * Text Extraction
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <lro::Operation <BatchPredictResult, OperationMetadata> > BatchPredictAsync(BatchPredictRequest request, gaxgrpc::CallSettings callSettings = null) =>
 throw new sys::NotImplementedException();