Search in sources :

Example 6 with CloudRedisSettings

use of com.google.cloud.redis.v1beta1.CloudRedisSettings in project gapic-generator-java by googleapis.

the class SyncCreateSetEndpoint method syncCreateSetEndpoint.

public static void syncCreateSetEndpoint() throws Exception {
    // This snippet has been automatically generated for illustrative purposes only.
    // It may require modifications to work in your environment.
    CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build();
    CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings);
}
Also used : CloudRedisClient(com.google.cloud.redis.v1beta1.CloudRedisClient) CloudRedisSettings(com.google.cloud.redis.v1beta1.CloudRedisSettings)

Aggregations

CloudRedisSettings (com.google.cloud.redis.v1beta1.CloudRedisSettings)4 CloudRedisClient (com.google.cloud.redis.v1beta1.CloudRedisClient)2 BeforeClass (org.junit.BeforeClass)2 CloudRedisSettings (com.google.cloud.redis.v1.CloudRedisSettings)1 Instance (com.google.cloud.redis.v1.Instance)1 Instance (com.google.cloud.redis.v1beta1.Instance)1 CloudRedisStubSettings (com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings)1