Class SnapshotsSettings.Builder (1.46.0)

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

Builder for SnapshotsSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SnapshotsSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SnapshotsSettings settings)

protected Builder(SnapshotsSettings settings)
Parameter
NameDescription
settingsSnapshotsSettings

Builder(SnapshotsStubSettings.Builder stubSettings)

protected Builder(SnapshotsStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsSnapshotsStubSettings.Builder

Methods

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

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

build()

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

deleteOperationSettings()

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

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

Returns
TypeDescription
Builder<DeleteSnapshotRequest,Operation,Operation>

deleteSettings()

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

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

Returns
TypeDescription
Builder<DeleteSnapshotRequest,Operation>

getIamPolicySettings()

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

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

Returns
TypeDescription
Builder<GetIamPolicySnapshotRequest,Policy>

getSettings()

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

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

Returns
TypeDescription
Builder<GetSnapshotRequest,Snapshot>

getStubSettingsBuilder()

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

insertOperationSettings()

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

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

Returns
TypeDescription
Builder<InsertSnapshotRequest,Operation,Operation>

insertSettings()

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

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

Returns
TypeDescription
Builder<InsertSnapshotRequest,Operation>

listSettings()

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

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

Returns
TypeDescription
Builder<ListSnapshotsRequest,SnapshotList,ListPagedResponse>

setIamPolicySettings()

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

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

Returns
TypeDescription
Builder<SetIamPolicySnapshotRequest,Policy>

setLabelsOperationSettings()

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

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

Returns
TypeDescription
Builder<SetLabelsSnapshotRequest,Operation,Operation>

setLabelsSettings()

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

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

Returns
TypeDescription
Builder<SetLabelsSnapshotRequest,Operation>

testIamPermissionsSettings()

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

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

Returns
TypeDescription
Builder<TestIamPermissionsSnapshotRequest,TestPermissionsResponse>