Class ContactServiceStubSettings.Builder (0.10.0)

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

Builder for ContactServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ContactServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ContactServiceStubSettings settings)

protected Builder(ContactServiceStubSettings settings)
Parameter
Name Description
settings ContactServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

public ContactServiceStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
ContactServiceStubSettings.Builder

build()

public ContactServiceStubSettings build()
Returns
Type Description
ContactServiceStubSettings
Overrides
Exceptions
Type Description
IOException

getContactSettings()

public UnaryCallSettings.Builder<GetContactRequest,Contact> getContactSettings()

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

Returns
Type Description
Builder<GetContactRequest,Contact>

listContactsSettings()

public PagedCallSettings.Builder<ListContactsRequest,ListContactsResponse,ContactServiceClient.ListContactsPagedResponse> listContactsSettings()

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

Returns
Type Description
Builder<ListContactsRequest,ListContactsResponse,ListContactsPagedResponse>

unaryMethodSettingsBuilders()

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