public class BigtableInstanceGrpcClient extends Object implements BigtableInstanceClient
BigtableInstanceGrpcClient class.
Constructor and Description |
---|
BigtableInstanceGrpcClient(io.grpc.Channel channel)
Constructor for BigtableInstanceGrpcClient.
|
Modifier and Type | Method and Description |
---|---|
com.google.longrunning.Operation |
createInstance(CreateInstanceRequest request)
Create an instance within a project.
|
com.google.protobuf.Empty |
deleteInstance(DeleteInstanceRequest request)
Updates an instance within a project.
|
Cluster |
getCluster(GetClusterRequest request)
Gets information about a cluster.
|
com.google.longrunning.Operation |
getOperation(com.google.longrunning.GetOperationRequest request)
Gets the latest state of a long-running operation.
|
ListClustersResponse |
listCluster(ListClustersRequest request)
Lists information about clusters in an instance.
|
ListInstancesResponse |
listInstances(ListInstancesRequest request)
Lists all instances in the given project.
|
com.google.longrunning.Operation |
updateCluster(Cluster cluster)
Updates a cluster within an instance.
|
Instance |
updateInstance(Instance instance)
Updates an instance within a project.
|
public BigtableInstanceGrpcClient(io.grpc.Channel channel)
Constructor for BigtableInstanceGrpcClient.
channel
- a Channel
object.public com.google.longrunning.Operation createInstance(CreateInstanceRequest request)
createInstance
in interface BigtableInstanceClient
request
- a CreateInstanceRequest
object.Operation
object.public com.google.longrunning.Operation getOperation(com.google.longrunning.GetOperationRequest request)
BigtableInstanceClient.createInstance(CreateInstanceRequest)
and BigtableInstanceClient.updateCluster(Cluster)
will
return a Operation
. Use this method and pass in the Operation
's name in the
request to see if the Operation is done via Operation.getDone()
. The instance will not
be available until that happens.
getOperation
in interface BigtableInstanceClient
request
- a GetOperationRequest
object.Operation
object.public ListInstancesResponse listInstances(ListInstancesRequest request)
listInstances
in interface BigtableInstanceClient
request
- a ListInstancesRequest
object.ListInstancesResponse
object.public Instance updateInstance(Instance instance)
updateInstance
in interface BigtableInstanceClient
instance
- a Instance
object.Instance
object.public com.google.protobuf.Empty deleteInstance(DeleteInstanceRequest request)
deleteInstance
in interface BigtableInstanceClient
request
- a DeleteInstanceRequest
object.Empty
object.public Cluster getCluster(GetClusterRequest request)
getCluster
in interface BigtableInstanceClient
request
- a GetClusterRequest
object.Cluster
object.public ListClustersResponse listCluster(ListClustersRequest request)
listCluster
in interface BigtableInstanceClient
request
- a ListClustersRequest
object.ListClustersResponse
object.public com.google.longrunning.Operation updateCluster(Cluster cluster)
updateCluster
in interface BigtableInstanceClient
cluster
- a Cluster
object.Operation
object.