Class QueryServiceStubSettings.Builder (3.40.0)

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

Builder for QueryServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > QueryServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(QueryServiceStubSettings settings)

protected Builder(QueryServiceStubSettings settings)
Parameter
NameDescription
settingsQueryServiceStubSettings

Methods

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

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

build()

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

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

queryTimeSeriesSettings()

public PagedCallSettings.Builder<QueryTimeSeriesRequest,QueryTimeSeriesResponse,QueryServiceClient.QueryTimeSeriesPagedResponse> queryTimeSeriesSettings()

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

Returns
TypeDescription
Builder<QueryTimeSeriesRequest,QueryTimeSeriesResponse,QueryTimeSeriesPagedResponse>

unaryMethodSettingsBuilders()

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