Class SnapshotSettingsServiceStubSettings.Builder (1.46.0)

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

Builder for SnapshotSettingsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SnapshotSettingsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SnapshotSettingsServiceStubSettings settings)

protected Builder(SnapshotSettingsServiceStubSettings settings)
Parameter
NameDescription
settingsSnapshotSettingsServiceStubSettings

Methods

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

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

build()

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

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

getSettings()

public UnaryCallSettings.Builder<GetSnapshotSettingRequest,SnapshotSettings> getSettings()

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

Returns
TypeDescription
Builder<GetSnapshotSettingRequest,SnapshotSettings>

patchOperationSettings()

public OperationCallSettings.Builder<PatchSnapshotSettingRequest,Operation,Operation> patchOperationSettings()

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

Returns
TypeDescription
Builder<PatchSnapshotSettingRequest,Operation,Operation>

patchSettings()

public UnaryCallSettings.Builder<PatchSnapshotSettingRequest,Operation> patchSettings()

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

Returns
TypeDescription
Builder<PatchSnapshotSettingRequest,Operation>

unaryMethodSettingsBuilders()

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