Class ProfilerServiceStubSettings.Builder (2.35.0)

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

Builder for ProfilerServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ProfilerServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ProfilerServiceStubSettings settings)

protected Builder(ProfilerServiceStubSettings settings)
Parameter
NameDescription
settingsProfilerServiceStubSettings

Methods

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

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

build()

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

createOfflineProfileSettings()

public UnaryCallSettings.Builder<CreateOfflineProfileRequest,Profile> createOfflineProfileSettings()

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

Returns
TypeDescription
Builder<CreateOfflineProfileRequest,Profile>

createProfileSettings()

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

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

Returns
TypeDescription
Builder<CreateProfileRequest,Profile>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

unaryMethodSettingsBuilders()

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

updateProfileSettings()

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

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

Returns
TypeDescription
Builder<UpdateProfileRequest,Profile>