Package com.google.cloud.automl.v1.stub (2.8.0)

Classes

AutoMlStub

Base stub class for the AutoMl service API.

This class is for advanced usage and reflects the underlying API directly.

AutoMlStubSettings

Settings class to configure an instance of AutoMlStub.

The default instance has everything set to sensible defaults:

  • The default service address (automl.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of getDataset to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AutoMlStubSettings.Builder autoMlSettingsBuilder = AutoMlStubSettings.newBuilder();
 autoMlSettingsBuilder
     .getDatasetSettings()
     .setRetrySettings(
         autoMlSettingsBuilder
             .getDatasetSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 AutoMlStubSettings autoMlSettings = autoMlSettingsBuilder.build();
 

AutoMlStubSettings.Builder

Builder for AutoMlStubSettings.

GrpcAutoMlCallableFactory

gRPC callable factory implementation for the AutoMl service API.

This class is for advanced usage.

GrpcAutoMlStub

gRPC stub implementation for the AutoMl service API.

This class is for advanced usage and reflects the underlying API directly.

GrpcPredictionServiceCallableFactory

gRPC callable factory implementation for the PredictionService service API.

This class is for advanced usage.

GrpcPredictionServiceStub

gRPC stub implementation for the PredictionService service API.

This class is for advanced usage and reflects the underlying API directly.

HttpJsonAutoMlCallableFactory

REST callable factory implementation for the AutoMl service API.

This class is for advanced usage.

HttpJsonAutoMlStub

REST stub implementation for the AutoMl service API.

This class is for advanced usage and reflects the underlying API directly.

HttpJsonPredictionServiceCallableFactory

REST callable factory implementation for the PredictionService service API.

This class is for advanced usage.

HttpJsonPredictionServiceStub

REST stub implementation for the PredictionService service API.

This class is for advanced usage and reflects the underlying API directly.

PredictionServiceStub

Base stub class for the PredictionService service API.

This class is for advanced usage and reflects the underlying API directly.

PredictionServiceStubSettings

Settings class to configure an instance of PredictionServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (automl.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of predict to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 PredictionServiceStubSettings.Builder predictionServiceSettingsBuilder =
     PredictionServiceStubSettings.newBuilder();
 predictionServiceSettingsBuilder
     .predictSettings()
     .setRetrySettings(
         predictionServiceSettingsBuilder
             .predictSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 PredictionServiceStubSettings predictionServiceSettings =
     predictionServiceSettingsBuilder.build();
 

PredictionServiceStubSettings.Builder

Builder for PredictionServiceStubSettings.