Class MetricsSettings.Builder (3.18.0)

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
Name Description
clientContext ClientContext

Builder(MetricsSettings settings)

protected Builder(MetricsSettings settings)
Parameter
Name Description
settings MetricsSettings

Builder(MetricsServiceV2StubSettings.Builder stubSettings)

protected Builder(MetricsServiceV2StubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings MetricsServiceV2StubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
MetricsSettings.Builder

build()

public MetricsSettings build()
Returns
Type Description
MetricsSettings
Overrides
Exceptions
Type Description
IOException

createLogMetricSettings()

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

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

Returns
Type Description
Builder<CreateLogMetricRequest,LogMetric>

deleteLogMetricSettings()

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

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

Returns
Type Description
Builder<DeleteLogMetricRequest,Empty>

getLogMetricSettings()

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

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

Returns
Type Description
Builder<GetLogMetricRequest,LogMetric>

getStubSettingsBuilder()

public MetricsServiceV2StubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
MetricsServiceV2StubSettings.Builder

listLogMetricsSettings()

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

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

Returns
Type Description
Builder<ListLogMetricsRequest,ListLogMetricsResponse,ListLogMetricsPagedResponse>

updateLogMetricSettings()

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

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

Returns
Type Description
Builder<UpdateLogMetricRequest,LogMetric>