Class CloudChannelReportsServiceSpringAutoConfiguration

java.lang.Object
com.google.cloud.channel.v1.spring.CloudChannelReportsServiceSpringAutoConfiguration

@Generated("by google-cloud-spring-generator") @BetaApi("Autogenerated Spring autoconfiguration is not yet stable") @AutoConfiguration @AutoConfigureAfter(GcpContextAutoConfiguration.class) @ConditionalOnClass(com.google.cloud.channel.v1.CloudChannelReportsServiceClient.class) @ConditionalOnProperty(value="com.google.cloud.channel.v1.cloud-channel-reports-service.enabled", matchIfMissing=true) @EnableConfigurationProperties(CloudChannelReportsServiceSpringProperties.class) public class CloudChannelReportsServiceSpringAutoConfiguration extends Object
Auto-configuration for CloudChannelReportsServiceClient.

Provides auto-configuration for Spring Boot

The default instance has everything set to sensible defaults:

  • The default transport provider is used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.
  • Constructor Details

  • Method Details

    • defaultCloudChannelReportsServiceTransportChannelProvider

      @Bean @ConditionalOnMissingBean(name="defaultCloudChannelReportsServiceTransportChannelProvider") public com.google.api.gax.rpc.TransportChannelProvider defaultCloudChannelReportsServiceTransportChannelProvider()
      Provides a default transport channel provider bean. The default is gRPC and will default to it unless the useRest option is supported and provided to use HTTP transport instead
      Returns:
      a default transport channel provider.
    • cloudChannelReportsServiceSettings

      @Bean @ConditionalOnMissingBean public com.google.cloud.channel.v1.CloudChannelReportsServiceSettings cloudChannelReportsServiceSettings(@Qualifier("defaultCloudChannelReportsServiceTransportChannelProvider") com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider) throws IOException
      Provides a CloudChannelReportsServiceSettings bean configured to use a DefaultCredentialsProvider and the client library's default transport channel provider (defaultCloudChannelReportsServiceTransportChannelProvider()). It also configures the quota project ID and executor thread count, if provided through properties.

      Retry settings are also configured from service-level and method-level properties specified in CloudChannelReportsServiceSpringProperties. Method-level properties will take precedence over service-level properties if available, and client library defaults will be used if neither are specified.

      Parameters:
      defaultTransportChannelProvider - TransportChannelProvider to use in the settings.
      Returns:
      a CloudChannelReportsServiceSettings bean configured with TransportChannelProvider bean.
      Throws:
      IOException
    • cloudChannelReportsServiceClient

      @Bean @ConditionalOnMissingBean public com.google.cloud.channel.v1.CloudChannelReportsServiceClient cloudChannelReportsServiceClient(com.google.cloud.channel.v1.CloudChannelReportsServiceSettings cloudChannelReportsServiceSettings) throws IOException
      Provides a CloudChannelReportsServiceClient bean configured with CloudChannelReportsServiceSettings.
      Parameters:
      cloudChannelReportsServiceSettings - settings to configure an instance of client bean.
      Returns:
      a CloudChannelReportsServiceClient bean configured with CloudChannelReportsServiceSettings
      Throws:
      IOException