Class CloudRedisClusterStubSettings.Builder (0.8.0)

public static class CloudRedisClusterStubSettings.Builder extends StubSettings.Builder<CloudRedisClusterStubSettings,CloudRedisClusterStubSettings.Builder>

Builder for CloudRedisClusterStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CloudRedisClusterStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(CloudRedisClusterStubSettings settings)

protected Builder(CloudRedisClusterStubSettings settings)
Parameter
NameDescription
settingsCloudRedisClusterStubSettings

Methods

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

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

build()

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

createClusterOperationSettings()

public OperationCallSettings.Builder<CreateClusterRequest,Cluster,Any> createClusterOperationSettings()

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

Returns
TypeDescription
Builder<CreateClusterRequest,Cluster,Any>

createClusterSettings()

public UnaryCallSettings.Builder<CreateClusterRequest,Operation> createClusterSettings()

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

Returns
TypeDescription
Builder<CreateClusterRequest,Operation>

deleteClusterOperationSettings()

public OperationCallSettings.Builder<DeleteClusterRequest,Empty,Any> deleteClusterOperationSettings()

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

Returns
TypeDescription
Builder<DeleteClusterRequest,Empty,Any>

deleteClusterSettings()

public UnaryCallSettings.Builder<DeleteClusterRequest,Operation> deleteClusterSettings()

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

Returns
TypeDescription
Builder<DeleteClusterRequest,Operation>

getClusterSettings()

public UnaryCallSettings.Builder<GetClusterRequest,Cluster> getClusterSettings()

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

Returns
TypeDescription
Builder<GetClusterRequest,Cluster>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
TypeDescription
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

listClustersSettings()

public PagedCallSettings.Builder<ListClustersRequest,ListClustersResponse,CloudRedisClusterClient.ListClustersPagedResponse> listClustersSettings()

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

Returns
TypeDescription
Builder<ListClustersRequest,ListClustersResponse,ListClustersPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,CloudRedisClusterClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
TypeDescription
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

updateClusterOperationSettings()

public OperationCallSettings.Builder<UpdateClusterRequest,Cluster,Any> updateClusterOperationSettings()

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

Returns
TypeDescription
Builder<UpdateClusterRequest,Cluster,Any>

updateClusterSettings()

public UnaryCallSettings.Builder<UpdateClusterRequest,Operation> updateClusterSettings()

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

Returns
TypeDescription
Builder<UpdateClusterRequest,Operation>