Package com.google.cloud.run.v2.stub
Class GrpcServicesStub
- java.lang.Object
-
- com.google.cloud.run.v2.stub.ServicesStub
-
- com.google.cloud.run.v2.stub.GrpcServicesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcServicesStub extends ServicesStub
gRPC stub implementation for the Services service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcServicesStub, using the given settings.protected
GrpcServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcServicesStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcServicesStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcServicesStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcServicesStub
create(ServicesStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,com.google.longrunning.Operation>
createServiceCallable()
com.google.api.gax.rpc.OperationCallable<CreateServiceRequest,Service,Service>
createServiceOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.longrunning.Operation>
deleteServiceCallable()
com.google.api.gax.rpc.OperationCallable<DeleteServiceRequest,Service,Service>
deleteServiceOperationCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service>
getServiceCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse>
listServicesCallable()
com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServicesClient.ListServicesPagedResponse>
listServicesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,com.google.longrunning.Operation>
updateServiceCallable()
com.google.api.gax.rpc.OperationCallable<UpdateServiceRequest,Service,Service>
updateServiceOperationCallable()
-
Methods inherited from class com.google.cloud.run.v2.stub.ServicesStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcServicesStub
protected GrpcServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcServicesStub, 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
-
GrpcServicesStub
protected GrpcServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcServicesStub, 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 GrpcServicesStub create(ServicesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcServicesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcServicesStub 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:
getOperationsStub
in classServicesStub
-
createServiceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,com.google.longrunning.Operation> createServiceCallable()
- Overrides:
createServiceCallable
in classServicesStub
-
createServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateServiceRequest,Service,Service> createServiceOperationCallable()
- Overrides:
createServiceOperationCallable
in classServicesStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallable
in classServicesStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallable
in classServicesStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServicesClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallable
in classServicesStub
-
updateServiceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,com.google.longrunning.Operation> updateServiceCallable()
- Overrides:
updateServiceCallable
in classServicesStub
-
updateServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateServiceRequest,Service,Service> updateServiceOperationCallable()
- Overrides:
updateServiceOperationCallable
in classServicesStub
-
deleteServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.longrunning.Operation> deleteServiceCallable()
- Overrides:
deleteServiceCallable
in classServicesStub
-
deleteServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteServiceRequest,Service,Service> deleteServiceOperationCallable()
- Overrides:
deleteServiceOperationCallable
in classServicesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classServicesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classServicesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classServicesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classServicesStub
-
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
-
-