Class GrpcAssuredWorkloadsServiceStub
- java.lang.Object
-
- com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStub
-
- com.google.cloud.assuredworkloads.v1.stub.GrpcAssuredWorkloadsServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcAssuredWorkloadsServiceStub extends AssuredWorkloadsServiceStub
gRPC stub implementation for the AssuredWorkloadsService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcAssuredWorkloadsServiceStub, using the given settings.protectedGrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcAssuredWorkloadsServiceStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcAssuredWorkloadsServiceStub
protected GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcAssuredWorkloadsServiceStub, 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
-
GrpcAssuredWorkloadsServiceStub
protected GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcAssuredWorkloadsServiceStub, 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 GrpcAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcAssuredWorkloadsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcAssuredWorkloadsServiceStub 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 classAssuredWorkloadsServiceStub
-
createWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<CreateWorkloadRequest,com.google.longrunning.Operation> createWorkloadCallable()
- Overrides:
createWorkloadCallablein classAssuredWorkloadsServiceStub
-
createWorkloadOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata> createWorkloadOperationCallable()
- Overrides:
createWorkloadOperationCallablein classAssuredWorkloadsServiceStub
-
updateWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateWorkloadRequest,Workload> updateWorkloadCallable()
- Overrides:
updateWorkloadCallablein classAssuredWorkloadsServiceStub
-
restrictAllowedResourcesCallable
public com.google.api.gax.rpc.UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()
- Overrides:
restrictAllowedResourcesCallablein classAssuredWorkloadsServiceStub
-
deleteWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteWorkloadRequest,com.google.protobuf.Empty> deleteWorkloadCallable()
- Overrides:
deleteWorkloadCallablein classAssuredWorkloadsServiceStub
-
getWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
- Overrides:
getWorkloadCallablein classAssuredWorkloadsServiceStub
-
listWorkloadsCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
- Overrides:
listWorkloadsCallablein classAssuredWorkloadsServiceStub
-
listWorkloadsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()
- Overrides:
listWorkloadsPagedCallablein classAssuredWorkloadsServiceStub
-
listViolationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListViolationsRequest,ListViolationsResponse> listViolationsCallable()
- Overrides:
listViolationsCallablein classAssuredWorkloadsServiceStub
-
listViolationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListViolationsRequest,AssuredWorkloadsServiceClient.ListViolationsPagedResponse> listViolationsPagedCallable()
- Overrides:
listViolationsPagedCallablein classAssuredWorkloadsServiceStub
-
getViolationCallable
public com.google.api.gax.rpc.UnaryCallable<GetViolationRequest,Violation> getViolationCallable()
- Overrides:
getViolationCallablein classAssuredWorkloadsServiceStub
-
acknowledgeViolationCallable
public com.google.api.gax.rpc.UnaryCallable<AcknowledgeViolationRequest,AcknowledgeViolationResponse> acknowledgeViolationCallable()
- Overrides:
acknowledgeViolationCallablein classAssuredWorkloadsServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAssuredWorkloadsServiceStub
-
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
-
-