use of com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings in project gapic-generator-java by googleapis.
the class SyncGetLogMetric method syncGetLogMetric.
public static void syncGetLogMetric() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
MetricsServiceV2StubSettings.Builder metricsSettingsBuilder = MetricsServiceV2StubSettings.newBuilder();
metricsSettingsBuilder.getLogMetricSettings().setRetrySettings(metricsSettingsBuilder.getLogMetricSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build();
}
Aggregations