Package com.google.cloud.redis.v1.stub
Class GrpcCloudRedisStub
- java.lang.Object
-
- com.google.cloud.redis.v1.stub.CloudRedisStub
-
- com.google.cloud.redis.v1.stub.GrpcCloudRedisStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcCloudRedisStub extends CloudRedisStub
gRPC stub implementation for the CloudRedis service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcCloudRedisStub(CloudRedisStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcCloudRedisStub, using the given settings.protectedGrpcCloudRedisStub(CloudRedisStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcCloudRedisStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcCloudRedisStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcCloudRedisStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcCloudRedisStubcreate(CloudRedisStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation>createInstanceCallable()com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance,OperationMetadata>createInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.longrunning.Operation>deleteInstanceCallable()com.google.api.gax.rpc.OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty,OperationMetadata>deleteInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<ExportInstanceRequest,com.google.longrunning.Operation>exportInstanceCallable()com.google.api.gax.rpc.OperationCallable<ExportInstanceRequest,Instance,OperationMetadata>exportInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<FailoverInstanceRequest,com.google.longrunning.Operation>failoverInstanceCallable()com.google.api.gax.rpc.OperationCallable<FailoverInstanceRequest,Instance,OperationMetadata>failoverInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetInstanceAuthStringRequest,InstanceAuthString>getInstanceAuthStringCallable()com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance>getInstanceCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<ImportInstanceRequest,com.google.longrunning.Operation>importInstanceCallable()com.google.api.gax.rpc.OperationCallable<ImportInstanceRequest,Instance,OperationMetadata>importInstanceOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse>listInstancesCallable()com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,CloudRedisClient.ListInstancesPagedResponse>listInstancesPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CloudRedisClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<RescheduleMaintenanceRequest,com.google.longrunning.Operation>rescheduleMaintenanceCallable()com.google.api.gax.rpc.OperationCallable<RescheduleMaintenanceRequest,Instance,OperationMetadata>rescheduleMaintenanceOperationCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation>updateInstanceCallable()com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata>updateInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpgradeInstanceRequest,com.google.longrunning.Operation>upgradeInstanceCallable()com.google.api.gax.rpc.OperationCallable<UpgradeInstanceRequest,Instance,OperationMetadata>upgradeInstanceOperationCallable()-
Methods inherited from class com.google.cloud.redis.v1.stub.CloudRedisStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcCloudRedisStub
protected GrpcCloudRedisStub(CloudRedisStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcCloudRedisStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcCloudRedisStub
protected GrpcCloudRedisStub(CloudRedisStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcCloudRedisStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcCloudRedisStub create(CloudRedisStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudRedisStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudRedisStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classCloudRedisStub
-
listInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
- Overrides:
listInstancesCallablein classCloudRedisStub
-
listInstancesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,CloudRedisClient.ListInstancesPagedResponse> listInstancesPagedCallable()
- Overrides:
listInstancesPagedCallablein classCloudRedisStub
-
getInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
- Overrides:
getInstanceCallablein classCloudRedisStub
-
getInstanceAuthStringCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceAuthStringRequest,InstanceAuthString> getInstanceAuthStringCallable()
- Overrides:
getInstanceAuthStringCallablein classCloudRedisStub
-
createInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation> createInstanceCallable()
- Overrides:
createInstanceCallablein classCloudRedisStub
-
createInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationCallable()
- Overrides:
createInstanceOperationCallablein classCloudRedisStub
-
updateInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation> updateInstanceCallable()
- Overrides:
updateInstanceCallablein classCloudRedisStub
-
updateInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata> updateInstanceOperationCallable()
- Overrides:
updateInstanceOperationCallablein classCloudRedisStub
-
upgradeInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<UpgradeInstanceRequest,com.google.longrunning.Operation> upgradeInstanceCallable()
- Overrides:
upgradeInstanceCallablein classCloudRedisStub
-
upgradeInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpgradeInstanceRequest,Instance,OperationMetadata> upgradeInstanceOperationCallable()
- Overrides:
upgradeInstanceOperationCallablein classCloudRedisStub
-
importInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<ImportInstanceRequest,com.google.longrunning.Operation> importInstanceCallable()
- Overrides:
importInstanceCallablein classCloudRedisStub
-
importInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportInstanceRequest,Instance,OperationMetadata> importInstanceOperationCallable()
- Overrides:
importInstanceOperationCallablein classCloudRedisStub
-
exportInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<ExportInstanceRequest,com.google.longrunning.Operation> exportInstanceCallable()
- Overrides:
exportInstanceCallablein classCloudRedisStub
-
exportInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportInstanceRequest,Instance,OperationMetadata> exportInstanceOperationCallable()
- Overrides:
exportInstanceOperationCallablein classCloudRedisStub
-
failoverInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<FailoverInstanceRequest,com.google.longrunning.Operation> failoverInstanceCallable()
- Overrides:
failoverInstanceCallablein classCloudRedisStub
-
failoverInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<FailoverInstanceRequest,Instance,OperationMetadata> failoverInstanceOperationCallable()
- Overrides:
failoverInstanceOperationCallablein classCloudRedisStub
-
deleteInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.longrunning.Operation> deleteInstanceCallable()
- Overrides:
deleteInstanceCallablein classCloudRedisStub
-
deleteInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty,OperationMetadata> deleteInstanceOperationCallable()
- Overrides:
deleteInstanceOperationCallablein classCloudRedisStub
-
rescheduleMaintenanceCallable
public com.google.api.gax.rpc.UnaryCallable<RescheduleMaintenanceRequest,com.google.longrunning.Operation> rescheduleMaintenanceCallable()
- Overrides:
rescheduleMaintenanceCallablein classCloudRedisStub
-
rescheduleMaintenanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<RescheduleMaintenanceRequest,Instance,OperationMetadata> rescheduleMaintenanceOperationCallable()
- Overrides:
rescheduleMaintenanceOperationCallablein classCloudRedisStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classCloudRedisStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CloudRedisClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classCloudRedisStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classCloudRedisStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudRedisStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-