Class MetricsServiceV2StubSettings.Builder (3.7.6)

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

build()

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

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>

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
TypeDescription
Builder<UpdateLogMetricRequest,LogMetric>