Class SnoozeServiceStubSettings.Builder (3.37.0)

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

Builder for SnoozeServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SnoozeServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SnoozeServiceStubSettings settings)

protected Builder(SnoozeServiceStubSettings settings)
Parameter
NameDescription
settingsSnoozeServiceStubSettings

Methods

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

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

build()

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

createSnoozeSettings()

public UnaryCallSettings.Builder<CreateSnoozeRequest,Snooze> createSnoozeSettings()

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

Returns
TypeDescription
Builder<CreateSnoozeRequest,Snooze>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

getSnoozeSettings()

public UnaryCallSettings.Builder<GetSnoozeRequest,Snooze> getSnoozeSettings()

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

Returns
TypeDescription
Builder<GetSnoozeRequest,Snooze>

listSnoozesSettings()

public PagedCallSettings.Builder<ListSnoozesRequest,ListSnoozesResponse,SnoozeServiceClient.ListSnoozesPagedResponse> listSnoozesSettings()

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

Returns
TypeDescription
Builder<ListSnoozesRequest,ListSnoozesResponse,ListSnoozesPagedResponse>

unaryMethodSettingsBuilders()

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

updateSnoozeSettings()

public UnaryCallSettings.Builder<UpdateSnoozeRequest,Snooze> updateSnoozeSettings()

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

Returns
TypeDescription
Builder<UpdateSnoozeRequest,Snooze>