@Generated(value="by GAPIC") public class MetricsServiceV2Settings extends com.google.api.gax.grpc.ServiceApiSettings
MetricsServiceV2Api.
The default instance has everything set to sensible defaults:
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 ListLogMetrics to 30 seconds:
MetricsServiceV2Settings.Builder metricsServiceV2SettingsBuilder =
MetricsServiceV2Settings.defaultBuilder();
metricsServiceV2SettingsBuilder.ListLogMetricsSettings().getRetrySettingsBuilder()
.setTotalTimeout(Duration.standardSeconds(30));
MetricsServiceV2Settings metricsServiceV2Settings = metricsServiceV2SettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricsServiceV2Settings.Builder
Builder for MetricsServiceV2Settings.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.api.gax.core.ConnectionSettings |
DEFAULT_CONNECTION_SETTINGS
The default connection settings of the service.
|
static String |
DEFAULT_SERVICE_ADDRESS
The default address of the service.
|
static int |
DEFAULT_SERVICE_PORT
The default port of the service.
|
static com.google.common.collect.ImmutableList<String> |
DEFAULT_SERVICE_SCOPES
The default scopes of the service.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.CreateLogMetricRequest,com.google.logging.v2.LogMetric> |
createLogMetricSettings()
Returns the object with the settings used for calls to createLogMetric.
|
static MetricsServiceV2Settings.Builder |
defaultBuilder()
Returns a builder for this class with recommended defaults.
|
com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.DeleteLogMetricRequest,com.google.protobuf.Empty> |
deleteLogMetricSettings()
Returns the object with the settings used for calls to deleteLogMetric.
|
com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.GetLogMetricRequest,com.google.logging.v2.LogMetric> |
getLogMetricSettings()
Returns the object with the settings used for calls to getLogMetric.
|
com.google.api.gax.grpc.PageStreamingCallSettings<com.google.logging.v2.ListLogMetricsRequest,com.google.logging.v2.ListLogMetricsResponse,com.google.logging.v2.LogMetric> |
listLogMetricsSettings()
Returns the object with the settings used for calls to listLogMetrics.
|
static MetricsServiceV2Settings.Builder |
newBuilder()
Returns a new builder for this class.
|
MetricsServiceV2Settings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.UpdateLogMetricRequest,com.google.logging.v2.LogMetric> |
updateLogMetricSettings()
Returns the object with the settings used for calls to updateLogMetric.
|
public static final String DEFAULT_SERVICE_ADDRESS
public static final int DEFAULT_SERVICE_PORT
public static final com.google.common.collect.ImmutableList<String> DEFAULT_SERVICE_SCOPES
public static final com.google.api.gax.core.ConnectionSettings DEFAULT_CONNECTION_SETTINGS
public com.google.api.gax.grpc.PageStreamingCallSettings<com.google.logging.v2.ListLogMetricsRequest,com.google.logging.v2.ListLogMetricsResponse,com.google.logging.v2.LogMetric> listLogMetricsSettings()
public com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.GetLogMetricRequest,com.google.logging.v2.LogMetric> getLogMetricSettings()
public com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.CreateLogMetricRequest,com.google.logging.v2.LogMetric> createLogMetricSettings()
public com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.UpdateLogMetricRequest,com.google.logging.v2.LogMetric> updateLogMetricSettings()
public com.google.api.gax.grpc.SimpleCallSettings<com.google.logging.v2.DeleteLogMetricRequest,com.google.protobuf.Empty> deleteLogMetricSettings()
public static MetricsServiceV2Settings.Builder defaultBuilder()
public static MetricsServiceV2Settings.Builder newBuilder()
public MetricsServiceV2Settings.Builder toBuilder()
Copyright © 2016 Google. All rights reserved.