Class MetricsSettings.Builder (3.14.4)

public static class MetricsSettings.Builder extends ClientSettings.Builder<MetricsSettings,MetricsSettings.Builder>

Builder for MetricsSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > MetricsSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(MetricsSettings settings)

protected Builder(MetricsSettings settings)
Parameter
NameDescription
settingsMetricsSettings

Builder(MetricsServiceV2StubSettings.Builder stubSettings)

protected Builder(MetricsServiceV2StubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsMetricsServiceV2StubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public MetricsSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
MetricsSettings.Builder

build()

public MetricsSettings build()
Returns
TypeDescription
MetricsSettings
Overrides Exceptions
TypeDescription
IOException

createLogMetricSettings()

public UnaryCallSettings.Builder<CreateLogMetricRequest,LogMetric> createLogMetricSettings()

Returns the builder for the settings used for calls to createLogMetric.

Returns
TypeDescription
Builder<CreateLogMetricRequest,LogMetric>

deleteLogMetricSettings()

public UnaryCallSettings.Builder<DeleteLogMetricRequest,Empty> deleteLogMetricSettings()

Returns the builder for the settings used for calls to deleteLogMetric.

Returns
TypeDescription
Builder<DeleteLogMetricRequest,Empty>

getLogMetricSettings()

public UnaryCallSettings.Builder<GetLogMetricRequest,LogMetric> getLogMetricSettings()

Returns the builder for the settings used for calls to getLogMetric.

Returns
TypeDescription
Builder<GetLogMetricRequest,LogMetric>

getStubSettingsBuilder()

public MetricsServiceV2StubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
MetricsServiceV2StubSettings.Builder

listLogMetricsSettings()

public PagedCallSettings.Builder<ListLogMetricsRequest,ListLogMetricsResponse,MetricsClient.ListLogMetricsPagedResponse> listLogMetricsSettings()

Returns the builder for the settings used for calls to listLogMetrics.

Returns
TypeDescription
Builder<ListLogMetricsRequest,ListLogMetricsResponse,ListLogMetricsPagedResponse>

updateLogMetricSettings()

public UnaryCallSettings.Builder<UpdateLogMetricRequest,LogMetric> updateLogMetricSettings()

Returns the builder for the settings used for calls to updateLogMetric.

Returns
TypeDescription
Builder<UpdateLogMetricRequest,LogMetric>