public static class CloudTasksSettings.Builder extends ClientSettings.Builder<CloudTasksSettings,CloudTasksSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(CloudTasksSettings settings) |
protected |
Builder(CloudTasksStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest,Empty> |
acknowledgeTaskSettings()
Returns the builder for the settings used for calls to acknowledgeTask.
|
CloudTasksSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
CloudTasksSettings |
build() |
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.CancelLeaseRequest,com.google.cloud.tasks.v2beta2.Task> |
cancelLeaseSettings()
Returns the builder for the settings used for calls to cancelLease.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.CreateQueueRequest,com.google.cloud.tasks.v2beta2.Queue> |
createQueueSettings()
Returns the builder for the settings used for calls to createQueue.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.CreateTaskRequest,com.google.cloud.tasks.v2beta2.Task> |
createTaskSettings()
Returns the builder for the settings used for calls to createTask.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.DeleteQueueRequest,Empty> |
deleteQueueSettings()
Returns the builder for the settings used for calls to deleteQueue.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.DeleteTaskRequest,Empty> |
deleteTaskSettings()
Returns the builder for the settings used for calls to deleteTask.
|
UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.GetQueueRequest,com.google.cloud.tasks.v2beta2.Queue> |
getQueueSettings()
Returns the builder for the settings used for calls to getQueue.
|
CloudTasksStubSettings.Builder |
getStubSettingsBuilder() |
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.GetTaskRequest,com.google.cloud.tasks.v2beta2.Task> |
getTaskSettings()
Returns the builder for the settings used for calls to getTask.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.LeaseTasksRequest,com.google.cloud.tasks.v2beta2.LeaseTasksResponse> |
leaseTasksSettings()
Returns the builder for the settings used for calls to leaseTasks.
|
PagedCallSettings.Builder<com.google.cloud.tasks.v2beta2.ListQueuesRequest,com.google.cloud.tasks.v2beta2.ListQueuesResponse,CloudTasksClient.ListQueuesPagedResponse> |
listQueuesSettings()
Returns the builder for the settings used for calls to listQueues.
|
PagedCallSettings.Builder<com.google.cloud.tasks.v2beta2.ListTasksRequest,com.google.cloud.tasks.v2beta2.ListTasksResponse,CloudTasksClient.ListTasksPagedResponse> |
listTasksSettings()
Returns the builder for the settings used for calls to listTasks.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.PauseQueueRequest,com.google.cloud.tasks.v2beta2.Queue> |
pauseQueueSettings()
Returns the builder for the settings used for calls to pauseQueue.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.PurgeQueueRequest,com.google.cloud.tasks.v2beta2.Queue> |
purgeQueueSettings()
Returns the builder for the settings used for calls to purgeQueue.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.RenewLeaseRequest,com.google.cloud.tasks.v2beta2.Task> |
renewLeaseSettings()
Returns the builder for the settings used for calls to renewLease.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.ResumeQueueRequest,com.google.cloud.tasks.v2beta2.Queue> |
resumeQueueSettings()
Returns the builder for the settings used for calls to resumeQueue.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.RunTaskRequest,com.google.cloud.tasks.v2beta2.Task> |
runTaskSettings()
Returns the builder for the settings used for calls to runTask.
|
UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.
|
UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.
|
UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.UpdateQueueRequest,com.google.cloud.tasks.v2beta2.Queue> |
updateQueueSettings()
Returns the builder for the settings used for calls to updateQueue.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(CloudTasksSettings settings)
protected Builder(CloudTasksStubSettings.Builder stubSettings)
public CloudTasksStubSettings.Builder getStubSettingsBuilder()
public CloudTasksSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public PagedCallSettings.Builder<com.google.cloud.tasks.v2beta2.ListQueuesRequest,com.google.cloud.tasks.v2beta2.ListQueuesResponse,CloudTasksClient.ListQueuesPagedResponse> listQueuesSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.GetQueueRequest,com.google.cloud.tasks.v2beta2.Queue> getQueueSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.CreateQueueRequest,com.google.cloud.tasks.v2beta2.Queue> createQueueSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.UpdateQueueRequest,com.google.cloud.tasks.v2beta2.Queue> updateQueueSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.DeleteQueueRequest,Empty> deleteQueueSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.PurgeQueueRequest,com.google.cloud.tasks.v2beta2.Queue> purgeQueueSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.PauseQueueRequest,com.google.cloud.tasks.v2beta2.Queue> pauseQueueSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.ResumeQueueRequest,com.google.cloud.tasks.v2beta2.Queue> resumeQueueSettings()
public UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public PagedCallSettings.Builder<com.google.cloud.tasks.v2beta2.ListTasksRequest,com.google.cloud.tasks.v2beta2.ListTasksResponse,CloudTasksClient.ListTasksPagedResponse> listTasksSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.GetTaskRequest,com.google.cloud.tasks.v2beta2.Task> getTaskSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.CreateTaskRequest,com.google.cloud.tasks.v2beta2.Task> createTaskSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.DeleteTaskRequest,Empty> deleteTaskSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.LeaseTasksRequest,com.google.cloud.tasks.v2beta2.LeaseTasksResponse> leaseTasksSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest,Empty> acknowledgeTaskSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.RenewLeaseRequest,com.google.cloud.tasks.v2beta2.Task> renewLeaseSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.CancelLeaseRequest,com.google.cloud.tasks.v2beta2.Task> cancelLeaseSettings()
public UnaryCallSettings.Builder<com.google.cloud.tasks.v2beta2.RunTaskRequest,com.google.cloud.tasks.v2beta2.Task> runTaskSettings()
public CloudTasksSettings build() throws IOException
build
in class ClientSettings.Builder<CloudTasksSettings,CloudTasksSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.