Class StorageTransferServiceSettings.Builder

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

Builder for StorageTransferServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > StorageTransferServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(StorageTransferServiceSettings settings)

protected Builder(StorageTransferServiceSettings settings)
Parameter
NameDescription
settingsStorageTransferServiceSettings

Builder(StorageTransferServiceStubSettings.Builder stubSettings)

protected Builder(StorageTransferServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsStorageTransferServiceStubSettings.Builder

Methods

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

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

build()

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

createTransferJobSettings()

public UnaryCallSettings.Builder<TransferProto.CreateTransferJobRequest,TransferTypes.TransferJob> createTransferJobSettings()

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

Returns
TypeDescription
Builder<CreateTransferJobRequest,TransferJob>

getGoogleServiceAccountSettings()

public UnaryCallSettings.Builder<TransferProto.GetGoogleServiceAccountRequest,TransferTypes.GoogleServiceAccount> getGoogleServiceAccountSettings()

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

Returns
TypeDescription
Builder<GetGoogleServiceAccountRequest,GoogleServiceAccount>

getStubSettingsBuilder()

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

getTransferJobSettings()

public UnaryCallSettings.Builder<TransferProto.GetTransferJobRequest,TransferTypes.TransferJob> getTransferJobSettings()

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

Returns
TypeDescription
Builder<GetTransferJobRequest,TransferJob>

listTransferJobsSettings()

public PagedCallSettings.Builder<TransferProto.ListTransferJobsRequest,TransferProto.ListTransferJobsResponse,StorageTransferServiceClient.ListTransferJobsPagedResponse> listTransferJobsSettings()

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

Returns
TypeDescription
Builder<ListTransferJobsRequest,ListTransferJobsResponse,ListTransferJobsPagedResponse>

pauseTransferOperationSettings()

public UnaryCallSettings.Builder<TransferProto.PauseTransferOperationRequest,Empty> pauseTransferOperationSettings()

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

Returns
TypeDescription
Builder<PauseTransferOperationRequest,Empty>

resumeTransferOperationSettings()

public UnaryCallSettings.Builder<TransferProto.ResumeTransferOperationRequest,Empty> resumeTransferOperationSettings()

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

Returns
TypeDescription
Builder<ResumeTransferOperationRequest,Empty>

runTransferJobOperationSettings()

public OperationCallSettings.Builder<TransferProto.RunTransferJobRequest,Empty,TransferTypes.TransferOperation> runTransferJobOperationSettings()

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

Returns
TypeDescription
Builder<RunTransferJobRequest,Empty,TransferOperation>

runTransferJobSettings()

public UnaryCallSettings.Builder<TransferProto.RunTransferJobRequest,Operation> runTransferJobSettings()

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

Returns
TypeDescription
Builder<RunTransferJobRequest,Operation>

updateTransferJobSettings()

public UnaryCallSettings.Builder<TransferProto.UpdateTransferJobRequest,TransferTypes.TransferJob> updateTransferJobSettings()

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

Returns
TypeDescription
Builder<UpdateTransferJobRequest,TransferJob>