Class SnapshotsStubSettings.Builder (1.59.0)

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

Builder for SnapshotsStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SnapshotsStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SnapshotsStubSettings settings)

protected Builder(SnapshotsStubSettings settings)
Parameter
Name Description
settings SnapshotsStubSettings

Methods

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

public SnapshotsStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
SnapshotsStubSettings.Builder

build()

public SnapshotsStubSettings build()
Returns
Type Description
SnapshotsStubSettings
Overrides
Exceptions
Type Description
IOException

deleteOperationSettings()

public OperationCallSettings.Builder<DeleteSnapshotRequest,Operation,Operation> deleteOperationSettings()

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

Returns
Type Description
Builder<DeleteSnapshotRequest,Operation,Operation>

deleteSettings()

public UnaryCallSettings.Builder<DeleteSnapshotRequest,Operation> deleteSettings()

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

Returns
Type Description
Builder<DeleteSnapshotRequest,Operation>

getIamPolicySettings()

public UnaryCallSettings.Builder<GetIamPolicySnapshotRequest,Policy> getIamPolicySettings()

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

Returns
Type Description
Builder<GetIamPolicySnapshotRequest,Policy>

getSettings()

public UnaryCallSettings.Builder<GetSnapshotRequest,Snapshot> getSettings()

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

Returns
Type Description
Builder<GetSnapshotRequest,Snapshot>

insertOperationSettings()

public OperationCallSettings.Builder<InsertSnapshotRequest,Operation,Operation> insertOperationSettings()

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

Returns
Type Description
Builder<InsertSnapshotRequest,Operation,Operation>

insertSettings()

public UnaryCallSettings.Builder<InsertSnapshotRequest,Operation> insertSettings()

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

Returns
Type Description
Builder<InsertSnapshotRequest,Operation>

listSettings()

public PagedCallSettings.Builder<ListSnapshotsRequest,SnapshotList,SnapshotsClient.ListPagedResponse> listSettings()

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

Returns
Type Description
Builder<ListSnapshotsRequest,SnapshotList,ListPagedResponse>

setIamPolicySettings()

public UnaryCallSettings.Builder<SetIamPolicySnapshotRequest,Policy> setIamPolicySettings()

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

Returns
Type Description
Builder<SetIamPolicySnapshotRequest,Policy>

setLabelsOperationSettings()

public OperationCallSettings.Builder<SetLabelsSnapshotRequest,Operation,Operation> setLabelsOperationSettings()

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

Returns
Type Description
Builder<SetLabelsSnapshotRequest,Operation,Operation>

setLabelsSettings()

public UnaryCallSettings.Builder<SetLabelsSnapshotRequest,Operation> setLabelsSettings()

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

Returns
Type Description
Builder<SetLabelsSnapshotRequest,Operation>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsSnapshotRequest,TestPermissionsResponse> testIamPermissionsSettings()

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

Returns
Type Description
Builder<TestIamPermissionsSnapshotRequest,TestPermissionsResponse>

unaryMethodSettingsBuilders()

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