Class AnalyticsServiceStubSettings.Builder (2.42.0)

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

Builder for AnalyticsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > AnalyticsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(AnalyticsServiceStubSettings settings)

protected Builder(AnalyticsServiceStubSettings settings)
Parameter
NameDescription
settingsAnalyticsServiceStubSettings

Methods

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

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

build()

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

exportAnalyticsMetricsOperationSettings()

public OperationCallSettings.Builder<ExportAnalyticsMetricsRequest,ExportAnalyticsMetricsResponse,ExportMetadata> exportAnalyticsMetricsOperationSettings()

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

Returns
TypeDescription
Builder<ExportAnalyticsMetricsRequest,ExportAnalyticsMetricsResponse,ExportMetadata>

exportAnalyticsMetricsSettings()

public UnaryCallSettings.Builder<ExportAnalyticsMetricsRequest,Operation> exportAnalyticsMetricsSettings()

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

Returns
TypeDescription
Builder<ExportAnalyticsMetricsRequest,Operation>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

unaryMethodSettingsBuilders()

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