Class ContactServiceSettings.Builder (0.8.0)

public static class ContactServiceSettings.Builder extends ClientSettings.Builder<ContactServiceSettings,ContactServiceSettings.Builder>

Builder for ContactServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ContactServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ContactServiceSettings settings)

protected Builder(ContactServiceSettings settings)
Parameter
Name Description
settings ContactServiceSettings

Builder(ContactServiceStubSettings.Builder stubSettings)

protected Builder(ContactServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings ContactServiceStubSettings.Builder

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

public ContactServiceSettings build()
Returns
Type Description
ContactServiceSettings
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>

getStubSettingsBuilder()

public ContactServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
ContactServiceStubSettings.Builder

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>