Class ProfileServiceSettings.Builder

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

Builder for ProfileServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ProfileServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ProfileServiceSettings settings)

protected Builder(ProfileServiceSettings settings)
Parameter
NameDescription
settingsProfileServiceSettings

Builder(ProfileServiceStubSettings.Builder stubSettings)

protected Builder(ProfileServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsProfileServiceStubSettings.Builder

Methods

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

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

build()

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

createProfileSettings()

public UnaryCallSettings.Builder<CreateProfileRequest,Profile> createProfileSettings()

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

Returns
TypeDescription
Builder<CreateProfileRequest,Profile>

deleteProfileSettings()

public UnaryCallSettings.Builder<DeleteProfileRequest,Empty> deleteProfileSettings()

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

Returns
TypeDescription
Builder<DeleteProfileRequest,Empty>

getProfileSettings()

public UnaryCallSettings.Builder<GetProfileRequest,Profile> getProfileSettings()

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

Returns
TypeDescription
Builder<GetProfileRequest,Profile>

getStubSettingsBuilder()

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

listProfilesSettings()

public PagedCallSettings.Builder<ListProfilesRequest,ListProfilesResponse,ProfileServiceClient.ListProfilesPagedResponse> listProfilesSettings()

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

Returns
TypeDescription
Builder<ListProfilesRequest,ListProfilesResponse,ListProfilesPagedResponse>

searchProfilesSettings()

public PagedCallSettings.Builder<SearchProfilesRequest,SearchProfilesResponse,ProfileServiceClient.SearchProfilesPagedResponse> searchProfilesSettings()

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

Returns
TypeDescription
Builder<SearchProfilesRequest,SearchProfilesResponse,SearchProfilesPagedResponse>

updateProfileSettings()

public UnaryCallSettings.Builder<UpdateProfileRequest,Profile> updateProfileSettings()

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

Returns
TypeDescription
Builder<UpdateProfileRequest,Profile>