Class MetricsServiceV2StubSettings.Builder (3.11.10)

public static class MetricsServiceV2StubSettings.Builder extends StubSettings.Builder<MetricsServiceV2StubSettings,MetricsServiceV2StubSettings.Builder>

Builder for MetricsServiceV2StubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > MetricsServiceV2StubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(MetricsServiceV2StubSettings settings)

protected Builder(MetricsServiceV2StubSettings settings)
Parameter
Name Description
settings MetricsServiceV2StubSettings

Methods

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

public MetricsServiceV2StubSettings.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
MetricsServiceV2StubSettings.Builder

build()

public MetricsServiceV2StubSettings build()
Returns
Type Description
MetricsServiceV2StubSettings
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>

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>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
Type Description
com.google.common.collect.ImmutableList<Builder<?,?>>

updateLogMetricSettings()

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

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

Returns
Type Description
Builder<UpdateLogMetricRequest,LogMetric>