public static class CloudRedisSettings.Builder extends ClientSettings.Builder<CloudRedisSettings,CloudRedisSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(CloudRedisSettings settings) |
protected |
Builder(CloudRedisStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
CloudRedisSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
CloudRedisSettings |
build() |
OperationCallSettings.Builder<com.google.cloud.redis.v1.CreateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> |
createInstanceOperationSettings()
Returns the builder for the settings used for calls to createInstance.
|
UnaryCallSettings.Builder<com.google.cloud.redis.v1.CreateInstanceRequest,Operation> |
createInstanceSettings()
Returns the builder for the settings used for calls to createInstance.
|
OperationCallSettings.Builder<com.google.cloud.redis.v1.DeleteInstanceRequest,Empty,com.google.cloud.redis.v1.OperationMetadata> |
deleteInstanceOperationSettings()
Returns the builder for the settings used for calls to deleteInstance.
|
UnaryCallSettings.Builder<com.google.cloud.redis.v1.DeleteInstanceRequest,Operation> |
deleteInstanceSettings()
Returns the builder for the settings used for calls to deleteInstance.
|
OperationCallSettings.Builder<com.google.cloud.redis.v1.FailoverInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> |
failoverInstanceOperationSettings()
Returns the builder for the settings used for calls to failoverInstance.
|
UnaryCallSettings.Builder<com.google.cloud.redis.v1.FailoverInstanceRequest,Operation> |
failoverInstanceSettings()
Returns the builder for the settings used for calls to failoverInstance.
|
UnaryCallSettings.Builder<com.google.cloud.redis.v1.GetInstanceRequest,com.google.cloud.redis.v1.Instance> |
getInstanceSettings()
Returns the builder for the settings used for calls to getInstance.
|
CloudRedisStubSettings.Builder |
getStubSettingsBuilder() |
PagedCallSettings.Builder<com.google.cloud.redis.v1.ListInstancesRequest,com.google.cloud.redis.v1.ListInstancesResponse,CloudRedisClient.ListInstancesPagedResponse> |
listInstancesSettings()
Returns the builder for the settings used for calls to listInstances.
|
OperationCallSettings.Builder<com.google.cloud.redis.v1.UpdateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> |
updateInstanceOperationSettings()
Returns the builder for the settings used for calls to updateInstance.
|
UnaryCallSettings.Builder<com.google.cloud.redis.v1.UpdateInstanceRequest,Operation> |
updateInstanceSettings()
Returns the builder for the settings used for calls to updateInstance.
|
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(CloudRedisSettings settings)
protected Builder(CloudRedisStubSettings.Builder stubSettings)
public CloudRedisStubSettings.Builder getStubSettingsBuilder()
public CloudRedisSettings.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.redis.v1.ListInstancesRequest,com.google.cloud.redis.v1.ListInstancesResponse,CloudRedisClient.ListInstancesPagedResponse> listInstancesSettings()
public UnaryCallSettings.Builder<com.google.cloud.redis.v1.GetInstanceRequest,com.google.cloud.redis.v1.Instance> getInstanceSettings()
public UnaryCallSettings.Builder<com.google.cloud.redis.v1.CreateInstanceRequest,Operation> createInstanceSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder<com.google.cloud.redis.v1.CreateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> createInstanceOperationSettings()
public UnaryCallSettings.Builder<com.google.cloud.redis.v1.UpdateInstanceRequest,Operation> updateInstanceSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder<com.google.cloud.redis.v1.UpdateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> updateInstanceOperationSettings()
public UnaryCallSettings.Builder<com.google.cloud.redis.v1.DeleteInstanceRequest,Operation> deleteInstanceSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder<com.google.cloud.redis.v1.DeleteInstanceRequest,Empty,com.google.cloud.redis.v1.OperationMetadata> deleteInstanceOperationSettings()
public UnaryCallSettings.Builder<com.google.cloud.redis.v1.FailoverInstanceRequest,Operation> failoverInstanceSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder<com.google.cloud.redis.v1.FailoverInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> failoverInstanceOperationSettings()
public CloudRedisSettings build() throws IOException
build
in class ClientSettings.Builder<CloudRedisSettings,CloudRedisSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.