Class EssentialContactsServiceStubSettings.Builder (2.39.0)

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

Builder for EssentialContactsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > EssentialContactsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(EssentialContactsServiceStubSettings settings)

protected Builder(EssentialContactsServiceStubSettings settings)
Parameter
NameDescription
settingsEssentialContactsServiceStubSettings

Methods

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

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

build()

public EssentialContactsServiceStubSettings build()
Returns
TypeDescription
EssentialContactsServiceStubSettings
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>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

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>

unaryMethodSettingsBuilders()

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

updateContactSettings()

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

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

Returns
TypeDescription
Builder<UpdateContactRequest,Contact>