Class GrafeasV1Beta1Settings (2.7.0)

Stay organized with collections Save and categorize content based on your preferences.
public class GrafeasV1Beta1Settings extends ClientSettings<GrafeasV1Beta1Settings>

Settings class to configure an instance of GrafeasV1Beta1Client.

The default instance has everything set to sensible defaults:

  • The default service address (containeranalysis.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 getOccurrence to 30 seconds:

 
 GrafeasV1Beta1Settings.Builder grafeasV1Beta1SettingsBuilder =
     GrafeasV1Beta1Settings.newBuilder();
 grafeasV1Beta1SettingsBuilder
     .getOccurrenceSettings()
     .setRetrySettings(
         grafeasV1Beta1SettingsBuilder.getOccurrenceSettings().getRetrySettings().toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 GrafeasV1Beta1Settings grafeasV1Beta1Settings = grafeasV1Beta1SettingsBuilder.build();
 
 

Inheritance

java.lang.Object > ClientSettings > GrafeasV1Beta1Settings