Package com.google.cloud.logging.v2.stub (3.14.9)

Classes

ConfigServiceV2Stub

Base stub class for the ConfigServiceV2 service API.

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

ConfigServiceV2StubSettings

Settings class to configure an instance of ConfigServiceV2Stub.

The default instance has everything set to sensible defaults:

  • The default service address (logging.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 getBucket 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
 ConfigServiceV2StubSettings.Builder configSettingsBuilder =
     ConfigServiceV2StubSettings.newBuilder();
 configSettingsBuilder
     .getBucketSettings()
     .setRetrySettings(
         configSettingsBuilder
             .getBucketSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build();
 

ConfigServiceV2StubSettings.Builder

Builder for ConfigServiceV2StubSettings.

GrpcConfigServiceV2CallableFactory

gRPC callable factory implementation for the ConfigServiceV2 service API.

This class is for advanced usage.

GrpcConfigServiceV2Stub

gRPC stub implementation for the ConfigServiceV2 service API.

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

GrpcLoggingServiceV2CallableFactory

gRPC callable factory implementation for the LoggingServiceV2 service API.

This class is for advanced usage.

GrpcLoggingServiceV2Stub

gRPC stub implementation for the LoggingServiceV2 service API.

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

GrpcMetricsServiceV2CallableFactory

gRPC callable factory implementation for the MetricsServiceV2 service API.

This class is for advanced usage.

GrpcMetricsServiceV2Stub

gRPC stub implementation for the MetricsServiceV2 service API.

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

LoggingServiceV2Stub

Base stub class for the LoggingServiceV2 service API.

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

LoggingServiceV2StubSettings

Settings class to configure an instance of LoggingServiceV2Stub.

The default instance has everything set to sensible defaults:

  • The default service address (logging.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 deleteLog 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
 LoggingServiceV2StubSettings.Builder loggingSettingsBuilder =
     LoggingServiceV2StubSettings.newBuilder();
 loggingSettingsBuilder
     .deleteLogSettings()
     .setRetrySettings(
         loggingSettingsBuilder
             .deleteLogSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build();
 

LoggingServiceV2StubSettings.Builder

Builder for LoggingServiceV2StubSettings.

MetricsServiceV2Stub

Base stub class for the MetricsServiceV2 service API.

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

MetricsServiceV2StubSettings

Settings class to configure an instance of MetricsServiceV2Stub.

The default instance has everything set to sensible defaults:

  • The default service address (logging.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 getLogMetric 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
 MetricsServiceV2StubSettings.Builder metricsSettingsBuilder =
     MetricsServiceV2StubSettings.newBuilder();
 metricsSettingsBuilder
     .getLogMetricSettings()
     .setRetrySettings(
         metricsSettingsBuilder
             .getLogMetricSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build();
 

MetricsServiceV2StubSettings.Builder

Builder for MetricsServiceV2StubSettings.