Package com.google.cloud.tasks.v2.stub
Class CloudTasksStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<CloudTasksStubSettings,CloudTasksStubSettings.Builder>
-
- com.google.cloud.tasks.v2.stub.CloudTasksStubSettings.Builder
-
- Enclosing class:
- CloudTasksStubSettings
public static class CloudTasksStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<CloudTasksStubSettings,CloudTasksStubSettings.Builder>
Builder for CloudTasksStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(CloudTasksStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudTasksStubSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.CloudTasksStubSettings
build()
com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateQueueRequest,Queue>
createQueueSettings()
Returns the builder for the settings used for calls to createQueue.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateTaskRequest,Task>
createTaskSettings()
Returns the builder for the settings used for calls to createTask.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteQueueRequest,com.google.protobuf.Empty>
deleteQueueSettings()
Returns the builder for the settings used for calls to deleteQueue.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteTaskRequest,com.google.protobuf.Empty>
deleteTaskSettings()
Returns the builder for the settings used for calls to deleteTask.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationSettings()
Returns the builder for the settings used for calls to getLocation.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetQueueRequest,Queue>
getQueueSettings()
Returns the builder for the settings used for calls to getQueue.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetTaskRequest,Task>
getTaskSettings()
Returns the builder for the settings used for calls to getTask.com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,CloudTasksClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the builder for the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings.Builder<ListQueuesRequest,ListQueuesResponse,CloudTasksClient.ListQueuesPagedResponse>
listQueuesSettings()
Returns the builder for the settings used for calls to listQueues.com.google.api.gax.rpc.PagedCallSettings.Builder<ListTasksRequest,ListTasksResponse,CloudTasksClient.ListTasksPagedResponse>
listTasksSettings()
Returns the builder for the settings used for calls to listTasks.com.google.api.gax.rpc.UnaryCallSettings.Builder<PauseQueueRequest,Queue>
pauseQueueSettings()
Returns the builder for the settings used for calls to pauseQueue.com.google.api.gax.rpc.UnaryCallSettings.Builder<PurgeQueueRequest,Queue>
purgeQueueSettings()
Returns the builder for the settings used for calls to purgeQueue.com.google.api.gax.rpc.UnaryCallSettings.Builder<ResumeQueueRequest,Queue>
resumeQueueSettings()
Returns the builder for the settings used for calls to resumeQueue.com.google.api.gax.rpc.UnaryCallSettings.Builder<RunTaskRequest,Task>
runTaskSettings()
Returns the builder for the settings used for calls to runTask.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateQueueRequest,Queue>
updateQueueSettings()
Returns the builder for the settings used for calls to updateQueue.-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(CloudTasksStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public CloudTasksStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
listQueuesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListQueuesRequest,ListQueuesResponse,CloudTasksClient.ListQueuesPagedResponse> listQueuesSettings()
Returns the builder for the settings used for calls to listQueues.
-
getQueueSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetQueueRequest,Queue> getQueueSettings()
Returns the builder for the settings used for calls to getQueue.
-
createQueueSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateQueueRequest,Queue> createQueueSettings()
Returns the builder for the settings used for calls to createQueue.
-
updateQueueSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateQueueRequest,Queue> updateQueueSettings()
Returns the builder for the settings used for calls to updateQueue.
-
deleteQueueSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteQueueRequest,com.google.protobuf.Empty> deleteQueueSettings()
Returns the builder for the settings used for calls to deleteQueue.
-
purgeQueueSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PurgeQueueRequest,Queue> purgeQueueSettings()
Returns the builder for the settings used for calls to purgeQueue.
-
pauseQueueSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PauseQueueRequest,Queue> pauseQueueSettings()
Returns the builder for the settings used for calls to pauseQueue.
-
resumeQueueSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ResumeQueueRequest,Queue> resumeQueueSettings()
Returns the builder for the settings used for calls to resumeQueue.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.
-
listTasksSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListTasksRequest,ListTasksResponse,CloudTasksClient.ListTasksPagedResponse> listTasksSettings()
Returns the builder for the settings used for calls to listTasks.
-
getTaskSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetTaskRequest,Task> getTaskSettings()
Returns the builder for the settings used for calls to getTask.
-
createTaskSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateTaskRequest,Task> createTaskSettings()
Returns the builder for the settings used for calls to createTask.
-
deleteTaskSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteTaskRequest,com.google.protobuf.Empty> deleteTaskSettings()
Returns the builder for the settings used for calls to deleteTask.
-
runTaskSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<RunTaskRequest,Task> runTaskSettings()
Returns the builder for the settings used for calls to runTask.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,CloudTasksClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the builder for the settings used for calls to listLocations.
-
getLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
Returns the builder for the settings used for calls to getLocation.
-
build
public CloudTasksStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<CloudTasksStubSettings,CloudTasksStubSettings.Builder>
- Throws:
IOException
-
-