Class MetricsServiceV2StubSettings.Builder (3.14.5)

See more code actions.
public static class MetricsServiceV2StubSettings.Builder extends StubSettings.Builder<MetricsServiceV2StubSettings,MetricsServiceV2StubSettings.Builder>

Builder for MetricsServiceV2StubSettings.

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

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(MetricsServiceV2StubSettings settings)

protected Builder(MetricsServiceV2StubSettings settings)
Parameter
NameDescription
settingsMetricsServiceV2StubSettings

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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns

build()

public MetricsServiceV2StubSettings build()
Returns Overrides Exceptions
TypeDescription
IOException

createLogMetricSettings()

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

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

Returns

deleteLogMetricSettings()

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

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

Returns

getLogMetricSettings()

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

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

Returns

listLogMetricsSettings()

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

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

Returns

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
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