Class EssentialContactsServiceSettings.Builder (2.11.0)

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

Builder for EssentialContactsServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > EssentialContactsServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(EssentialContactsServiceSettings settings)

protected Builder(EssentialContactsServiceSettings settings)
Parameter
NameDescription
settingsEssentialContactsServiceSettings

Builder(EssentialContactsServiceStubSettings.Builder stubSettings)

protected Builder(EssentialContactsServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsEssentialContactsServiceStubSettings.Builder

Methods

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

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

build()

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

computeContactsSettings()

public PagedCallSettings.Builder<ComputeContactsRequest,ComputeContactsResponse,EssentialContactsServiceClient.ComputeContactsPagedResponse> computeContactsSettings()

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

Returns
TypeDescription
Builder<ComputeContactsRequest,ComputeContactsResponse,ComputeContactsPagedResponse>

createContactSettings()

public UnaryCallSettings.Builder<CreateContactRequest,Contact> createContactSettings()

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

Returns
TypeDescription
Builder<CreateContactRequest,Contact>

deleteContactSettings()

public UnaryCallSettings.Builder<DeleteContactRequest,Empty> deleteContactSettings()

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

Returns
TypeDescription
Builder<DeleteContactRequest,Empty>

getContactSettings()

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

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

Returns
TypeDescription
Builder<GetContactRequest,Contact>

getStubSettingsBuilder()

public EssentialContactsServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
EssentialContactsServiceStubSettings.Builder

listContactsSettings()

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

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

Returns
TypeDescription
Builder<ListContactsRequest,ListContactsResponse,ListContactsPagedResponse>

sendTestMessageSettings()

public UnaryCallSettings.Builder<SendTestMessageRequest,Empty> sendTestMessageSettings()

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

Returns
TypeDescription
Builder<SendTestMessageRequest,Empty>

updateContactSettings()

public UnaryCallSettings.Builder<UpdateContactRequest,Contact> updateContactSettings()

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

Returns
TypeDescription
Builder<UpdateContactRequest,Contact>